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.
| ADR | Title | Status |
|---|---|---|
| 0001 | Network Fulfillment as a bounded context — conformist to the network, anti-corruption layer for the fleet | Accepted (2026-09-23). Companion to order-management ADR 0020 (network-originated |
| 0002 | An 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. |
| 0003 | Transactional outbox for the network-fulfillment Published Language | Accepted — implemented in the same change that introduced this record. |
| 0004 | Circuit breaker, Kafka DLQ, and graceful shutdown hardening | Accepted — 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. |
| 0005 | Hash balancer for per-aggregate Kafka partition affinity | Accepted — implemented in the same change that introduced this record. |
| 0006 | Per-workload HorizontalPodAutoscaler and pgxpool MaxConns/statement_timeout tuning | Accepted — implemented in the same change that introduces this record. |
| 0007 | Run golang-migrate against a direct Postgres connection, not PgBouncer | Accepted — implemented in the same change that introduces this record. |
| 0008 | CloudEvents 1.0 as the mandatory event envelope | Accepted (2026-09-30) — implemented in the same change that introduces this |
| 0009 | The counterpart is retail-network, our own ecosystem service — not a real external network's vendor platform API | Accepted (2026-09-26). Companion to retail-network ADR 0001 (drafted at |
| 0010 | web/ is a Module Federation remote, served by its own chart Deployment | Accepted — implemented in the same change that introduced this record |
| 0011 | Retry the first outbound dial at boot to survive the Istio sidecar race | Accepted — implemented in the same change that introduced this record |
| 0012 | NETWORK_SEED_FILE seeds demand into the stub gateway only | Accepted — implemented in the same change that introduced this record |
| 0013 | PRODUCT_TRANSLATION_FILE loads the ACL's product dictionary | Accepted — implemented in the same change that introduced this record |
| 0014 | Shipment confirmation is an explicit endpoint, not a PackageManifested correlation | Accepted (2026-10); addendum 2026-11-06: the ShipmentConfirmed consumer is the primary trigger, the endpoint stays one release as the operator fallback |
| 0015 | Contract corrections from the 2026-10-05 docs audit | Accepted (2026-10-06). Additive to ADR 0001 |
| 0016 | NetworkOrderSubmitted at SUBMITTED; NetworkOrderAcknowledged only when the order settles (v2) | Accepted (2026-10-06). Resolves the "NetworkOrderAcknowledged timing" design |
| 0017 | A path is eligible for a cutoff only if its CycleTimeP95 fits the time left | Accepted (2026-10-06). Resolves the "contract.EligiblePath.CycleTimeP95" |
| 0018 | godog/Gherkin acceptance tests as executable specification | Accepted (2026-10-08). Mirrors inventory-storage's ADR 0007 (the fleet's |
| 0019 | OTLP trace and metric export for the API process | Accepted (2026-10-08) |
| 0020 | Adopt ADR-0013 (fleet "Standard metrics convention"): otelchi HTTP RED metrics everywhere | Accepted (2026-10-12) |
| 0021 | Outbox relay attempt cap | Accepted (2026-10-13, ecosystem gap fix D12). Amends the per-key ordering |
| 0022 | The 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. |
| 0023 | The analytics consumer's dedupe claim and projection write commit in one transaction | Accepted (2026-10-13). Amends ADR 0004 |
| 0024 | Sweep orphaned order-management holds past the acknowledgement window | Accepted (2026-10-17). Builds on ADR 0001 |
| 0025 | Postgres and Kafka are the only runtime | Accepted (2026-10-19). Supersedes the optional-runtime parts of |
| 0026 | Live retail-network adapter: the demand loop | Accepted (2026-10-24). Implements the part of ADR 0009 |
| 0027 | Supply loop: node profile and inventory feed | Accepted (2026-10-24). Completes the live adapter that |
| 0028 | The inbound loop: seller shipments in, receipts out | Accepted (2026-10-24). Builds on ADR 0026 |
| 0029 | The fulfilling site rides on the held order | Accepted (2026-10-25). Builds on ADR 0026 |
| 0030 | A2A inbound adapter (a read-only third driving adapter) | Accepted (2026-10-29). Mirrors the reference rollout in |
| 0031 | Advertise against the next feasible cutoff, read in the site's timezone | Accepted (2026-10-30). Two root causes of the same live symptom, decided |
| 0032 | Adopt the fleet REST API guideline | Accepted (2026-11-01). Keyed POST, paged lists, order-management releases |
| 0033 | A full cutoff misses only its own truck | Accepted (2026-11-05). Amends §1 of ADR 0031 |
| 0034 | Follow the Vendor API page envelope, and gate the pinned copy against develop | Accepted (2026-11-05). Amends the paging parts of ADR 0026 and ADR 0028 |
| 0035 | A site map turns the network's site into the warehouse site on the held order | Accepted (2026-11-14). Extends ADR 0029; supersedes its "no new environment variable and no chart value" line |
| 0036 | A 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 |
| 0037 | Retry, 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 |