Incident response

From joemccann/radon · View interactive version

Incident response is an AI agent skill from the GitHub repository joemccann/radon. The exact Radon triage playbook for a production incident - reproduce locally, write a FAILING regression test first, fix, run the full test gate, commit a focused single-purpose commit, push a fix/** branch, ensure an open PR (never merge), wait for CI green, verify live in the browser. Use wheneve

How to use this skill

Skill file

Incident response — the Radon playbook

The sequence is fixed. Skipping a step is how the 2026-07-08 outage happened

(rapid pushes) and how the destroy storm shipped green (regression test that

could not express the failing topology). Every step names its verification

evidence; paste that evidence before claiming the step done.

0. Read the incident + runbook case first

severity, evidence, fingerprint.

discriminating check (e.g. the Python Turso canary for turso-destroy-storm),

RUN IT before touching code — the same symptom has more than one cause, and

the wrong branch wastes the whole response (restart-flapping an upstream

Turso outage makes it worse).

curl -s localhost:3000/api/service-health | jq (judge the BODY),

curl -s http://radon-app:8321/health/lite, gh run list --workflow=ci.yml --limit 3.

walk: architecture.json for the area and hub modules, then codemap.json

edges ([src, dst] indexes into nodes) for who imports the suspect file.

Every importer is a candidate for the regression test and the fix review.

The map refreshes nightly, so confirm a hit with rg before trusting it.

1. Reproduce locally

reproduce against the artifact the user/production actually sees, never a

synthetic fixture (feedback lesson: confirm against the user-visible

artifact). Verify against live Turso, not data/*.json fallbacks.

failures.

MECHANISM in a test harness (the destroy-storm fix reproduced

agent.destroy() mid-flight aborting 10/10 concurrent requests).

2. Write the FAILING regression test FIRST (red)

REASON production failed, not merely fail. Encode the failing topology: the

destroy storm shipped because db-timeout-self-heal.test.ts was single-caller

while the incident was concurrent-caller.

3. Fix

no adjacent "improvements".

e.g. never destroy the shared undici Agent on isolated evidence; all

persistence through Turso; heartbeats on skip paths; bounded IB awaits.

4. Full test gate (green)

repo root, mirroring CI:

change caused it (test-ordering pollution is common here).

5. Commit — focused, single-purpose

(git add path/to/file). NEVER git add -A / git add . — untracked WIP

(journals, scratch scripts, notebooks) must not be swept in.

in the same commit. No secrets/PII. Claim in the message only what was

actually verified.

content (not TODO, not the branch name, not "grok incident fix on"):

What broke (symptom, failing job or alert, page id, first-seen time,

run or log links, error excerpt); Root cause; What changed (each file);

How it was verified; Risk and rollback; Still open. Pickup opens the PR

from this body and refuses a placeholder.

6. Update the runbook + lessons

detection signals, discriminating checks, fix commits, regression tests).

Known mode → append the new commit SHA to its case.

pattern to tasks/lessons.md.

7. Push a `fix/**` branch ONCE, then ensure an open PR

Joe / Mac Mini gh / loops after CI green. This playbook never merges.

If a run is in progress, WAIT — rapid-fire pushes cancelled an in-flight

deploy and corrupted the production build (2026-07-08).

python3.13 scripts/ir_ensure_pr.py (or bash scripts/ir_open_pr.sh).

That creates a PR against main if none is open for this head; no-op if

one exists. Fail closed if gh is missing or the PAT lacks

pull_requests: write. Branch-only is not a ship.

into .github/pull_request_template.md (Summary, What changed, Test plan,

Risk and rollback, Operator Next Steps, Checklist). Never hand-write it

with gh pr create --body; if you must, fill that template. The

PR body template CI check (scripts/ci/check_pr_body.py) fails any

other shape.

8. Verify live

Playwright) and capture a screenshot as evidence. Tests alone do not close a

UI incident.

verify the BODY; for persistence fixes confirm the row in live Turso.

(python3.13 -m scripts.incident_watchdog --once, then check the incident

file's status flipped to resolved), or resolve-and-note manually if the

probe surface cannot see the fix.

Stand-down criteria (do NOT ship a fix)

operational, not code. Follow the runbook case, alert, stand down.

unknown probe states: not incidents. Close the artifact with a note.

marker mismatch that a running deploy is about to close.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.