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
Published waves give delivery promises a real cutoff, window and stop capacity to rely on.
Routes and attempt history track every doorstep try, and a return starts on the third miss.
Packages with no wave are deferred and cancelled waves re-induct, so nothing falls through.
Declare authority levels on the MCP tools and A2A skills, and add wave-cost and utilisation tools for station operators.
Supporting subdomain in the logistics tier. It publishes the delivery waves (induct cutoff, delivery window, stop capacity) that delivery-promise relies on, plans routes for delivery service partners, and records every delivery attempt. It owns the DeliveryWave, Route and PackageAttemptHistory aggregates…
Stations schedule delivery waves, induct packages, plan partner routes and record attempts; a third failed attempt starts a return.
Wave capacity is shared with promise bookings and has no reservation step, so peaks can over-promise.
Each station sets waves with an induct cutoff, delivery window and stop capacity.
Packages join waves and ship out; a cancelled wave moves them to the next one.
Each wave declares its stop cost and emission, feeding cost-to-serve analytics.
Each delivery partner gets a planned route with one attempt recorded per package.
Every attempt is kept, and the third failed one starts a return.
When no wave fits a package, it is deferred openly instead of dropped.
OpenTelemetry OTLP/gRPC to in-cluster Collector -> Jaeger (traces) + Prometheus (metrics); JSON slog logs on stdout collected by Alloy into Loki (fleet standard, ADR 0008)
Ranked against all 45 briefed repositories (dot = one repository, highest on the left).
Wave stop capacity is contended with delivery-promise bookings; no reservation protocol is evidenced in docs/…
No mitigation on the roadmap yet: this one needs an owner.
Analytics projector re-consumes this service's own produced types; relay retries can lag or duplicate projections if CloudEvents id…
Stable CloudEvents ids, an inbox, idempotency keys and per-topic DLQs guard against duplicates.
Every REST, MCP and A2A endpoint is unauthenticated by decision (fleet-wide auth revert; CLAUDE.md:23,42)
No mitigation on the roadmap yet: this one needs an owner.
Last-mile delivery runs each station's waves, routes and attempts, so promises rest on real capacity
| Style | Hexagonal (ports & adapters), event-driven DDD, transactional outbox; separate analytics read side (projector + reports over a second PostgreSQL) |
| Layout | cmd/{api,mcp,a2a,lm-projector,lm-reports} composition roots; internal/domain {wave, route, history, partner, deliverypoint, shared}… |
| Storage | PostgreSQL (pgx v5): waves, routes, attempt histories, delivery points, inbox, transactional outbox, global idempotency keys, 8 schema migrations… |
| Testing | Unit + 90% coverage gate; integration on real PostgreSQL and Kafka via testcontainers; godog BDD (11 .feature files incl… |
| REST | 19 operations over 18 paths on :8080: /waves, /waves/{waveId}/stops, /waves/{waveId}/induction-closures, /waves/{waveId}/dispatches… |