Skip to main content

Architecture Decision Records

An Architecture Decision Record captures one architecturally significant decision: what was decided, what was going on at the time that made the decision necessary, and what the team now has to live with as a result. These follow the same convention every warehouse-systems repository uses: Michael Nygard's lightweight format, one markdown file per decision, numbered 0001-, 0002-, and so on, immutable once accepted.

The records​

#TitleStatus
0001warehouse-ops-agent placement as a new, thin read-side repoAccepted
0002Micro-frontend console architecture over per-service REST, with a thin BFF for cross-service readsAccepted
0003Console-BFF report dashboards aggregating every context's analytics endpointAccepted
0004A real LLM reasoner behind the policy layer, with MCP tools as its only actuatorsAccepted (implemented for flow-balance)
0005Fleet REST identity: static bearer keys with read/read-write scopes, no IdPSuperseded by 0006
0006Fleet-wide auth removal: REST OIDC and MCP static bearer keys withdrawnAccepted (fleet-wide)
0007Second-wave outbound MCP clients: order-management, labor-performance, process-path-management wired but unconsumedAccepted
0008Labor-utilization advisory correlation: correlating queue depth with observed idlenessAccepted
0009explain_travel_factor: correlating a real travel-distance reading against a slow path, with no location-code auto-resolutionAccepted
0010Standard metrics convention across the fleetAccepted
0011Reasoner-path resilience: circuit breaker, deadline-derived timeout, bounded retryAccepted
0012HorizontalPodAutoscaler for the single Deployment, and switching the inbound MCP server to stateless modeAccepted
0013warehouse-planning MCP client (read tools only) and the fail-open capacity outlook in the daily briefAccepted
0014Adoption record: GET /runtime-signals and detect_stranded_reservation (E2)Accepted (adoption record)
0015Adoption record: E1 flow-balance correlation and E3 daily brief (core use cases)Accepted (adoption record)
0016REST error mapping for explain-travel-factor, GET-only CORS, and strict DAILY_BRIEF_PATH_TARGETS configAccepted
0017An empty DAILY_BRIEF_PATH_TARGETS list is a startup config errorAccepted
0018Classify upstream MCP tool rejections by the fleet's slug convention (validation slug → 400, else 502)Accepted
0019Read-only transfer watch over network-inventory-planning (stuck-transfer triage, transfer status, network imbalance)Accepted
0020product-master MCP client (read-only, schema-pinned) and the master-data gaps reportAccepted
0021inbound-receiving MCP client (read-only, schema-pinned) and the inbound outlookAccepted
0022godog/Gherkin acceptance tests as executable specificationAccepted
0023Build an upstream MCP client only when its endpoint is setAccepted
0024slotting-optimization client + slot-plan watch and order-management promise health in the daily brief (fail-open); process-path-management client removedAccepted
0025Twelve more outbound MCP clients: the retail-network fleet and two WMS contexts, wired per ADR 0023 and pinned to each upstream's published registry goldenAccepted
0026Network order/node outlooks composed over the ADR-0025 clients (per-section fail-open degradation); the thirteenth client process-path-management re-added, golden-pinned and chart-renderedAccepted
0027The act slice: human-confirmed (propose → approve, HMAC confirmation token) release of the next work unit, delegated to the wes-work-planning A2A agent; REST-only, never MCP, never the LLM; the zero-write guarantee narrowed to exactly this slice and re-pinned by testsAccepted
0027The fourteenth read-only MCP client (seller-inbound, four tools) golden-pinned and chart-rendered; wired, not yet consumedAccepted
0028Advisory exception context on release proposals: a second, read-only A2A client asks exception-management what is open before a human approves; never gates, alters or persists anything; EXCEPTION_MANAGEMENT_A2A_URL, opt-inAccepted
0029Labor reallocation act slice (act slice #2): a pure policy ranks at most three moves from workforce-management's own readings; propose → approve (HMAC token bound to one move) delegates ONE move to the workforce-management assign_labor A2A skill with proposalId, approvedBy, agentId; REST-only, never MCP, never the LLM; token-less labor_reallocation_outlook (authority L2); zero-write guarantee re-pinned for exactly two slicesAccepted

Proposing a new one​

  1. Copy the most recent record and renumber it. Numbers are never reused, even if a record is later withdrawn.
  2. Write the Context first, and write it neutrally.
  3. Write Consequences honestly, including the ones you dislike.
  4. Open it as Proposed. Flip it to Accepted when it is agreed, or leave it Proposed and supersede it later if the discussion goes elsewhere.
  5. Add it to the table above and to sidebars.ts.

See facility-layout's ADR index for the fuller template rationale this convention is copied from. (facility-layout's docusaurus.config.ts now publishes under iqvo.github.io, like this repo's.)