| name | analyze-root-cause |
| description | Trace the causal chain from trigger to failure |
| user-invocable | false |
analyze-root-cause
Trace the full causal chain from trigger to failure, identify defense gaps,
and define preventative controls. Anchor on one precise, falsifiable failure
mode.
Procedure
- Anchor on one primary failure mode and a minimal, falsifiable problem
statement; link secondary failures to it.
- Gather context, at most three questions, preferring binary (validate each
causal link) and pick-one (select the most plausible chain branch).
- Write a one- to three-sentence precise problem statement.
- Document customer impact: what users experienced, duration, blast radius.
- Trace the causal chain backward from failure to root trigger; number each
step.
- Apply Five Whys if the chain has not reached a systemic root.
- Technical deep dive: components involved, data shapes, the exact breakage,
and why tests, monitoring, and process did not catch it.
- Document reproduction: preconditions, steps, expected versus actual.
- Summarize the fix applied and the follow-up hardening needed.
- Define preventative controls, each with type (test, monitoring, process,
architecture), what it prevents, how to verify it, and owner.
- Assess residual risk and why it is acceptable.
- Write
~/.agentic-sdk/<project>/artifacts/ops/YYYY-MM-DD_rca_<incident_slug>.md with:
Metadata, Problem Statement, Customer Impact, Causal Chain, Five Whys
(optional), Technical Deep Dive, Reproduction Notes, Fix Summary,
Preventative Controls, Residual Risk, Open Questions. Slug: lowercase,
hyphens, descriptive.
Boundaries
Owns the causal chain and preventative controls. review-incident owns the
blameless incident review; assess-risk owns pre-deployment release risk.
Reached by investigate.
Return
One line: the artifact written, the root cause, and the top preventative
control, or blocked: <reason>.