warehouse-systems fleet · executive briefing

e2e-tests

Proves the warehouse contexts really work together, the way a customer would see it
eight capabilitys2 events out · 5 in1 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

The e2e harness is the fleet's only end-to-end proof, so more of it must run before a change merges

1

It drives real binaries over HTTP and Kafka, never importing another repo's code.

2

Its scenarios cover golden paths, choreographed flows, agent correlation and a long soak.

3

A recorded gap shows a contract change can slip past PRs and surface only in the weekly run.

The ask

Add a contract check that runs whenever an API contract changes, so breaks fail at PR time.

why it exists

A green build means little until the contexts work together

Prove the bounded contexts actually integrate — as a customer would experience them — by never importing another repo's Go packages and driving everything over the wire, exactly like a human running curl against a live deployment…

Today

It builds 28 real binaries, runs them on their own Postgres and shared Kafka, and drives them over the wire.

The catch

Only 8 of 22 feature files run in the weekly CI, so a green PR badge says little end to end.

what it does

Six kinds of proof cover the fleet from golden path to soak

Golden-path bootstrap

Runs one work unit through five contexts over both HTTP and Kafka.

Cross-context proofs

Shows map, order release, re-promise and transfer flows work across contexts.

Dock and yard chain proofs

Follows inbound, dock and yard facts across several contexts.

Agent correlation proof

Checks the ops agent ranks three linked signals into one exception.

Lifecycle harness

Builds, starts and stops all 28 binaries, touching only what it started.

Simulators and seeders

Compressed operating day plus product, inventory and storefront seeders.

who it talks to

It listens to three contexts and, so far, nobody listens back

LISTENS TO · 6 EVENT TYPESIS HEARD BY · 0 CONTEXTSyard-management4order-management1slotting-optimization1No downstream consumer yete2e-testsbadge = event types on that edge · derived from the CloudEvents types each repo declares
the shared language

Process paths, pools and published contracts are its vocabulary

THE LANGUAGEOF THE DOMAINBlack-box *worldRun scopePer-run consumer groupsPer-service isolated…Process pathsPublished Language…warehouse-ops-agent as the…Retail day
RESTNo REST of its own: drives the published REST of the 20…
MCPBuilds and starts 7 context MCP servers (facility…
Events0 produced, 0 consumed as a service…
how it is built

A black-box harness that talks to services only over the wire

DRIVERS · INBOUNDOUTBOUND · ADAPTERSREST APINo REST of its own: drives…MCP toolsBuilds and starts 7 context…Kafka consumer · 5 eventsOrderAllocatedTaskCompletedDOMAIN COREBlack-box *worldRun scopePer-run consumer groupsPer-service isolated…PostgreSQLNo storage of its own: 19…Kafka producer · 2 eventsSiteSkuDemandChangedfulfillment-executioncommands inevents inevents outstorage / infra
how we know it is healthy

Today a weekly cross-repo run is the only end-to-end alarm

N/A — no telemetry stack of its own; it is itself the fleet's behaviour-level feedback sensor (weekly E2E Behaviour run opens a harness:red issue on failure)

What we watch

  • Every service self-migrates on startup; the harness only points MIGRATIONS_PATH at the sibling repo's migrations
  • PID-file lifecycle: stop_service kills strictly the recorded PID, never a blind pkill — reruns never touch unrelated developer processes

What stops a bad change

  • make check (fmt-check, vet, test-compile via go test -c, scripts-sanity bash -n, compose-config) mirrors the PR CI; check-fast = fmt-check + vet
  • PR CI jobs: guide-lint (blocking), build-and-vet, scripts-sanity and seed-products-tests (go test of cmd/seed-*, warehouse-day, retail-day…
by the numbers

22 feature files and 28 binaries form the fleet's proof

1
Architecture decisions
#41 of 45 in the fleet
22
BDD feature files
#3 of 45 in the fleet

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

One-command workflows (make)

helpfmtfmt-checkvettest-compilescripts-sanitycompose-configcheckcheck-allcheck-fastuprunsoakwarehouse-day
competitive position

Against the market leaders, we cover part of the ground

PartialPlatform, Observability & Delivery vs Blue Yonder, Manhattan (zero-downtime CD, multi-AZ failover), SSI Schäfer (KPI telemetry)

Owns black-box system proof and soak testing.

Where we match or lead

  • Open, correlated telemetry: OTel Collector, Jaeger, Prometheus, Grafana, Loki + Alloy, Kiali, Kong metrics
  • Metric exemplars link to traces; log lines link to traces (two-way navigation)
  • Generated per-context Grafana dashboards: edge RED, business counters, Go runtime, logs
  • Harness engineering: mutation gates, architecture fitness tests, black-box e2e and soak

Gaps to close

  • High No zero-downtime rollout or failover scenarios in the suite
  • Medium Runs locally against one Kafka broker; no multi-AZ or capacity-limit evidence
  • Low Consumer delivery is verified only by polling read models, not broker-level lag

Leader capabilities are vendor-published; gaps reflect repo docs reviewed in November 2026.

what comes next

Next: catch contract breaks at PR time and widen the weekly run

NOW1Add a contractcheck on APIchangesClose the recorded opengap (INCIDENTS.md2026-09-28): a contractcheck that runs when anAPI contract changes, soa sibling tightening(Idempotency-Key) failsat PR time instead of …NEXT2Wire the retailday beyond itspreflightWire the retail-day:cmd/retail-day has onlythe preflight and exits2 for the day itself(main.go:7-10,91); theshopper, outbound andtransport actor packagesunder internal/sim are …NEXT3Widen the weeklyCI beyond 8 of 22featuresWiden the weekly CI:e2e-behaviour.yml runs 8of 22 feature files(bootstrap,product_master,transfer,inbound_receiving,inbound_journey, …LATER4Give the declaredcoverage surfacescenariosGive the declaredcoverage surfacescenarios: coverage.yamllists 34 components, 21with no nativeScenariosand 23 with noclusterChecks, and nofeature carries…LATER5Land the siblingreleases theretail day waitsLand what the retail daywaits on: ADR 0001(Consequences) says D1(network-fulfillmentsite map) and D2(fulfillment-executionsite onPackageManifested)…
what could go wrong · and what we do about it

Our biggest risk is that regressions hide behind green badges

Most feature files do not run in CI

Partly not in CI: the PR CI only compile-checks and unit-tests the simulators…

→

Widen the weekly run beyond 8 of 22 feature files.

Every sibling must be checked out and compiling

Multi-repo coupling: requires every sibling repo checked out under one REPOS_ROOT with matching branches…

→

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

Sharing the cluster's Kafka broker can collide

Shared-broker risk: the harness joins the one shared Kafka broker the kind cluster uses…

→

Every consumer group carries a per-run suffix so projections arrive.

Hand-kept ports and credentials can drift

Port/credential sprawl across 19 Compose Postgres instances and 28 binaries is hand-maintained in env.sh…

→

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

the decision we need

Add a contract check that runs whenever an API contract changes, so breaks fail at PR time.

WHAT ISIt builds 28 real binaries, runsthem on their own Postgres andshared Kafka, and drives them overthe wire.THE CATCHOnly 8 of 22 feature files run inthe weekly CI, so a green PR badgesays little end to end.WHAT COULD BEContract breaks fail at PR time,more of the 22 feature files run inCI, and the retail day actuallyruns.
Why it matters

The e2e harness is the fleet's only end-to-end proof, so more of it must run before a change merges

appendix · for the engineers in the room

The fine print: how it is put together

StyleBlack-box over-the-wire e2e/system test harness (godog/Cucumber for Go, package main + TestMain) with Go simulators under cmd/ and internal/sim…
Layoute2e_test.go plus per-feature *_test.go step files (soak, inbound, slotting, transfer, yard_journey, returns, phase5_*) and features/*.feature…
StorageNo storage of its own: 19 throwaway postgres:16 Compose instances (one per context, named volumes, healthchecks…
TestingDefault suite excludes @soak, @blocked and @setup (default tags in contract_test.go); the suite runs only through scripts/04-run-tests.sh, never a bare go test…
RESTNo REST of its own: drives the published REST of the 20 harness services (every /healthz plus each context's routes) through doJSON and the…
Go 1.27.4godog v0.16.0pgx/v5 for read-model assertionsDocker ComposeShared fleet Kafka brokerBash lifecycle scriptscoverage.yaml manifest +…CI