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
It owns sellability, so items, listings and feeds have one place to be right.
It suppresses listings itself when a node, item or seller goes off, with no calls out.
Its weak spots are feed quality and queue health, which no metric shows today.
Add queue-health metrics and a seller report for received stock whose GTIN we can't resolve.
Supporting subdomain of the retail network (commerce tier) answering sellability: which catalogue items exist with their GS1 packaging hierarchies, which per-node listings are live or suppressed, what vendor inventory feeds claim, and a local copy of every node's status folded from node-topology events. It does not own node lifecycle, orders or pricing…
It holds catalogue items, per-node listings and vendor inventory feeds, and keeps a local copy of node status from node-topology.
Vendor feeds are its weakest input, and nothing yet measures outbox backlog, relay or consumer lag.
Creates items with size, weight and hazmat flags, and discontinues them cleanly.
Knows how eaches roll up into inners, cases and pallets for every GTIN.
Keeps one listing per item and node, live or suppressed with a clear reason.
Applies vendor ship quantities per node, replaces stale feeds and records failed ones.
Turns seller stock received into owner listings, and restocks them on completed returns.
Suppresses listings when a node is suspended or retired, and restores them.
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).
Vendor feed quality is the weakest input: a broken feed zeroes or misstates availability that downstream quoting trusts
Failed feeds are recorded and superseded; queue-health metrics are not yet built.
Local NodeStatusView can lag node-topology reality; quoting on a stale copy oversells from suspended nodes
No mitigation on the roadmap yet: this one needs an owner.
Suppression-reason precedence (NODE_NOT_SELLABLE, DISCONTINUED, OWNER_SUSPENDED) grows in complexity with every owner rule added
BDD scenarios and mutation testing guard the domain rules as precedence grows.
Every REST, MCP and A2A endpoint is unauthenticated by decision (fleet-wide auth revert; CLAUDE.md:23,45)
A decision, not a gap: relies on the trusted network boundary.
Offer Availability answers 'can we sell this item from this node?' so quoting starts from facts
| Style | Hexagonal / ports-and-adapters with DDD aggregates (CatalogItem, Listing, InventoryFeed) plus a NodeStatusView read model; layering enforced by fitness tests |
| Layout | cmd/api (REST + node-topology, seller-inbound and customer-returns consumers + relay + janitor), cmd/mcp, cmd/a2a… |
| Storage | PostgreSQL via pgx with 4 embedded migrations and pgtx UnitOfWork; transactional outbox with capped relay… |
| Testing | Unit + integration with testcontainers Postgres/Kafka, godog BDD (14 feature files) over features/*.feature, MCP tool-registry golden file, architecture fitness tests (layering… |
| REST | 10 operations over 9 paths on :8080: /catalog-items, /catalog-items/{catalogItemId}/discontinuations… |