harness-verification
Skill4 starsChanged 6 months agoMITView on GitHub
No more "done" without running tests — mandatory checks before marking complete. Use when the agent declares victory too early or init.sh / verification commands need setup.
In this repository14 other files it gives its agents.
- AGENTS.mdAGENTS.md
- templates/agents.mdAGENTS.md
- harness-auditSkill
- harness-diagnoseSkill
- harness-e2eSkill
- harness-environmentSkill
- harness-evaluatorSkill
- harness-instructionsSkill
- harness-lifecycleSkill
- harness-observabilitySkill
- harness-repo-knowledgeSkill
- harness-scaffoldSkill
- harness-scopeSkill
- harness-stateSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 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.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 24
All passed (or known failures documented as blocked)
- Very specific: line 37
Document all applicable levels in AGENTS.md.
- Distinctive: line 81
Use evaluator-rubric as a guide
≈ “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
Harness Verification
What this does for you
- Done means verified — tests, lint, and smoke run before marking passing
- Evidence on record — commands and results saved in feature list or progress
- Fix the baseline first — if
init.shfails, no new feature work
Confidence ≠ correctness (Lesson 09). Only a full pipeline run counts as real evidence (Lesson 10).
Core principle
The agent cannot mark a feature as passing until:
- Documented verification commands were executed
- All passed (or known failures documented as
blocked) - Evidence recorded in
feature_list.jsonorprogress.md
Verification hierarchy
1. Unit tests → isolated logic
2. Lint / format → style and static errors
3. Type-check → type contracts
4. Integration → connected modules
5. Smoke / E2E → observable end-to-end flowDocument all applicable levels in AGENTS.md. Minimum viable path is ./init.sh.
init.sh contract
#!/usr/bin/env bash
set -euo pipefail
# 1. Install dependencies
# 2. Run baseline verification
# 3. Show startup command (do not launch by default)Rule: if init.sh fails, do not start new features. Fix the baseline first.
Commands in AGENTS.md
Explicit, copy-pasteable format:
## Verification
| Level | Command |
|-------|---------|
| Tests | `npm test` |
| Lint | `npm run lint` |
| Types | `npm run typecheck` |
| Full | `./init.sh` |
| Smoke | `npm run test:e2e` |Correction loop
Implement → Run verification → Pass?
├── Yes → Record evidence → Mark passing
└── No → Read error → Fix → Re-run (do not declare done)Role separation (Project 05)
For critical tasks, separate implementer from verifier:
- Agent A implements
- Agent B (or readonly subagent) reviews against
verification[]in feature_list - Use evaluator-rubric as a guide
Minimum evidence
{
"evidence": [{
"date": "2026-06-16",
"commands": ["npm test", "npm run lint"],
"result": "pass",
"output_summary": "42/42 tests, 0 lint errors"
}]
}Anti-patterns
- "Looks good" without running tests
- Marking passing with tests skipped
- Changing verification thresholds to force a pass
- Unit tests only when the feature is user-visible (missing smoke/e2e)
Related skills
harness-e2e— mandatory E2E for user-visible featuresharness-evaluator— independent review before marking passingharness-diagnose— when verification keeps failing
Templates
- templates/init.sh
- templates/evaluator-rubric.md
Course reference
- Lesson 09: Why agents declare victory too early
- Lesson 10: Why end-to-end testing changes outcomes
- Project 05: Self-verification and evidence-based Q&A
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.

