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
One owner for price, delivery charge and tax keeps the shopper's total consistent.
Binding, immutable quotes give checkout a total it can confirm against.
Its limits are deliberate: one currency, synthetic tax and no promotions yet.
Fund the promotions phase and settle how checkout learns a quote expired.
Pricing is the Core subdomain of the storefront: it owns what a shopper pays — the list price and sale windows per catalogue item, the delivery charge per service tier, a synthetic tax table, and the binding, immutable, expiring PriceQuote a checkout session is confirmed against. One configured currency (BRL) and integer minor units keep the money exact…
It holds list prices, sale windows, delivery charges and a synthetic tax table in exact integer money, and issues binding quotes.
Promotions are deferred, no event signals quote expiry, the tax table isn't real, and queue health has no metrics.
Publishes item prices and sets list prices safely, even if the call repeats.
Schedules sales and publishes the new price when a window opens or closes.
Withdraws prices, automatically when a catalogue item is discontinued.
Owns the delivery charge for each service tier.
Keeps a stand-in tax table for totals; it is not a real tax engine.
Issues immutable, expiring quotes with lines, delivery, tax and total.
Fleet observability standard (ADR 0005): OpenTelemetry OTLP/gRPC export to the in-cluster Collector, never blocking; JSON logs on stdout carrying trace_id/span_id and request_id
Ranked against all 45 briefed repositories (dot = one repository, highest on the left).
Core storefront domain whose money math rests on hard assumptions: one configured currency (BRL) and integer minor units are baked in
No mitigation on the roadmap yet: this one needs an owner.
The tax table is synthetic, not a tax engine — it must not be treated as real fiscal compliance
No mitigation on the roadmap yet: this one needs an owner.
The effective price depends on the clock-driven policy pass (POLICY_INTERVAL…
The policy interval can be tightened if boundary lag shows up.
Every REST, A2A and MCP endpoint is unauthenticated by decision (fleet-wide auth revert, TestNoAuthMiddlewareReintroduced…
A decision, not a gap: fleet-wide.
Pricing owns every number a shopper pays and binds it in an expiring quote, so checkout never re-guesses
| Style | Hexagonal / ports & adapters, DDD bounded context; layering enforced as an executable fitness test (arch-go), not a convention |
| Layout | cmd/{api,a2a,mcp} (api is the composition root with REST + outbox relay + offer-availability consumer + clock-driven policies in one process)… |
| Storage | PostgreSQL only (pgxpool, embedded golang-migrate at boot, idempotency-key pool, transactional outbox, CatalogItemView local read model); Kafka… |
| Testing | go test -race unit suites; godog/Gherkin BDD (15 feature files) over the real HTTP API; testcontainers Postgres+Kafka integration… |
| REST | 13 operations over 12 paths on :8080: /item-prices, /item-prices/{catalogItemId}, /item-prices/{catalogItemId}/list-price… |