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

harness-evaluator

Skill4 starsChanged 6 months agoMITView on GitHub

Separate implementer from verifier — sprint contracts, rubrics, and independent review before accepting work. Use when the agent says done but quality is poor, or for Project 05 self-verification patterns.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 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.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Do not let the evaluator "fix while reviewing" unless verdict is Revise and a new implement pass is explicit.

    line 90

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

What this does for you

  • Independent review — the same agent that wrote the code does not grade it alone
  • Clear contract upfront — scope, verification, and exclusions agreed before coding
  • Scored verdicts — Accept / Revise / Block instead of "looks good"

Agents systematically over-rate their own work (Lesson 09). Anthropic's planner + generator + evaluator pattern shows the same model performs radically better when verification is a separate role. Process observability (Lesson 11) makes evaluation reproducible.

When to use

  • Agent declares done but behavior is wrong or untested end-to-end
  • Subjective quality ("design feels off") with no structured criteria
  • Multi-step features where implementer and reviewer should not share bias
  • Project 05: self-verification and evidence-based Q&A

Three artifacts

ArtifactPurposeWhen
Sprint contractScope + verification + exclusions before workStart of task
Evaluator rubricScore dimensions with evidenceAfter implementation
VerdictAccept / Revise / Block with required fixesEnd of review

Workflow

1. Write sprint contract (or read active feature from feature_list.json)
2. Implementer builds ONLY what the contract specifies
3. Run verification commands — capture output as evidence
4. Evaluator (readonly / separate session) scores rubric — no code changes
5. Verdict:
   Accept  → mark feature passing + record evidence
   Revise  → list required fixes, return to implementer
   Block   → document blocker, do not mark passing

Sprint contract (minimum)

# Sprint Contract: [feature name]

## Scope
- [Concrete files / behaviors in scope]

## Verification standards
- [Commands that must pass]
- [User-visible behaviors to confirm]

## Exclusions
- [Explicit out-of-scope items — prevents scope creep]

Template: templates/sprint-contract.md

Evaluator rubric

Score each dimension 0–2. Require evidence, not vibes.

CategoryQuestion
CorrectnessDoes behavior match the contract / feature?
VerificationWere required checks run with captured output?
Scope disciplineDid work stay inside the contract?
ReliabilityDoes it survive re-run / fresh session without repair?
Handoff readinessCan the next session continue from repo artifacts alone?

Template: templates/evaluator-rubric.md

Role separation patterns

Same IDE, two passes (lightweight):

  1. Session A: implement + run verification + save logs
  2. Session B (or readonly subagent): review against contract + rubric only

Three-agent pattern (capstone):

  • Planner expands requirements → contract
  • Generator implements one feature at a time
  • Evaluator runs real checks (including E2E clicks / curl / smoke)

Do not let the evaluator "fix while reviewing" unless verdict is Revise and a new implement pass is explicit.

Evidence format

{
  "evidence": [{
    "date": "2026-06-16",
    "reviewer": "evaluator-pass",
    "rubric_scores": { "correctness": 2, "verification": 2, "scope": 2 },
    "verdict": "accept",
    "commands": ["npm test", "npm run test:e2e"],
    "artifacts": [".harness/last-test-run.log"]
  }]
}

Anti-patterns

  • Implementer marks passing before evaluator runs
  • Rubric with no evidence ("seems fine")
  • Vague contract ("add auth") with no verification standards
  • Evaluator rewrites code during review without a Revise loop

Related skills

  • harness-verification — commands and evidence gates
  • harness-e2e — end-to-end checks the evaluator must run
  • harness-scope — one active feature; contract maps to feature_list entry
  • harness-observability — runtime logs for evaluator evidence

Course reference

  • Lesson 09: Why agents declare victory too early
  • Lesson 11: Observability — sprint contracts and rubrics
  • Project 05: Self-verification and role separation
  • references/course/multi-agent-pattern.md

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.