Aller au contenu

Product Queries

Status

Normative Business Domain Specification

Purpose

Defines read intents over the Product Domain.

Queries describe what information is required from the domain without defining how it is stored.

Core Principle

Queries MUST NOT mutate 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

Query Types

Identity Queries

  • Find Product by ProductId
  • Find Product by Canonical Product Identity
  • Find Product by Identifier

Consistency Queries

  • Find Products with conflicts
  • Find Products with incomplete identity
  • Find Products with low confidence score

Structure Queries

  • List Product Variants
  • List Product Observations
  • List Product Identifiers

Rules

Queries MUST:

  • be read-only
  • not depend on SQL structure
  • not depend on WordPress
  • not depend on feeds
  • remain deterministic when possible

Decision

Queries define intent, not data storage.