Product Factory¶
Status¶
Normative Business Domain Specification
Purpose¶
Defines creation rules for Product aggregates.
Core Principle¶
Factory MUST NEVER create invalid Product state.
Invariants Reference¶
- INV-001 Product has exactly one Canonical Product Identity
- INV-002 Identifier is evidence, not identity
- INV-003 Observation must not mutate identity
- INV-004 Variant belongs to exactly one Product
Factory Rules¶
Factory SHALL:
- create Product in valid initial state
- enforce invariants at creation time
- reject ambiguous identity inputs
- initialize consistency state explicitly
Factory MUST NOT:
- infer identity silently
- bypass validation rules
- depend on persistence layer
- depend on feed parsing logic
- depend on merchant logic
Output Guarantee¶
Factory MUST always return:
- valid Product OR
- explicit failure
Never a partially valid Product.
Decision¶
Factory is the only valid entry point for Product creation.