agentleFS
solanodzsolanodz/harness-engineering-skills/skills/harness-verification/SKILL.md

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.

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
  1. Very specific:

    All passed (or known failures documented as blocked)

    line 24
  2. Very specific:

    Document all applicable levels in AGENTS.md.

    line 37
  3. Distinctive:

    Use evaluator-rubric as a guide

    line 81

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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.sh fails, 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:

  1. Documented verification commands were executed
  2. All passed (or known failures documented as blocked)
  3. Evidence recorded in feature_list.json or progress.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 flow

Document 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 features
  • harness-evaluator — independent review before marking passing
  • harness-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

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.