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
Every quoted date rests on a real path: a cutoff, a departure with room and a delivery wave.
Capacity is held as a promise from quote to order, and released if the hold expires.
Every promise ends judged kept or broken with a cause, and MCP and A2A surfaces let agents read it.
Publish promise-accuracy SLOs, kept versus broken per tier and node, as Prometheus metrics.
Core subdomain of the retail network (commerce tier). It quotes a delivery date per shipment group and tier only from a feasible witness path (node cutoff, scheduled departures with room, a delivery wave with stops left), holds that capacity as a promise until the order is placed or the hold expires, and then judges every promise kept or broken with cause LATE, LOST or RETURNED…
It quotes per tier from a feasible path, holds capacity until the order is placed, then judges each promise.
Its read models rest on 39 sibling event types from eight contexts; upstream drift can silently stale data and misquote dates.
Quotes same-day to standard tiers, plus a consolidated tier on a chosen day.
Builds quotes only from cutoffs, departures with room and open delivery waves.
Holds a promise, confirms it at order, and tracks it through to the end.
Books capacity per node and departure cutoff, with a capacity band on offers.
Sets tier deadlines, hold times and capacity shares as versioned policy.
Marks each promise kept, or broken as late, lost or returned.
OpenTelemetry SDK -> OTLP/gRPC Collector (Jaeger traces, Prometheus metrics); JSON logs on stdout shipped by Alloy to Loki
Ranked against all 45 briefed repositories (dot = one repository, highest on the left).
39 sibling event types across eight producer contexts (plus 6 own events re-read by the analytics projector): any upstream payload…
Spectral lint of the AsyncAPI contract and integration tests against real Kafka guard the inputs.
Capacity contention on hot PromiseBooks (one node cutoff) can serialise holds…
Run a fleet-level game day on PromiseBookExhausted with order-sourcing and customer-ordering.
The analytics projector re-reading its own topics doubles Kafka traffic for the context and couples analytics freshness to relay health
Outbox backlog and relay passes are watched through runbook SQL and logs.
Every REST, MCP and A2A endpoint is unauthenticated by decision (fleet-wide auth revert…
No mitigation on the roadmap yet: this one needs an owner.
Delivery promise quotes only dates backed by real capacity, then judges every promise kept or broken
| Style | Hexagonal / ports-and-adapters, event-carried state: every input is a local read model rebuilt from consumed events; layering enforced by fitness tests |
| Layout | cmd/api (REST + Kafka consumers + sweeper + outbox relay), cmd/mcp, cmd/a2a, cmd/dp-projector (analytics writer), cmd/dp-reports (read-only reports)… |
| Storage | PostgreSQL via pgx with embedded migrations (10 operational + 1 analytical) and pgtx UnitOfWork… |
| Testing | Unit + integration with testcontainers Postgres/Kafka, godog BDD (9 feature files: calibration, capacity_rules, consolidated, keeping, lifecycle_rules, promises, quote_rules, quoting… |
| REST | 15 operations over 14 paths on :8080: /delivery-quotes, /delivery-estimates, /delivery-offers/{offerId}, /promises… |