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
Payment is authorized before the order is placed, and voided if the purchase falls through.
An unknown place-order outcome is locked, never retried blindly, until a resolver settles it.
Status is readable over REST, MCP and A2A, and seven outcome events say how each purchase ended.
Load-test the in-doubt lock and resolver under broker and provider latency before the first release.
Checkout owns the purchase saga from review to placed order: one transaction across price, payment and the network's promise confirmation. It authorizes payment before placing the order (compensatable: void), places the order as the pivot step, and drives retriable steps through clock-run policies…
Checkout authorizes payment, places the order as the point of no return, then settles outcomes through clock-driven policies.
It reads every sibling synchronously and consumes no events, so an outage in ordering, payments, cart or pricing stalls buying.
Starts checkout from a ready cart with a binding price quote.
Authorizes payment, places the order, then settles the outcome.
Voids the authorization when payment is declined or the price must change.
Locks an uncertain placement and settles it under a 15-second policy.
Retries owed voids, frees stuck authorizations and expires stale sessions.
Sends seven outcome events through a reliable outbox.
OpenTelemetry SDK -> OTLP/gRPC -> in-cluster Collector -> Jaeger (traces) and Prometheus (metrics); stdout JSON logs shipped by Alloy to Loki (fleet observability standard ADR)
Ranked against all 45 briefed repositories (dot = one repository, highest on the left).
In-doubt placements hold money: until the resolver settles an unknown place-order outcome…
Load-test the lock and the in-doubt resolver under broker and provider latency before first release.
Zero consumed events - all sibling facts are read synchronously, so availability is coupled to customer-ordering, customer-payments…
No mitigation on the roadmap yet: this one needs an owner.
Replay depends on byte-stable PII-free placement requests; a payload schema drift breaks byte-for-byte replay
No mitigation on the roadmap yet: this one needs an owner.
Every REST, MCP and A2A endpoint is unauthenticated by decision (fleet-wide auth revert 2026-09-11, TestNoAuthMiddlewareReintroduced)
No mitigation on the roadmap yet: this one needs an owner.
Checkout runs each purchase as one saga, so no order lands without its payment held and its price confirmed
| Style | Hexagonal (ports and adapters) orchestrating a saga with a semantic lock; synchronous Anti-Corruption Layer to siblings, transactional outbox, zero consumed topics |
| Layout | cmd/{api (REST :8080, outbox relay, 5 saga policies), mcp (read-only MCP :8090), a2a (agent :8093)}; internal/{domain (checkoutsession aggregate, shared), application (usecases, ports… |
| Storage | PostgreSQL (checkout_session aggregate, transactional outbox, global Idempotency-Key store… |
| Testing | Unit tests over domain/use cases/httptest adapters, 90% coverage gate, godog BDD (10 feature files), repository-contract suite… |
| REST | 3 operations over 3 paths on :8080: /checkout-sessions, /checkout-sessions/{sessionId}, /checkout-sessions/{sessionId}/confirmations |