This runbook defines how to keep repository documentation correct, factual, and current with engineering changes.
Apply this process to canonical docs first:
- README.md
- docs/README.md
- Documentation/README.md
- tests/docs/TEST_ENV_SETUP.md
- Documentation/Security/CI_STATUS_AND_CLAIMS.md
Historical archives are preserved as snapshots and should not be rewritten to represent current branch behavior.
Update canonical docs whenever any of the following change:
- New CI workflows or major workflow behavior changes
- New required test suites or validation profiles
- Security control defaults or auth expectations
- New operator commands that replace previous recommended commands
- Any claim that no longer matches the current main branch behavior
For each update:
- Verify commands from docs run successfully in a clean workspace.
- Prefer branch-scoped workflow badges over manual status claims.
- Keep performance and scale statements labeled as observed results, not guarantees.
- Link to source workflows, scripts, or tests that prove the claim.
- Remove or qualify stale absolute language like "always", "guaranteed", or "fully proven".
- Keep one canonical location per operational topic and link to it from indexes.
Run these before finalizing documentation edits:
npm run test:setup
npm run test:full:fast
npm run test:trends
npm run test:summary:diffOptional deep checks:
npm run test:full:deepUse:
- CI-verified
- Observed in artifacts
- Design target
- Emulated validation
Avoid unless externally certified:
- Guaranteed
- Fully production-proved
- Formally compliant
- Per PR touching CI, testing, security, or runtime behavior:
- Update README and docs indexes in the same PR.
- Weekly:
- Review workflow badges and stale links.
- Monthly:
- Review claim wording and demote stale claims to historical references.
- Workflow files in .github/workflows
- Validation scripts in tests/scripts/python and tests/scripts/ci
- Artifacts in test-results/full-validation
- Security claim boundaries in Documentation/Security/CI_STATUS_AND_CLAIMS.md