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
Explicit min/max policies turn 'running low' into a clear, automatic refill request.
It never moves stock itself; inventory-storage's relocation event closes each request.
The loop is well tested, but it has never been watched end to end with sibling services.
Verify the full refill chain end to end once siblings deploy, and add lag, outbox and dead-letter metrics.
pick-face-replenishment is the WMS-tier Supporting bounded context that keeps forward pick faces from running dry. It holds an explicit min/max policy per site and SKU, watches each forward bin's stock level through event-fed local copies of neighbours, and when the projected level reaches the minimum raises a replenishment request: move stock from the fullest reserve bin to the forward bin…
Min/max policies per site and SKU, plus event-fed bin levels, raise a refill request from the fullest reserve bin, capped at the max.
Telemetry is thin: one request histogram and one counter, no lag or outbox metrics, and the refill loop relies on siblings keeping their contracts.
Sets versioned min and max levels per site and SKU, safe from conflicting edits.
Shows every pick face as below min, OK, no source or no policy.
Raises refills automatically, on a site sweep, or by hand.
Closes a request when inventory-storage moves the stock, recording units moved.
Cancels requests when an operator, slot plan or policy change says so.
Announces requested, completed and cancelled refills through an outbox.
Fleet observability standard (ADR 0013): all five binaries push OTLP/gRPC traces and metrics (lazy, non-blocking) — http.server.request.duration on api/mcp/a2a/reports, runtime metrics, otelchi server spans…
Ranked against all 45 briefed repositories (dot = one repository, highest on the left).
The replenishment loop depends on siblings honouring the chain (StockRelocated with reason REPLENISHMENT and source_ref = request id)…
Golden JSON event tests help; verify the chain end to end once siblings deploy.
Instrumentation is one request histogram and one request-raised counter: consumer lag…
Instrument consumer lag, outbox depth and dead-letter rate; check the dashboard panels fill.
Stale local copies: a cutoff/assignment removed upstream leaves copies stale until the next event (documented…
No mitigation on the roadmap yet: this one needs an owner.
REST, MCP and A2A are unauthenticated BY DECISION (fleet-wide)
A decision, not a gap: fleet-wide.
Pick-Face Replenishment spots a pick face nearing empty and asks for a refill, so picking keeps moving
| Style | Hexagonal (ports and adapters) with a pure detection function and DDD aggregates; event-driven, integration by published contracts and local copies only |
| Layout | Five binaries: cmd/api (REST :8080 + four Kafka consumers — inventory, slotting, layout, product-master pack levels… |
| Storage | PostgreSQL only for the write side (pgx, unit of work, 3 embedded migrations (schema, forward_assignment_maps, pack_derived_policies)… |
| Testing | table-driven -race unit tests with in-memory doubles; godog BDD (9 feature files); testcontainers integration tests… |
| REST | 14 operations over 11 paths on :8080: GET /policies, PUT|GET|DELETE /policies/{siteId}/{sku}, GET /pick-faces, GET|POST /replenishments… |