Skip to main content

Architecture decision records

The decisions of network-fulfillment, in the order they were taken. The ADR bodies are immutable; a changed decision gets a new ADR that supersedes the old one. The Status column is copied from each ADR's own status line.

ADRTitleStatus
0001Network Fulfillment as a bounded context — conformist to the network, anti-corruption layer for the fleetAccepted (2026-09-23). Companion to order-management ADR 0020 (network-originated
0002An MCP server and an analytics data product, on the same terms as the other eight bounded contexts> Status pointer: ADR 0025 made DATABASE_URL (mcp) and KAFKA_BROKERS (projector) mandatory and removed the in-memory store and the opt-in EVENT_PUBLISHER=kafka run described below.
0003Transactional outbox for the network-fulfillment Published LanguageAccepted — implemented in the same change that introduced this record.
0004Circuit breaker, Kafka DLQ, and graceful shutdown hardeningAccepted — implemented in the same change that introduced this record. §6 (separate per-phase retries) amended by ADR 0023: the claim and the projection write now commit in one transaction and are retried as one unit.
0005Hash balancer for per-aggregate Kafka partition affinityAccepted — implemented in the same change that introduced this record.
0006Per-workload HorizontalPodAutoscaler and pgxpool MaxConns/statement_timeout tuningAccepted — implemented in the same change that introduces this record.
0007Run golang-migrate against a direct Postgres connection, not PgBouncerAccepted — implemented in the same change that introduces this record.
0008CloudEvents 1.0 as the mandatory event envelopeAccepted (2026-09-30) — implemented in the same change that introduces this
0009The counterpart is retail-network, our own ecosystem service — not a real external network's vendor platform APIAccepted (2026-09-26). Companion to retail-network ADR 0001 (drafted at
0010web/ is a Module Federation remote, served by its own chart DeploymentAccepted — implemented in the same change that introduced this record
0011Retry the first outbound dial at boot to survive the Istio sidecar raceAccepted — implemented in the same change that introduced this record
0012NETWORK_SEED_FILE seeds demand into the stub gateway onlyAccepted — implemented in the same change that introduced this record
0013PRODUCT_TRANSLATION_FILE loads the ACL's product dictionaryAccepted — implemented in the same change that introduced this record
0014Shipment confirmation is an explicit endpoint, not a PackageManifested correlationAccepted (2026-10); addendum 2026-11-06: the ShipmentConfirmed consumer is the primary trigger, the endpoint stays one release as the operator fallback
0015Contract corrections from the 2026-10-05 docs auditAccepted (2026-10-06). Additive to ADR 0001
0016NetworkOrderSubmitted at SUBMITTED; NetworkOrderAcknowledged only when the order settles (v2)Accepted (2026-10-06). Resolves the "NetworkOrderAcknowledged timing" design
0017A path is eligible for a cutoff only if its CycleTimeP95 fits the time leftAccepted (2026-10-06). Resolves the "contract.EligiblePath.CycleTimeP95"
0018godog/Gherkin acceptance tests as executable specificationAccepted (2026-10-08). Mirrors inventory-storage's ADR 0007 (the fleet's
0019OTLP trace and metric export for the API processAccepted (2026-10-08)
0020Adopt ADR-0013 (fleet "Standard metrics convention"): otelchi HTTP RED metrics everywhereAccepted (2026-10-12)
0021Outbox relay attempt capAccepted (2026-10-13, ecosystem gap fix D12). Amends the per-key ordering
0022The W3C trace context crosses the outbox to Kafka> Status pointer: ADR 0025 removed the "direct mode" (no database) described in this record; the outbox is the only path.
0023The analytics consumer's dedupe claim and projection write commit in one transactionAccepted (2026-10-13). Amends ADR 0004
0024Sweep orphaned order-management holds past the acknowledgement windowAccepted (2026-10-17). Builds on ADR 0001
0025Postgres and Kafka are the only runtimeAccepted (2026-10-19). Supersedes the optional-runtime parts of
0026Live retail-network adapter: the demand loopAccepted (2026-10-24). Implements the part of ADR 0009
0027Supply loop: node profile and inventory feedAccepted (2026-10-24). Completes the live adapter that
0028The inbound loop: seller shipments in, receipts outAccepted (2026-10-24). Builds on ADR 0026
0029The fulfilling site rides on the held orderAccepted (2026-10-25). Builds on ADR 0026
0030A2A inbound adapter (a read-only third driving adapter)Accepted (2026-10-29). Mirrors the reference rollout in
0031Advertise against the next feasible cutoff, read in the site's timezoneAccepted (2026-10-30). Two root causes of the same live symptom, decided
0032Adopt the fleet REST API guidelineAccepted (2026-11-01). Keyed POST, paged lists, order-management releases
0033A full cutoff misses only its own truckAccepted (2026-11-05). Amends §1 of ADR 0031
0034Follow the Vendor API page envelope, and gate the pinned copy against developAccepted (2026-11-05). Amends the paging parts of ADR 0026 and ADR 0028
0035A site map turns the network's site into the warehouse site on the held orderAccepted (2026-11-14). Extends ADR 0029; supersedes its "no new environment variable and no chart value" line
0036A purchase order is read by its number: GET /purchase-orders/{poNumber}Accepted (2026-11-15). Extends ADR 0026: the NetworkRef stays minted; a keyed read, not a list or a filter
0037Retry, under the same Idempotency-Key, the refusals the callees release (replay class RETRYABLE)Accepted (2026-11-19). Refines ADR 0028 and ADR 0024; one slug table per outbound adapter, unknown is terminal, the ASN retry is bounded