verdict-flaky-triage
Skill2 starsChanged 3 months agoMITView on GitHub
Classify an intermittent test failure with evidence — REAL_DEFECT, STALE_EXPECTATION, BRITTLE_TEST, ENVIRONMENT or FLAKY — and decide quarantine with a mandatory expiry. Use when a test fails one run in five, when CI is "just flaky", or before anyone skips a test.
In this repository6 other files it gives its agents.
- AGENTS.mdAGENTS.md
- llms.txtllms.txt
- verdict-release-riskSkill
- verdict-root-causeSkill
- verdict-spec-reviewSkill
- verdict-verify-fixSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 18
Reproduce first: Run the exact test at least three times from a clean state and record a per-run outcome table.
≈ “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: flaky-test triage
"The test is flaky" is a conclusion, not an observation. The default drift is to assume the test is stale and rubber-stamp a regression; the job is to say what the failure means before anyone acts on it.
In Claude Code with the Verdict plugin, use /verdict:flake <test id>. This skill is
the same procedure for agents that cannot run it.
Procedure
- Reproduce first. Run the exact test at least three times from a clean state and record a per-run outcome table. The same result every run is not flaky — classify it as what it is.
- Hunt the mechanism before reaching for quarantine: clock- or time-seeded inputs,
test ordering, shared state, network, fixture races, concurrency, a cached property
read before the value it caches. A diagnosed mechanism is
BRITTLE_TEST: file the test-fix task and keep the finding inside the verdict — no quarantine. - Classify into exactly one, stating the evidence:
REAL_DEFECT— the code is wrong. File it; do not fix it.STALE_EXPECTATION— behaviour changed on purpose and the test was not updated. Needs a citation that the change was intended (commit, changelog, requirement); without one it is aREAL_DEFECT. This is the classification most likely to be wrong in your favour — hold it to the highest bar.BRITTLE_TEST— depends on an incidental detail (ordering, timing, formatting, internals). A finding in its own right.ENVIRONMENT— infra, clock, missing fixture or tool. Reportblocked, not red or green.FLAKY— passes and fails without a code change, cause not yet diagnosed.
- Quarantine is diagnosis deferred, with an expiry. A
FLAKYentry is{test_id, first_seen, fail_count, run_count, quarantined_until}in the judgment'sflaky_quarantine; one to two weeks; excluded from the verdict, never from the report. On expiry the entry is re-evaluated as an action: release it and say why, or re-quarantine with fresh run evidence and a new date. "Recommend lifting" while the entry stays is a dodge. A test skipped "temporarily" with no expiry is a graveyard entry — flag it. - Record it through the harness (
verdict-facts→ the finding file andjudgment.json→verdict-finalize; seeverdict-release-risk) and report: the classification, the run-outcome table, and exactly what the re-evaluation must check.
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.

