Documentation coverage
Between 2026-10-09 and 2026-10-12 every application repository then in the
fleet (15 backend contexts, the console shell and the UI kit, 17 repositories)
got the same operational documentation set, written from the code on develop
and merged through each repository's normal PR checks. Fleet mean coverage went
from 67 to 100 out of 100. On 2026-10-17 the fleet grew to 19 repositories
(17 backend contexts, the console shell and the UI kit): see
State on 2026-10-17. The problems found while writing
those pages are on Ecosystem gaps.
What every repository now documents
| Page | Contents |
|---|---|
| Introduction | What the context owns, its subdomain class and tier, capabilities |
| Architecture | Hexagonal layout, every binary in cmd/ with ports and probes, data stores, a container diagram |
| Quickstart | Prerequisites, make targets, local Postgres and the shared Kafka broker, first calls |
| Configuration | One table per binary: every environment variable, default, whether required, source file |
| Runbook | Helm chart and Deployments, probes, migrations, topics and consumer groups, outbox, DLQ, sweepers, scaling, routine procedures |
| Observability | Every metric instrument, spans, logs, exporters, dashboards, suggested alerts |
| Troubleshooting | Symptom → cause → check → fix, from failure modes visible in the code |
| Testing | Unit, integration (testcontainers), BDD, contract, mutation and architecture tests; make targets; CI jobs |
| Integration | Every upstream and downstream edge with protocol, contract and failure behaviour, including absent edges |
| Use cases | Every application use case with trigger, inputs, invariants and events raised |
| MCP tools | Every tool of cmd/mcp with inputs and read-only or write annotation (where the context has an MCP server) |
The synced copies of the operational pages are under each context's
Operations group in the Bounded Contexts section. The
frontends keep theirs in their repositories: the console on its
docs site, the UI kit as
Markdown under docs/
(no Pages site).
Before and after
Scores are from the same audit run on two commits per repository: the first
parent of the merge of the campaign PR (before) and develop after the
last campaign PR merged (after). "Pages" counts hand-written pages
(README and docs/**, excluding ADRs and generated API reference). The README itself follows the fleet README skeleton — see README standard.
| Repository | Before | After | Pages | Missing before | PRs |
|---|---|---|---|---|---|
order-management | 77 | 100 | 22 → 29 | configuration, operations, observability, testing, integration, troubleshooting | #176 |
inventory-storage | 83 | 100 | 27 → 33 | configuration, operations, observability, testing, troubleshooting | #177 |
wes-work-planning | 80 | 100 | 37 → 44 | configuration, operations, observability, testing, troubleshooting, use-cases | #169 |
fulfillment-execution | 84 | 100 | 29 → 35 | configuration, operations, observability, testing, troubleshooting | #184 |
workforce-management | 77 | 100 | 32 → 39 | configuration, operations, observability, testing, troubleshooting, use-cases | #160 |
facility-layout | 80 | 100 | 26 → 32 | configuration, operations, observability, testing, troubleshooting, use-cases | #167 |
process-path-management | 64 | 100 | 17 → 28 | introduction, architecture, quickstart, configuration, operations, observability, testing, integration, troubleshooting, use-cases, subdomain-classification | #122 |
labor-performance | 66 | 100 | 18 → 28 | introduction, architecture, quickstart, configuration, operations, observability, testing, integration, troubleshooting, use-cases | #134, #144 |
warehouse-ops-agent | 70 | 100 | 20 → 30 | architecture, configuration, operations, observability, testing, integration, troubleshooting, use-cases | #129 |
network-fulfillment | 66 | 100 | 17 → 29 | introduction, architecture, quickstart, configuration, observability, testing, integration, troubleshooting, use-cases, subdomain-classification | #67 |
warehouse-planning | 74 | 100 | 20 → 29 | quickstart, configuration, operations, observability, testing, troubleshooting, subdomain-classification | #41 |
product-master | 72 | 100 | 21 → 30 | quickstart, configuration, operations, observability, testing, troubleshooting, subdomain-classification | #16 |
network-inventory-planning | 18 | 100 | 1 → 25 | site-or-docs-dir, introduction, architecture, quickstart, configuration, operations, observability, testing, integration, troubleshooting, use-cases, subdomain-classification, pack, adr-index | #28, #29 |
inbound-receiving | 76 | 100 | 22 → 30 | quickstart, configuration, operations, observability, testing, troubleshooting, subdomain-classification | #14 |
slotting-optimization | 29 | 100 | 1 → 25 | site-or-docs-dir, introduction, architecture, quickstart, configuration, operations, observability, testing, integration, troubleshooting, use-cases, subdomain-classification, pack, adr-index | #6 |
warehouse-console | 74 | 100 | 8 → 13 | configuration, operations, testing, troubleshooting | #76 |
warehouse-ui-kit | 56 | 100 | 1 → 10 | site-or-docs-dir, introduction, architecture, quickstart, configuration, operations, testing, troubleshooting | #44 |
Two contexts started without a documentation site at all:
network-inventory-planning and slotting-optimization each got a
Docusaurus site, mirroring inbound-receiving's tooling, in their campaign PR.
State on 2026-10-17
The same audit, run on origin/develop of all 19 repositories at the end of
the day (after the task-interleaving service and its operations pages
merged), gives all 19 at 100: a fleet mean of 100.0 (computed as
(19 × 100) / 19). Earlier the same day it gave 18 at 100 and one at 86, a mean
of 99.3, because task-interleaving had only its domain and contracts on
develop. Two contexts were added to the audit's backend list on 2026-10-17,
and four content fixes closed the last undocumented fact the audit listed in
four older repositories.
| Repository | Before | Now | Pages | Pending | PR |
|---|---|---|---|---|---|
pick-face-replenishment | 26 | 100 | 2 → 25 | — | #7 |
task-interleaving | 56 | 100 | 2 → 25 | — | #6, #7, #9 |
The first PR of each scaffolded the Docusaurus site, the API reference pages,
the DDD pack and the structure pages, and merged on 2026-10-17. Before is
the audit at the first parent of each merge. task-interleaving's service
(cmd/api, PR #7) merged later the same day and its docs PR #9 added the
configuration, runbook, observability and troubleshooting pages, which took
its structure score from 73 to 100 (the page count is the audit's, 25 for both
contexts). No placeholder pages were written to move the number. Of the 19
repositories, 17 are backend contexts (16 domain contexts and
warehouse-ops-agent), plus the console shell and the UI kit.
| Repository | Content fix | PR |
|---|---|---|
product-master | the product_master.products.registered instrument | #44 |
inbound-receiving | the inbound_receiving.receipts.units_received instrument | #39 |
slotting-optimization | the slotting_optimization.slot_plans.decided instrument | #32 |
network-inventory-planning | OTEL_SERVICE_NAME for mcp, nip-projector and nip-reports | #56 |
All the PRs above are merged. Frontends are scored with the library rule described
below: a release page counts as the operations page of a repository with no
deployment, which is how the UI kit reaches 100.
How the score is computed
The audit reads a repository's tree at a git ref (read-only) and scores two halves equally:
- Structure (50%): whether the hand-written docs contain an introduction, architecture, quickstart, configuration, operations (runbook), observability, testing, integration, troubleshooting, use-case and subdomain-classification page, the 11-page ddd-crew pack and a complete ADR index. Frontends are checked for the subset that applies to them; for a library with no deployment, a release page counts as its operations page.
- Content (50%): the share of code facts that the hand-written docs name:
every environment variable read in
cmd/andinternal/(non-test), every binary, every CloudEventstype, every MCP tool, every Kafka topic, every OpenTelemetry instrument, every table a migration creates, and every HTTP route that is not inapis/openapi.yaml. For frontends: everysrc/featuresmodule, every component and everyVITE_*variable.
The audit is a floor, not proof of quality: a page that names a fact can still describe it wrongly. Every campaign PR was therefore also checked mechanically against its own branch's code (every CloudEvents type in the docs exists in the code, every ER relationship has a real foreign key, every Mermaid diagram renders, no page describes authentication that does not exist), and the claims that drive the gaps page were re-verified by hand.
Keeping it at 100
- The operational pages are hand-written: nothing regenerates them. A code
change that adds an environment variable, topic, instrument or route must
update the matching page in the same PR. labor-performance's
.clauderules already say so; the other repositories' agent rules do not yet. - Re-run the audit before a release; a drop below 100 names the exact fact that is undocumented.
- New docs reach the published per-repo sites only with each repository's
next develop → main release, because the Docs workflows deploy from
main.