Retail network · executive briefings · counted 29 Nov 2026

Retail network executive briefings

From network node to doorstep.

The second domain: a retail fulfilment network of nodes, offers, promises and parcels. Ten contexts decide where stock lives, what can be promised to a customer, which node serves an order and how the parcel travels — the warehouse fleet is their execution arm.

bounded contexts
11
briefing decks
11
event routes drawn
46+13 crossing
commits
1,519
median eng. score
92

Ecosystem briefing · business + architecture

The network promises from a real path, assigns the node as late as it can, and grades every node on what happened.

The askAgree to measure before adding features: extend analytics read sides to the seven contexts that have none.

  1. Every quoted date rests on a feasible path with capacity held: a node cutoff, a departure, a delivery wave.
  2. Which node fulfils an order is decided late, and the vendor's acceptance locks the path.
  3. Measured node grades feed the next promise, so the network learns from what actually happened.

Open the Retail network deck ↗

part 1 business, 9 slides · part 2 architecture, 16 slides · reveal.js, press → to walk the story

How the pieces talk

Every arrow is a real event route.

Counted from the context registry, not drawn by hand: solid arrows are Kafka routes inside the program; ▲ is the routes a context consumes and ▼ the routes it publishes. 13 more routes cross the program boundary.

TopologySupplyOfferPromiseOrderDelivernode-topology → offer-availabilitynode-topology → delivery-promisenode-topology → order-sourcingnode-topology → vendor-connectivitynode-topology → last-mile-deliverynode-topology → shipping-and-trackingnode-topology → node-performancenode-topology → seller-inboundoffer-availability → delivery-promiseoffer-availability → order-sourcingoffer-availability → vendor-connectivityoffer-availability → shipping-and-trackingoffer-availability → node-performanceoffer-availability → seller-inbounddelivery-promise → customer-orderingdelivery-promise → order-sourcingdelivery-promise → node-performancecustomer-ordering → delivery-promisecustomer-ordering → order-sourcingorder-sourcing → delivery-promiseorder-sourcing → customer-orderingorder-sourcing → vendor-connectivityorder-sourcing → seller-inboundvendor-connectivity → order-sourcingvendor-connectivity → shipping-and-trackingvendor-connectivity → node-performancevendor-connectivity → seller-inboundlast-mile-delivery → delivery-promiselast-mile-delivery → order-sourcinglast-mile-delivery → shipping-and-trackingshipping-and-tracking → delivery-promiseshipping-and-tracking → customer-orderingshipping-and-tracking → order-sourcingshipping-and-tracking → last-mile-deliveryshipping-and-tracking → node-performancenode-performance → delivery-promisenode-performance → order-sourcingseller-inbound → offer-availabilityseller-inbound → vendor-connectivityseller-inbound → node-performancenode-topology▲0 ▼10node-topology: consumes 0 route(s), publishes to 10node-performance▲6 ▼2node-performance: consumes 6 route(s), publishes to 2seller-inbound▲4 ▼3seller-inbound: consumes 4 route(s), publishes to 3vendor-connectivity▲5 ▼5vendor-connectivity: consumes 5 route(s), publishes to 5offer-availability▲3 ▼10offer-availability: consumes 3 route(s), publishes to 10delivery-promise▲8 ▼3delivery-promise: consumes 8 route(s), publishes to 3customer-ordering▲3 ▼3customer-ordering: consumes 3 route(s), publishes to 3order-sourcing▲9 ▼7order-sourcing: consumes 9 route(s), publishes to 7last-mile-delivery▲3 ▼3last-mile-delivery: consumes 3 route(s), publishes to 3shipping-and-tracking▲5 ▼7shipping-and-tracking: consumes 5 route(s), publishes to 7

The briefings

11 projects, briefed like a business.

Mission, capabilities, events, risks and next steps — quoted from each repository's committed executive deck; every number beside them is counted from git and the GitHub API.

node-topology · supporting

Node Topology is the network's map of record, so eight contexts plan from the same facts

Supporting subdomain of the retail network (logistics tier) and the factual foundation every other network context reads. It registers network nodes (fulfilment centres, cross-docks, returns centres, sortation centres, delivery stations, air hubs), versioned operational profiles with inbound limits, directed ground/air lanes with declared…

  • Node registry and lifecycle: register, activate, suspend, retire six node types with vendor or network operator; fulfilment centres receive inbound (ADR 0015)
  • Versioned operational profiles: immutable revisions per node, incl. inbound limits (carton weight/size, pallets, SSCC) and a node-declared monthly inbound volume limit in dm3 (ADR 0019)
  • Directed lane management: open/close GROUND/AIR connections between ACTIVE nodes and declare per-unit lane costs (cents) and emissions (gCo2e), both planner-declared (ADR 0014, 0018)

publishes

  • com.retailnetwork.logistics.node-topology.node.NodeRegistered
  • com.retailnetwork.logistics.node-topology.node.NodeOperationalProfileDeclared
  • com.retailnetwork.logistics.node-topology.node.NodeActivated
  • com.retailnetwork.logistics.node-topology.node.NodeSuspended
  • com.retailnetwork.logistics.node-topology.node.NodeRetired
  • com.retailnetwork.logistics.node-topology.lane.LaneOpened

Named risks. Every REST, MCP and A2A endpoint is unauthenticated by fleet decision - safe only inside the trusted network boundary

Next: Raise the gremlins thresholds from efficacy 95 / mutant-coverage 95 to the 99/99 fleet standard: every internal/domain package measured 100% (.gremlins.yaml:31-35)

customer-returns · supporting

Customer Returns decides each return's destination itself, so the storefront gets an answer in one request

customer-returns is the retail network's Supporting, commerce-tier bounded context for returns as the shopper sees them. After an order group has shipped or been delivered, the storefront asks it to authorize the return; it decides the disposition itself from event-fed read models - KEEP (returnless, under a 1500-cent threshold with every…

  • Authorize a return (POST /return-authorizations) for one SHIPPED or DELIVERED order group, refusing with group-not-shipped while the local OrderGroupView lags
  • Decide the disposition in the domain: KEEP (returnless, method not PICKUP, every price known, total within 1500 cents), else NEAREST_RETURNS_CENTER, else ORIGIN_NODE, else no-return-destinat…
  • Issue the reverse label through the shipping context's POST /return-labels route (the one in-org call, config-gated by SHIPPING_LABELS_URL; 422 label-unavailable when off or refused, never a…

publishes

  • com.retailnetwork.commerce.customer-returns.returnauthorization.ReturnAuthorized
  • com.retailnetwork.commerce.customer-returns.returnauthorization.ReturnLabelIssued
  • com.retailnetwork.commerce.customer-returns.returnauthorization.ReturnCompleted
  • com.retailnetwork.commerce.customer-returns.returnauthorization.ReturnCancelled

consumes

  • com.retailnetwork.commerce.customer-ordering.customerorder.CustomerOrderPlaced
  • com.retailnetwork.commerce.customer-ordering.order.ShopperNoticeDecided
  • com.retailnetwork.logistics.node-topology.node.NodeRegistered
  • com.retailnetwork.logistics.node-topology.node.NodeActivated

Named risks. Authorization depends on event-fed copies: a group that just shipped is refused group-not-shipped until customer-ordering's fact lands, and no-return-destination when node-topology has no ACTIVE retur…

Next: Configure and prove the reverse-label route against the shipping context in a cluster: the chart default config.shippingLabelsUrl is empty, so labels answer 422 label-una…

offer-availability · supporting

Offer Availability answers 'can we sell this item from this node?' so quoting starts from facts

Supporting subdomain of the retail network (commerce tier) answering sellability: which catalogue items exist with their GS1 packaging hierarchies, which per-node listings are live or suppressed, what vendor inventory feeds claim, and a local copy of every node's status folded from node-topology events. It does not own node lifecycle, ord…

  • Catalogue item lifecycle: create items (title, dimensions, weight, hazmat, fragile) and discontinue them, cascading suppression
  • GS1 identifiers and packaging hierarchy: EACH < INNER < CASE < PALLET with immutable unitsPerPack per GTIN (ADR 0006)
  • Listing management: one listing per (item, node, optional ownerRef), LIVE/SUPPRESSED with reasons NODE_NOT_SELLABLE, DISCONTINUED, OWNER_SUSPENDED

publishes

  • com.retailnetwork.commerce.offer-availability.catalogitem.CatalogItemCreated
  • com.retailnetwork.commerce.offer-availability.catalogitem.CatalogItemDiscontinued
  • com.retailnetwork.commerce.offer-availability.catalogitem.CatalogItemPackagingDeclared
  • com.retailnetwork.commerce.offer-availability.catalogitem.CatalogItemPackLevelRetired
  • com.retailnetwork.commerce.offer-availability.listing.ListingCreated
  • com.retailnetwork.commerce.offer-availability.listing.ListingAvailabilityChanged

consumes

  • com.retailnetwork.logistics.node-topology.node.NodeRegistered
  • com.retailnetwork.logistics.node-topology.node.NodeActivated
  • com.retailnetwork.logistics.node-topology.node.NodeSuspended
  • com.retailnetwork.logistics.node-topology.node.NodeRetired

Named risks. Vendor feed quality is the weakest input: a broken feed zeroes or misstates availability that downstream quoting trusts

Next: Add queue-health instruments: observability.md states there is no outbox-backlog, relay or consumer-lag metric (bounded-context-canvas.md:226 lists them as proposed, not…

delivery-promise · core

Delivery promise quotes only dates backed by real capacity, then judges every promise kept or broken

Core subdomain of the retail network (commerce tier). It quotes a delivery date per shipment group and tier only from a feasible witness path (node cutoff, scheduled departures with room, a delivery wave with stops left), holds that capacity as a promise until the order is placed or the hold expires, and then judges every promise kept or…

  • Tiered delivery quoting: SAME_DAY, NEXT_DAY, TWO_DAY, STANDARD plus the opt-in CONSOLIDATED tier with a customer-chosen day (ADR 0024); destination by postal prefix or pickup point (ADR 0027…
  • Witness-path feasibility: quotes built only from a node cutoff, scheduled departures with remaining capacity and a delivery wave with stops left
  • Promise lifecycle: PROVISIONAL hold, CONFIRMED at order placement, then AT_RISK, KEPT, BROKEN, RELEASED, CANCELLED, with revisions moving the hold in one transaction

publishes

  • com.retailnetwork.commerce.delivery-promise.promise.PromiseAtRisk
  • com.retailnetwork.commerce.delivery-promise.promise.PromiseRevised
  • com.retailnetwork.commerce.delivery-promise.promise.PromiseKept
  • com.retailnetwork.commerce.delivery-promise.promise.PromiseBroken
  • com.retailnetwork.commerce.delivery-promise.promise.PromiseUnkeepable
  • com.retailnetwork.commerce.delivery-promise.promisebook.PromiseBookExhausted

consumes

  • com.retailnetwork.commerce.delivery-promise.promise.PromiseRevised
  • com.retailnetwork.commerce.delivery-promise.promise.PromiseKept
  • com.retailnetwork.commerce.delivery-promise.promise.PromiseBroken
  • com.retailnetwork.commerce.delivery-promise.promise.PromiseUnkeepable

Named risks. 39 sibling event types across eight producer contexts (plus 6 own events re-read by the analytics projector): any upstream payload drift can silently stale a read model and misquote dates

Next: Publish promise-accuracy SLOs from the analytics read side (kept/broken ratio per tier and node) as Prometheus metrics: today they are REST reports under /reports/* and o…

customer-ordering · generic

Customer ordering is the shopper's front door, and it only places orders whose delivery dates are confirmed

Generic subdomain of the retail network (commerce tier) and the shopper's front door. At checkout it groups the cart into shipment groups, obtains a delivery promise for each group from delivery-promise synchronously (re-quote, make, confirm), and only then places the order with the shopper and ship-to address (or a pickup point, ADR 0016…

  • Shopper management: register shoppers, find by email, keep saved addresses
  • Checkout orchestration: group the cart, obtain a promise per shipment group synchronously, re-quote on drift, confirm before placing
  • Order placement and history: place orders with ship-to address or pickup point (ADR 0016), list orders by shopper, read a single order

publishes

  • com.retailnetwork.commerce.customer-ordering.customerorder.CustomerOrderPlaced
  • com.retailnetwork.commerce.customer-ordering.customerorder.CustomerOrderCancelled
  • com.retailnetwork.commerce.customer-ordering.order.ShopperNoticeDecided

consumes

  • com.retailnetwork.commerce.delivery-promise.promise.PromiseAtRisk
  • com.retailnetwork.commerce.delivery-promise.promise.PromiseRevised
  • com.retailnetwork.commerce.delivery-promise.promise.PromiseKept
  • com.retailnetwork.commerce.delivery-promise.promise.PromiseBroken

Named risks. Checkout availability depends on a synchronous delivery-promise call: its outage stops order placement end to end

Next: Add checkout-funnel SLO metrics: only ordering.orders.placed exists (outcome/reason); re-quote, confirm-failure and compensation rates are not instruments (observability.…

order-sourcing · core

Order Sourcing picks each shipment's node at the last responsible moment, so choices track real capacity

Core subdomain of the retail network's commerce tier. It owns the FulfillmentAssignment aggregate and the virtual queue behind it: every shipment group of a placed order is queued, continuously re-optimised against network capacity, and released to exactly one node at the last responsible moment. Everything it knows about the network (nod…

  • Queue one FulfillmentAssignment per shipment group in a virtual queue, re-optimising candidate node/path/cost against current capacity until the release point
  • Declare a group UNSOURCEABLE immediately when no node can serve it
  • Release the group to one node at a time and reassign on rejection or expiry, excluding the refusing node for that promise revision

publishes

  • com.retailnetwork.commerce.order-sourcing.assignment.AssignmentsConsolidated
  • com.retailnetwork.commerce.order-sourcing.assignment.AssignmentsDeconsolidated
  • com.retailnetwork.commerce.order-sourcing.assignment.FulfillmentCancelRefused
  • com.retailnetwork.commerce.order-sourcing.assignment.FulfillmentCancelled
  • com.retailnetwork.commerce.order-sourcing.assignment.FulfillmentConstraintRevised
  • com.retailnetwork.commerce.order-sourcing.assignment.FulfillmentDelivered

consumes

  • com.retailnetwork.commerce.customer-ordering.customerorder.CustomerOrderCancelled
  • com.retailnetwork.commerce.customer-ordering.customerorder.CustomerOrderPlaced
  • com.retailnetwork.commerce.delivery-promise.promise.PromiseRevised
  • com.retailnetwork.commerce.delivery-promise.promisebook.PromiseBookExhausted

Named risks. Consumes 36 event types from nine producers (plus 3 own types read back): any upstream contract change ripples into read models (ADR 0003 mitigations only partially remove coupling)

Next: Add a carbon-budget policy lever and a carbon-per-path analytics report: named follow-ups of ADR 0017 (ranking is unchanged today)

vendor-connectivity · supporting

Vendor connectivity gives vendors one published API, so the fleet reaches the retail network through one seam

Supporting subdomain in the partner tier. It publishes the Vendor API and its Published Language: vendors register nodes, declare operational profiles, send inventory feeds, poll purchase orders, acknowledge them in full inside the acknowledgement window, request labels and confirm shipment, and report what their dock received against sel…

  • Onboard vendors with a 1h-24h acknowledgement window; suspend and reinstate, refusing writes while suspended
  • Turn every FulfillmentReleasedToNode into a purchase order with an ackBy deadline the vendor must acknowledge in full (accept or reject)
  • Expire unacknowledged purchase orders and cancel orders whose order-sourcing assignment is cancelled or release withdrawn

publishes

  • com.retailnetwork.partner.vendor-connectivity.inboundreceipt.InboundReceiptSubmitted
  • com.retailnetwork.partner.vendor-connectivity.purchaseorder.PurchaseOrderAccepted
  • com.retailnetwork.partner.vendor-connectivity.purchaseorder.PurchaseOrderCancelled
  • com.retailnetwork.partner.vendor-connectivity.purchaseorder.PurchaseOrderExpired
  • com.retailnetwork.partner.vendor-connectivity.purchaseorder.PurchaseOrderIssued
  • com.retailnetwork.partner.vendor-connectivity.purchaseorder.PurchaseOrderRejected

consumes

  • com.retailnetwork.commerce.offer-availability.catalogitem.CatalogItemPackLevelRetired
  • com.retailnetwork.commerce.offer-availability.catalogitem.CatalogItemPackagingDeclared
  • com.retailnetwork.commerce.offer-availability.listing.ListingCreated
  • com.retailnetwork.commerce.order-sourcing.assignment.FulfillmentCancelled

Named risks. Write path makes four synchronous in-org calls (node-topology, offer-availability, shipping-and-tracking, node-performance): availability coupling the rest of the fleet avoids

Next: Build the accepted return-advice seam (ADR 0014: GET /vendor/return-advices, POST /vendor/return-outcomes, RETURN_OUTCOME submissions): not evidenced in apis/openapi.yaml…

last-mile-delivery · supporting

Last-mile delivery runs each station's waves, routes and attempts, so promises rest on real capacity

Supporting subdomain in the logistics tier. It publishes the delivery waves (induct cutoff, delivery window, stop capacity) that delivery-promise relies on, plans routes for delivery service partners, and records every delivery attempt. It owns the DeliveryWave, Route and PackageAttemptHistory aggregates; it does not own the promise, the…

  • Schedule a DeliveryWave per station and service date with induct cutoff, delivery window and stop capacity
  • Induct packages into waves, close induction, dispatch, complete, or cancel (cancelling re-inducts packages onto the next eligible wave)
  • Declare and revise wave stop cost (ADR 0011) and stop emission in gCo2e (ADR 0016) feeding cost-to-serve and emission analytics

publishes

  • com.retailnetwork.logistics.last-mile-delivery.deliverypointprofile.DeliveryPointFlagged
  • com.retailnetwork.logistics.last-mile-delivery.packageattempthistory.PackageInductionDeferred
  • com.retailnetwork.logistics.last-mile-delivery.packageattempthistory.PackageReturnInitiated
  • com.retailnetwork.logistics.last-mile-delivery.route.DeliveryAttempted
  • com.retailnetwork.logistics.last-mile-delivery.route.PackageOutForDelivery
  • com.retailnetwork.logistics.last-mile-delivery.route.RoutePlanned

consumes

  • com.retailnetwork.logistics.last-mile-delivery.packageattempthistory.PackageReturnInitiated
  • com.retailnetwork.logistics.last-mile-delivery.route.DeliveryAttempted
  • com.retailnetwork.logistics.last-mile-delivery.route.PackageOutForDelivery
  • com.retailnetwork.logistics.last-mile-delivery.route.RoutePlanned

Named risks. Wave stop capacity is contended with delivery-promise bookings; no reservation protocol is evidenced in docs/, so over-promise windows are possible at peak

Next: Declare agent authority levels on the 3 MCP tools and 2 A2A skills: the tool-registry golden carries no com.warehouse/authority _meta and no authority:L tag is evidenced

shipping-and-tracking · generic

Shipping and Tracking turns scattered handover, load and delivery facts into one timeline a customer can trust

Generic subdomain in the logistics tier. It is the only place outside customer-ordering that ever sees a ship-to address, and it owns each package's journey: one customer-visible timeline consolidated from vendor handover, load and delivery facts, ending in delivered, returned or lost. It owns the ShippingLabel and PackageJourney aggregat…

  • Issue shipping labels after a time-address deliverability check (ADR 0011), calling customer-ordering's GetShipTo at label time
  • Void labels and enforce ship-to retention rules (feature: ship_to_retention)
  • Consolidate vendor handover, linehaul load and last-mile facts into one PackageJourney timeline per tracking number

publishes

  • com.retailnetwork.logistics.shipping-and-tracking.journey.PackageCollected
  • com.retailnetwork.logistics.shipping-and-tracking.journey.PackageDelivered
  • com.retailnetwork.logistics.shipping-and-tracking.journey.PackageDeliveryPointFlagged
  • com.retailnetwork.logistics.shipping-and-tracking.journey.PackageEtaWindowAssigned
  • com.retailnetwork.logistics.shipping-and-tracking.journey.PackageExceptionRaised
  • com.retailnetwork.logistics.shipping-and-tracking.journey.PackageHandedOver

consumes

  • com.retailnetwork.commerce.offer-availability.catalogitem.CatalogItemCreated
  • com.retailnetwork.logistics.last-mile-delivery.deliverypointprofile.DeliveryPointFlagged
  • com.retailnetwork.logistics.last-mile-delivery.packageattempthistory.PackageReturnInitiated
  • com.retailnetwork.logistics.last-mile-delivery.route.DeliveryAttempted

Named risks. Custody of PII: it is the only service outside customer-ordering holding ship-to addresses, making it the fleet's prime data-protection target

Next: Build the accepted reverse-label route (ADR 0017, POST /return-labels): not evidenced in apis/openapi.yaml or internal/ (git grep return-labels: no match)

node-performance · supporting

Node Performance turns observed facts into A-D grades that decide who earns same-day and next-day delivery

Node Performance measures every node in the retail network against what it declared and what was asked of it — acknowledgement latency, rejections, on-time handover against requiredShipBy, promise-kept rate and inventory feed freshness — over rolling 7-day and 30-day windows, and grades the node. It owns only the NodeScorecard aggregates…

  • Ingest observed facts from six producer contexts (vendor-connectivity, shipping-and-tracking, delivery-promise, offer-availability, node-topology, seller-inbound) as idempotent CloudEvents c…
  • Maintain two NodeScorecards per node (7-day and 30-day rolling windows) with a scheduled recompute pass
  • Grade nodes A-D on onTimeHandoverRate, lateAckRate, rejectRate, expiryRate, promiseKeptRate and feedFreshnessP95Minutes; PROVISIONAL and ungraded below 50 observations

publishes

  • com.retailnetwork.partner.node-performance.scorecard.NodeScorecardUpdated
  • com.retailnetwork.partner.node-performance.scorecard.NodeTierEligibilityChanged
  • com.retailnetwork.partner.node-performance.scorecard.NodeThresholdBreached

consumes

  • com.retailnetwork.partner.vendor-connectivity.vendoraccount.VendorOnboarded
  • com.retailnetwork.partner.vendor-connectivity.purchaseorder.PurchaseOrderIssued
  • com.retailnetwork.partner.vendor-connectivity.purchaseorder.PurchaseOrderAccepted
  • com.retailnetwork.partner.vendor-connectivity.purchaseorder.PurchaseOrderRejected

Named risks. Every REST, MCP and A2A endpoint is unauthenticated by fleet decision; relies on the trusted network boundary

Next: Raise the gremlins thresholds from efficacy 95 / mutant-coverage 95 to the 99/99 fleet standard: both domain packages measured 100% (.gremlins.yaml:28-33)

seller-inbound · supporting

Seller Inbound is one front door for seller stock, and it records every discrepancy instead of hiding it

Seller Inbound is the front door through which a seller gets stock into the retail network: the seller is onboarded, plans an inbound shipment to a vendor node in eaches (loose or case-packed), packs it into cartons each identified by an SSCC and a printed label, and ships it. The context checks the plan against the destination node's dec…

  • Onboard sellers and manage suspension/reinstatement as explicit human commands (idempotent, no-op safe)
  • Declare and confirm inbound plans in eaches (INDIVIDUAL or CASE_PACKED) validated against the destination node's declared inbound limits (consumed from node-topology), with a monthly dm3 cap…
  • Validate plan lines against the catalogue item's packaging hierarchy (consumed from offer-availability)

publishes

  • com.retailnetwork.partner.seller-inbound.inboundshipment.InboundShipmentLabelled
  • com.retailnetwork.partner.seller-inbound.inboundshipment.InboundShipmentShipped
  • com.retailnetwork.partner.seller-inbound.inboundshipment.InboundShipmentReceived
  • com.retailnetwork.partner.seller-inbound.inboundshipment.InboundDiscrepancyRecorded
  • com.retailnetwork.partner.seller-inbound.placementplan.PlacementPlanSuggested
  • com.retailnetwork.partner.seller-inbound.seller.SellerOnboarded

consumes

  • com.retailnetwork.logistics.node-topology.node.NodeRegistered
  • com.retailnetwork.logistics.node-topology.node.NodeActivated
  • com.retailnetwork.logistics.node-topology.node.NodeSuspended
  • com.retailnetwork.logistics.node-topology.node.NodeRetired

Named risks. Consumed-contract drift: four producer topics feed four consumers; order-sourcing merged-release fields (members, assignmentId, ownerRef) are decoded tolerantly and ignored (ADR 0016)

Next: Decide the v1 fate of PlacementPlanSuggested (ADR 0012): it is published to the events topic but no consumer of it is evidenced in this repository