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
Before it, an order was an unchecked string passed between services; now it has an owner.
It reserves stock, promises a window and picks the fastest path, never the caller.
The gaps sit at the edges: unconfirmed release, lingering holds and a softer mutation gate.
Switch release confirmation on in the cluster and fund a sweeper for orphaned network holds.
Owns Order and OrderLine as first-class validated aggregates, closing the gap where 'an order' was an unowned unvalidated string threaded through three sibling services. It answers 'what did the customer ask for, and how far along is it' while every other service answers 'what is happening in the warehouse right now'…
One POST takes an order, reserves stock per line, promises a delivery window and hands release to work planning over Kafka.
Release confirmation exists but is off by default, so release stays fire-and-forget; orphaned holds and mutation efficacy of 97 also linger.
A single POST takes the order, allocates stock and releases it as one saga.
Reserves stock per line and treats only a clear conflict as 'no stock'.
Holds the whole order until backorders clear, and promises a capability-based window.
Picks the shortest eligible path for each line; callers never choose it.
Cancels up to release, frees reservations, and holds network demand to deadline.
Opt-in loop confirms each released line and flags any that go unconfirmed.
OpenTelemetry push-only over OTLP/gRPC (no /metrics scrape route), telemetry.Setup in all five binaries; Go runtime metrics; slog structured JSON logs…
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 0012 removed the bearer layer)…
A decision, not a gap: relies on cluster-internal reachability.
Release is fire-and-forget unless RELEASE_CONFIRMATION_MODE=kafka (default off): the service otherwise never learns whether…
Turn on the confirmation loop; the mode defaults to off today.
Mutation gate efficacy 97 sits below the fleet 99/99 standard while promise-boundary survivors are documented
Mutant coverage is already 99; the survivors are documented in the promise code.
Orphaned network holds and released-work cancellation gaps mean inventory reservations can linger (ADR 0020, ADR 0004)
Add a sweeper for orphaned holds and rework claw-back of released work.
Order Management gives every order one validated owner, so stock, promises and release stay in step
| Style | Hexagonal (ports & adapters) with strict inward-only dependency rule; DDD bounded context, pure HTTP consumer of suppliers plus Kafka choreography… |
| Layout | cmd/order (OLTP), cmd/mcp (read-only MCP), cmd/a2a (read-only A2A), cmd/order-projector (analytics writer), cmd/order-reports (read-only reader)… |
| Storage | Postgres 16 via pgxpool with golang-migrate run on boot (14 OLTP *.up.sql migrations, direct non-PgBouncer DSN, ADR 0029)… |
| Testing | godog/Gherkin BDD (20 *.feature) driving the real REST API; httptest per endpoint; -race; 90% coverage gate on domain+application; MCP evals/governance tests; Schemathesis contract… |
| REST | 8 operations over 7 paths on :8080: /healthz, /readyz, /orders, /orders/{id}, /orders/{id}/releases, /orders/{id}/allocation-retries… |