Aller au contenu

Product Domain Services

Status

Normative Business Domain Specification

Purpose

Defines domain-level business operations that do not belong to a single entity.

Core Principle

Domain Services implement business behavior, NOT infrastructure behavior.

Invariants Reference

  • INV-001 Canonical Identity uniqueness
  • INV-002 Identifier is evidence
  • INV-003 Observation must not mutate identity
  • INV-004 Variant ownership constraint

Services

ProductIdentityResolutionService

Responsible for resolving canonical identity from multiple evidences.

ProductConsistencyService

Evaluates consistency state of a Product.

ProductMergeService

Merges two Products when identity equivalence is proven.

ProductSplitService

Splits a Product when multiple identities are detected.

ProductConflictResolutionService

Handles resolution of Product conflicts.

Rules

Services MUST:

  • be deterministic when possible
  • respect invariants
  • not depend on persistence
  • not depend on WordPress or feeds

Decision

Domain Services encapsulate cross-entity business logic only.