docs(runbooks): add template and pilot modules #784

Merged
pdurlej merged 2 commits from codex/issues/770-runbook-template into main 2026-06-17 23:10:53 +02:00
Collaborator

Canary status: missing - fire canary 3+3 manually before merge

Canary Context Pack

Product story

Future agents should be able to open a module runbook and find the same operational shape every time: purpose, runtime location, health/smoke, restore boundary, rollback, known gotchas, recovery, related modules, and owner.

What changed

  • Added docs/templates/runbook-template.md.
  • Applied the template to three pilot modules only:
    • honcho-api as core/platform active service.
    • np-memos as public user-app with stateful/private data concerns.
    • agaria-api as custom-prefix parked module where the correct action is not reactivation.

Why it changed

Issue #770 identified runbook format drift as recurring agent-token burn. This gives a reusable target and three examples across different recovery postures.

Files touched

  • docs/templates/runbook-template.md
  • modules/honcho-api/runbook.md
  • modules/np-memos/runbook.md
  • modules/agaria-api/runbook.md

Relevant context

  • Issue #770 spec sources: honcho-api, traefik, several existing runbooks, AGENTS.md, and PLATFORM_CHARTER.md repo layout.
  • AntiGravity/Gemini readability pass returned PASS and suggested tightening parked-module commands. Applied: agaria-api smoke is N/A while parked, container check handles absence, and template now tells authors to prefer no-op/read-only checks for parked/sunset modules.

Runtime evidence

Docs-only. No live runtime access and no host mutation.

Known constraints

  • Follow-up issues for remaining modules were not filed because the batch assumptions explicitly keep Forgejo/API mutation out of scope beyond opening this PR.
  • This PR is a template and three pilots, not a repo-wide runbook migration.

Explicit out-of-scope

  • No runtime commands, restarts, deploys, restore, or smoke execution.
  • No broad runbook migration beyond the three pilot modules.
  • No Forgejo follow-up issue creation in this batch.

Requested decision

Approve the template shape and three pilot conversions.

Merge blockers

  • Template missing required sections.
  • Pilot runbooks encouraging destructive restore without operator approval.
  • agaria-api parked runbook encouraging reactivation or smoke as default.

Spec sources read

  • Issue #770 body from Forgejo.
  • modules/honcho-api/runbook.md and modules/traefik/runbook.md as reference runbooks.
  • modules/forgejo/runbook.md, modules/np-memos/runbook.md, modules/agaria-api/runbook.md for pattern diversity.
  • modules/honcho-api/module.yaml, modules/np-memos/module.yaml, modules/agaria-api/module.yaml for runtime/lifecycle/statefulness fields.
  • PLATFORM_CHARTER.md § repo layout.

Verification

  • agy --sandbox ... AntiGravity/Gemini readability pass -> PASS; tightening suggestions applied.
  • rg -n "^## (Purpose|Runtime Location|Healthcheck & Smoke|Backup & Restore|Rollback Procedure|Known Issues / Gotchas|Recovery Procedures|Related Modules|Owner)$" docs/templates/runbook-template.md modules/honcho-api/runbook.md modules/np-memos/runbook.md modules/agaria-api/runbook.md -> all sections present in all four files.
  • git diff --check origin/main...HEAD -> passed.

Closes #770

Canary status: missing - fire canary 3+3 manually before merge ## Canary Context Pack ### Product story Future agents should be able to open a module runbook and find the same operational shape every time: purpose, runtime location, health/smoke, restore boundary, rollback, known gotchas, recovery, related modules, and owner. ### What changed - Added `docs/templates/runbook-template.md`. - Applied the template to three pilot modules only: - `honcho-api` as core/platform active service. - `np-memos` as public user-app with stateful/private data concerns. - `agaria-api` as custom-prefix parked module where the correct action is not reactivation. ### Why it changed Issue #770 identified runbook format drift as recurring agent-token burn. This gives a reusable target and three examples across different recovery postures. ### Files touched - `docs/templates/runbook-template.md` - `modules/honcho-api/runbook.md` - `modules/np-memos/runbook.md` - `modules/agaria-api/runbook.md` ### Relevant context - Issue #770 spec sources: `honcho-api`, `traefik`, several existing runbooks, `AGENTS.md`, and `PLATFORM_CHARTER.md` repo layout. - AntiGravity/Gemini readability pass returned PASS and suggested tightening parked-module commands. Applied: `agaria-api` smoke is N/A while parked, container check handles absence, and template now tells authors to prefer no-op/read-only checks for parked/sunset modules. ### Runtime evidence Docs-only. No live runtime access and no host mutation. ### Known constraints - Follow-up issues for remaining modules were not filed because the batch assumptions explicitly keep Forgejo/API mutation out of scope beyond opening this PR. - This PR is a template and three pilots, not a repo-wide runbook migration. ### Explicit out-of-scope - No runtime commands, restarts, deploys, restore, or smoke execution. - No broad runbook migration beyond the three pilot modules. - No Forgejo follow-up issue creation in this batch. ### Requested decision Approve the template shape and three pilot conversions. ### Merge blockers - Template missing required sections. - Pilot runbooks encouraging destructive restore without operator approval. - `agaria-api` parked runbook encouraging reactivation or smoke as default. ## Spec sources read - Issue #770 body from Forgejo. - `modules/honcho-api/runbook.md` and `modules/traefik/runbook.md` as reference runbooks. - `modules/forgejo/runbook.md`, `modules/np-memos/runbook.md`, `modules/agaria-api/runbook.md` for pattern diversity. - `modules/honcho-api/module.yaml`, `modules/np-memos/module.yaml`, `modules/agaria-api/module.yaml` for runtime/lifecycle/statefulness fields. - `PLATFORM_CHARTER.md` § repo layout. ## Verification - `agy --sandbox ...` AntiGravity/Gemini readability pass -> PASS; tightening suggestions applied. - `rg -n "^## (Purpose|Runtime Location|Healthcheck & Smoke|Backup & Restore|Rollback Procedure|Known Issues / Gotchas|Recovery Procedures|Related Modules|Owner)$" docs/templates/runbook-template.md modules/honcho-api/runbook.md modules/np-memos/runbook.md modules/agaria-api/runbook.md` -> all sections present in all four files. - `git diff --check origin/main...HEAD` -> passed. Closes #770
docs(runbooks): add template and pilot modules
Some checks failed
base-is-main / guard (pull_request) Successful in 2s
canary-required / collect-diff (pull_request) Successful in 5s
patchwarden-client-dry-run / collect-diff (pull_request) Successful in 5s
patchwarden-pr-sanity / collect-diff (pull_request) Successful in 5s
platformctl plan / auto-apply scope (pull_request) Successful in 20s
canary-required / canary (pull_request) Successful in 13s
patchwarden-client-dry-run / dry-run (pull_request) Failing after 18s
patchwarden-pr-sanity / sanity (pull_request) Successful in 2m53s
10bd2d4e3b
First-time contributor

Patchwarden PR sanity

  • Status: eligible_sanity_clean
  • PR: 784
  • Commit: 26c2d3eb7ea58dd0e51f72ccd9f54604d930d183
  • Security-sensitive label: missing
  • Authority: advisory model review plus deterministic blockers only
  • 3+3 canary: still alive; this does not replace it

Deterministic findings

No deterministic findings.

Model reviewers

global-glm / glm-5.1:cloud

  • Status: ok
  • Verdict: OK
  • Findings: none

global-deepseek / deepseek-v4-pro:cloud

  • Status: ok
  • Verdict: OK
  • Findings: none

redteam / kimi-k2.6:cloud

  • Status: ok
  • Verdict: OK
  • Findings: none

Policy notes

  • GLM 5.1 + DeepSeek V4 Pro are the operator-required model mix for this bot.
  • Optional red-team model is enabled only when PLATFORMCTL_PR_SANITY_REDTEAM_MODEL is configured.
  • Auto-merge is not enabled here.
<!-- patchwarden-pr-sanity:pdurlej/platform:PR-784 --> # Patchwarden PR sanity - Status: `eligible_sanity_clean` - PR: `784` - Commit: `26c2d3eb7ea58dd0e51f72ccd9f54604d930d183` - Security-sensitive label: `missing` - Authority: advisory model review plus deterministic blockers only - 3+3 canary: still alive; this does not replace it ## Deterministic findings No deterministic findings. ## Model reviewers ### `global-glm` / `glm-5.1:cloud` - Status: `ok` - Verdict: `OK` - Findings: none ### `global-deepseek` / `deepseek-v4-pro:cloud` - Status: `ok` - Verdict: `OK` - Findings: none ### `redteam` / `kimi-k2.6:cloud` - Status: `ok` - Verdict: `OK` - Findings: none ## Policy notes - GLM 5.1 + DeepSeek V4 Pro are the operator-required model mix for this bot. - Optional red-team model is enabled only when `PLATFORMCTL_PR_SANITY_REDTEAM_MODEL` is configured. - Auto-merge is not enabled here.
Merge remote-tracking branch 'origin/main' into codex/issues/770-runbook-template-refresh
Some checks failed
canary-required / collect-diff (pull_request) Successful in 5s
platformctl plan / auto-apply scope (pull_request) Successful in 20s
canary-required / canary (pull_request) Successful in 13s
base-is-main / guard (pull_request) Successful in 2s
patchwarden-client-dry-run / collect-diff (pull_request) Successful in 4s
patchwarden-pr-sanity / sanity (pull_request) Failing after 1m56s
patchwarden-pr-sanity / collect-diff (pull_request) Successful in 4s
patchwarden-client-dry-run / dry-run (pull_request) Failing after 20s
26c2d3eb7e
Owner

operator_override / PR-zero queue collapse evidence for #784.

I rechecked the docs-only runbook template PR after the current main merges:

  • git diff --check origin/main...HEAD passed.
  • Secret-pattern scan over the four touched runbook/template files returned no findings.
  • All required template sections are present in the template and three pilot runbooks.
  • Parked agaria-api remains read-only/no-op by default; no reactivation/restart path is introduced.

This is aligned with the live queue-collapse scope and safe to merge despite pending/stale CI checks.

operator_override / PR-zero queue collapse evidence for #784. I rechecked the docs-only runbook template PR after the current main merges: - `git diff --check origin/main...HEAD` passed. - Secret-pattern scan over the four touched runbook/template files returned no findings. - All required template sections are present in the template and three pilot runbooks. - Parked `agaria-api` remains read-only/no-op by default; no reactivation/restart path is introduced. This is aligned with the live queue-collapse scope and safe to merge despite pending/stale CI checks.
Sign in to join this conversation.
No reviewers
No labels
W6d-automerge-calibration
agent/claude-code
agent/codex
agent/hermes
agent/iskra
agent/ollama
agent/patchwarden
automerge-candidate
class/security-sensitive
cutover-gate
dependency/blocked
dependency/blocks-others
dependency/cross-repo
dependency/needs-confirmation
domain:agents
domain:ci
domain:docs
domain:forgejo
domain:infra
domain:memory
domain:runtime
domain:signal
domain:ux
flow/architecture
flow/blocked
flow/deployed
flow/done
flow/implementation
flow/intake
flow/maintained
flow/observed
flow/ready
flow/refining
flow/retired
flow/review
iterating
judge/codex-candidate
judge/hermes-candidate
judge/low-confidence
judge/needs-refinement
judge/operator-needed
judge/p0
judge/p1
judge/p2
judge/p3
judge/park
judge/patchwarden-candidate
judge/stale-priority
kind/adr
kind/bug
kind/chore
kind/feature
kind/infra
kind/ops
kind/refactor
kind/research
large-impact
merge/auto
merge/manual
merge/manual-dependency-conflict
merge/manual-failing-tests
merge/manual-merge-conflict
merge/manual-missing-review
merge/manual-operator-preference
merge/manual-red-zone
merge/manual-security-sensitive
merge/manual-unclear-scope
merge/manual-unknown
meta
mode:operator-only
mode:patchwarden-iskra-approved
mode:safe-auto
needs-operator-decision
needs-triage
not-ready
observed/erroring
observed/needs-followup
observed/pending
observed/retire-candidate
observed/unused
observed/used
operator-emotional
owner-attention
phase/02
phase/03
priority:p0
priority:p1
priority:p2
priority:p3
proposed
ready-for-agent
ready-for-operator
recovery
review:claude-reviewed
review:codex-reviewed
review:dziadek-reviewed
review:needs-human
risk/exposure
risk/process
risk/product
risk/runtime
safety:external-write
safety:no-prod-mutation
safety:prod-impact
safety:secret-touch
size/large
size/medium
size/small
size/tiny
size/unknown
source/adr
source/agent-generated
source/manual
source/operator-chat
source/voice-note
status:blocked
status:codex-ready
status:merged:pending-evidence
status:needs-evidence
status:operator-needed
status:parked
tier/full
tier/lite
tier/stacked
tier:0-platform-substrate
tier:1-iskra-value-layer
tier:2-tools-products-modules
type:bug
type:chore
type:docs
type:feat
type:policy
type:research
No milestone
No project
No assignees
4 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pdurlej/platform!784
No description provided.