Skip to main content

Architecture Decision Records

Domain ADRs​

All nine are Proposed (the status in each ADR body). All twelve context repositories exist and are built on develop: 0001 to 0008 are realized by the ten contexts other than seller-inbound and customer-returns, 0009 by seller-inbound and 0012 by customer-returns; the ADR 0001 of each of those two takes this model as its design source. Each repository carries its own ADR sequence on top of these domain-level decisions (below). An ADR becomes Accepted when the user accepts it.

ADRDecisionStatus
0001The retail network is its own domain of ten bounded contextsProposed
0002Promise and order assignment are separate contextsProposed
0003Capability is declared and measuredProposed
0004Parcel nodes are network-operatedProposed
0005The vendor node's acceptance is the path lockProposed
0006PII is confined to customer-ordering and shipping-and-trackingProposed
0007CloudEvents namespace com.retailnetwork, no shared topicProposed
0008Fast tiers are never promised from nominal times, and capacity is held at promise timeProposed
0009Seller inbound and case-packed shipments: SSCC cartons, owner-segregated stock, eaches as the ledger unitProposed
0010Carrier handoff delivery for low-density service areas (amends 0004)Accepted
0011Pickup points and lockers (extends 0004)Accepted
0012Customer returns is a bounded contextAccepted (2026-11-14)

Service ADRs (one sequence per context repository)​

Each of the twelve context repositories records its own decisions on top of the domain-level ones above: 218 ADRs on develop as of 2026-12-02. They are linked, never copied; the Status column is the word from each ADR's own status line. Since the fleet observability standard (accepted 2026-10-26), every repository added an A2A inbound adapter and adopted the fleet REST API guideline, and seven (node-topology, offer-availability, delivery-promise, customer-ordering, vendor-connectivity, seller-inbound, customer-returns) also record agent authority levels and the complete MCP surface (2026-11-02). The network evolution wave 0 (2026-11-08/09) added the owner-aware sourcing and promise ADRs (gap G47), seller status and received stock as integration facts (G48, G51), fulfillment centres receiving inbound (G64), batch delivery estimates (G60) and the analytics read sides of four contexts. Wave 1 (2026-11-09) added the fast-tier eligibility decision of node-performance and the four promise-quality ADRs of delivery-promise: calibrated quotes with a confidence, a sweep that flags promises whose load is running late, a fast-tier candidate filter on node eligibility, and a capacity band on offers. Wave 2 (2026-11-09/10) added the versioned sourcing policy of order-sourcing (cross-region surcharge and a regional budget, refining gap G26), cross-order consolidation (a consolidation key in customer-ordering, carrier and follower merge at release in order-sourcing, the purchase-order cancel of vendor-connectivity, the follower lock of linehaul-transportation, and one tracking number shared by several assignments or groups in delivery-promise and customer-ordering) and the opt-in CONSOLIDATED tier with a customer-chosen delivery day (delivery-promise, customer-ordering, order-sourcing). Wave 3 (2026-11-11/12) added the day-of stop ETA window of last-mile-delivery and its relay onto the journey (shipping-and-tracking) and the tracking view (customer-ordering), and the delivery-point profile with its flag, relay and shopper advisory across the same three contexts. linehaul-transportation ADR 0013 (a direct-lane advisory) is Proposed on a feature branch only and not on develop, so the sequence there jumps from 0012 to 0014. customer-returns ADR 0007 is not on develop either, so the sequence there jumps from 0006 to 0008.

node-topology​

ADRDecisionStatus
0001Node Topology is a bounded context of the retail networkAccepted
0002The Node, Lane, ServiceArea and Region aggregates, their invariants and the assumptions the model left openAccepted
0003No consumed contracts, Open Host Service reads, outbox publishing and versioned profile revisionsAccepted
0004CloudEvents envelope and type catalogueAccepted
0005The outbox relay, its attempt cap and the CloudEvents encodersAccepted
0006The HTTP adapter, Idempotency-Key, problem types and readinessAccepted
0007Inbound limits on the operational profileAccepted
0008A read-only MCP serverAccepted
0009A web console remoteAccepted
0010Adopt the fleet observability standard (logs, metrics, traces)Accepted
0011An A2A inbound adapterAccepted
0012Adopt the fleet REST API guidelineAccepted
0013Agent authority levels and the complete MCP surfaceAccepted
0014Lane cost declaration (cents, planner-declared)Accepted
0015Fulfillment centres receive inboundAccepted
0016Service-area delivery mode and declared carrier optionsAccepted
0017Pickup points and their serving delivery stationAccepted
0018Lane emission declaration (gCo2e, planner-declared)Accepted
0019Inbound monthly volume limit (dm3, node-declared)Accepted
0020Every problem type has a replay class; a retryable refusal is not stored under its Idempotency-KeyAccepted

offer-availability​

ADRDecisionStatus
0001Offer & Availability is a bounded context of the retail networkAccepted
0002The CatalogItem, Listing and InventoryFeed aggregates, the NodeStatusView, their invariants and the assumptions the model left openAccepted
0003Consumed contracts, the local node status read model and the relationships of offer-availabilityAccepted
0004CloudEvents envelope and type catalogueAccepted
0005Runtime: outbox relay cap, consumer dead letters, retention janitor and the FAILED feedAccepted
0006Catalogue GTIN and packaging hierarchy, and the optional owner of a listingAccepted
0007A read-only MCP serverAccepted
0008The console remote (offer_availability_mfe) — read-only screens over the existing RESTAccepted
0009Adopt the fleet observability standard (logs, metrics, traces)Accepted
0010An A2A inbound adapterAccepted
0011Adopt the fleet REST API guidelineAccepted
0012Agent authority levels and the complete MCP surfaceAccepted
0013Seller status and received stock drive owner listingsAccepted
0014Received stock creates owner listingsAccepted
0015Return completions restock owner listingsAccepted
0016Every problem type has an idempotency replay classAccepted

delivery-promise​

ADRDecisionStatus
0001Delivery Promise is a bounded context of the retail networkAccepted
0002Aggregates, invariants and the assumptions the model left openAccepted
0003Consumed contracts, local read models and relationshipsAccepted
0004CloudEvents envelope and type catalogueAccepted
0005The outbox relay, its attempt cap and the CloudEvents encoderAccepted
0006The HTTP adapter, the consumer, the sweeper and readinessAccepted
0007A read-only MCP serverAccepted
0008A warehouse-console web remoteAccepted
0009Adopt the fleet observability standard (logs, metrics, traces)Accepted
0010An A2A inbound adapterAccepted
0011The delivery window names its local time zoneAccepted
0012Adopt the fleet REST API guidelineAccepted
0013Agent authority levels and the complete MCP surfaceAccepted
0014Measured-transit promising (basis MEASURED)Accepted
0015Confirmed units stay decremented until the feed that accounts for them landsAccepted
0016The PromiseBook charge follows the node order-sourcing locksAccepted
0017Owner-aware availability and promise nettingAccepted
0018Analytics read sideAccepted
0019Batch delivery estimates for listing pagesAccepted
0020Promise calibration from the service's own judgementAccepted
0021A sweep flags promises whose locked path is running lateAccepted
0022Fast-tier candidates are filtered on node eligibilityAccepted
0023Offers carry a capacity bandAccepted
0024An opt-in CONSOLIDATED tier with a customer-chosen delivery dayAccepted
0025A tracking number may belong to several assignmentsAccepted
0026A carrier-handoff service area is promised without a delivery waveAccepted
0027A pickup point as the quoted destinationAccepted
0028Out-of-order capacity and scorecard facts never overwrite a newer oneAccepted
0029Node status and listing suppression follow "newer time wins", and a retired node is terminalAccepted
0030Promise coverage per region in the quote-conversion reportAccepted
0031Every problem type has a replay class; a retryable refusal is not stored under its Idempotency-KeyAccepted
0032Request-level promise coverage from a best-effort factAccepted

customer-ordering​

ADRDecisionStatus
0001Customer Ordering is a bounded context of the retail networkAccepted
0002The CustomerOrder and Shopper aggregates, their invariants and the assumptions the model left openAccepted
0003Consumed contracts, local read models and relationshipsAccepted
0004CloudEvents envelope and type catalogueAccepted
0005A read-only MCP serverAccepted
0006The console remote (customer_ordering_mfe) — a read-only screen over the existing RESTAccepted
0007Adopt the fleet observability standard (logs, metrics, traces)Accepted
0008An A2A inbound adapterAccepted
0009The delivery window carries its local time zoneAccepted
0010Adopt the fleet REST API guidelineAccepted
0011Agent authority levels and the complete MCP surfaceAccepted
0012The consolidation key and shared tracking numbersAccepted
0013The CONSOLIDATED tier and the stored chosen delivery dayAccepted
0014The day-of ETA window on the tracking viewAccepted
0015The delivery-point advisory on the tracking viewAccepted
0016Checkout to a pickup pointAccepted
0017The notification policy and ShopperNoticeDecidedAccepted
0018Analytics read sideAccepted
0019Every problem type has a replay class; a retryable refusal is not storedAccepted

order-sourcing​

ADRDecisionStatus
0001Order Sourcing is a bounded context of the retail networkAccepted
0002The FulfillmentAssignment aggregate, its invariants and the assumptions the model left openAccepted
0003Consumed contracts, local read models and relationshipsAccepted
0004CloudEvents envelope and type catalogueAccepted
0005Outbox relay, attempt cap, queue sweep and shutdown orderAccepted
0006A read-only MCP serverAccepted
0007A web console remoteAccepted
0008Adopt the fleet observability standard (logs, metrics, traces)Accepted
0009An A2A inbound adapter (read-only)Accepted
0010Adopt the fleet REST API guidelineAccepted
0011The money-denominated AssignmentCostAccepted
0012Owner-aware availability and sourcingAccepted
0013Analytics read side and the sourcing-decision factAccepted
0014A versioned sourcing policyAccepted
0015Carrier and follower consolidation at releaseAccepted
0016The CONSOLIDATED delivery day, search window and latest-pickup holdAccepted
0017The carbon estimate of a released path (planner-declared gCO2e, ranking unchanged)Accepted
0018The split-shipment rate on the sourcing-mix reportAccepted
0019Every problem type has a replay class; a retryable refusal is not stored under its Idempotency-KeyAccepted

vendor-connectivity​

ADRDecisionStatus
0001Vendor Connectivity is a bounded context of the retail networkAccepted
0002The VendorAccount, PurchaseOrder and Submission aggregates, their invariants and the assumptions the model left openAccepted
0003Consumed contracts, local read models, synchronous calls and relationshipsAccepted
0004CloudEvents envelope and type catalogueAccepted
0005Inbound shipments, inbound receipts and catalogue packagingAccepted
0006A read-only MCP serverAccepted
0007A warehouse-console remote (web MFE)Accepted
0008Adopt the fleet observability standard (logs, metrics, traces)Accepted
0009An A2A inbound adapter (a read-only third driving adapter)Accepted
0010Adopt the fleet REST API guidelineAccepted
0011Agent authority levels and the complete MCP surfaceAccepted
0012Purchase-order lines name the stock ownerAccepted
0013Cancel the purchase order when a release is withdrawnAccepted
0014Return advices and return outcomesAccepted
0015Every problem type has a replay class; a retryable refusal is not stored under the Idempotency-KeyAccepted
0016Retry the refusals a callee releases under its Idempotency-Key (the consumer half of the replay-class rule)Accepted

linehaul-transportation​

ADRDecisionStatus
0001Linehaul Transportation is a bounded context of the retail networkAccepted
0002The Departure, LaneSchedule and Load aggregates, their invariants and the assumptions the model left openAccepted
0003Consumed contracts, local read models and relationshipsAccepted
0004CloudEvents envelope and type catalogueAccepted
0005The outbox relay, its attempt cap and the CloudEvents encoderAccepted
0006The HTTP adapter, Idempotency-Key, problem types and readinessAccepted
0007The Kafka consumers, the inbox and the dead lettersAccepted
0008A read-only MCP serverAccepted
0009The console remote (linehaul_mfe) — a read-only screen over the existing RESTAccepted
0010Adopt the fleet observability standard (logs, metrics, traces)Accepted
0011An A2A inbound adapterAccepted
0012Adopt the fleet REST API guidelineAccepted
0014A follower lock books nothingAccepted
0015Every problem type has a replay class; a retryable refusal is not stored under its Idempotency-KeyAccepted

last-mile-delivery​

ADRDecisionStatus
0001Last-Mile Delivery is a bounded context of the retail networkAccepted
0002The DeliveryWave, Route, DeliveryServicePartner and PackageAttemptHistory aggregates, their invariants and the assumptions the model left openAccepted
0003Consumed contracts, local read models and relationshipsAccepted
0004CloudEvents envelope and type catalogueAccepted
0005Runtime, outbox, HTTP and readinessAccepted
0006A read-only MCP serverAccepted
0007A console web remoteAccepted
0008Adopt the fleet observability standard (logs, metrics, traces)Accepted
0009An A2A inbound adapter (a read-only agent)Accepted
0010Adopt the fleet REST API guidelineAccepted
0011Wave stop-cost declaration (cents, planner-declared)Accepted
0012Analytics read sideAccepted
0013The day-of stop ETA window (StopEtaWindowAssigned at StartRoute)Accepted
0014The delivery-point profile (outcome detail, DeliveryPointFlagged)Accepted
0015Carrier-area exclusion (the last mile refuses CARRIER_HANDOFF areas)Accepted
0016Wave stop-emission declaration (gCo2e, planner-declared)Accepted
0017Return-pickup inductions (Induction.Kind, COLLECTED, PackagePickupOut)Accepted
0018The delivery-point flag names every package of a failed visit (refines ADR 0014)Accepted
0019Idempotency replay classes — a retryable refusal is not storedAccepted

shipping-and-tracking​

ADRDecisionStatus
0001Shipping & Tracking is a bounded context of the retail networkAccepted
0002The ShippingLabel and PackageJourney aggregates, their invariants and the assumptions the model left openAccepted
0003Consumed contracts, local read models, relationships and the one synchronous callAccepted
0004CloudEvents envelope and type catalogueAccepted
0005Runtime: configuration, periodic jobs, retention of the technical tablesAccepted
0006A read-only MCP serverAccepted
0007The console remote (shipping_mfe) — a read-only screen over the existing RESTAccepted
0008Adopt the fleet observability standard (logs, metrics, traces)Accepted
0009An A2A inbound adapterAccepted
0010Adopt the fleet REST API guidelineAccepted
0011Label-time address deliverability checkAccepted
0012Analytics read sideAccepted
0013The day-of ETA window on the journeyAccepted
0014Relay the delivery-point flag by orderIdAccepted
0015Carrier handoff and the external carrier webhook (C4)Accepted
0016Pickup collection - deposit, collect and the uncollected holdAccepted
0017Reverse labels for customer returns (C8)Accepted
0018The label owner derives the return destination prefix from the destination nodeAccepted
0019The delivery station of an area is kept and published as the destination station of LabelIssuedAccepted
0020Every problem type has a replay class; the not-stored list becomes the classAccepted

node-performance​

ADRDecisionStatus
0001Node Performance is a bounded context of the retail networkAccepted
0002The NodeScorecard aggregate, its invariants and the assumptions the model left openAccepted
0003Consumed contracts, local facts, relationships and recomputeAccepted
0004CloudEvents envelope and type catalogueAccepted
0005The outbox relay, its attempt cap and the CloudEvents encoderAccepted
0006The HTTP adapter, the consumers' failure policy, readiness and shutdownAccepted
0007A read-only MCP serverAccepted
0008A web console remoteAccepted
0009Inbound timeliness and accuracy, two informational scorecard metricsAccepted
0010Adopt the fleet observability standard (logs, metrics, traces)Accepted
0011An A2A inbound adapterAccepted
0012Adopt the fleet REST API guidelineAccepted
0013Fast-tier eligibility from the 7-day windowAccepted

seller-inbound​

ADRDecisionStatus
0001Seller Inbound is a bounded context of the retail networkAccepted
0002SellerAccount, InboundPlan and InboundShipment: aggregates, invariants and the assumptions the model left openAccepted
0003Consumed contracts and local read modelsAccepted
0004CloudEvents envelope and type catalogueAccepted
0005Seller compliance scorecard (informational)Accepted
0006A read-only MCP serverAccepted
0007A web console remoteAccepted
0008Adopt the fleet observability standard (logs, metrics, traces)Accepted
0009An A2A inbound adapterAccepted
0010Adopt the fleet REST API guidelineAccepted
0011Agent authority levels and the complete MCP surfaceAccepted
0012The placement advisory (PlacementPlan)Accepted
0013Seller status is an integration factAccepted
0014Received stock is published per itemAccepted
0015Inbound capacity allocation and placement optionsAccepted
0016Start the order-sourcing consumerAccepted
0017Analytics read sideAccepted
0018Every problem type has a replay class; a retryable refusal is not storedAccepted

customer-returns​

ADRDecisionStatus
0001Customer Returns is a bounded context of the retail networkAccepted
0002ReturnAuthorization: aggregate, invariants and the assumptions the model left openAccepted
0003Consumed contracts and local read modelsAccepted
0004CloudEvents envelope and type catalogueAccepted
0005The reverse-label route: the one in-org callAccepted
0006A read-only MCP serverAccepted
0008Adopt the fleet observability standard (logs, metrics, traces)Accepted
0009A2A inbound adapterAccepted
0010Adopt the fleet REST API guidelineAccepted
0011Agent authority levels and complete MCP surfaceAccepted
0012Analytics read side and return-rate factsAccepted
0013Every problem type has a replay class; a retryable refusal is not storedAccepted