Navigate Ways of Working
AI Use Cases: Documentation
AI use cases for Documentation: Documentation in the Same Change, Runbook Drafting and Rehearsal, Agent Context Upkeep.
Part of the AI Use Case Catalogue. Every entry names its owner, how much the agent may do alone, the human checkpoint and how the result is verified; the catalogue overview explains each field.
Full process: Documentation Requirements in the Engineering Process.
AI-039: Documentation in the Same Change
Purpose: Keep documentation true by updating it in the commit that changes the behaviour it describes, and by catching drift in CI.
Owner: Dev (per change); Staff Engineer (the periodic sweep)
Autonomy: Runs within set rules
Human checkpoint: None per change. The Staff Engineer reviews the quarterly sweep’s gap list.
Verification: CI fails when an API contract, configuration or documented behaviour changes without its documentation, and rebuilds generated API references from the code.
Context: Every change, plus a scheduled sweep comparing the codebase with the documentation to find services and endpoints nobody has written up.
Artefacts Required:
- The change set
- Existing documentation for the affected area
- API specifications
- Documentation standards from the Engineering Process
Artefacts Produced:
- Documentation updates in the same commit
- Drift failures in CI
- A gap list from the sweep
AI-040: Runbook Drafting and Rehearsal
Purpose: Draft a runbook for a service from its code, infrastructure configuration and monitoring, then run its diagnostic steps against staging.
Owner: Dev (for new services)
Autonomy: Drafts
Human checkpoint: The Tech Lead reviews and approves the runbook, including the reversible actions an agent may take during an incident (AI-027).
Verification: The agent runs the diagnostic steps against staging and reports each one that fails. A runbook nobody has run is a guess.
Context: When a new service goes to production, or when an incident reveals a runbook gap.
Artefacts Required:
- Service code and configuration
- Infrastructure and deployment configuration
- Monitoring and alerting setup
- Known failure modes, from incident history where available
Artefacts Produced:
- Draft runbook: service overview, common failure scenarios, diagnostic steps, remediation actions, escalation path
- Rehearsal report: the steps that worked and the ones that didn’t
AI-041: Agent Context Upkeep
Purpose: Keep the AI playbook, agent context files, boundaries and reusable skills current, using repeated failures, escalations and drift findings as evidence. Every agent run reads them, and they go stale.
Owner: Staff Engineer
Autonomy: Drafts
Human checkpoint: The Staff Engineer approves every change to the playbook and the shared context.
Verification: Each proposed change cites the failures, escalations or drift findings behind it.
Context: Continuous. The weekly drift reports (AI-017) and agent escalations feed it.
Artefacts Required:
- The AI playbook and agent context files
- Escalations and stopped sessions
- Drift findings from AI-017
Artefacts Produced:
- Proposed playbook and context changes, each with its evidence
← Onboarding · All stages