Skip to main content

Architecture decision records

The decisions of slotting-optimization, 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 section.

ADRTitleStatus
0001slotting-optimization as the owner of forward-pick slotting decisionsAccepted (2026-10-08)
0002the SlotPlan aggregate, its invariants and the abc-velocity-v1 policyAccepted (2026-10-08)
0003event-fed local copies and the consumed contractsAccepted (2026-10-08)
0004CloudEvents envelope and type catalogueAccepted (2026-10-08); per-key ordering amended by ADR 0008
0005MCP server adoption (read-only, unauthenticated, additive)Accepted (2026-10-08)
0006analytics read side: stream, projector and slot-plan funnel reportAccepted (2026-10-17)
0007executing an approved slot plan (options, undecided)Superseded by ADR 0010 (2026-10-14)
0008outbox relay attempt capAccepted (2026-10-12)
0009the W3C trace context crosses the outbox to KafkaAccepted (2026-10-12)
0010approved slot plans are executed as WES relocation workAccepted (2026-10-14); RELOCATION_MODE default amended by ADR 0011
0011Postgres and Kafka are the only runtimeAccepted (2026-10-19); supersedes the in-memory / permissive / log-sink statements of ADR 0003, 0005, 0009 and 0010
0012Case-pick faces: CASE_PICK_ZONE_CODES zones, pickUnit CASE/EACH, casesCapacity from the case cube and weight, local pack-level copyAccepted (2026-10-24); additive
0013A2A inbound adapter (read-only, unauthenticated, additive): forward_slot_map and slot_plan_review over the same read use cases, cmd/a2a on :8093Accepted (2026-10-29)

Where the code on develop has moved past an ADR's wording (for example ADR 0001's "consumer built in the service phase" status column, now built), the code is authoritative and the documentation pages describe the code. | 0014 | Adopt the fleet REST API guideline: noun routes (approvals, rejections), every POST keyed, 409 idempotency-key-reused, Idempotency-Replayed, keyset sku-velocity | Accepted (2026-11-01); amends the REST surface of ADR 0001 and ADR 0011 | | 0015 | Agent authority levels and complete MCP surface: every tool and both skills L1 (_meta com.warehouse/authority / tag authority:L1), stateless Streamable HTTP (2026-07-28 server/discover), one resource (warehouse://slotting-optimization/forward-slots/{siteId}) and one prompt (review_slot_plan) | Accepted (2026-11-02); additive, extends ADR 0005 and ADR 0013 | | 0016 | Every problem type has a replay class (FINAL / OUTCOME / RETRYABLE) declared on its catalogue entry; a RETRYABLE refusal is not stored and its key is released | Accepted (2026-11-20); amends the idempotency statements of ADR 0014 |