Skip to main content

Model Gap Register

The ten context packs were written strictly from network/model/model.yaml. Where the model was silent or contradicted itself, the pack did not invent an answer: it marked the choice "proposed" or "this pack's reading" on the page and reported a gap. 2026-10-22 produced about 140 reports. This page holds them deduplicated into 36 items.

The model carries the as-built contracts, not every resolution below. The events, fields, consumers and routes of the twelve services are in model.yaml (checked against each service's specification). The Status column says whether a service built the proposed resolution; the resolution text of a Closed row is what was actually decided. A gap is Closed only when the aggregates, invariants and policies it names are also edited in model.yaml and scripts/check_model.py passes.

Each gap row ends with a Status, read from the ADRs and specs of the ten services (docs/adr/0002-aggregates-and-invariants.md and later) after they were built from this register. Of the 36 gaps G1 to G40, 7 are Closed (the decision is built and written into model.yaml, and scripts/check_model.py enforces what it can) and 29 are Built as proposed, with their aggregates, invariants and policies not yet edited in the model. None is Open.

Rows G41 to G55 were added with ADR 0009 (seller inbound and case-packed shipments). They describe what that design introduces and does not solve. The seller-inbound service is now built: of the 15, 3 are Closed (G47, G48, G51, by the network evolution wave 0, checked against each repo's develop on 2026-11-09), 4 are Built (G42, G49, G53, G55) and 8 are Open; the counts above cover G1 to G40 only. Of the eight storefront-driven rows G56 to G63, 1 is Closed (G60), 4 are Built (G56, G57, G58, G61), 1 is Built differently (G62) and 2 are Open (G59, G63). Rows G64 and G65 record differences between the model and the built services found by the same check: G64 is Closed, G65 is Open. Wave 1 (2026-11-09: fast-tier eligibility, calibrated quotes, predicted-late flagging and the capacity band) opened and closed no gap number; it changes the wording of G20 only. Wave 2 (2026-11-10: the versioned sourcing policy, cross-order consolidation and the opt-in consolidated tier) closed no gap number either; it refines G26 and records one new Open gap, G66, a direct-lane advisory that is blocked on a missing input.

StatusMeaning
ClosedBuilt, and the model says what was built. The note names where in model.yaml and the repo ADR assumption. G3, G9, G11, G12 and G40 were built differently from the proposal; their resolution cell now states the decision. G36 and G37 are enforced by check_model.py (rules 5 and 6).
BuiltA service implemented the proposed resolution as written. The note names the repo, its ADR and the assumption (A followed by a number).
Built differentlyA service built something that answers the gap in another shape than the proposed resolution. The note names the ADR, what was built, where the model carries it and the residual.

Severity:

SeverityMeaning
S1A cross-context flow cannot work as modelled: a policy has no data, or a fact never reaches the context that needs it.
S2A race or failure path has no compensation: the happy path works, the unhappy one strands an aggregate.
S3Incomplete inside one context: a missing transition, formula, vocabulary or route owner.
S4Convention gaps shared by every context.

S1: flows that cannot work as modelled​

#GapContextsProposed resolutionStatus
G1PackageDelivered and PackageExceptionRaised carry assignmentId and orderId but no promiseId. JudgeOnDelivery and RepromiseOnRisk cannot find the promise. For a group shipped in several packages, the model does not say which delivery judges it.delivery-promise, shipping-and-trackingAdd promiseId to FulfillmentLocked. delivery-promise keeps a local assignmentId → promiseId mapping. FulfillmentShipped.trackingNumbers[] gives the package set; the group is judged on the last package delivered (or the first lost).Built - delivery-promise ADR 0002 A18, A25; order-sourcing ADR 0004 (FulfillmentLocked.promiseId)
G2IssueLabel input, LabelIssued, PurchaseOrder and PurchaseOrderIssued carry no orderId, but shipping-and-tracking needs it to read GET /orders/{orderId}/ship-to.shipping-and-tracking, vendor-connectivityvendor-connectivity already sees orderId on FulfillmentReleasedToNode. It adds assignmentId and orderId to the in-org IssueLabel call; the Vendor API stays without them.Built - vendor-connectivity ADR 0002 A19 and ADR 0003; shipping-and-tracking ADR 0003
G3LoadDeparted and LoadArrived carry no departure kind or node type. HandoverOnFirstScan cannot check "PICKUP load". shipping-and-tracking cannot tell an arrival at a station from one at a sort centre. There is also no HANDED_OVER → AT_STATION edge for direct injection (FC to station, the SAME_DAY path).linehaul-transportation, shipping-and-trackingAdd departureKind and nodeType to both events. nodeType is the type of the node where the event happened: the origin on LoadDeparted, the destination on LoadArrived. A departure stores the node types of its origin and destination when it is scheduled, and the load copies them. Add the HANDED_OVER → AT_STATION transition (a station-arrival RecordScan, direct injection).Closed - model: contexts[linehaul-transportation].aggregates[Departure].value_objects, .aggregates[Load].value_objects, .policies[NodeTypeSnapshot]; contexts[shipping-and-tracking].aggregates[PackageJourney].transitions, .policies[HandoverOnFirstScan, ScanTypeFromLoadFacts]; build: linehaul-transportation ADR 0002 A22, shipping-and-tracking ADR 0002 A5, A20 (the build wins: the field is nodeType, not destinationNodeType)
G4ackBy = min(issuedAt + ackWindow, requiredShipBy − handlingTime) needs the node's handlingTime. vendor-connectivity does not consume NodeOperationalProfileDeclared.vendor-connectivity, node-topologyvendor-connectivity consumes NodeOperationalProfileDeclared into VendorNodeView.Built - vendor-connectivity ADR 0003 and ADR 0002 A3
G5DeliveryWaveCancelled is analytics only. delivery-promise keeps promising on a cancelled wave, and RepromiseOnRisk does not see it.last-mile-delivery, delivery-promise, order-sourcingPromote it to an integration event consumed by delivery-promise (view and RepromiseOnRisk) and order-sourcing (NetworkGraphView).Built - last-mile-delivery ADR 0002 A22; delivery-promise ADR 0003; order-sourcing ADR 0002 A20
G6PackageLost and PackageReturned are analytics only, so a lost package's promise is never judged.shipping-and-tracking, delivery-promisePromote both to integration events. delivery-promise judges BROKEN with cause LOST; a return before delivery is also BROKEN.Built - shipping-and-tracking ADR 0002 A28; delivery-promise ADR 0002 A18; customer-ordering ADR 0002 A19
G7ConfirmPromise runs only when delivery-promise consumes CustomerOrderPlaced. If the hold has already expired, the promise is RELEASED, PromiseReleased is analytics only, and the order keeps a dead promise.customer-ordering, delivery-promiseConfirm synchronously: PlaceOrder calls POST /promises/{promiseId}/confirmations inside checkout, before the order is placed. A failed confirm makes checkout re-quote. CustomerOrderPlaced stays as the fact for everyone else.Built - customer-ordering ADR 0002 A12, A14; delivery-promise ADR 0006
G8A DeliveryOffer is quoted per (item, quantity, destination, tier), but a Promise covers a multi-line shipment group with one offerId. DeliveryOffer also stores neither basis nor policyVersion, which PromiseMade needs.delivery-promiseQuote per shipment group: DeliveryOffer.lines[] (one line on a product page). Store basis and policyVersion on the offer. A NOMINAL witness path has no departure or wave ids.Built - delivery-promise ADR 0002 A1, A2
G9PromiseBook has no creating command, no formula for share and no CloseBook trigger. The pickup departure's capacityPackages and destination are undefined: the node's cap counts orders, not packages.delivery-promise, linehaul-transportation, node-topologyOpen a book lazily on the first hold for a (node, cutoff). share = ceil(min(CutoffSlot.maxOrders, throughputCap × window) × capacitySharePercent / 100), at least 1, where window is the node's operating time between the previous cutoff and this one and capacitySharePercent is a PromisePolicy field (default 100). Holds stop at the book's holdDeadline (the cutoff minus handling time), and a clock job closes the book at the cutoff (cutoffAt). PromisePolicy carries policyVersion, offerTtlMinutes, holdTtlMinutes, packagesPerOrder, capacitySharePercent and orderDeadlines. node-topology declares no default outbound lane and no packagesPerOrder. linehaul-transportation takes the pickup's lane to be the node's open ground lane that ranks first by destination type (sort centre first), then lowest nominal transit, then lowest lane id. It converts orders to packages with its own packagesPerOrder setting (default 1); delivery-promise reads packagesPerOrder from PromisePolicy (default 1).Closed - model: contexts[delivery-promise].aggregates[PromiseBook] (commands, value_objects, invariants), .policies[LazyBookOpening, BookShare, CloseBooksAtCutoff, PromisePolicyParameters]; contexts[linehaul-transportation].policies[DefaultOutboundLane, PickupCapacity]; contexts[node-topology].policies[NoDefaultLaneNoPackagesPerOrder]; build: delivery-promise ADR 0002 A6, A12, A13; linehaul-transportation ADR 0002 A8, A9 (the build wins: node-topology declares neither the default lane nor packagesPerOrder, so they are derived or configured)
G10customer-ordering has a policy that needs to know "no revised promise is feasible", but no event says so. order-sourcing has no UNSOURCEABLE → CANCELLED transition.customer-ordering, delivery-promise, order-sourcingdelivery-promise publishes PromiseUnkeepable when re-promising finds no path. customer-ordering then cancels the group, and order-sourcing gets UNSOURCEABLE → CANCELLED.Built - delivery-promise ADR 0002 A19; customer-ordering ADR 0002 A5; order-sourcing ADR 0002 A6
G11Last-mile stops group packages by address, but last-mile never receives an address (ADR 0006).last-mile-delivery, shipping-and-trackingshipping-and-tracking derives an opaque stopKey, a keyed hash of the normalized address, at label time. stopKey and the postal prefix (the first 5 letters or digits of the normalized postal code) go on LabelIssued. last-mile-delivery consumes LabelIssued and groups packages into stops by stopKey; wave capacity counts stops (a package for a stop already in the wave takes no capacity). No restricted address route is built: no address leaves shipping-and-tracking and customer-ordering, so how a partner learns the address is not decided.Closed - model: contexts[shipping-and-tracking].aggregates[ShippingLabel].value_objects, .policies[StopKeyAtLabelTime, NoAddressRoute]; contexts[last-mile-delivery].aggregates[DeliveryWave].invariants, .aggregates[Route].invariants (ErrStopKeyMismatch), .read_models[PackageStopView], .policies[GroupByStopKey, NoAddressAtLastMile]; build: shipping-and-tracking ADR 0002 A10, A19; last-mile-delivery ADR 0002 A4 (the build wins: the restricted address route is not built)

S2: races and failure paths with no compensation​

#GapContextsProposed resolutionStatus
G12Cancel race: order-sourcing cancels a RELEASED assignment while the vendor is accepting its PO. vendor-connectivity refuses to cancel (ErrCancelAfterAcknowledgement), but no one is told, so the vendor may ship a cancelled group.customer-ordering, order-sourcing, vendor-connectivityCustomerOrderCancelled is a request. order-sourcing decides: it publishes FulfillmentCancelled for a QUEUED, RELEASED or UNSOURCEABLE assignment, and FulfillmentCancelRefused (reason CANCEL_AFTER_LOCK) for a LOCKED, SHIPPED or DELIVERED one. The lock is the vendor's acceptance of the purchase order. After a refusal the vendor ships and the shopper's refusal becomes a return. customer-ordering consumes both events and shows the outcome; its own ErrCancelAfterLock is advisory. vendor-connectivity cancels the purchase order on FulfillmentCancelled; if the vendor has already acknowledged it, it logs ErrCancelAfterAcknowledgement and publishes nothing. One race stays open: an acceptance that arrives after order-sourcing cancelled a RELEASED assignment is only logged, so the vendor may still ship a cancelled group.Closed - model: contexts[order-sourcing].aggregates[FulfillmentAssignment] (transitions, invariants ErrCancelAfterLock, commands RefuseCancel, events, notes), .policies[CancelDecision, AcceptanceAfterCancelOnlyLogged]; contexts[customer-ordering].aggregates[CustomerOrder] (invariants, commands), .policies[CancelIsARequest]; contexts[vendor-connectivity].policies[CancelOnSourcingCancel]; build: order-sourcing ADR 0002 A7; customer-ordering ADR 0002 A3; vendor-connectivity ADR 0002 A15 (the build wins: the refusal follows the lock, and the open race, an acceptance that arrives after a cancel, is recorded in the model as a known residual and is only logged)
G13PromiseRevised applies only to UNSOURCEABLE. A revision caused by a departure or a package exception leaves QUEUED, RELEASED and LOCKED assignments on a stale deliverByLatest. ApplyRevisedPromise emits no event.order-sourcingApplyRevisedPromise applies in every non-terminal state and emits FulfillmentConstraintRevised. PromiseConstraint carries revisionNo, and node exclusions reset when it changes.Built - order-sourcing ADR 0002 A9, A10
G14No rule covers a LOCKED assignment whose pickup departure is cancelled, a booking refused after acceptance (ErrDepartureFull), or bookings on a cancelled departure.linehaul-transportation, order-sourcing, delivery-promiselinehaul-transportation rebooks onto the next departure from the same origin and publishes BookingMoved, or BookingFailed when none fits. delivery-promise re-promises on either. The node never changes after lock (ADR 0005).Built - linehaul-transportation ADR 0002 A14, A15; order-sourcing ADR 0002 A17; delivery-promise ADR 0002 A17
G15The release branch of BookOnLock cannot fire: reassignment and cancellation happen only before LOCKED, and booking happens only at LOCKED. Only PICKUP departures are ever booked.linehaul-transportationRemove the release branch. Book line-haul and air legs when the package is loaded at a sort centre (OpenLoad / LoadPackage), not at lock.Built - linehaul-transportation ADR 0002 A13, A20
G16InductOnArrival has no failure outcome when no wave is eligible. After three failed attempts there is no failure count, no event and no route to ReturnToSender.last-mile-delivery, shipping-and-trackingPublish PackageInductionDeferred, which delivery-promise treats as a risk. PackageAttemptHistory per tracking number counts failures. The third failure publishes PackageReturnInitiated, which shipping-and-tracking consumes into ReturnToSender.Built - last-mile-delivery ADR 0002 A18, A19; shipping-and-tracking ADR 0002 A8
G17CancelWave is allowed while packages are inducted. A stop has one outcome, but DeliveryAttempted is per package.last-mile-deliveryCancelling a wave re-inducts its packages onto the next wave. Outcomes are per package; the stop outcome is derived.Built - last-mile-delivery ADR 0002 A10, A17
G18VoidLabel has no effect on the journey, and LabelVoided has no consumer.shipping-and-trackingVoiding closes a LABELLED journey as VOIDED and is refused after handover. customer-ordering and linehaul's ExpectedVolumeView consume LabelVoided.Built - shipping-and-tracking ADR 0002 A13; customer-ordering ADR 0003; linehaul-transportation ADR 0002 A18

S3: incomplete inside one context​

#GapContextProposed resolutionStatus
G19TierOrderDeadline has no owner, route or event. There is no OfferConstraint for "past the deadline".delivery-promiseMake it part of a PromisePolicy aggregate (versioned) with PromisePolicyPublished, and add the PAST_ORDER_DEADLINE constraint.Built - delivery-promise ADR 0002 A11, A21
G20ScorecardHandicap has no rule for grade PROVISIONAL and does not say which window applies (7-day or 30-day). The same is true of AssignmentCost.delivery-promise, order-sourcing, node-performancePROVISIONAL adds no handicap. Both use the 30-day window for grading and handicaps. As built the 7-day window raises alerts and, since wave 1, also decides fast-tier eligibility: node-performance suspends a node from SAME_DAY and NEXT_DAY below 0.90 graded on-time handover and reinstates it after three successive recompute days at 0.95 or more, publishing NodeTierEligibilityChanged, which delivery-promise folds into a local read model (policies FastTierEligibility, FastTierCandidateFilter).Built - delivery-promise ADR 0002 A4; order-sourcing ADR 0002 A15; node-performance ADR 0002 (E18); node-performance ADR 0013; delivery-promise ADR 0022
G21RevisePromise does not say whether capacity moves to the new book. CustomerOrderCancelled is consumed, but nothing maps it to CancelPromise.delivery-promiseA revision moves the hold (hold new, release old) in one transaction. CustomerOrderCancelled triggers CancelPromise, which releases confirmed capacity.Built - delivery-promise ADR 0002 A17, A24, A30
G22MakePromise changes three aggregates (offer, promise, book).delivery-promiseOne local transaction. All three are in one database and the book row is the contention point. This is a documented exception to "one aggregate per transaction".Built - delivery-promise ADR 0002 (Transactions, G22)
G23Feed rules are unclear. The model does not say whether a stale line is an error or how an all-stale feed ends. A FAILED feed cannot be resent. An older feed should be ignored but has no state. "Applied atomically across every listing" conflicts with one aggregate per transaction.offer-availabilityA stale line is skipped and counted, and the feed is APPLIED. Add the SUPERSEDED state for an older feed. A FAILED feed id may be resent. A feed is one transaction, bounded at 10,000 lines per node (larger feeds are split by the vendor).Built - offer-availability ADR 0002 A2, A11
G24No initial listing state on a non-sellable node. No rule for what discontinuing an item does to its listings. No basis for a zeroed availability.offer-availabilityCreate the listing as SUPPRESSED (reason NODE_NOT_SELLABLE). Discontinuing suppresses all listings (reason DISCONTINUED). Zeroing keeps the basis and stamps asOf = the feed's time.Built - offer-availability ADR 0002 A4, A5, A10
G25customer-ordering never maps consumed events to commands. Its cancel wording contradicts itself, IN_FULFILLMENT → CANCELLED is unreachable, and there is no partially delivered state.customer-orderingModel the mappings the pack already used. "Cancel while any group is unlocked" applies to those groups only. Add PARTIALLY_DELIVERED. GroupPromise gains tier, shipBy and a per-group status.Built - customer-ordering ADR 0002 A1, A2, A3
G26VirtualQueue does not say when an assignment with no candidates becomes UNSOURCEABLE. "Cross-region only when it is the only way" (a filter) conflicts with crossRegionPenalty (a cost). The destination is not on PromiseConstraint.order-sourcingDeclare it unsourceable immediately when the candidate set empties. Cross-region is a penalty, and the business decision text is corrected. Add destinationPostalPrefix to PromiseConstraint. As built since wave 2 the penalty sits behind money and an operator can buy in-region fulfilment: a versioned SourcingPolicy adds a cross-region surcharge in cents to a candidate's effective cost, and an in-region candidate within the cheapest effective cost plus maxCostDeviationPercent beats a cross-region one (policy RegionalBudget). With no policy published the ordering is unchanged. The split surcharge of the first contract is not built, because order-sourcing never splits an order.Built - order-sourcing ADR 0002 A3, A4, A12; refined by order-sourcing ADR 0014 (model: contexts[order-sourcing].aggregates[SourcingPolicy], .policies[RegionalBudget])
G28PickupFromCutoffs fires on profile declaration, but pickups exist only for ACTIVE nodes. NodeActivated has no reaction. No command changes departure capacity. CloseDeparture, RecordDeparture and RecordArrival have no actor.linehaul-transportationGenerate pickups on NodeActivated and on profile revisions of active nodes. Add ChangeDepartureCapacity for the planner. Departure and arrival are recorded by DispatchLoad and ReceiveLoad.Built - linehaul-transportation ADR 0002 A7, A21, A23
G29Lane schedules have no field model.linehaul-transportationAdopt the pack's slot shape (dayOfWeek, local cutoff, departs and arrives, capacityPackages). A redefinition replaces slots from the next horizon roll.Built - linehaul-transportation ADR 0002 A2, A4
G30Vendor suspension has no route, event or rule. A vendor never learns the nodeId its registration created, and there is no route to list its nodes.vendor-connectivityAdd VendorSuspended and VendorReinstated; a suspended vendor's writes are refused. Return nodeId on the processed NODE_REGISTRATION transaction. Add GET /vendor/nodes.Built - vendor-connectivity ADR 0002 A9, A11, A14
G31Label requests conflict with the async rule: every vendor write returns 202 + transactionId, but a label is needed synchronously to pack.vendor-connectivityA label is the documented exception: 200 with {labelRef, trackingNumber, carrier} (the contract already does this).Built - vendor-connectivity ADR 0003 (IssueLabel)
G32Vendor identity under no-auth. ErrNodeNotOwnedByVendor cannot be checked on reads.vendor-connectivityvendorId goes in every write body and as a required query parameter on reads. Ownership is checked against it; this is a consistency check, not security.Built - vendor-connectivity ADR 0002 A23
G33Scorecard metrics lack definitions: denominators, the late-ack window, freshness sampling, direction of "downward" for metrics where higher is worse, minObservations, creation and the PROVISIONAL recompute. No rule says which PromiseBroken causes count against the node.node-performanceDefine each metric with a numerator, denominator and better-direction. minObservations = 50. The first observation creates a PROVISIONAL card, and recompute below the minimum stays PROVISIONAL without publishing. The cause vocabulary of PromiseBroken is LATE, LOST, RETURNED (delivery-promise); only LATE counts against the node. The names LATE_HANDOVER, VENDOR_REJECT and ACK_EXPIRED are not published by any context: ACK_EXPIRED is node-performance's own observation kind and the other two are retired.Built - node-performance ADR 0002 A1, A5 to A10, A13 (A8 also counts the retired cause names if a producer ever sent them)
G34DeliveryServicePartner has no transitions or fields. PlanRoute is not tied to wave inductions. CompleteWave, CancelWave and CompleteRoute have no trigger.last-mile-deliveryAdd DeactivatePartner and the fields the pack used. A route may hold only packages inducted in its wave, and only from INDUCTION_CLOSED. A wave completes when its last route does.Built - last-mile-delivery ADR 0002 A9, A12, A16, A25

S4: conventions shared by every context​

#GapProposed resolutionStatus
G36REST routes with no inbound row, and inbound rows with no caller's sync_calls.Every inbound cmd and qry row carries an explicit routes list of exact method+path strings, and check_model.py (check 6) enforces three sub-rules: (a) each row has a non-empty routes list whose entries all exist in that context's rest (query ignored); (b) every rest route is listed by at least one inbound row, one row per (caller, relationship); (c) when the row's from is another context, that caller's sync_calls has an entry to this context, of the same type, whose channel names each route, and every route a sync_calls entry names is listed by a matching inbound row of the callee. Shorthand channels such as REST /nodes, /lanes now name the exact routes. Callers come from the service OpenAPI, ADRs and clients; where the build names none, the caller is the actor of the sibling routes and marked caller inferred in a model.yaml comment. The customer-ordering to delivery-promise entry now names ConfirmPromise and CancelPromise, which the build calls.Closed - model: contexts[*].inbound[*].routes (all ten contexts), contexts[customer-ordering].sync_calls; build: the ten services' apis/openapi.yaml (model rest and spec paths agree, probes aside)
G37Reason vocabularies are not enumerated (cancel, reject, lock, exception, broken cause and others).One reasons: table per context in the model. Each entry names the event data fields and REST schema fields it appears in, its values with a one-line meaning, and the consumers that branch on a value. check_model.py checks that the fields exist (events in publishes, schemas in apis/<context>/openapi.yaml), that values are unique UPPER_SNAKE and equal the OpenAPI enum, and that a branching consumer uses a value the producer lists. gen_pages.py prints the tables under "Reason vocabularies" on the Event Standard page. 16 closed vocabularies in 8 contexts. Free text is not listed: customer-ordering and node-topology have only free-text reasons (reasons: []). Two vocabularies have a consumer that branches on a value: PromiseBroken.cause (node-performance) and DeliveryAttempted.outcome (shipping-and-tracking). The build wins where it differs from the model (PAST_ORDER_DEADLINE is a fifth OfferConstraint).Closed - model: contexts[*].reasons (delivery-promise, order-sourcing, vendor-connectivity, linehaul-transportation, shipping-and-tracking, offer-availability, last-mile-delivery, node-performance); build: delivery-promise ADR 0002 A18, order-sourcing ADR 0002 A14 and ADR 0004, linehaul-transportation ADR 0002 A14, shipping-and-tracking ADR 0002 A30, node-performance ADR 0002 A2 and A8
G40No retention rule for the ship-to snapshot.Purge it (job PurgeShipTo) 30 days after the journey closes: DELIVERED, RETURNED or LOST, or VOIDED when the label is voided before handover.Closed - model: contexts[shipping-and-tracking].aggregates[ShippingLabel].commands (PurgeShipTo), .value_objects (ShipToSnapshot), .policies[ShipToRetention]; build: shipping-and-tracking ADR 0002 A9, ADR 0005 (the build wins: the purge also covers VOIDED journeys)

Introduced by seller inbound and case-packed shipments​

Added with ADR 0009. Each row carries its severity (S1 to S4, defined above) because these rows do not sit under one severity heading. The proposed resolution is not in the model, except in a Closed row, whose resolution cell states what was built.

#SeverityGapContextsProposed resolutionStatus
G41S3Commingling is not designed. Stock, listings and reservations are segregated by ownerRef. Two sellers of the same GTIN keep separate stock and separate listings; nothing lets identical units be pooled.seller-inbound, offer-availabilityA later per-item opt-in that pools by GTIN, with its own ADR: a pooled owner, a way to attribute sales back to a seller, and a rule for a unit that arrives labelled by two sellers.Open
G42S3No seller compliance scorecard. SellerComplianceViolationRecorded and InboundDiscrepancyRecorded are recorded and published analytics-only. Nothing counts them, grades a seller or acts on a grade.seller-inbound, node-performanceA seller scorecard, kept apart from the node scorecard (a violation is the seller's, not the node's), with its own grades and thresholds. Suspension stays a human decision, as for nodes.Built - seller-inbound ADR 0005: GET /sellers/{sellerId}/scorecard over this service's own facts, tier GOOD, WATCH or AT_RISK from declared thresholds; informational, nothing acts on it, no event
G43S3No inbound freight. The seller delivers to the node. linehaul-transportation and shipping-and-tracking carry customer packages, not seller cartons or pallets.seller-inbound, linehaul-transportation, shipping-and-trackingIf the network ever carries seller freight: inbound loads on the existing INBOUND_CROSS_DOCK to FULFILLMENT_CENTER lanes, measured in cartons and pallets.Open
G44S4JSON only. The Published Language is JSON over the Vendor API. X12 and EDIFACT adapters and a GS1 despatch advice mapping are out of scope.vendor-connectivity, seller-inboundAn adapter per EDI dialect in front of seller-inbound and behind vendor-connectivity, mapping to the same carton manifest.Open
G45S3No FEFO or lot allocation. lot (up to 20 characters) and expiry are captured on carton contents and carried on InboundShipmentLabelled. Nothing allocates stock by expiry.seller-inbound, offer-availabilityFirst-expired-first-out allocation belongs to the stock owner. The network side would need lot and expiry on availability, which is not modelled.Open
G46S4Vocabularies are not enumerated. The complianceCodes a vendor may report are proposed in prose only. The shipment status and carton receipt status values are listed in the seller-inbound reasons table of the model (G37 mechanism). The discrepancy kind is the receiving fleet's carton discrepancy kind string, passed through unchanged, so this model owns no closed list for it; only the compliance codes remain.vendor-connectivity, seller-inboundList the compliance codes as an enum in the Vendor API and as a reasons entry of vendor-connectivity.Open
G47S1Sourcing and promise ignore the owner. Listing and its events gain an optional ownerRef, but order-sourcing and delivery-promise are unchanged and read availability by catalogue item and node. With two sellers' listings of one item at one node, which listing a shipment group takes, and whether availabilities are summed, is unspecified.offer-availability, order-sourcing, delivery-promiseAs built: both read models key availability by (catalogItemId, nodeId, ownerRef), operator-owned stored as ''. A line is covered by ONE owner (never summed across owners) chosen by the shared OwnerChoice rule: operator-owned first if it covers, else the covering seller with the highest available, ties to the lowest ownerRef. The chosen owner travels on FulfillmentReleasedToNode and PromiseMade lines[].ownerRef and on the offer and promise lines; delivery-promise nets holds per owner; vendor-connectivity copies it onto purchase-order lines (Vendor API and PurchaseOrderIssued). Residual: the fleet's network-fulfillment does not read lines[].ownerRef yet, so seller-owned lines are still picked without owner segregation.Closed - model: contexts[order-sourcing].policies[OwnerChoice], .read_models[AvailabilityView], .aggregates[FulfillmentAssignment].value_objects (AssignmentLine), .publishes[FulfillmentReleasedToNode]; contexts[delivery-promise].policies[OwnerChoice, OwnerAwareNetting], .read_models[AvailabilityView], .aggregates[DeliveryOffer].value_objects (OfferLine), .aggregates[Promise].value_objects, .publishes[PromiseMade]; contexts[vendor-connectivity].aggregates[PurchaseOrder].value_objects (PoLine), .policies[PoLineNamesTheOwner], .publishes[PurchaseOrderIssued]; build: order-sourcing ADR 0012, delivery-promise ADR 0017, vendor-connectivity ADR 0012
G48S2A suspended seller's listings stay live. offer-availability does not consume seller events and does not check that an ownerRef is an active seller. SellerSuspended stops new plans and shipments, not sales of stock already received.seller-inbound, offer-availabilityAs built: SellerSuspended and SellerReinstated moved to retailnetwork.seller-inbound.events; offer-availability keeps a local SellerStatusView and suppresses the owner's LIVE listings with the new reason OWNER_SUSPENDED. A listing shows its highest active cause, DISCONTINUED (final), then NODE_NOT_SELLABLE, then OWNER_SUSPENDED; reinstatement and NodeActivated reconcile the listing against all three causes, and a listing created for a suspended owner starts SUPPRESSED.Closed - model: contexts[seller-inbound].publishes[SellerSuspended, SellerReinstated], .policies[SellerStatusIsIntegration]; contexts[offer-availability].read_models[SellerStatusView], .policies[SuppressOnOwnerSuspended, SuppressOnNodeUnavailable, ListingReconcile, OwnerSuspendedOnCreate], .reasons[ListingSuppressionReason] (OWNER_SUSPENDED), .consumes, .inbound; build: seller-inbound ADR 0013, offer-availability ADR 0013
G49S3No placement advice. seller-inbound absorbs the reserved inventory-placement name, but the seller picks the destination node. Which node should hold which item before demand arrives is not modelled.seller-inbound, node-topology, order-sourcingA placement recommendation (regional selection) offered at plan creation, as an advisory query, never a hard rule.Built - seller-inbound ADR 0012 (the F6 placement advisory): PlacementPlan from the local DemandHeatView (formula demand-heat-v1, advisory only, POST /placement-plans and its acceptances); the model carries the aggregate, routes and consumed events, not yet the formula's invariants
G50S2Receipt edge cases. A shipment that is SHIPPED and never receipted has no timeout and no state. A partly received shipment waits in RECEIVING with no deadline. A plan split over several shipments is checked only as "not over" the plan line. A very large shipment is one aggregate.seller-inboundAn overdue rule that closes a shipment as CLOSED_WITH_DISCREPANCY after a declared window, and a plan-level coverage rule once the last shipment is labelled.Open - as built, labelling checks THIS shipment's cartons against the plan lines exactly (seller-inbound ADR 0002 A10); no overdue rule exists
G51S1Received stock does not become a listing. InboundShipmentReceived reports eaches received, but nothing creates an owner-scoped Listing or availability from it. CreateListing is a manual merchandising command and the inventory feed names listings that must already exist.seller-inbound, offer-availability, vendor-connectivityAs built: InboundShipmentReceived gains received[{catalogItemId?, gtin, qtyEaches}] (only manifest cartons answered RECEIVED count; counted quantities when reported, else the manifest; EACH-level GTIN when resolvable). offer-availability consumes it and creates the missing owner listing per (item, node, ownerRef = sellerId) at availability 0 / UNKNOWN, suppressed when a cause holds; availability still comes only from the vendor's inventory feed. Events closed before the change carry no received and create nothing.Closed - model: contexts[seller-inbound].publishes[InboundShipmentReceived] (received), .policies[ReceivedStockPerItem]; contexts[offer-availability].policies[ListingsFromReceivedStock], .aggregates[Listing].commands (ApplyReceivedStock), .consumes, .inbound; build: seller-inbound ADR 0014, offer-availability ADR 0014
G52S3Inbound metrics mix causes. inboundTimelinessP95Minutes and inboundAccuracyRate are on the node scorecard but informational only: they are not graded and are not on NodeScorecardUpdated. A late or missing carton is as likely the seller's fault as the node's.node-performance, seller-inboundSeparate node causes (timeliness, damage at the dock) from seller causes (missing, mislabelled), grade only the node's, and put the rest on the seller scorecard (G42).Open
G53S4Contracts not yet written. apis/vendor-connectivity/openapi.yaml has the two new Vendor API groups and the inbound object of the node profile. There is no OpenAPI file for the seller-facing routes of seller-inbound, and apis/offer-availability, apis/node-topology and apis/node-performance do not yet carry the packaging routes, the inbound profile object, the ownerRef field and the two inbound metrics.seller-inbound, offer-availability, node-topology, node-performanceWrite apis/seller-inbound/openapi.yaml and extend the other three, then add seller-inbound to the API reference.Built - seller-inbound apis/openapi.yaml (14 operations, rendered under the API reference since 2026-10-26); offer-availability carries the packaging routes and ownerRef, node-topology the inbound profile object, node-performance inboundTimelinessP95Minutes and inboundAccuracyRate (each repo's apis/openapi.yaml on develop)
G54S3Pallets and inner packs are modelled, not used. PALLET and INNER exist as pack levels and parentSscc links a carton to a pallet, but plans, validation and receipts work with eaches and cases only. acceptsPallets is a flag with no pallet manifest behind it.seller-inbound, offer-availability, node-topologyA pallet as a logistic unit with its own SSCC and a count of cartons, checked against the node's acceptsPallets; inner packs once a seller needs them.Open
G55S4Seller routes go beyond the pinned contract. The pinned contract lists eight seller-facing routes. The model adds POST /sellers/{sellerId}/suspensions, POST /sellers/{sellerId}/reinstatements, POST /inbound-plans/{planId}/cancellations and POST /inbound-shipments/{shipmentId}/labels, because the contract names the commands SuspendSeller, ReinstateSeller and the LABELLED state but no route that causes them. The Vendor API poll names the seller sellerId, which the vendor keeps as its ownerRef.seller-inbound, vendor-connectivityConfirm the four extra routes when apis/seller-inbound/openapi.yaml is written (G53), or drop them and let the label be produced by GET /inbound-shipments/{shipmentId}/labels.Built - all four routes are in seller-inbound apis/openapi.yaml on develop, beside GET /inbound-plans/{planId} and GET /sellers/{sellerId}/scorecard

Storefront-driven gaps (G56+)​

Numbering continues at G56 for the digital-storefront campaign (the plan's section 7): G41-G55 were taken by ADR 0009 above. These are open gaps the storefront domain found in the network surface; NG1-NG3 are EXTENDs of customer-ordering owned and released by the network, merged before the storefront's checkout is built.

#SeverityGapContextsProposed resolutionStatus
G56 (NG1)S1Checkout cannot store a PII-free placement body it can replay to settle an in-doubt placement: POST /checkout takes only an inline shipTo. Saved addresses exist (POST /shoppers) but cannot be used at checkout or read back.customer-orderingSaved addresses: POST /shoppers/{shopperId}/addresses (max 20, the existing limit), GET /shoppers/{shopperId} (profile + addresses); POST /checkout accepts shipToAddressId as an alternative to inline shipTo (exactly one; the address is copied into the order). Keeps PII inside customer-ordering (RN-0006).Built (customer-ordering, IQVO/customer-ordering#17; NG1 also covers offer-not-quotable with requotedOffers and the 24-hour idempotency window)
G57 (NG2)S2No GET /orders?shopperId=: a storefront account area cannot list a shopper's orders.customer-orderingGET /orders?shopperId=&after=&limit= (keyset, newest first, no address). The alternative (a storefront copy that re-derives order status) duplicates the status rules.Built (customer-ordering, IQVO/customer-ordering#17; NG1 also covers offer-not-quotable with requotedOffers and the 24-hour idempotency window)
G58 (NG3)S2No GET /shoppers?email=: the no-auth "sign in" lookup is impossible.customer-orderingGET /shoppers?email= (exact, lower-cased, A16).Built (customer-ordering, IQVO/customer-ordering#17; NG1 also covers offer-not-quotable with requotedOffers and the 24-hour idempotency window)
G59 (NG4)S1Kong exposes the whole /api/customer-ordering and /api/delivery-promise prefixes, so the restricted ship-to route and the in-org promise routes are reachable from outside.warehouse-infraBrowser traffic goes only to /api/storefront; decide whether the network prefixes stay public for ops tools or move to an internal-only listener. The model's "restricted, not exposed through the storefront edge" is not true on the cluster today.Open
G60 (NG5)S3Every quote persists offers with a TTL; delivery dates on listing pages would write one offer row per product per view.delivery-promiseAs built: POST /delivery-estimates, a SAFE noun route (no offer row, hold, outbox row or event; an Idempotency-Key is ignored): up to 50 unique items for one destination, each searched as a single-line group with the quote's own search, answering per item the options (tier, window, basis, orderByAt) and the OfferConstraint vocabulary. The read-only MCP tool estimate_delivery is bound to the same use case.Closed - model: contexts[delivery-promise].policies[BatchDeliveryEstimates], .aggregates[DeliveryOffer].commands (EstimateDeliveries), .rest, .inbound; build: delivery-promise ADR 0019
G61 (NG6)S3expiresAt mixes TTL and pickup cutoff; there is no separate "order within" instant for messaging.delivery-promiseExpose the order-by instant (cutoff-derived) on DeliveryOffer.Built - delivery-promise orderByAt (F1, IQVO/delivery-promise#44: the cutoff-bound order-by instant on DeliveryOffer; no ADR of its own, also returned by POST /delivery-estimates)
G62 (NG7)S2 (later)A future customer-notification context would have to re-derive order status from three streams.customer-orderingPublish group status facts (shipped, delivered, lost, returned) as customer-order events. Defer until notifications is planned. As built (customer-ordering ADR 0017, read on develop 2026-11-16): customer-ordering now publishes ShopperNoticeDecided on its events topic, one per family occurrence, for seven families: the four group families (GROUP_SHIPPED, GROUP_DELIVERED, GROUP_LOST, GROUP_RETURNED, whose fact carries the group status) plus DELAY_EXPECTED, ETA_WINDOW_ASSIGNED and DELIVERY_POINT_ADVISORY. Each carries the notifier (MARKETPLACE, SELLER or NOBODY, the default) that a versioned notification policy decided, and a noticeKey to dedupe on. The notice is delivered outside the network (the storefront; seller delivery is deferred), and no customer-notification context exists.Built differently - customer-ordering ADR 0017: per-family decided notices under the order entity, not plain group status events on the customerorder entity; the four terminal families carry the group status, so a consumer no longer re-derives it from three streams. Model: contexts[customer-ordering].publishes[ShopperNoticeDecided], .reasons[ShopperNoticeFamily], .reasons[ShopperNoticeNotifier], .policies[ShopperNoticeDecision]. Inside the network the only consumer is customer-returns (the terminal families, for its OrderGroupView). Residual: the NotificationPolicy document and its operator routes (GET /notification-policy, PUT /notification-policy) are not in the model yet; publishing a policy raises no event; there is no customer-notification context, so nothing inside the network delivers a notice.
G63 (NG8)decisionThe network's future payments-and-invoicing and the storefront's customer-payments would be two owners of one capability.network modelSplit payments-and-invoicing into customer-payments (storefront, now) and vendor-settlement (network, later): different language (authorize/capture/refund vs invoice/remittance) and different organisationally owned flows (storefront D5).Open

As-built discrepancies found on 2026-10-26​

Found while re-checking the model against the eleven services' develop branches. Each row is a place where a service and the model (or two services) disagree and a code or model change is owed.

#SeverityGapContextsProposed resolutionStatus
G64S1FULFILLMENT_CENTER has no INBOUND capability in node-topology. The model's node_types and ADR 0009 give it [OUTBOUND, INBOUND], and seller-inbound treats fulfillment centres and inbound cross-docks as receiving nodes (internal/domain/network/network.go). node-topology's typeRules still give it OUTBOUND only (internal/domain/node/types.go), so GET /nodes/{nodeId} reports inbound: false for a node that receives seller cartons. The capability gate ErrInboundLimitsNotAllowed is not built either: inbound limits are value-checked (ErrValidation, node-topology ADR 0007) on any node type.node-topology, seller-inboundAs built (the first option): FULFILLMENT_CENTER has [OUTBOUND, INBOUND] in node-topology and GET /nodes/{nodeId} reports inbound: true for it (derived on read). A new declaration of inbound limits on a node type without INBOUND is refused with ErrInboundLimitsNotAllowed (422 inbound-limits-not-allowed); stored revisions stay restorable.Closed - model: node_types[FULFILLMENT_CENTER].capabilities; contexts[node-topology].aggregates[Node].invariants (ErrInboundLimitsNotAllowed); build: node-topology ADR 0015
G65S3A plan line's catalogue item is not checked for being live. The model had seller-inbound consume CatalogItemCreated and CatalogItemDiscontinued; the service consumes only the two packaging events (seller-inbound ADR 0003), so a plan can name a discontinued or unknown item. Only the GTIN and, for case packs, the active CASE level are checked.seller-inbound, offer-availabilityConsume the two item events into CatalogPackagingView and refuse a line whose item is not live, or record the looser rule as decided. The model now says what is built.Open

Recorded by network evolution wave 2​

A feature of the wave that could not be built, because its premise failed against the as-built data. It is recorded here as an Open gap and is described nowhere else as built.

#SeverityGapContextsProposed resolutionStatus
G66S3A direct-lane advisory has no destination station to attribute a package to. A planner signal that suggests a direct facility-to-station lane where volume justifies it needs each labelled package attributed to an (origin node, destination node) pair. linehaul-transportation consumes no event that carries a destination station node: LabelIssued is read for its tracking number and assignment id only (the producer also sends a destination postal prefix, which is not consumed and is a prefix, not a station); the release, lock, reassign and cancel events carry no destination node; and its node view holds no postal coverage. The only destination it knows for an assignment is that of the pickup departure, the first leg over a lane that exists by construction, which would suppress every suggestion. Guessing the station from the pickup, from a hard-coded prefix table or by a synchronous call to a sibling was rejected.linehaul-transportation, shipping-and-tracking, order-sourcing, node-topologyPublish the missing input in its owning context and consume it additively and tolerantly: either an optional destination station node id on a label or release event, or a node-to-postal-prefix coverage read model from node-topology. The design is written down in linehaul-transportation ADR 0013 (a trailing window of packages per pair, no lane between the pair, an analytics-only suggestion event, a read route); that ADR is Proposed, nothing of it is built and the model carries no part of it.Open

Recorded by network evolution wave 3​

Follow-ups the wave 3 build (the day-of ETA window, E3, and the delivery-point profile, C5) deliberately left open. They are recorded here as Open gaps with neutral wording; nothing in the model describes them as built.

#SeverityGapContextsProposed resolutionStatus
G67S2The delivery-point signal is dormant: no driver client reports an outcome detail. The attempt report accepts an optional outcomeDetail (NOT_HOME, ACCESS_PROBLEM, OTHER on FAILED; SAFE_PLACE_USED on DELIVERED), and only NOT_HOME and ACCESS_PROBLEM count as strikes on the DeliveryPointProfile. Until a driver client sends the field, every attempt is tallied as not reported, no strike is counted, no DeliveryPointFlagged is published, and the whole chain (the relay, the advisory on the tracking view) stays silent. Activation is a client change, not a deploy flag. The read-only exposure decided in last-mile-delivery ADR 0014 (a delivery-point route and a summary on the wave stops) is not built either.last-mile-delivery, shipping-and-tracking, customer-orderingA driver-client change that reports outcomeDetail on the attempt, plus the two read-only surfaces of the profile when a planner needs them; until then the built chain is honest but silent.Open
G68S3The shopper cannot act on the delivery-point advisory. The advisory tells the shopper whose package is still on the way that the delivery point failed twice (NOT_HOME or ACCESS_PROBLEM, codes only), but the smallest honest loop this wave could build is information, not action: customer-ordering has no instructions field, no way to change the ship-to of a placed order, and no notification channel, and the address is PII that must not cross into a free-text instruction for the driver.customer-ordering, last-mile-delivery, shipping-and-trackingA fix path (for example an instructions command and its route to the driver, or a supported ship-to change before out-for-delivery) needs its own model amendment that names the PII boundary it crosses; it is not designed yet.Open

How a gap gets closed​

  1. Edit network/model/model.yaml.
  2. Run npm run check:model:network and python3 network/scripts/gen_pages.py (then npm run check:pages:network).
  3. Update the affected context packs and OpenAPI files. Remove the "proposed" or "this pack's reading" marker where the model now decides.
  4. Delete the row here.