factory-verify
Skill2 starsChanged 4 months agoMITView on GitHub
Verify an open factory PR before human review - re-runs gates, checks the test proves the fix, checks scope and test tampering. Use when reviewing a factory PR, running the PR review routine, or asked to independently check a change.
In this repository13 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- factory-implementSkill
- factory-monitorSkill
- factory-specSkill
- factory-statusSkill
- factory-triageSkill
- factory-tuneSkill
- factory-verifySkill
- factory-implementSkill
- factory-monitorSkill
- factory-specSkill
- factory-triageSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 3 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Use this when a PR already exists and you are the check standing between it and a human.
- Very specific: line 14
Read docs/factory/CONTRACT.md, then docs/factory/CHARTER.md for the tier, load-bearing globs, and definition of done.
- Distinctive: line 16
Check out the PR branch.
- Very specific: line 17
Run the required gate level yourself.
- Distinctive: line 19
Run the checks the deterministic gates cannot make:
- Distinctive: line 22
Do not use git stash or an ad hoc destructive revert.
- Very specific: line 60
Write one unique verify run record under docs/factory/runs/.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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
Factory verify
Use this when a PR already exists and you are the check standing between it and a human.
For verification during implementation, the factory-verifier subagent is the right tool;
this skill is the PR-level version and can be driven by a GitHub-triggered routine.
Procedure
- Read
docs/factory/CONTRACT.md, thendocs/factory/CHARTER.mdfor the tier, load-bearing globs, and definition of done. - Check out the PR branch.
- Run the required gate level yourself. Do not trust the
FACTORY_GATESline in the PR body; produce your own and compare. A mismatch is the finding. - Run the checks the deterministic gates cannot make:
- Does the test fail without the implementation? Start from a clean committed branch and
run
./.factory/scripts/prove-test.sh <base-ref> --test-path <test-path> -- <focused-test-command>. Do not usegit stashor an ad hoc destructive revert. - Were pre-existing test files modified? Any change there needs an explicit, argued justification in the PR body.
- Does the diff stay inside the declared scope?
- Is
done_whenliterally true?
- Does the test fail without the implementation? Start from a clean committed branch and
run
- For anything touching a load-bearing path, or any PR where the diff looks suspiciously
clean, additionally run the
factory-criticsubagent and include its output.
Reporting
Post one PR comment. Structure it so a human reads the verdict first and the detail only if they need it.
### Factory verification
**Verdict:** accepted | accepted-with-reservations | rejected
**Human read required:** yes (<reason>) | no
<the FACTORY_GATES line, verbatim>
| Check | Result |
|---|---|
| Gates reproduce PR claim | yes / no |
| Test fails without fix | yes / no / could-not-determine |
| Pre-existing tests untouched | yes / no |
| Scope within declared files | yes / no |
| done_when literally true | yes / no |
**Must fix**
1. ...
**Critic** (load-bearing changes only)
<factory-critic output>Apply the label factory:verified or factory:rejected.
Write one unique verify run record under docs/factory/runs/; do not append to
STATE.md.
What this is for, and what it is not
This routes a human's attention. It is not an approval and it never merges.
The value is allocation: a human reads the flagged PRs closely and gives the rest a confirming glance, instead of spreading the same attention evenly over everything. That reallocation is the whole point, and it only works if the flags are trustworthy, which is why the standing bias is to reject when uncertain.
Standing bias
Reject when uncertain. A false accept is worse than no verification, because it spends a human's trust that was never earned. They will read the next one less carefully because this one said it was fine.
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.

