agentleFS
fredhead88fredhead88/do-it/skills/verification-loop/SKILL.md

verification-loop

Skill0 starsChanged 4 months agoMITView on GitHub

Use when verifying shipped work on prod, standing up the autonomous verifier, running the verification loop, confirming a spec is actually done end-to-end, or checking whether shipped criteria are hollow. Trigger phrases include "verify shipped work", "stand up the verifier", "run the verification loop", "is this actually done on prod", "check for hollow specs", "autonomous post-ship review".

  • Reads credentials

84 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use everything-claude-code, everything-claude-code-conventions and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • InfopibeSkill

    everything-claude-code

    Also in 10 projects that use this

  • mryeastcodeSkill

    everything-claude-code-conventions

    Development conventions and patterns for everything-claude-code. JavaScript project with conventional commits.

    Also in 8 projects that use this

  • InfopibeSkill

    investor-materials

    Create and update pitch decks, one-pagers, investor memos, accelerator applications, financial models, and fundraising materials. Use when the user needs investor-facing documents, projections, use-of-funds tables, milestone plans, or materials that must stay internally consistent across multiple fundraising assets.

    Also in 25 projects that use this

  • niloykumarbarmanSkill

    agent-sort

    Build an evidence-backed ECC install plan for a specific repo by sorting skills, commands, rules, hooks, and extras into DAILY vs LIBRARY buckets using parallel repo-aware review passes. Use when ECC should be trimmed to what a project actually needs instead of loading the full bundle.

    Also in 8 projects that use this

  • tpavanipradeepSkill

    nextjs-turbopack

    Next.js 16+ and Turbopack — incremental bundling, FS caching, dev speed, and when to use Turbopack vs webpack.

    Also in 15 projects that use this

  • CodeWithBehnamSkill

    dmux-workflows

    Multi-agent orchestration using dmux (tmux pane manager for AI agents). Patterns for parallel agent workflows across Claude Code, Codex, OpenCode, and other harnesses. Use when running multiple agent sessions in parallel or coordinating multi-agent development workflows.

    Also in 17 projects that use this

  • +1 more from Infopibe

The file

Files
SKILL.md

Verification Loop

Overview

Observe the running product. Stay blind to how it was built.

The verification loop is a standing autonomous reviewer that drives shipped work from "orc says done" to "verified green on prod". It observes the deployed product via a headless browser, assigns typed evidence to each acceptance criterion, judges cross-vendor (Codex primary, Claude fallback), and loops to convergence — filing correctives for hollow work, escalating taste/blockers, and never touching the build.

Three Core Invariants

  1. Blind-but-watching. The verifier never sees the build, the diff, or the builder's reasoning. The judge receives only the typed evidence artifact — never the worker's explanation.
  2. Evidence-type-locked-to-criterion-type. A UI criterion requires a DOM/screenshot observation. A grep is auto-fail for a UI criterion. No criterion closes without observed, type-matched evidence.
  3. Verifier owns the verdict; the builder cannot overwrite it. Verdicts live in ~/.claude/ledger/verified/<spec_id>.yml — a separate namespace the builder's set/register commands never touch.

The Two-Body Warning

The loop converges only if orc is running and consuming correctives. If filed items sit unconsumed for N ticks, escalate to NEEDS-HUMAN.jsonl — do not file forever into the void.

The 8-Step Tick

Run with: node ~/.claude/verification-loop/tick.mjs [--spec NNN-slug] [--dry-run] [--force]

  1. Detect new ship — compare deployed sha vs last PROGRESS.jsonl entry. No new sha → idle-cheap return, no browser spun.
  2. Selfcheck — fail loud if any credential missing/empty or chrome absent. Write to NEEDS-HUMAN.jsonl and halt. Never silent-continue.
  3. Auth + load criteria — acquire() storageState once per day (7-day TTL). Pull acceptance criteria from the spec file. pinSpecSha() to guard against silent scope reduction.
  4. Observe per criterion — selectObservationLayer() routes to DOM (aria snapshot + innerText), VISION (screenshot + bounded binary question), or DOM_INTERACTION. Run callApi() for backend criteria. Both verify_periods. Run runIpt() when a gaming trigger fires.
  5. Judge — judge(criterion, evidenceText, {runCodex, runClaude}). Token/reason contradiction → flag UNCLEAR → re-judge once → escalate if still unclear. Judge calls are sequential (never concurrent — subscription rate limit).
  6. Assign verdict + resolve:
    • CONFIRMED → recordVerdict() + spec_ledger.py verify NNN CONFIRMED --judge codex --evidence <ref>
    • HOLLOW / MISSING / REGRESSION → escalate corrective to NEEDS-HUMAN.jsonl (≤3 attempts; on exhaustion → BOUNCED, escalate)
    • DATA-GAP / NOT-RUN → ops note
    • SUSPECTED-GAMING / TASTE / blocker → escalate, never spin
  7. Re-probe transient — probe.mjs catches 502/503 deploy windows, retries once after 30s, tags DEPLOY_IN_PROGRESS. Never cry P0 on a deploy window.
  8. Scope reduction + progress — detectScopeReduction() → escalate any missing-with-no-evidence criteria. appendProgress(). Reschedule cost-aware.

Verdict Taxonomy

VerdictMeaningAction
CONFIRMEDCriterion observed workingWrite to verified/ namespace
HOLLOWExists in code, doesn't workFile corrective
MISSINGNot implementedFile corrective
REGRESSIONWas working, now brokenFile corrective
NOT-RUNOperational step skippedOps note
DATA-GAPCode ok, source data absentOps note
TASTESubjective judgement callEscalate to Ephraim
SUSPECTED-GAMINGIPT metamorphic relation failedEscalate; R7 2nd-case rule before labelling systemic
UNCLEARToken/reason contradiction in judge outputRe-judge once; escalate if still unclear
BOUNCEDTrial budget (≤3) exhaustedEscalate to Ephraim

Durable State Files (under runs/<date>/)

FilePurpose
PROGRESS.jsonlAppend-only event log — sha, criteria checked, verdicts. Resume by reading.
VERIFICATION-LEDGER.jsonlPer-criterion verdict + evidence ref. Source of truth for "checked".
NEEDS-HUMAN.jsonlLoud escalation list — taste, blockers, gaming, exhausted budgets.
SPEC-PINS.jsonCriteria set pinned at handover. Scope-reduction guard (U3).

Verifier-owned verdict files: ~/.claude/ledger/verified/<spec_id>.yml

Smoke-Test a Single Criterion

cd ~/.claude/verification-loop
set -a; source <repo root>/.env; set +a
node tick.mjs --spec 064-asin-page-unmapped-asin-blank --criterion "returns 200" --dry-run

Autonomous Cron Path vs Attended Debugging

  • Cron (autonomous): node tick.mjs — uses probe.mjs / shoot.mjs / api.mjs for observations. No MCP.
  • Attended debugging only: chrome-devtools MCP is for interactive investigation when you want to drive a browser in the current conversation. Do NOT wire the MCP into the autonomous cron tick.

Escalation Expiry

An escalation unresolved for >2 ticks should trigger a human notification (append to NEEDS-HUMAN.jsonl with reason: unresolved_escalation), not another corrective attempt.

Config Location

~/.claude/verification-loop/config/<your-project>.json — the only AS-specific surface. Swap in another project's config to reuse the harness.

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.