verdict
AGENTS.md34 starsChanged 3 months agoMITView on GitHub
- Claude Code: install the plugin and run /verdict:run. The verdict agent (agents/verdict.md) is the contract; the hooks in hooks/ enforce the read-only guarantee; the harness in src/verdict_mcp/ measures. - Any other coding agent: npx skills add ArtJack/verdict installs the five skills in skills/ (release risk, verify a fix, flaky triage, root cause, spec review), and pip install verdict-qa-mcp gives you the harness commands they use: verdict-facts → your judgment (one file per finding under <qa-root>/findings/, plus judgment.json) → verdict-finalize…
- Installs packages
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 35,266 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository6 other files it gives its agents.
- llms.txtllms.txt
- verdict-flaky-triageSkill
- verdict-release-riskSkill
- verdict-root-causeSkill
- verdict-spec-reviewSkill
- verdict-verify-fixSkill
The file
We split this AGENTS.md into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is 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.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 73
Money is whole cents or
Decimal,: never a float.
≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.md 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
AGENTS.md — for agents that use Verdict, and agents that work on it
If you are here to run Verdict on a repository
- Claude Code: install the plugin and run
/verdict:run. Theverdictagent (agents/verdict.md) is the contract; the hooks inhooks/enforce the read-only guarantee; the harness insrc/verdict_mcp/measures. - Any other coding agent:
npx skills add ArtJack/verdictinstalls the five skills inskills/(release risk, verify a fix, flaky triage, root cause, spec review), andpip install verdict-qa-mcpgives you the harness commands they use:verdict-facts→ your judgment (one file per finding under<qa-root>/findings/, plusjudgment.json) →verdict-finalize→verdict-gate. - Verdict reports and specifies; it never fixes. Route fixes to the implementer, then
ask for the fix to be verified (
verdict-verify-fix). - The maintainer's two pens:
verdict-accept(accept a finding's risk, with a citation) andverdict-answer(answer a question the tester parked). The tester cannot write either file. A third checks the tester:verdict-replayruns each proven finding'sreprocommand on a fresh detached checkout and writesreplays.jsonl;verdict-dupessearches the tracker for each finding and writesrelated.jsonl;verdict-checkasks a cheap model which other sites share each defect and writes leads toreviews.jsonl;verdict-backfillhas the local model draft a repro for each old proven finding that has none, runs each draft in a sandbox, and keeps the ones that reproduce (backfill.jsonl). - The cheap asked run:
verdict-run --lite, a normal asked run under a $2.50 cap with the tester told its budget; measured level with plain Claude Code at the same budget on known defects.verdict-run --escalate(the local tier reads first and the tester works its list) located fewer.
If you are here to change Verdict
- Run the tests before anything else and again before you hand off:
uv run pytest -q(or.venv/bin/python -m pytest -q). Lint:uv run --with ruff ruff check . - The doctrine, in four rules. Measured before modelled: a number the harness can
compute is never left to the model (
docs/state-schema.md). Every prompt change is eval-paid:eval/run_eval.pyagainst a control (--pair <git ref>), results published ineval/README.mdwith the misses. Every fixed harness rule is pinned as a mutant the suite must kill:eval/pinned_mutants.json, checked byeval/pin_check.py. Reports to nobody; the ledger is published instead. - What costs money:
eval/run_eval.pyandverdict-runlaunch model sessions. Do not run them without being asked. - Where things live: the contract
agents/verdict.md; the harnesssrc/verdict_mcp/harness.py(facts, finalize, report),validate.py(the state contract, also the PostToolUse hook),anchors.py(cited lines, hashed; drift),filed.py(findings as files),sandbox.py(the box every run of the project's own code goes through),questions.py(the questions ledger andverdict-answer),accept.py,replay.py(verdict-replay),dupes.py(verdict-dupes),check.py(verdict-check),backfill.py(verdict-backfill),escalate.py(--escalatepackets),readfirst.py,gate.py,runner.py(headless runs),browser.py(verdict-browseand the profile'ssite:block: a site in a real browser, GET only, no model; its parts are thebrowser_*modules andlocal_browser.py),server.py(MCP); the guardshooks/; the state schemadocs/state-schema.md; the evalseval/; the release notesCHANGELOG.md(one version line, three manifests). - A release is a tag:
release.ymlbuilds, publishes to PyPI and the MCP registry, and writes the GitHub Release from the changelog. Bumppyproject.toml,.claude-plugin/plugin.jsonandserver.jsontogether.
How we build
The maintainer's house rules for structure, the same in every repository. They live here so that every agent sees them, wherever it runs. Where this repository's own rules are stricter, those win.
- A new thing is a new file. A new flow, integration, report or model task gets its own file in its feature's folder. A new source file stays under about 400 lines.
- No source file over 2,000 lines grows, and none crosses that line. A fix of up to 10 added lines may land in place. Anything larger goes into a new file, or follows an extraction of the part you are changing.
- Refactoring is its own commit, titled
refactor: …. Nothing changes what the code does, tests change only to point at the new location, and the suite is green before and after. Code with no test gets a test of its current behaviour first. Where pull requests are squash-merged, the refactor is its own pull request. - Outside systems sit behind an interface (a
Protocolwith only the methods the caller uses), built in one wiring module. No default argument builds a real client. - One shared fake per interface, beside the real one: configurable, recording, with no business rules and no sleeps, and held to the real implementation by a contract test. New tests pass fakes in instead of patching the code's own modules by name.
- A failure never looks like "empty" or "not checked", and no error handler only logs or passes.
- Tests land with the change. A test named "clears" or "resets" asserts the dirty state first, and an expected value is never the production expression retyped.
- Money is whole cents or
Decimal, never a float. - Check before you commit:
python3 scripts/check_structure.py. It fails when a source file crosses 2,000 lines or one already over it grows by more than 10, and warns about the rest. CI runs it on every pull request and, for now, only reports.
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.

