Skip to main content

Documentation Standard β€” what docs exist, where they live, when they're required

:::note Map + pointer This is the single view of the platform's whole documentation system β€” the FAANG documentation taxonomy (Product Β· Architecture Β· Developer Β· API Β· Quality Β· Operations Β· Security/Compliance Β· Business/Lifecycle Β· AI) mapped onto the homes that already exist here, path-gated like the delivery paths. The decision of record is the rule .claude/rules/documentation-standard.md; this page is its published map. Companion: the writing discipline (docs-as-map, verified-reality, the Definition-of-Done gate) lives in documentation.md. :::

Two axes first (don't flatten them)​

  1. Platform vs IS β€” a doc belongs to the Platform pillar (a shared capability, one copy) or the IS pillar (a business app, docs live with the product). See the pillar boundary in the Architecture Hub.
  2. Delivery path (A/B/C) β€” the doc burden scales to the work, exactly like the SA artefact set: a one-line fix writes ~nothing new; a new product produces the full set.

We do not impose a generic docs/01-07/ tree β€” it would duplicate the SA artefact set and fight the docs-as-map model. The taxonomy is a path-gated checklist pointing at existing homes, plus one canonical per-product skeleton (below).

The category map​

πŸ”΄ required Β· 🟑 when it applies Β· β€” n/a.

CategoryHome of record hereABC
1 Product (PRD, stories, roadmap, UX, release notes)BMAD prd.md + UX docs; roadmap = GitHub Project board; release notes = release-please CHANGELOGβ€”πŸŸ‘πŸ”΄
2 Architecture (C4, ADR, ERD, SDD)the SA artefact set assembled as the SDD; C4 (diagrams-as-code); ADRs β†’ auto-index; ERD β†’ auto-generatedβ€”πŸŸ‘πŸ”΄
3 Developer (README, CONTRIBUTING, setup, troubleshooting)repo standardization + the zeroβ†’prod runbookπŸ”΄πŸ”΄πŸ”΄
4 API (OpenAPI, auth, errors, versioning)committed openapi.yaml + L3 contract tests; SSOβ€”πŸ”΄ if it has an APIπŸ”΄
5 Quality & testing (strategy, matrix, perf, security)testing strategy (L0–L4) + the live QA gateπŸ”΄πŸ”΄πŸ”΄
6 Deployment & operations (CI/CD, runbooks, monitoring, DR, SLO)delivery workflow + reliability (SLO register + Game Days + DR drills)πŸŸ‘πŸ”΄πŸ”΄
7 Security / privacy / compliance (threat model, data-class, IR, audit)SA threat model + P0–P3 classes + the IS obligations register + change-recordsπŸŸ‘πŸŸ‘πŸ”΄
8 Business / lifecycle (user/admin guide, postmortems, SLO dashboard, EOL)postmortems + Grafana SLO dashboards + the EOL/cloud-adoption policyβ€”πŸŸ‘πŸ”΄
9 AI-specific (model card, lineage, eval, prompts, RAG, agent spec, LLMOps/FinOps)the LLMOps standard + the AI-governance matrix + the AI-Act gateβ€”πŸ”΄ if it calls an LLMπŸ”΄

Known thin spots (fill on need, don't pre-create empty files): coding-standards, API error-catalogue + versioning policy, user/admin guides, risk register, model card + dataset lineage.

New practice 1 β€” requirement IDs + the traceability matrix (the enterprise signal)​

Give every requirement a stable, observable ID (FR-### / NFR-### / SEC-### / AI-###) and thread it requirement β†’ architecture component β†’ test file β†’ pipeline stage β†’ evidence in one matrix. It answers the question that separates mature engineering from "it works on my machine":

If SEC-001 changes tomorrow, which components, tests, pipelines and docs must change?

Template: docs/templates/traceability-matrix.md. Worked reference (real IDs, real tests, real CI): ktayl-core/docs/traceability-matrix.md β€” note it also surfaces the requirements not yet tested, which is precisely the point of the exercise.

Fleet β€” products with a traceability matrix (auto-indexed)​

This table is regenerated by scripts/gen-trace-index.py (weekly + on-demand) β€” any repo that commits docs/traceability-matrix.md appears here on its own, same self-indexing pattern as the ADR and ERD indexes. Click through β€” each matrix also surfaces its untested requirements.

ProductTraceability matrix (click through)
ktayl-coredocs/traceability-matrix.md

New practice 2 β€” the canonical per-product docs/ skeleton​

One reconciled layout (SA artefact set + the category checklist, platform concerns linked not copied), so products stop varying. Full tree: docs/templates/product-docs-skeleton.md. Reference products: ktayl-core (plain docs/) and retrieva (Docusaurus).

How a developer uses this​

  • Starting a product? Follow the zeroβ†’prod runbook; it already seeds the skeleton. For a Path-C product, produce the full SDD + the traceability matrix.
  • Making a change? Pick the delivery path β†’ the table tells you which docs to touch; update them in the same PR (the Definition-of-Done gate, per documentation.md).
  • Looking for a doc? The central site is the map: ADRs β†’ decision records, schemas β†’ ERD index, tests β†’ testing strategy.