workflow-verify-enhanced
Skill1 starsChanged 6 months agoMITView on GitHub
After unit tests pass on a non-trivial module, use property_test on the core logic functions to find edge cases the examples missed, and mutation_test on changed files to confirm the tests actually CATCH bugs (not just run). A surviving mutant means a test gap — add a test that kills it before declaring done. Trigger on core-logic / algorithmic / parsing / numeric code, not trivial glue edits.
In this repository33 other files it gives its agents.
- skill-process-gotchasSkill
- workflow-cache-disciplineSkill
- workflow-codegraphSkill
- workflow-conductorSkill
- workflow-context-condenserSkill
- workflow-context-hygieneSkill
- workflow-criticSkill
- workflow-deadline-disciplineSkill
- workflow-deep-researchSkill
- workflow-done-definitionSkill
- workflow-edit-formatSkill
- workflow-effort-routingSkill
- workflow-escalateSkill
- workflow-execute-from-planSkill
- workflow-filesystem-offloadSkill
- workflow-learn-frameworkSkill
- workflow-long-running-processesSkill
- workflow-lspSkill
- workflow-memory-curationSkill
- workflow-plan-contractSkill
- workflow-plan-firstSkill
- workflow-planSkill
- workflow-quality-barSkill
- workflow-repomapSkill
- workflow-retrieve-before-actSkill
- workflow-spec-drivenSkill
- workflow-stuck-detect-resetSkill
- workflow-stuckSkill
- workflow-subagent-isolationSkill
- workflow-subtask-loopSkill
- workflow-task-finishSkill
- workflow-task-startSkill
- workflow-tool-selectionSkill
The file
Files
workflow-verify-enhanced
<!-- TRIGGERS WHEN: unit tests pass on non-trivial logic and you're about to declare done -->Verification accuracy (~87%) far exceeds generation accuracy (~63%), so spending model budget on STRONGER tests pays off. Two gate extensions in mcp-verify:
property_test(path)— the local model generates 3–5 Hypothesis@givenproperty tests (falsifiable invariants: round-trips, bounds, ordering, agreement with a slow reference), runs them, and returns minimal counterexamples. Hallucinated properties (those that fail to import/collect) are filtered out. PGS lifted fix rate 23.1%→53.8% over a TDD baseline (arXiv:2506.18315); Anthropic's agentic PBT found real bugs in NumPy/HuggingFace (arXiv:2510.09907).mutation_test(path, test_path)— mutmut mutates the module and runs your tests against each mutant. A surviving mutant is a test that fails to catch a real bug — a gap. Meta ACH: mutation beats coverage (arXiv:2501.12862).
How to use
- Get unit tests green first (
verify). property_testthe core logic functions — if it returns a counterexample, your function (or your understanding of its contract) is wrong; fix it.mutation_testthe changed files — for each surviving mutant, add a test that kills it, then re-run. Only declare done when no mutant survives.
Both are time-bounded and opt-in for the primary gate (ENABLE_PROPERTY_TEST=true)
because property generation adds wall time and the model can hallucinate properties —
treat a generated property's failure as a hypothesis to investigate, not a verdict.
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.

