/harness:proof-verifyfrom Harness (обвязка)
Freezes acceptance criteria before building, then verifies implementation against the plan using an independent fresh-context agent. Supports multi-stage work with a stage ledger that seals inputs/outputs so downstream stages do not reopen them.
Ships in Harness (обвязка). Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Plan-based verification: freeze acceptance criteria BEFORE building, verify AFTER with independent agents.
PHASE 1: PLAN (before any code)
Create .proof/PLAN.md with numbered acceptance criteria
Each AC: testable, specific, has a verification command or check
Plan is FROZEN - no changes during build
PHASE 2: BUILD (normal work)
Implement against the plan
Mark progress in .proof/PROGRESS.md
Builder does NOT self-verify
PHASE 3: VERIFY (after build, independent agent)
Fresh agent reads PLAN.md (never saw the build process)
Walks through each AC, runs verification commands
Writes .proof/VERDICT.md with PASS/FAIL per criterion
If any FAIL → .proof/PROBLEMS.md with specific fixes
PHASE 4: FIX (if needed)
Builder reads PROBLEMS.md, makes minimal fixes
Back to PHASE 3 (re-verify)
Loop until all PASS
For a release, integration, migration, hardware, signer, or other multi-stage task, a green check is not enough. The next stage needs a stable input, not a summary that the previous stage once looked good.
.proof/stage-ledger.json as VERIFIED or SEALED.
A sealed stage records its source commit/tree, contract digest, named input and
output digests, fresh verdict digest, and invalidation keys.VERIFIED or BLOCKED stage.BLOCKED with the exact missing
prerequisite. Do not invalidate the sealed upstream code.SUPERSEDED successor and
re-run proof for that successor; do not overwrite the old receipt.Validate the ledger deterministically:
Resolve <proof-verify-skill-dir> to the directory containing the loaded
proof-verify SKILL.md; do not assume that a project checkout has a
skills/development/ copy:
python <proof-verify-skill-dir>/scripts/validate_stage_ledger.py \
.proof/stage-ledger.json
The ledger is not a signing ceremony for every edit. Use it only when an accepted
result crosses a real project boundary. Full format, status semantics, and examples:
references/proven-stage-contracts.md.
Create .proof/PLAN.md in the project root:
# Verification Plan
**Created:** YYYY-MM-DD HH:MM
**Task:** [one-line description]
**Builder:** [session ID or "current"]
**Status:** FROZEN
## Acceptance Criteria
### AC1: [short name]
**Description:** [what must be true]
**Verify:** [exact command or check to run]
**Expected:** [what success looks like]
### AC2: [short name]
**Description:** [what must be true]
**Verify:** [exact command or check to run]
**Expected:** [what success looks like]
### AC3: [short name]
...
## Out of Scope
- [explicitly what this plan does NOT cover]
## Constraints
- [time, resource, or technical constraints]
Rules for good ACs:
Normal implementation. The only additions:
.proof/PROGRESS.md as you work:# Build Progress
### AC1: [name]
- [x] Implemented in `src/foo.py:42`
- Files changed: `src/foo.py`, `tests/test_foo.py`
### AC2: [name]
- [x] Implemented in `src/bar.py:18`
- Files changed: `src/bar.py`
- Note: chose approach B because [reason]
.proof/EVIDENCE.md:# Evidence
### AC1: [name]
**Command:** `pytest tests/test_foo.py -v`
**Output:**
\```
tests/test_foo.py::test_returns_correct PASSED
tests/test_foo.py::test_handles_edge PASSED
\```
**Result:** PASS
### AC2: [name]
**Command:** `grep -c "TODO" src/bar.py`
**Output:** `0`
**Result:** PASS
Builder collects evidence but does NOT write the verdict. That is the verifier's job.
This is the critical phase. The verifier MUST be:
PLAN.md + access to the codebasePROGRESS.md, EVIDENCE.md, or any build contextYou are an independent verifier. Your job is to check whether
the implementation meets the acceptance criteria in .proof/PLAN.md.
Rules:
1. Read .proof/PLAN.md first. This is your ONLY specification.
2. For each AC, run the verification command yourself.
3. Do NOT read .proof/PROGRESS.md or .proof/EVIDENCE.md
(those are the builder's claims - you verify independently).
4. Write your verdict to .proof/VERDICT.md in this format:
# Verification Verdict
**Verifier:** [your session ID]
**Date:** YYYY-MM-DD HH:MM
**Plan hash:** [first 8 chars of md5 of PLAN.md]
## Results
### AC1: [name]
**Status:** PASS | FAIL
**Evidence:** [what you saw when you ran the check]
**Notes:** [any observations]
### AC2: [name]
...
## Summary
- Total: N criteria
- Passed: X
- Failed: Y
- **Overall:** PASS | FAIL
5. If any AC fails, also create .proof/PROBLEMS.md:
# Problems
### AC2: [name]
**Expected:** [from PLAN.md]
**Actual:** [what you found]
**Suggested fix:** [smallest change that would fix it]
**Affected files:** [list]
6. Do NOT fix anything. You are read-only. Report only.
Option A: Subagent (same session)
Agent({
description: "Independent verification against plan",
prompt: "[verifier prompt above]",
mode: "plan" // read-only first
})
Option B: Fresh session (stronger isolation) Write handoff with instruction: "Start by reading .proof/PLAN.md and running verification."
Option C: Multiple verifiers (highest confidence) Spawn 2-3 verifiers independently. If they disagree on any AC, that AC needs investigation.
If VERDICT.md shows any FAIL:
PROBLEMS.mdEVIDENCE.md with new evidence for failed ACsIf repeated failures stop distinguishing causal hypotheses, re-triage the affected owner and evidence. Do not weaken or rewrite an acceptance criterion merely to turn the current implementation green.
.proof/
PLAN.md # frozen acceptance criteria (Phase 1)
PROGRESS.md # builder's notes (Phase 2)
EVIDENCE.md # builder's evidence (Phase 2)
VERDICT.md # verifier's verdict (Phase 3)
PROBLEMS.md # verifier's findings (Phase 3, if failures)
stage-ledger.json # only for multi-stage work; accepted inputs and blockers
| Symptom | Cause | Fix |
|---|---|---|
| Verifier passes everything | ACs too vague | Rewrite with specific commands |
| Repeated failures no longer distinguish causal hypotheses | Current owner, evidence, or remedy is no longer discriminating | Re-triage the affected owner and evidence; preserve the frozen acceptance contract unless an explicitly authorized successor contract is required |
| Verifier disagrees with builder's evidence | Different env or stale state | Both run from clean state |
| Builder keeps editing PLAN.md | Not frozen | Hash check catches this |
| A new audit says an old stage is "missing" | It mixed an unavailable next prerequisite with already-proven scope | Check .proof/stage-ledger.json; record the external BLOCKED stage separately |
| Downstream proof cannot identify its input | The prior result was a chat claim, not a sealed receipt | Seal the prior stage with commit/tree, digests, and fresh verdict before proceeding |
references/proven-stage-contracts.md - immutable stage promotion, provenance, and local ledger contractWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub anastasiyaw/codex-claude-code-config --plugin harness60 skills in this plugin
/agent-harness-designDesigning agent harnesses and tool systems — risk taxonomy for tools, permission decisions, draft/commit pattern, structured tool results, agent budgets (10 types), context trust labels against prompt injection, plan-artifact, approval records, observability and traces, evals (13 categories), event model, streaming buffering, 3rd-party skill install checklist, agentic RAG, self-improving SOP loops, model policy, reasoning effort, and Programmatic Tool Calling adoption gates. Use when building a new Agent SDK app, custom orchestrator, MCP server, Cloudflare Worker with tool calls, agentic RAG pipeline, model router, or model-tier policy; when designing tools and permissions; when writing an agent loop; or when you need trust labels for external content. Do NOT use for improving or auditing an already-built harness (use harness-audit / harness-design instead), nor for ordinary Claude Code sessions where the harness is already given./agents-best-practicesUse when designing, auditing, refactoring, or explaining an agentic harness for any domain, especially when work must continue from a measured gap to verified completion. Covers provider-neutral loops, tools, permissions, environment adaptation, planning, durable workflow state, context, skills, observability, evals, and safety for OpenAI, Anthropic, and compatible APIs. Not for implementing an ordinary app feature or reviewing one concrete diff.Other plugins' skills for the same job