verdict-root-cause
Skill2 starsChanged 3 months agoMITView on GitHub
Trace a failure to its root cause with proof, not a story — a four-link chain (symptom, mechanism, origin, class), a counterfactual in an isolated scratch copy, trigger separated from cause, and a diagnosis of where the fix belongs. Use on a failing test, a bug report, or a finding whose cause is disputed.
In this repository6 other files it gives its agents.
- AGENTS.mdAGENTS.md
- llms.txtllms.txt
- verdict-flaky-triageSkill
- verdict-release-riskSkill
- verdict-spec-reviewSkill
- verdict-verify-fixSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 19
Classify: before explaining (see verdict-flaky-triage): a brittle test and a real defect have different causes and different owners.
- Very specific: line 44
Depth rule: keep asking "and why did that hold?" only while each answer has evidence.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Verdict: root cause — the chain, not the label
A plausible causal story reads as true and almost nobody checks it. A cause is a claim like
any other: evidence or HYPOTHESIS:.
In Claude Code with the Verdict plugin, use /verdict:cause <symptom>. This skill is
the same procedure for agents that cannot run it.
Procedure
- Reproduce first. An unreproduced symptom has no cause worth naming — say what is
missing and stop (
blocked). - Classify before explaining (see
verdict-flaky-triage): a brittle test and a real defect have different causes and different owners. Build the chain, one citation per link:
Link The question What settles it Symptom What was observed? The failing output, exact excerpt Mechanism What sequence produces it? The values and lines that carry it: read at A:12 ← set at B:40 ← from input COrigin Where did it enter? git log -S/-L, blame or bisect naming the commitClass Instance or pattern? A search for the same shape, with the hits — or the pattern searched and "the only site" The class link is not optional: a fix aimed at the reported instances leaves the pattern alive. One class is one finding — list the other sites under
root_cause.class.sitesrather than filing them separately.- Prove causation, strongest first: counterfactual (flip the suspected cause in a
scratch copy — never the checkout — and show the symptom flips with it; the scratch must
import its own source and its own bytecode, and the control runs in the failing
direction: original source back, symptom gone; details in
verdict-verify-fix) · differential (same operation succeeds here and fails there; name the one variable) · archaeology (the symptom appears exactly at commit C, and C touches the mechanism) · reading (the weakest: it cannot tell you what else also does it). - Separate three things people call "the cause": the trigger (what made it visible now — fixing it hides the defect), the cause (the code or contract that is wrong — what the fix targets), the latent condition (what let it exist and survive — a missing test, an unenforced invariant; left alone it produces the next instance).
- Depth rule: keep asking "and why did that hold?" only while each answer has
evidence. The first answer without evidence ends the chain, labelled
HYPOTHESIS:with the one experiment that would settle it. A short true chain beats a long invented one. - Stop at diagnosis. Name where the fix belongs — code, test, spec, environment or process. Writing the fix is not yours.
- Record the chain in the finding's
root_cause(mechanism,origin,class{pattern, sites[]},trigger,latent_condition,fix_location,proof{method, evidence},confidence) so the next run inherits the diagnosis; the harness resolves the origin commit's date and reports how long the defect lived before detection.
Verdict reports and specifies; it never fixes. Route the fix to the implementer, then
verify it (verdict-verify-fix).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

