This project is a domain-driven design study. It is not associated with, endorsed by or affiliated with any company, and it uses no company's code, data, logos or trademarks. All names, figures and examples are illustrative or synthetic. · November 2026
Two scans per stow mean every item has one known bin or is openly flagged unlocated.
Reservations can be revoked, so a failed pick or delivery never strands an order.
Usable stock is on-hand minus holds and lost items, so promises match the shelf.
Check stow against facility-layout's slot catalogue, not just the local bin list, and add placement policy.
Owns the 'storing them under chaotic storage' clause of the platform vision and the stock truth everything downstream depends on. Under chaotic (random) stow there is no fixed product location, so the software must answer authoritatively where each SKU is (which bin, how many) and how much of it can actually be promised…
Goods are stowed wherever there is room; a two-scan rule records each bin, and orders hold revocable reservations on usable stock.
Postgres and Kafka are hard requirements, and 19 event types are consumed elsewhere, so payload changes ripple.
Stowing needs an item scan and a bin scan, and a full bin says no.
Orders hold stock against a named pick bin and can release it cleanly.
Each SKU shows what can really be promised: on hand minus holds and lost items.
Counts that come up short flag stock as unlocated instead of hiding the gap.
Moves stock between bins within a site and publishes where it went.
Tracks pallets and cases, breaks cases, and keeps owners' stock apart.
OpenTelemetry traces and metrics over OTLP/gRPC to a Collector (no /metrics endpoint; Collector owns Prometheus exposition), wired in all five binaries via telemetry.Setup…
Ranked against all 45 briefed repositories (dot = one repository, highest on the left).
Leader capabilities are vendor-published; gaps reflect repo docs reviewed in November 2026.
Every REST, MCP and A2A endpoint is unauthenticated by decision (ADR-0015, guarded by an arch-test)…
No mitigation on the roadmap yet: this one needs an owner.
Postgres and Kafka are the only runtime (ADR-0042): no in-memory mode, relay and all consumers always on…
/readyz checks both, and there is no in-memory mode to hide a broken setup.
Kafka facilitycache replay blocks startup until complete, coupling boot readiness to broker availability when…
The http lookup mode stays as the rollback path.
warehouse.inventory.events now carries 19 event types consumed by other contexts…
A breaking payload change ships as a new .v2 type with its own dataschema.
Inventory storage is the stock truth: every item has one known bin or is flagged lost, never in between
| Style | Hexagonal / ports and adapters with strict dependency rule (domain pure Go, no SQL types; application depends only on ports) enforced by arch-go and extra fitness tests… |
| Layout | cmd/{inventory,inventory-projector,inventory-reports,mcp,a2a}; internal/{domain (location,stock,reservation,product,container,packaging,relocation,transfer,allocation,shared)… |
| Storage | Postgres OLTP via pgxpool with golang-migrate (20 OLTP *.up.sql migrations + 1 analytics) + idempotency_keys + transactional outbox and relay… |
| Testing | Unit tests with a named failing-path test per invariant (bin-capacity rejection, stow requires item+location, reservation <= usable, revoke returns to usable)… |
| REST | 25 operations over 23 paths on :8080: /healthz, /readyz, /stock-receipts, /stowages, /reservations, /reservations/{id}… |