warehouse-systems fleet · executive briefing

product-content

Gives every product page its description, photos, attributes and category
seven capabilitys3 events out · 2 in8 recorded decisions

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

the short version · read this if nothing else

Product Content turns a bare catalogue item into a full product page and tells search the moment it changes

1

Editors draft and revise freely; only a published revision reaches the storefront.

2

Each publication carries a higher revision, so downstream never applies stale content.

3

Discontinued items retire their content automatically, keeping dead pages off the shelf.

The ask

Run a deliberate schema change now, and switch the MCP server on in a deployment so agents can read content.

why it exists

The item master holds the title; this context holds everything else

Product Content enriches the network's catalogue item with everything a product page needs: descriptions, bullets, attributes, media and the category tree — the title stays the item master's, and media upload is out of scope (URLs to static assets only)…

Today

It drafts, revises and publishes content per item with a rising revision, and publishes the category tree as one versioned whole.

The catch

One migration holds the whole schema, the full tree ships in a single message, and the MCP server is built but switched off.

what it does

Draft, publish, retire: content moves on a clear, versioned path

Draft product content

Write descriptions, bullets, attributes and media links, then revise or discard.

Versioned publishing

Publish or retire per item; consumers only apply a newer revision.

Category tree authoring

Create, move and rename categories, then publish the whole tree at once.

Local catalogue view

Keeps its own copy of which items exist, fed by offer-availability.

Retire on discontinue

When an item is discontinued, its content is retired automatically.

Reliable event publishing

An outbox makes sure every published change reaches product-discovery.

who it talks to

One context feeds it, one context builds on what it publishes

LISTENS TO · 2 EVENT TYPESIS HEARD BY · 1 CONTEXTSoffer-availability2product-discovery3productcontentbadge = event types on that edge · derived from the CloudEvents types each repo declares
the shared language

Drafts, revisions and a versioned tree are the words that matter

THE LANGUAGEOF THE DOMAINProductContentDraftRevisionPublicationRetirementCategoryCategoryTreeTreeVersion
REST12 operations over 10 paths on :8080
MCPRead-only MCP server (cmd/mcp, :8090…
A2ARead-only A2A agent (cmd/a2a, :8093): skills…
how it is built

Hexagonal layers are enforced by a test, not by good intentions

DRIVERS · INBOUNDOUTBOUND · ADAPTERSREST API :808012 operations over 10 pathsMCP tools :8090Read-only MCP server…Kafka consumer · 2 eventsCatalogItemCreatedCatalogItemDiscontinuedDOMAIN COREProductContentDraftRevisionPublicationPostgreSQLPostgreSQL onlyKafka producer · 3 eventsProductContentPublishedProductContentRetiredTransactional outboxrelay · DLQ on x-dlq-*commands inevents inevents outstorage / infra
event traffic · CloudEvents 1.0 on Kafka

Three facts tell search what a product page now says

CONSUMED · BY SOURCE · 2PUBLISHED · BY ENTITY · 3offer-availability 22 productcontent1 categorytreeCatalogItemCreatedCatalogItemDiscontinuedProductContentPublishedProductContentRetiredCategoryTreePublished
how we know it is healthy

Fleet-standard traces and a published-content counter show activity

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

What we watch

  • Trace continues across Kafka in the traceparent header of each published event and is picked up by the consumer
  • Business counter content.products.published (Prometheus content_products_published_total) with outcome/reason attributes…
  • HTTP request duration histogram plus one server span and request-log line per call sharing a trace id

What stops a bad change

  • make check (pre-push) / check-fast / check-all: fmt, vet, build, lint, test, coverage, arch-test, BDD
  • Coverage gate >= 90% over domain + application (CI test job)
  • golangci-lint and complexity gates
  • Spectral lint of apis/openapi.yaml (api-lint) and AsyncAPI lint (guide-lint)
by the numbers

Eight recorded decisions on a deliberately small schema

8
Architecture decisions
#38 of 45 in the fleet
1
DB migrations
#32 of 45 in the fleet
8
BDD feature files
#38 of 45 in the fleet
3
Events published
#26 of 45 in the fleet

Ranked against all 45 briefed repositories (dot = one repository, highest on the left).

One-command workflows (make)

arch-testbddbuildcheckcheck-allcheck-fastcoveragefmtfmt-checkguide-lintharness-testhelpintegrationlint
what comes next

Next, we prove the upgrade path and switch on the agent surface

NOW1Test the schema upgrade path onpurposeExercise the migration path deliberately:a single migration step (0001) holds theentire schema, so the first real schemachange will run an untested upgrade pathNEXT2Switch the MCP server on in adeploymentSwitch the MCP server on in a deployment:chart mcp.enabled (and mcp.route.enabled)default false and the warehouse-infrastep is not evidenced as done inintegration.md:103LATER3Raise mutation gate from 95/95to the 99/99 standardRaise the mutation gate from efficacy 95/ mutant-coverage 95 to the 99/99 fleetstandard (.gremlins.yaml:32-33; measured100% on 2026-10-25 per its comment)
what could go wrong · and what we do about it

Our biggest risk is a category tree that outgrows one message

The whole category tree travels in one message

CategoryTreePublished carries the WHOLE tree in one Kafka message — tree growth inflates event size and consumer replacement cost

→

No mitigation on the roadmap yet: this one needs an owner.

Two upstream events are its only item knowledge

The consumed contract is only two events from offer-availability: the local CatalogItemView is the sole item knowledge…

→

No mitigation on the roadmap yet: this one needs an owner.

Media links can break outside our control

Media is URL references to static assets only — broken-asset and link-rot risk sits outside the context's control

→

No mitigation on the roadmap yet: this one needs an owner.

Unauthenticated endpoints, by fleet decision

Every REST, A2A and MCP endpoint is unauthenticated by decision (fleet-wide auth revert 2026-09-11, TestNoAuthMiddlewareReintroduced)

→

A decision, not a gap: fleet-wide.

the decision we need

Run a deliberate schema change now, and switch the MCP server on in a deployment so agents can read content.

WHAT ISIt drafts, revises and publishescontent per item with a risingrevision, and publishes the categorytree as one versioned whole.THE CATCHOne migration holds the wholeschema, the full tree ships in asingle message, and the MCP serveris built but switched off.WHAT COULD BESchema changes become routine,agents read content over MCP in thecluster, and mutation checks meetthe 99/99 bar.
Why it matters

Product Content turns a bare catalogue item into a full product page and tells search the moment it changes

appendix · for the engineers in the room

The fine print: how it is put together

StyleHexagonal / ports & adapters, DDD bounded context; layering enforced as an executable fitness test (arch-go), not a convention
Layoutcmd/{api,a2a,mcp} (api is the composition root with REST + outbox relay + offer-availability consumer + RetireOnDiscontinue policy in one process)…
StoragePostgreSQL only (pgxpool, embedded golang-migrate at boot, outbox rows written in the same transaction as the aggregate…
Testinggo test -race unit suites; godog/Gherkin BDD (8 feature files) over the real HTTP API; testcontainers Postgres+Kafka integration…
REST12 operations over 10 paths on :8080: /product-contents, /product-contents/{catalogItemId}, /product-contents/{catalogItemId}/revisions…
Go 1.27chipgx/pgxpoolKafkaMCP Go SDKa2a-goCloudEvents 1.0golang-migrateOpenTelemetryHelmgodoggremlins