Skip to main content

Model Gap Register

The storefront model was transcribed from the plan's sections 3-5 strictly. Where the plan itself named an open question, it was registered here with the plan's resolution. The network-side gaps the storefront depends on (NG1-NG8) live in the network's Model Gap Register as G56-G63.

Status, 2026-10-27: S1-S5 are Built: each resolution is in model/model.yaml and implemented on the owning service's develop branch (evidence column; none of the services is deployed yet). S6 is out of scope by design. A new gap is closed only when model/model.yaml (or the network model, for the NG rows) changes, python3 storefront/scripts/check_model.py --pages passes, and the owning service implements it.

Severity:

SeverityMeaning
S1A cross-context flow cannot work as modelled.
S2A race or failure path has no compensation.
S3Incomplete inside one context.
S4Out of scope by design; recorded so it is not re-litigated.
#GapSeverityResolutionStatusEvidence on develop
S1Who maps quote groups to checkout lines.S1Cart invariant "one line per item"; quote groups name items; checkout numbers lines 1..n and groups by quote groupNo.Builtshopping-cart internal/domain/cart/cart.go (adding an item already in the cart merges quantities); checkout internal/application/usecases/open_session.go (LineNo: i + 1) and checkout ADR 0002 (contracts-delta S1).
S2Price change between cart and checkout.S2Binding PriceQuote at session open; the review page shows the binding total; a changed total is visible before confirm.Builtpricing internal/domain/quote/quote.go (PriceQuote, ISSUED/EXPIRED by expiresAt); checkout ADR 0002 (confirming after quoteExpiresAt is 422 price-quote-expired).
S3Requote after authorization.S2Pre-check offers before authorizing; on a late offer-not-quotable, void then REQUOTE_REQUIRED.Builtcheckout ADR 0002 (S3: pre-check, then void and REQUOTE_REQUIRED; A9 GetDeliveryOffer before the aggregate decides); internal/adapters/outbound/deliverypromise.
S4Event order across topics (payments).S2Park fulfilment facts for an unbound order; apply on CheckoutCompleted.Builtcustomer-payments internal/application/parked/parked.go and the parked_facts table (migration 0001); facts unknown after 24 h are dead-lettered (apis/asyncapi.yaml).
S5Projection rebuild beyond topic retention.S3Snapshot via the OHS reads (each row carries updatedAt, seeded into the per-key guard), then events.Builtproduct-discovery cmd/rebuild and internal/application/usecases/rebuild.go (ADR 0003).
S6Out-of-stock purchase (benchmark [5]).S4Not possible in this network; shown as unavailable; recorded as a future idea.Kept by decisionOut of scope by design.

How a gap gets closed​

  1. Edit storefront/model/model.yaml.
  2. Run python3 storefront/scripts/check_model.py --pages and python3 storefront/scripts/gen_pages.py.
  3. Update the affected pages and OpenAPI files.
  4. Mark the row Built with the develop evidence once the owning service implements it.