Personal Telegram developer console for GitHub
docs(ops): add production operations runbook
davoodmehraban89 committed
Oct 5, 2026 at 08:35 UTC
c974a17e1601277c72745bcaf00fe731d24a6b0e
1 file changed
+24
docs/OPERATIONS_RUNBOOK.md
new
+24
@@ -0,0 +1,24 @@
1
+# Nexa Dev Bot — Production Operations Runbook
2
+
3
+## Release gate
4
+1. Identify the exact candidate commit SHA.
5
+2. Require successful PR CI.
6
+3. Merge only the reviewed head.
7
+4. Require successful post-merge CI on the exact `main` SHA.
8
+5. Deploy only that verified SHA through the repository deployment workflow.
9
+6. Verify production runtime independently before acceptance.
10
+
11
+## Runtime incident path
12
+Treat failed CI/deploy, provider errors, Worker runtime degradation, approval/replay failures, and GitHub/Cloudflare evidence mismatch as explicit failures. Preserve bounded non-secret evidence: exact SHA, workflow/run/job IDs, deployment/version IDs, action ID, outcome and timestamp. Never persist tokens, secret values, source/draft bodies or signed approval callbacks.
13
+
14
+## Rollback
15
+Rollback only to a known-good deployed version. Any Cloudflare operation changing deployed code remains DESTRUCTIVE and must use owner-bound Safe Approval with durable one-time replay protection. After rollback, independently verify active version/traffic/runtime state and record the evidence.
16
+
17
+## Workspace safety
18
+Workspace mutations remain Draft → Diff → Commit Message → Ready → Safe Approval → branch commit. The target is `nexa/edit-*`; direct `main` mutation, force update and silent conflict resolution are prohibited.
19
+
20
+## Security regression gate
21
+Before accepting a release, verify owner-only Telegram boundary, central action policy, HMAC approval verification, durable replay guard, owner-scoped Workspace state, explicit provider failures, bounded Telegram rendering, minimal public `/status`, and Production/Preview isolation.
22
+
23
+## Recovery
24
+When a provider or validation action fails, keep the failure visible and preserve a bounded recovery path. Never report a retry as successful until fresh provider/runtime evidence confirms it.