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
| # | Title | Status |
|---|---|---|
| 0001 | warehouse-ops-agent placement as a new, thin read-side repo | Accepted |
| 0002 | Micro-frontend console architecture over per-service REST, with a thin BFF for cross-service reads | Accepted |
| 0003 | Console-BFF report dashboards aggregating every context's analytics endpoint | Accepted |
| 0004 | A real LLM reasoner behind the policy layer, with MCP tools as its only actuators | Accepted (implemented for flow-balance) |
| 0005 | Fleet REST identity: static bearer keys with read/read-write scopes, no IdP | Superseded by 0006 |
| 0006 | Fleet-wide auth removal: REST OIDC and MCP static bearer keys withdrawn | Accepted (fleet-wide) |
| 0007 | Second-wave outbound MCP clients: order-management, labor-performance, process-path-management wired but unconsumed | Accepted |
| 0008 | Labor-utilization advisory correlation: correlating queue depth with observed idleness | Accepted |
| 0009 | explain_travel_factor: correlating a real travel-distance reading against a slow path, with no location-code auto-resolution | Accepted |
| 0010 | Standard metrics convention across the fleet | Accepted |
| 0011 | Reasoner-path resilience: circuit breaker, deadline-derived timeout, bounded retry | Accepted |
| 0012 | HorizontalPodAutoscaler for the single Deployment, and switching the inbound MCP server to stateless mode | Accepted |
| 0013 | warehouse-planning MCP client (read tools only) and the fail-open capacity outlook in the daily brief | Accepted |
| 0014 | Adoption record: GET /runtime-signals and detect_stranded_reservation (E2) | Accepted (adoption record) |
| 0015 | Adoption record: E1 flow-balance correlation and E3 daily brief (core use cases) | Accepted (adoption record) |
| 0016 | REST error mapping for explain-travel-factor, GET-only CORS, and strict DAILY_BRIEF_PATH_TARGETS config | Accepted |
| 0017 | An empty DAILY_BRIEF_PATH_TARGETS list is a startup config error | Accepted |
| 0018 | Classify upstream MCP tool rejections by the fleet's slug convention (validation slug → 400, else 502) | Accepted |
| 0019 | Read-only transfer watch over network-inventory-planning (stuck-transfer triage, transfer status, network imbalance) | Accepted |
| 0020 | product-master MCP client (read-only, schema-pinned) and the master-data gaps report | Accepted |
| 0021 | inbound-receiving MCP client (read-only, schema-pinned) and the inbound outlook | Accepted |
| 0022 | godog/Gherkin acceptance tests as executable specification | Accepted |
| 0023 | Build an upstream MCP client only when its endpoint is set | Accepted |
| 0024 | slotting-optimization client + slot-plan watch and order-management promise health in the daily brief (fail-open); process-path-management client removed | Accepted |
| 0025 | Twelve more outbound MCP clients: the retail-network fleet and two WMS contexts, wired per ADR 0023 and pinned to each upstream's published registry golden | Accepted |
| 0026 | Network 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-rendered | Accepted |
| 0027 | The 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 tests | Accepted |
| 0027 | The fourteenth read-only MCP client (seller-inbound, four tools) golden-pinned and chart-rendered; wired, not yet consumed | Accepted |
| 0028 | Advisory 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-in | Accepted |
| 0029 | Labor 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 slices | Accepted |
Proposing a new one
- Copy the most recent record and renumber it. Numbers are never reused, even if a record is later withdrawn.
- Write the Context first, and write it neutrally.
- Write Consequences honestly, including the ones you dislike.
- Open it as
Proposed. Flip it toAcceptedwhen it is agreed, or leave itProposedand supersede it later if the discussion goes elsewhere. - 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.)