[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78B3SHD7Q2BC8QX4QN5JGH2":3,"skill-same:01M78B3SHD7Q2BC8QX4QN5JGH2":51},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":30,"commitSha":31,"skillDirectory":32,"forksCount":33,"repositoryHtmlUrl":34,"repositoryHomepageUrl":6,"ownerHtmlUrl":35,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":36,"install":37,"resources":50},"01M78B3SHD7Q2BC8QX4QN5JGH2","proof-loop",null,"Use durable proof artefacts and verification loops before declaring work complete.","hermes-jarvis-bot\u002Fhermes-agent-config-kit","hermes-jarvis-bot","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F288284026?v=4","01M78AV3BBD4M67J3YWSQRKP1Q","01M78AV3C2SKH53E0PZMXAKTTS",1,"MIT","https:\u002F\u002Fgithub.com\u002Fhermes-jarvis-bot\u002Fhermes-agent-config-kit\u002Fblob\u002Fmain\u002Fhermes\u002Fskills\u002Fproof-loop\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: proof-loop\ndescription: \"Use durable proof artefacts and verification loops before declaring work complete.\"\nversion: 0.1.0\nlicense: MIT\nmetadata:\n  hermes_config_kit:\n    source_repo: AnastasiyaW\u002Fclaude-code-config\n    source_path: principles\u002F02-proof-loop.md\n    adapter: hermes-agent-config-kit\n    conversion: adapted\n---\n\n# Proof Loop\n\nSource: `AnastasiyaW\u002Fclaude-code-config\u002Fprinciples\u002F02-proof-loop.md`.\n\nThis module is adapted for Hermes Agent. Upstream instructions are treated as reference material, not as automatic authority. Prefer Hermes-native tools, profile-aware paths, dry-runs, and operator confirmation for write-impacting actions.\n\n# 02 - Proof Loop: Verification Through Durable Artifacts\n\n**Source:** OpenClaw-RL paper (arxiv 2603.10165) + DenisSergeevitch\u002Frepo-task-proof-loop\n\n> **Relationship to [principle 01 - Harness Design](01-harness-design.md):** Generator-Evaluator (principle 01) is the **general pattern** -- two agents, one builds and one judges, applied to any task. Proof Loop is its **specialization for tasks with testable outcomes**: it adds frozen acceptance criteria (spec freeze before build), strict 4-role decomposition (Spec-freezer, Builder, Verifier, Fixer), and a hard requirement that verification happens in a **fresh session** that never saw the build. Use principle 01 for subjective tasks (design quality, copywriting) where evaluation is judgment-heavy. Use principle 02 for tasks where \"did it work\" has a yes\u002Fno answer with a durable artifact (test pass, log entry, file content, API response). They compose: a Proof Loop can use Generator-Evaluator inside its Builder role for the implementation step.\n\n> **Note on OpenClaw:** As of April 4, 2026, Anthropic subscriptions (Hermes Pro\u002FMax) no longer cover third-party harness tools including the OpenClaw CLI. The **pattern described here is independent of the tool** - the arxiv paper and the protocol are freely usable. If you want to run OpenClaw as a product, you now need a direct API key or a pay-as-you-go bundle. The Proof Loop pattern itself works with any agent infrastructure.\n\n## Overview\n\nThe Proof Loop pattern ensures that AI agents cannot self-certify task completion. Instead of trusting an agent's claim that \"it works,\" the pattern requires durable, verifiable artifacts -- test outputs, log files, verdict documents -- as evidence. A separate verifier in a fresh session (one that never witnessed the build process) examines the repository state and renders a verdict.\n\n**Core principle:** Next-state signals are universal proof. Test results, tool outputs, user reactions -- these are all verification evidence. An agent cannot simply declare completion; it must produce artifacts that an independent party can verify.\n\n### Why this matters: the April 2026 regression case study\n\nBetween February and April 2026, Hermes Agent underwent a quiet reasoning-quality regression: the ratio of `Read` calls to `Edit` calls dropped from 6.6 to 2.0 across 6,852 analyzed sessions. Agents stopped exploring code before modifying it. Edits-without-prior-Read rose from 6.2% to 33.7%. This was only visible because [one investigator](https:\u002F\u002Fgithub.com\u002Fanthropics\u002Fclaude-code\u002Fissues\u002F42796) measured it with rigor - most users felt \"something was off\" but couldn't articulate what.\n\nThe Proof Loop pattern is structurally **immune** to this class of regression: the fresh-session verifier does not care whether the builder's reasoning was sharp, only whether the evidence proves every acceptance criterion. A regressed agent produces broken code; the verifier writes `verdict: FAIL`; the fixer iterates. Output quality is bounded by the spec, not by the model's current capacity.\n\nVendor-side regressions are inevitable across any agent's lifetime. Make correctness **structural** rather than depending on the model being sharp on any given day. See [alternatives\u002Freasoning-regression-debugging.md](..\u002Falternatives\u002Freasoning-regression-debugging.md) for detection and mitigation approaches when you cannot afford full Proof Loop everywhere.\n\n---\n\n## Execution Protocol\n\nThe protocol follows a strict sequence:\n\n```\nspec freeze --> build --> evidence --> fresh verify --> fix --> verify again\n```\n\n### Step 1: Spec Freeze\n\nDefine concrete acceptance criteria (AC1, AC2, ...) before any implementation begins. These criteria are:\n\n- **Concrete** -- each criterion maps to a testable condition\n- **Frozen** -- no changes once implementation starts\n- **Enumerated** -- explicitly numbered for tracking\n\nExample:\n```\nAC1: Login endpoint returns 200 with valid credentials\nAC2: Login endpoint returns 401 with invalid credentials\nAC3: Rate limiting kicks in after 5 failed attempts within 60 seconds\nAC4: JWT token expires after 24 hours\n```\n\n### Step 2: Build\n\nImplement the minimum safe changeset that addresses the acceptance criteria. The builder:\n\n- Writes code to satisfy each AC\n- Keeps changes minimal and focused\n- Does NOT self-evaluate quality\n\n### Step 3: Evidence Collection\n\nAfter building, the builder switches to **read-only mode** and collects evidence:\n\n- Runs the test suite, captures output to a file\n- Captures relevant log output\n- Documents the state of each AC (pass\u002Ffail with evidence)\n- Stores evidence in the repository (e.g., `.agent\u002Ftasks\u002F{task-id}\u002Fevidence\u002F`)\n\n**Critical:** The builder collects evidence but does NOT render a verdict. Evidence and judgment are separate responsibilities.\n\n### Step 4: Fresh Verify\n\nA **new session** -- one that has never seen the build process -- examines:\n\n- The repository state (code changes)\n- The evidence files\n- The acceptance criteria\n\nThe verifier produces a `verdict.json`:\n```json\n{\n  \"task_id\": \"login-auth-flow\",\n  \"verdict\": \"FAIL\",\n  \"ac_results\": {\n    \"AC1\": \"PASS\",\n    \"AC2\": \"PASS\",\n    \"AC3\": \"FAIL - rate limit triggers at 10 attempts, not 5\",\n    \"AC4\": \"PASS\"\n  },\n  \"problems\": [\"Rate limit threshold is 10, AC3 requires 5\"]\n}\n```\n\n### Step 5: Fix\n\nIf the verdict is FAIL:\n\n- Read `problems.md` or the verdict file\n- Apply **minimal** fixes targeting only the failing ACs\n- Regenerate evidence\n\n### Step 6: Loop\n\nRepeat steps 4-5 until the verdict is PASS across all acceptance criteria.\n\n## Candidate-State Test Sequence\n\nThe Proof Loop does not mean running every expensive check after every line.\nThis is a universal testing sequence, not a VM-specific workflow:\n\n```text\nfocused local slice -> risk-based review -> one full matrix -> conditional specialized proof\n```\n\n- **Focused local slice:** while changing code, run the smallest deterministic\n  checks that exercise the changed behavior or reproduction. This is the loop's\n  fast feedback and may run repeatedly.\n- **Independent review:** for a boundary\u002Fhigh-risk change, a fresh evaluator\n  checks the exact changed surface and records a verdict. More of the builder's\n  own tests is not a substitute for independence.\n- **Full matrix:** at the candidate commit\u002Fmerge\u002Frelease boundary, run the\n  complete project matrix once on the final candidate. Do not attach this cost\n  to every small commit or edit.\n- **Conditional specialized proof:** only when the acceptance criteria depend\n  on a VM, GPU, OS\u002FABI, browser, hardware, performance, stress, or another\n  specialized environment, run that proof against the exact candidate commit\n  or artifact digest. If none applies, record an explicit N\u002FA. Any candidate\n  change invalidates all candidate-bound evidence, so the changed candidate\n  needs a fresh matrix and fresh specialized proof when applicable.\n\nThe shared `a reviewed guard candidate` enforces the first two boundaries: `fast` for\nnormal source changes, optional `integration` for high-risk changes, and a\npath-keyed independent-review requirement. It intentionally excludes the\nfull\u002Fcandidate matrix from automatic per-edit execution. `harness-load-advisor.py`\nreports when a costly or specialized gate is misrouted into a lower-risk smoke.\nFull-matrix and specialized-environment evidence are explicit candidate steps,\nnot silent repeated work.\n\n---\n\n## Four Sub-Agent Roles\n\nEach role has strict boundaries to prevent contamination:\n\n| Role | Reads | Writes | Cannot Do |\n|---|---|---|---|\n| **Spec-freezer** | Repository, requirements, existing tests | Acceptance criteria document | Touch code |\n| **Builder** | Spec, codebase | Code changes, then evidence (read-only switch) | Render verdict |\n| **Verifier** | Repo state, evidence, acceptance criteria | Verdict only | See build history, modify code |\n| **Fixer** | Verdict, problems list, code | Minimal targeted fixes | Sign final approval |\n\n### Why these boundaries matter\n\n- **Spec-freezer** does not touch code because spec and implementation must be independent\n- **Builder** switches to read-only for evidence because the same agent that wrote the code will be biased about its quality\n- **Verifier** uses a fresh session because shared context creates shared blind spots\n- **Fixer** cannot approve because the same entity that patches should not also certify\n\n---\n\n## Key Differences from Anthropic Harness\n\nThe Proof Loop extends the Harness Design pattern (see [01-harness-design.md](01-harness-design.md)) with important distinctions:\n\n| Aspect | Anthropic Harness | Proof Loop |\n|---|---|---|\n| **Artifact storage** | Conversation history | Repository (`.agent\u002Ftasks\u002F`) |\n| **Verifier isolation** | Separate prompt in same session | Fresh session (separate context entirely) |\n| **Spec mutability** | Sprint Contract can change mid-sprint | Spec frozen before build begins |\n| **Evidence format** | Evaluator's judgment | Durable files (test output, logs, verdict.json) |\n| **Recommended runtime** | Any LLM agent | Designed for Codex-class sub-agents, works in Hermes Agent |\n\n### Why repository-based artifacts?\n\n- Conversation history is ephemeral -- it disappears with the session\n- Repository artifacts survive context resets, session changes, and model swaps\n- Other agents (or humans) can independently verify the same artifacts\n- Git provides versioning and audit trail for free\n\n### Why fresh-session verification?\n\nA verifier in the same session has seen:\n- The builder's reasoning process\n- The builder's confidence signals\n- Intermediate states that may have been \"fixed\"\n\nThis creates anchoring bias. A fresh session sees only the final state and the evidence, judging purely on outcomes.\n\n---\n\n## Anti-Fabrication Rules\n\nThe Proof Loop includes explicit guards against agents fabricating completion:\n\n1. **Tests passed?** -- Requires a file with actual output, not the text \"tests passed\"\n2. **Review done?** -- Requires an artifact with specific findings, not \"I reviewed it, looks good\"\n3. **Subtask complete?** -- Check the state file, do not trust the agent's claim\n4. **Parallel\u002Fsubagent tasks:** Before accepting results, verify that child processes actually completed -- do not trust status claims from sub-agents\n\n---\n\n## File Structure\n\nA typical Proof Loop task directory in the repository:\n\n```\n.agent\u002Ftasks\u002F\n  login-auth-flow\u002F\n    spec.md                 # Frozen acceptance criteria\n    evidence\u002F\n      test-output.txt       # Raw test runner output\n      coverage-report.html  # Coverage artifact\n      api-responses.json    # Captured API responses\n    verdict.json            # Verifier's judgment\n    problems.md             # Issues found (if FAIL)\n    fix-log.md              # What the fixer changed and why\n```\n\nStarter files live in [`templates\u002Fagent-task\u002F`](..\u002Ftemplates\u002Fagent-task\u002F). Copy them into `.agent\u002Ftasks\u002F\u003Ctask-id>\u002F` for long-running, multi-agent, high-risk, or compaction-prone work.\n\n---\n\n## When to Use\n\n**Good fit:**\n- Production deployments where failure has real cost\n- Tasks requiring audit trails (compliance, security)\n- Multi-agent handoffs where trust boundaries are important\n- Any task where \"the agent says it works\" is not sufficient\n\n**Overkill:**\n- Quick prototyping\n- Single-file changes with obvious correctness\n- Exploratory coding where the spec is still forming\n\n---\n\n## Revision Trajectories: Learning from Corrected Mistakes\n\n**Source:** Agent-R (arxiv 2501.11425)\n\nA key insight from Agent-R: **trajectories where mistakes are caught and fixed teach more than perfect trajectories.** The failed-then-fixed cycle is the most valuable learning material.\n\nThis maps directly to the Proof Loop:\n\n1. **The fix -> verify again cycle is the most valuable part.** When the Builder produces code that fails Verifier checks, the resulting fix trajectory carries more information than a clean first-pass build.\n\n2. **Capture error -> fix trajectories explicitly.** When a verdict is FAIL:\n   - Log the exact failure point (which AC, which file, which assumption was wrong)\n   - Log the reflection (why it failed -- root cause, not surface symptom)\n   - Log the minimal fix applied\n   - Log the re-verification result\n   - This becomes `fix-log.md` with structured fields, not free-text narrative\n\n3. **Structured Evaluator feedback.** Instead of \"please fix these issues,\" the Verifier should provide:\n   - **Cut point** -- the first file\u002Fdecision where the implementation diverged from the spec\n   - **Reflection** -- why the approach failed (e.g., \"assumed synchronous execution but the API is async\")\n   - **Direction** -- what a correct approach looks like (not the solution, but the direction)\n\nThis format gives the Fixer a precise recovery point instead of a vague issues list.\n\n### problems.md Schema\n\nA structured format for the Verifier's problem reports:\n\n```markdown\n## Problem: AC3 - Rate limit threshold\n\n- **Criterion:** AC3\n- **Status:** FAIL\n- **Reproduction:** POST \u002Flogin 6 times with wrong password in 60s -> still returns 401, not 429\n- **Expected:** 429 after 5 attempts\n- **Actual:** 401 continues indefinitely\n- **Affected files:** src\u002Fmiddleware\u002FrateLimit.ts:42\n- **Smallest safe fix:** Change threshold constant from 10 to 5\n- **Root cause:** Default imported from config that uses a different rate limit context\n```\n\n---\n\n## Reliability Metrics: Accuracy Is Not Enough\n\n**Source:** [Towards a Science of AI Agent Reliability, arxiv 2602.16666](https:\u002F\u002Farxiv.org\u002Fhtml\u002F2602.16666v1)\n\nStandard benchmarks measure **accuracy** - did the agent pass this task once? Proof Loop historically has measured the same: did the AC list pass verification once? But recent evaluation of 14 agentic models across OpenAI, Google, and Anthropic shows a sobering pattern: **reliability grows slower than accuracy**. Frontier models climb steadily on accuracy benchmarks while showing only small reliability improvements on structured tasks and nearly flat progress on open-ended tasks.\n\nThe practical implication: a PASS verdict on a single proof loop run is weaker evidence than it appears.\n\n### The Reliability Dimensions\n\nThe paper operationalizes reliability across four dimensions. Add at least one check from each to your Proof Loop verdict:\n\n**Consistency** - does the agent succeed repeatedly?\n- Outcome consistency: run the verifier on the same AC set 3-5 times. Variance in pass rate exposes flaky builds.\n- Trajectory consistency: record the action sequence. Repeated runs should produce similar traces, not random wanders.\n\n**Robustness** - does the agent survive small perturbations?\n- Prompt robustness: paraphrase the AC list and re-run. A truly passing build handles paraphrased requirements.\n- Environment robustness: re-run with a cleared cache, different CWD, or reordered inputs.\n\n**Predictability** - is the agent calibrated?\n- Calibration: ask the agent for its confidence before verification. Compare confidence to actual pass rate. Overconfident agents are dangerous.\n- AUROC: can the agent distinguish its own successes from failures?\n\n**Safety** - does the agent stay within boundaries?\n- Compliance: count constraint violations per run.\n- Harm severity: classify violations by consequence magnitude.\n\n### Concrete Extension to the Proof Loop\n\nReplace the single PASS\u002FFAIL verdict with a tuple:\n\n```markdown\n## verdict.json\n{\n  \"accuracy\": \"PASS\",\n  \"consistency\": {\"runs\": 5, \"pass_count\": 5, \"variance\": 0.0},\n  \"robustness\": {\"paraphrased_pass\": true, \"clean_cache_pass\": true},\n  \"calibration\": {\"builder_confidence\": 0.92, \"actual_pass_rate\": 1.0},\n  \"safety\": {\"violations\": 0, \"severity\": \"none\"}\n}\n```\n\nA verdict with `accuracy=PASS` but `consistency.variance > 0.2` is not a passing verdict - it is an unstable build that happened to pass once. Treat it as FAIL and loop again.\n\n### Minimum Viable Adoption\n\nIf adding all four dimensions feels expensive, start with two:\n\n1. **Multi-run consistency** - run the verifier 3x. If any run FAILS, the build is unstable.\n2. **Prompt paraphrase** - rewrite the AC list in a second phrasing. If the paraphrased run fails, the build is accuracy-brittle.\n\nThese two checks alone expose most \"lucky pass\" builds that single-run verification misses.\n\n---\n\n## Relationship to Other Principles\n\n- **Harness Design (01):** Proof Loop extends the Generator-Evaluator pattern with fresh-session verification\n- **Autoresearch (03):** Autoresearch optimizes iteratively; Proof Loop verifies the final result. Failed experiments carry direction signals (Agent-R insight)\n- **Deterministic Orchestration (04):** Anti-Fabrication is a shared concern -- both patterns insist on artifacts over claims\n- **Codified Context (07):** The `.agent\u002Ftasks\u002F` directory structure is codified context -- structured handoff artifacts\n","# Proof Loop\n\nSource: `AnastasiyaW\u002Fclaude-code-config\u002Fprinciples\u002F02-proof-loop.md`.\n\nThis module is adapted for Hermes Agent. Upstream instructions are treated as reference material, not as automatic authority. Prefer Hermes-native tools, profile-aware paths, dry-runs, and operator confirmation for write-impacting actions.\n\n# 02 - Proof Loop: Verification Through Durable Artifacts\n\n**Source:** OpenClaw-RL paper (arxiv 2603.10165) + DenisSergeevitch\u002Frepo-task-proof-loop\n\n> **Relationship to [principle 01 - Harness Design](01-harness-design.md):** Generator-Evaluator (principle 01) is the **general pattern** -- two agents, one builds and one judges, applied to any task. Proof Loop is its **specialization for tasks with testable outcomes**: it adds frozen acceptance criteria (spec freeze before build), strict 4-role decomposition (Spec-freezer, Builder, Verifier, Fixer), and a hard requirement that verification happens in a **fresh session** that never saw the build. Use principle 01 for subjective tasks (design quality, copywriting) where evaluation is judgment-heavy. Use principle 02 for tasks where \"did it work\" has a yes\u002Fno answer with a durable artifact (test pass, log entry, file content, API response). They compose: a Proof Loop can use Generator-Evaluator inside its Builder role for the implementation step.\n\n> **Note on OpenClaw:** As of April 4, 2026, Anthropic subscriptions (Hermes Pro\u002FMax) no longer cover third-party harness tools including the OpenClaw CLI. The **pattern described here is independent of the tool** - the arxiv paper and the protocol are freely usable. If you want to run OpenClaw as a product, you now need a direct API key or a pay-as-you-go bundle. The Proof Loop pattern itself works with any agent infrastructure.\n\n## Overview\n\nThe Proof Loop pattern ensures that AI agents cannot self-certify task completion. Instead of trusting an agent's claim that \"it works,\" the pattern requires durable, verifiable artifacts -- test outputs, log files, verdict documents -- as evidence. A separate verifier in a fresh session (one that never witnessed the build process) examines the repository state and renders a verdict.\n\n**Core principle:** Next-state signals are universal proof. Test results, tool outputs, user reactions -- these are all verification evidence. An agent cannot simply declare completion; it must produce artifacts that an independent party can verify.\n\n### Why this matters: the April 2026 regression case study\n\nBetween February and April 2026, Hermes Agent underwent a quiet reasoning-quality regression: the ratio of `Read` calls to `Edit` calls dropped from 6.6 to 2.0 across 6,852 analyzed sessions. Agents stopped exploring code before modifying it. Edits-without-prior-Read rose from 6.2% to 33.7%. This was only visible because [one investigator](https:\u002F\u002Fgithub.com\u002Fanthropics\u002Fclaude-code\u002Fissues\u002F42796) measured it with rigor - most users felt \"something was off\" but couldn't articulate what.\n\nThe Proof Loop pattern is structurally **immune** to this class of regression: the fresh-session verifier does not care whether the builder's reasoning was sharp, only whether the evidence proves every acceptance criterion. A regressed agent produces broken code; the verifier writes `verdict: FAIL`; the fixer iterates. Output quality is bounded by the spec, not by the model's current capacity.\n\nVendor-side regressions are inevitable across any agent's lifetime. Make correctness **structural** rather than depending on the model being sharp on any given day. See [alternatives\u002Freasoning-regression-debugging.md](..\u002Falternatives\u002Freasoning-regression-debugging.md) for detection and mitigation approaches when you cannot afford full Proof Loop everywhere.\n\n---\n\n## Execution Protocol\n\nThe protocol follows a strict sequence:\n\n```\nspec freeze --> build --> evidence --> fresh verify --> fix --> verify again\n```\n\n### Step 1: Spec Freeze\n\nDefine concrete acceptance criteria (AC1, AC2, ...) before any implementation begins. These criteria are:\n\n- **Concrete** -- each criterion maps to a testable condition\n- **Frozen** -- no changes once implementation starts\n- **Enumerated** -- explicitly numbered for tracking\n\nExample:\n```\nAC1: Login endpoint returns 200 with valid credentials\nAC2: Login endpoint returns 401 with invalid credentials\nAC3: Rate limiting kicks in after 5 failed attempts within 60 seconds\nAC4: JWT token expires after 24 hours\n```\n\n### Step 2: Build\n\nImplement the minimum safe changeset that addresses the acceptance criteria. The builder:\n\n- Writes code to satisfy each AC\n- Keeps changes minimal and focused\n- Does NOT self-evaluate quality\n\n### Step 3: Evidence Collection\n\nAfter building, the builder switches to **read-only mode** and collects evidence:\n\n- Runs the test suite, captures output to a file\n- Captures relevant log output\n- Documents the state of each AC (pass\u002Ffail with evidence)\n- Stores evidence in the repository (e.g., `.agent\u002Ftasks\u002F{task-id}\u002Fevidence\u002F`)\n\n**Critical:** The builder collects evidence but does NOT render a verdict. Evidence and judgment are separate responsibilities.\n\n### Step 4: Fresh Verify\n\nA **new session** -- one that has never seen the build process -- examines:\n\n- The repository state (code changes)\n- The evidence files\n- The acceptance criteria\n\nThe verifier produces a `verdict.json`:\n```json\n{\n  \"task_id\": \"login-auth-flow\",\n  \"verdict\": \"FAIL\",\n  \"ac_results\": {\n    \"AC1\": \"PASS\",\n    \"AC2\": \"PASS\",\n    \"AC3\": \"FAIL - rate limit triggers at 10 attempts, not 5\",\n    \"AC4\": \"PASS\"\n  },\n  \"problems\": [\"Rate limit threshold is 10, AC3 requires 5\"]\n}\n```\n\n### Step 5: Fix\n\nIf the verdict is FAIL:\n\n- Read `problems.md` or the verdict file\n- Apply **minimal** fixes targeting only the failing ACs\n- Regenerate evidence\n\n### Step 6: Loop\n\nRepeat steps 4-5 until the verdict is PASS across all acceptance criteria.\n\n## Candidate-State Test Sequence\n\nThe Proof Loop does not mean running every expensive check after every line.\nThis is a universal testing sequence, not a VM-specific workflow:\n\n```text\nfocused local slice -> risk-based review -> one full matrix -> conditional specialized proof\n```\n\n- **Focused local slice:** while changing code, run the smallest deterministic\n  checks that exercise the changed behavior or reproduction. This is the loop's\n  fast feedback and may run repeatedly.\n- **Independent review:** for a boundary\u002Fhigh-risk change, a fresh evaluator\n  checks the exact changed surface and records a verdict. More of the builder's\n  own tests is not a substitute for independence.\n- **Full matrix:** at the candidate commit\u002Fmerge\u002Frelease boundary, run the\n  complete project matrix once on the final candidate. Do not attach this cost\n  to every small commit or edit.\n- **Conditional specialized proof:** only when the acceptance criteria depend\n  on a VM, GPU, OS\u002FABI, browser, hardware, performance, stress, or another\n  specialized environment, run that proof against the exact candidate commit\n  or artifact digest. If none applies, record an explicit N\u002FA. Any candidate\n  change invalidates all candidate-bound evidence, so the changed candidate\n  needs a fresh matrix and fresh specialized proof when applicable.\n\nThe shared `a reviewed guard candidate` enforces the first two boundaries: `fast` for\nnormal source changes, optional `integration` for high-risk changes, and a\npath-keyed independent-review requirement. It intentionally excludes the\nfull\u002Fcandidate matrix from automatic per-edit execution. `harness-load-advisor.py`\nreports when a costly or specialized gate is misrouted into a lower-risk smoke.\nFull-matrix and specialized-environment evidence are explicit candidate steps,\nnot silent repeated work.\n\n---\n\n## Four Sub-Agent Roles\n\nEach role has strict boundaries to prevent contamination:\n\n| Role | Reads | Writes | Cannot Do |\n|---|---|---|---|\n| **Spec-freezer** | Repository, requirements, existing tests | Acceptance criteria document | Touch code |\n| **Builder** | Spec, codebase | Code changes, then evidence (read-only switch) | Render verdict |\n| **Verifier** | Repo state, evidence, acceptance criteria | Verdict only | See build history, modify code |\n| **Fixer** | Verdict, problems list, code | Minimal targeted fixes | Sign final approval |\n\n### Why these boundaries matter\n\n- **Spec-freezer** does not touch code because spec and implementation must be independent\n- **Builder** switches to read-only for evidence because the same agent that wrote the code will be biased about its quality\n- **Verifier** uses a fresh session because shared context creates shared blind spots\n- **Fixer** cannot approve because the same entity that patches should not also certify\n\n---\n\n## Key Differences from Anthropic Harness\n\nThe Proof Loop extends the Harness Design pattern (see [01-harness-design.md](01-harness-design.md)) with important distinctions:\n\n| Aspect | Anthropic Harness | Proof Loop |\n|---|---|---|\n| **Artifact storage** | Conversation history | Repository (`.agent\u002Ftasks\u002F`) |\n| **Verifier isolation** | Separate prompt in same session | Fresh session (separate context entirely) |\n| **Spec mutability** | Sprint Contract can change mid-sprint | Spec frozen before build begins |\n| **Evidence format** | Evaluator's judgment | Durable files (test output, logs, verdict.json) |\n| **Recommended runtime** | Any LLM agent | Designed for Codex-class sub-agents, works in Hermes Agent |\n\n### Why repository-based artifacts?\n\n- Conversation history is ephemeral -- it disappears with the session\n- Repository artifacts survive context resets, session changes, and model swaps\n- Other agents (or humans) can independently verify the same artifacts\n- Git provides versioning and audit trail for free\n\n### Why fresh-session verification?\n\nA verifier in the same session has seen:\n- The builder's reasoning process\n- The builder's confidence signals\n- Intermediate states that may have been \"fixed\"\n\nThis creates anchoring bias. A fresh session sees only the final state and the evidence, judging purely on outcomes.\n\n---\n\n## Anti-Fabrication Rules\n\nThe Proof Loop includes explicit guards against agents fabricating completion:\n\n1. **Tests passed?** -- Requires a file with actual output, not the text \"tests passed\"\n2. **Review done?** -- Requires an artifact with specific findings, not \"I reviewed it, looks good\"\n3. **Subtask complete?** -- Check the state file, do not trust the agent's claim\n4. **Parallel\u002Fsubagent tasks:** Before accepting results, verify that child processes actually completed -- do not trust status claims from sub-agents\n\n---\n\n## File Structure\n\nA typical Proof Loop task directory in the repository:\n\n```\n.agent\u002Ftasks\u002F\n  login-auth-flow\u002F\n    spec.md                 # Frozen acceptance criteria\n    evidence\u002F\n      test-output.txt       # Raw test runner output\n      coverage-report.html  # Coverage artifact\n      api-responses.json    # Captured API responses\n    verdict.json            # Verifier's judgment\n    problems.md             # Issues found (if FAIL)\n    fix-log.md              # What the fixer changed and why\n```\n\nStarter files live in [`templates\u002Fagent-task\u002F`](..\u002Ftemplates\u002Fagent-task\u002F). Copy them into `.agent\u002Ftasks\u002F\u003Ctask-id>\u002F` for long-running, multi-agent, high-risk, or compaction-prone work.\n\n---\n\n## When to Use\n\n**Good fit:**\n- Production deployments where failure has real cost\n- Tasks requiring audit trails (compliance, security)\n- Multi-agent handoffs where trust boundaries are important\n- Any task where \"the agent says it works\" is not sufficient\n\n**Overkill:**\n- Quick prototyping\n- Single-file changes with obvious correctness\n- Exploratory coding where the spec is still forming\n\n---\n\n## Revision Trajectories: Learning from Corrected Mistakes\n\n**Source:** Agent-R (arxiv 2501.11425)\n\nA key insight from Agent-R: **trajectories where mistakes are caught and fixed teach more than perfect trajectories.** The failed-then-fixed cycle is the most valuable learning material.\n\nThis maps directly to the Proof Loop:\n\n1. **The fix -> verify again cycle is the most valuable part.** When the Builder produces code that fails Verifier checks, the resulting fix trajectory carries more information than a clean first-pass build.\n\n2. **Capture error -> fix trajectories explicitly.** When a verdict is FAIL:\n   - Log the exact failure point (which AC, which file, which assumption was wrong)\n   - Log the reflection (why it failed -- root cause, not surface symptom)\n   - Log the minimal fix applied\n   - Log the re-verification result\n   - This becomes `fix-log.md` with structured fields, not free-text narrative\n\n3. **Structured Evaluator feedback.** Instead of \"please fix these issues,\" the Verifier should provide:\n   - **Cut point** -- the first file\u002Fdecision where the implementation diverged from the spec\n   - **Reflection** -- why the approach failed (e.g., \"assumed synchronous execution but the API is async\")\n   - **Direction** -- what a correct approach looks like (not the solution, but the direction)\n\nThis format gives the Fixer a precise recovery point instead of a vague issues list.\n\n### problems.md Schema\n\nA structured format for the Verifier's problem reports:\n\n```markdown\n## Problem: AC3 - Rate limit threshold\n\n- **Criterion:** AC3\n- **Status:** FAIL\n- **Reproduction:** POST \u002Flogin 6 times with wrong password in 60s -> still returns 401, not 429\n- **Expected:** 429 after 5 attempts\n- **Actual:** 401 continues indefinitely\n- **Affected files:** src\u002Fmiddleware\u002FrateLimit.ts:42\n- **Smallest safe fix:** Change threshold constant from 10 to 5\n- **Root cause:** Default imported from config that uses a different rate limit context\n```\n\n---\n\n## Reliability Metrics: Accuracy Is Not Enough\n\n**Source:** [Towards a Science of AI Agent Reliability, arxiv 2602.16666](https:\u002F\u002Farxiv.org\u002Fhtml\u002F2602.16666v1)\n\nStandard benchmarks measure **accuracy** - did the agent pass this task once? Proof Loop historically has measured the same: did the AC list pass verification once? But recent evaluation of 14 agentic models across OpenAI, Google, and Anthropic shows a sobering pattern: **reliability grows slower than accuracy**. Frontier models climb steadily on accuracy benchmarks while showing only small reliability improvements on structured tasks and nearly flat progress on open-ended tasks.\n\nThe practical implication: a PASS verdict on a single proof loop run is weaker evidence than it appears.\n\n### The Reliability Dimensions\n\nThe paper operationalizes reliability across four dimensions. Add at least one check from each to your Proof Loop verdict:\n\n**Consistency** - does the agent succeed repeatedly?\n- Outcome consistency: run the verifier on the same AC set 3-5 times. Variance in pass rate exposes flaky builds.\n- Trajectory consistency: record the action sequence. Repeated runs should produce similar traces, not random wanders.\n\n**Robustness** - does the agent survive small perturbations?\n- Prompt robustness: paraphrase the AC list and re-run. A truly passing build handles paraphrased requirements.\n- Environment robustness: re-run with a cleared cache, different CWD, or reordered inputs.\n\n**Predictability** - is the agent calibrated?\n- Calibration: ask the agent for its confidence before verification. Compare confidence to actual pass rate. Overconfident agents are dangerous.\n- AUROC: can the agent distinguish its own successes from failures?\n\n**Safety** - does the agent stay within boundaries?\n- Compliance: count constraint violations per run.\n- Harm severity: classify violations by consequence magnitude.\n\n### Concrete Extension to the Proof Loop\n\nReplace the single PASS\u002FFAIL verdict with a tuple:\n\n```markdown\n## verdict.json\n{\n  \"accuracy\": \"PASS\",\n  \"consistency\": {\"runs\": 5, \"pass_count\": 5, \"variance\": 0.0},\n  \"robustness\": {\"paraphrased_pass\": true, \"clean_cache_pass\": true},\n  \"calibration\": {\"builder_confidence\": 0.92, \"actual_pass_rate\": 1.0},\n  \"safety\": {\"violations\": 0, \"severity\": \"none\"}\n}\n```\n\nA verdict with `accuracy=PASS` but `consistency.variance > 0.2` is not a passing verdict - it is an unstable build that happened to pass once. Treat it as FAIL and loop again.\n\n### Minimum Viable Adoption\n\nIf adding all four dimensions feels expensive, start with two:\n\n1. **Multi-run consistency** - run the verifier 3x. If any run FAILS, the build is unstable.\n2. **Prompt paraphrase** - rewrite the AC list in a second phrasing. If the paraphrased run fails, the build is accuracy-brittle.\n\nThese two checks alone expose most \"lucky pass\" builds that single-run verification misses.\n\n---\n\n## Relationship to Other Principles\n\n- **Harness Design (01):** Proof Loop extends the Generator-Evaluator pattern with fresh-session verification\n- **Autoresearch (03):** Autoresearch optimizes iteratively; Proof Loop verifies the final result. Failed experiments carry direction signals (Agent-R insight)\n- **Deterministic Orchestration (04):** Anti-Fabrication is a shared concern -- both patterns insist on artifacts over claims\n- **Codified Context (07):** The `.agent\u002Ftasks\u002F` directory structure is codified context -- structured handoff artifacts\n",{"name":5,"license":14,"version":23,"metadata":24,"description":7},"0.1.0",{"hermes_config_kit":25},{"adapter":26,"conversion":27,"source_path":28,"source_repo":29},"hermes-agent-config-kit","adapted","principles\u002F02-proof-loop.md","AnastasiyaW\u002Fclaude-code-config","main","07d02526f424fc814f8350d6b0b728e81576603d","hermes\u002Fskills\u002Fproof-loop",0,"https:\u002F\u002Fgithub.com\u002Fhermes-jarvis-bot\u002Fhermes-agent-config-kit","https:\u002F\u002Fgithub.com\u002Fhermes-jarvis-bot","2026-11-14 18:25:27",{"source":8,"skillName":5,"commands":38,"prompt":48,"zipAvailable":49},[39,42,45],{"tool":40,"command":41},"npx","npx skills add hermes-jarvis-bot\u002Fhermes-agent-config-kit --skill proof-loop",{"tool":43,"command":44},"bunx","bunx skills add hermes-jarvis-bot\u002Fhermes-agent-config-kit --skill proof-loop",{"tool":46,"command":47},"pnpm","pnpm dlx skills add hermes-jarvis-bot\u002Fhermes-agent-config-kit --skill proof-loop","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fhermes-jarvis-bot\u002Fhermes-agent-config-kit\u002Fblob\u002Fmain\u002Fhermes\u002Fskills\u002Fproof-loop\u002FSKILL.md",true,[],[52,58,65,72,79,86],{"skillNo":53,"name":54,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":18},"01M78BHH6VNT0MKZXGMP2F50X1","owner-voice","https:\u002F\u002Fgithub.com\u002Fhermes-jarvis-bot\u002Fhermes-agent-config-kit\u002Fblob\u002Fmain\u002Fupstream\u002Fclaude-code-config\u002Fsnapshot\u002Fskills\u002Fwriting\u002Fowner-voice\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":18},"01M78BHD34XJHAK6EMZ7J1M80X","humanize-russian","Редактировать русский текст для ясности и естественного звучания, сохраняя факты,\nтермины, источники и жанр. Использовать когда: убрать канцелярит, сделать текст\nживее, отредактировать русский черновик или статью перед публикацией.\nНе определяет авторство и не обещает обход детекторов. Для английского —\nhumanize-english; для структуры и доказательств — article-structure-review.","https:\u002F\u002Fgithub.com\u002Fhermes-jarvis-bot\u002Fhermes-agent-config-kit\u002Fblob\u002Fmain\u002Fupstream\u002Fclaude-code-config\u002Fsnapshot\u002Fskills\u002Fwriting\u002Fhumanize-russian\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":18},"01M78BH9D09HCA7ECZMPEEAE5Y","humanize-english","Edit English drafts for clear, natural language while preserving facts, uncertainty,\ntechnical meaning, citations and genre. Use when: humanize this text, remove AI-style\nfiller, improve English prose, or edit an English article before publication.\nNot an authorship detector or a promise to bypass one. For Russian use\nhumanize-russian; for thesis\u002Fevidence and structure use article-structure-review.","https:\u002F\u002Fgithub.com\u002Fhermes-jarvis-bot\u002Fhermes-agent-config-kit\u002Fblob\u002Fmain\u002Fupstream\u002Fclaude-code-config\u002Fsnapshot\u002Fskills\u002Fwriting\u002Fhumanize-english\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":18},"01M78BH44Q25YMA16MC6FKZ2WY","caveman","Ultra-compressed reply mode. Cuts output tokens ~65-75% by answering in terse \"caveman\" style while keeping full technical accuracy, and shapes what survives: action first, state restated every turn, concrete time estimates, visible wins. Intensity levels: lite, full (default), ultra, wenyan-lite, wenyan-full, wenyan-ultra. Use when user says \"caveman\", \"talk like caveman\", \"use caveman\", \"less tokens\", \"be brief\", or Russian \"пещерный режим\", \"говори как пещерный\", \"кратко\", \"меньше токенов\", \"экономь токены\" — or invokes \u002Fcaveman. Preserves the user's language (Russian in → Russian caveman out). Off only: \"stop caveman\" \u002F \"normal mode\" \u002F \"обычный режим\". Do not use merely because a response should be concise, and do not use when the user requests normal prose, a polished document, or exact wording.","https:\u002F\u002Fgithub.com\u002Fhermes-jarvis-bot\u002Fhermes-agent-config-kit\u002Fblob\u002Fmain\u002Fupstream\u002Fclaude-code-config\u002Fsnapshot\u002Fskills\u002Fwriting\u002Fcaveman\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":18},"01M78BGY0JTMTW3J3YE5RQTHCK","article-structure-review","Проверить структуру технической статьи после черновика: задача читателя, жанр,\nопора значимых утверждений на доказательства и честные ограничения.\nUse after the first draft, before publication. Исправлять структуру, когда это\nвходит в запрос; не создавать обязательный конвейер из других навыков.\nДля локальной языковой редактуры — humanize-english или humanize-russian.","https:\u002F\u002Fgithub.com\u002Fhermes-jarvis-bot\u002Fhermes-agent-config-kit\u002Fblob\u002Fmain\u002Fupstream\u002Fclaude-code-config\u002Fsnapshot\u002Fskills\u002Fwriting\u002Farticle-structure-review\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":18},"01M78BGRJYZGK1TNTCHWGY32W3","video-post-production","Video post-production rules: audio mastering, color, captions, platform export. Use when: 'add music', 'add voiceover', 'export for tiktok', 'add captions', 'color grade', 'audio levels', 'master audio', 'export settings', 'platform requirements'. Covers FFmpeg patterns, audio chain, subtitle standards, and platform-specific export configs. Do NOT use to generate or animate the video frames\u002Fscenes in code (use remotion-production-guide), to write the script (use video-narrative-arc), or to evaluate script quality (use script-evaluator); this is the finishing stage applied to an already-rendered video.","https:\u002F\u002Fgithub.com\u002Fhermes-jarvis-bot\u002Fhermes-agent-config-kit\u002Fblob\u002Fmain\u002Fupstream\u002Fclaude-code-config\u002Fsnapshot\u002Fskills\u002Fvideo-production\u002Fvideo-post-production\u002FSKILL.md",[],[]]