warehouse-systems fleet · executive briefing

warehouse-harness-template

A starter kit that gives every new warehouse repo the same safety checks
eight capabilitys

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 harness template turns each past incident into a check, so the same failure cannot quietly recur

1

One script stamps out a new repo with gates, hooks and the event helper built in.

2

Fitness tests encode real incidents, from auth creeping back to bad event envelopes.

3

Every failing check says what broke, why, and how to fix it, so agents self-correct.

The ask

Close the open incident gaps and roll the agent-authority checks out wave by wave.

why it exists

Every repo should learn from mistakes the fleet already made

Answer one question for every new or drifting repo in the warehouse-systems fleet: what quality/agent harness should this repo have, and why. It is a template, not a runnable service — no cmd/, no OpenAPI spec, no domain code except the opt-in GS1 identification package…

Today

Every new repo starts from this template, and a weekly sync keeps its managed files identical in existing repos afterwards.

The catch

Some sensors still roll out by hand, wave by wave, and INCIDENTS.md lists open gaps that no check guards yet.

what it does

One template gives every repo gates, hooks and guides from day one

Repo instantiation

One script creates a repo with CLAUDE.md, a Dockerfile and the event helper.

Weekly template sync

Sync tools re-apply managed files to existing repos, byte for byte.

CI sensors

The CI template runs 20 jobs, from lint and BDD to mutation and security scans.

Agent runtime harness

Hooks block risky git moves and gate edits; checks run before an agent says done.

Incident fitness tests

Architecture tests that each trace back to a failure the fleet really had.

Config conformance lint

Catches broken CI paths, stale owners and leftover placeholders early.

the shared language

Guides steer before a change; sensors catch what slips through

THE LANGUAGEOF THE DOMAINGuideSensorTemplate-managed file vs…CloudEvents 1.0 as the…Incident rowHarness version markerGS1 value objects
RESTNone — no cmd/, no OpenAPI spec; it ships the api-lint…
MCPNone — no cmd/mcp; it ships TestMCPAdapterDependencyRule…
how it is built

No service here, just guides and sensors that install into repos

BUILDING BLOCKS · TOP-LEVEL COMPOSITIONMakefile / lefthook.yml/ .golangci.yml /.gremlins.yaml at root;COMPONENTS13 fitness test…skillsagentsmemorysettings); .agents/.codex/.opencode/ runtime…packaging}; scripts/…scaffold-selftest.shharness/harness-audit.pyharness-health.pyTECHNOLOGY STACKGo 1.27.4 (module compiles the…arch-go v1.7.0Makefile quality gate…ci.yml.template (20 jobs) +…lefthook pre-commit/pre-pushgodog/Gherkin BDD…Agent runtimes: Claude Code…stdlib Python: scripts/harness/{h…bash: scripts/new-service.sh…
how we know it is healthy

A self-test gate proves the template, hooks and sync tools still work

N/A — this repo is itself an observability/quality harness rather than a service; it contributes the fleet's sensor catalogue rather than running a telemetry stack

What we watch

  • Sensors-as-prompts: every failing check states WHAT broke, WHY the rule exists and the exact FIX so an agent self-corrects without a human
  • New sensors default to advisory for ~2 weeks then auto-promote to blocking (unless inherently non-deterministic/LLM-based)

What stops a bad change

  • selftest.yml on every push/PR into develop and main: the template's own gate (replaces make check-all, which needs a cmd/)
  • For instantiated services: make check (fmt-check vet build lint test) pre-commit; check-all adds coverage (90% domain/application gate), arch-test…
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 the fleet quality harness: guides and sensors.

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

  • Medium Harness proves code quality, not runtime resilience (no chaos or failover evidence)
  • Low README headline still says v2 while HARNESS/SPEC record v3
  • Low Order-management mutation gate pinned below the fleet 99/99 standard

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

what comes next

Next: close open incident gaps and roll out the authority checks

NOW1Close thecontract-check gapin INCIDENTS.mdClose the open gap inINCIDENTS.md:16: acontract check that runswhen an API contractchanges (the e2eIdempotency-Key breakwas only seen in theweekly cross-repo run)NEXT2Close the Kafkatopic-creation gapClose the open gap inINCIDENTS.md:24: amanaged fail-fast Kafkatopic-creation helper ora fitness test rejectingbare CreateTopics (~25test files across 9repos)NEXT3Set theIdempotency-Keyrule forDecide and implement theIdempotency-Key rule forwarehouse-planning plusa fitness test thatevery creating POSThandler enforces theheader (INCIDENTS.md:30still lists it as an …LATER4Roll theagent-authoritytests out per waveRoll the agent-authorityfitness tests out perwave: they are not inMANAGED andINCIDENTS.md:59 recordsthem as not yet in anyproduct repoLATER5Derive the auditedrepo list fromGitHubDerive the fleet list inscripts/harness-audit.pyfrom gh repo listinstead of the staticDEFAULT_REPOS constant(its own comment, lines37-39)
what could go wrong · and what we do about it

Our biggest risk is fixes that never reach the other repos

Unmanaged sensors fan out by hand, wave by wave

Manual fan-out for unmanaged sensors: the outbox, MCP, Kafka-acks, DLQ, writer-topic…

→

Next step: roll the agent-authority tests out per wave, as INCIDENTS.md records.

Placeholders pass lint but guard nothing

Instantiation is only step one: .claude/rules skeletons and .gremlins.yaml thresholds ({{MEASURED_EFFICACY_MINUS_1}} placeholders)…

→

Instantiation is only step one; rules and thresholds need real code and measured numbers.

A new managed rule can turn every weekly sync red

A new managed rule must land its required files fleet-wide BEFORE the rule rolls out…

→

Required files must land fleet-wide before the rule rolls out.

LLM review sensors are advisory and unproven

LLM-based sensors (code/architecture/domain review, ai-review.yml) are advisory by decision…

→

They stay advisory by decision until their precision is shown.

the decision we need

Close the open incident gaps and roll the agent-authority checks out wave by wave.

WHAT ISEvery new repo starts from thistemplate, and a weekly sync keepsits managed files identical inexisting repos afterwards.THE CATCHSome sensors still roll out by hand,wave by wave, and INCIDENTS.md listsopen gaps that no check guards yet.WHAT COULD BEOpen incident gaps are closed,authority checks run in productrepos, and the audited repo listcomes from GitHub itself.
Why it matters

The harness template turns each past incident into a check, so the same failure cannot quietly recur

appendix · for the engineers in the room

The fine print: how it is put together

StyleTemplate repository (harness engineering: guides + sensors) — no runtime of its own; ships a Go-quality gate plus an agent-runtime harness that instantiate into each bounded-context repo…
LayoutMakefile / lefthook.yml / .golangci.yml / .gremlins.yaml at root; internal/architecture/ (13 fitness test files that pass against the empty tree) and internal/domain/shared/gs1/ (opt-in GS1…
StorageNone — no database, no migrations; only credential-handling guidance (never embed passwords in scheme://user:PASSWORD@host URLs)
Testingselftest.yml is the gate (not make check-all): hook, repo_lint, guide_lint, fleet_drift and migration tests, go vet + go test of internal/architecture and the GS1 package, py_compile…
RESTNone — no cmd/, no OpenAPI spec; it ships the api-lint (Spectral) and docs-api-drift jobs in ci.yml.template that instantiated repos run against…
Go 1.27.4arch-go v1.7.0Makefile quality gateci.yml.templatelefthook pre-commit/pre-pushgodog/Gherkin BDDAgent runtimesstdlib Pythonbash