agentleFS
ArtJackArtJack/verdict/skills/verdict-root-cause/SKILL.md

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.

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
  1. Very specific:

    Classify: before explaining (see verdict-flaky-triage): a brittle test and a real defect have different causes and different owners.

    line 19
  2. Very specific:

    Depth rule: keep asking "and why did that hold?" only while each answer has evidence.

    line 44

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

  1. Reproduce first. An unreproduced symptom has no cause worth naming — say what is missing and stop (blocked).
  2. Classify before explaining (see verdict-flaky-triage): a brittle test and a real defect have different causes and different owners.
  3. Build the chain, one citation per link:

    LinkThe questionWhat settles it
    SymptomWhat was observed?The failing output, exact excerpt
    MechanismWhat sequence produces it?The values and lines that carry it: read at A:12 ← set at B:40 ← from input C
    OriginWhere did it enter?git log -S / -L, blame or bisect naming the commit
    ClassInstance 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.sites rather than filing them separately.

  4. 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).
  5. 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).
  6. 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.
  7. Stop at diagnosis. Name where the fix belongs — code, test, spec, environment or process. Writing the fix is not yours.
  8. 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).

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.