agentsclimarketplace

Verification loop

Skill fredhead88/do-it/skills/verification-loop

A filesystem-inbox spec pipeline for parallel, one-shot Claude Code sessions: think → spec → orchestrate → grade → ship.

Install
npx -y skills add fredhead88/do-it --skill verification-loop

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

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".

SKILL.md

5.7 KB, ~1.4k tokens by cl100k_base, as published. Nobody here has run it

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 criteriaacquire() storageState once per day (7-day TTL). Pull acceptance criteria from the spec file. pinSpecSha() to guard against silent scope reduction.
  4. Observe per criterionselectObservationLayer() 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. Judgejudge(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:
    • CONFIRMEDrecordVerdict() + 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 transientprobe.mjs catches 502/503 deploy windows, retries once after 30s, tags DEPLOY_IN_PROGRESS. Never cry P0 on a deploy window.
  8. Scope reduction + progressdetectScopeReduction() → 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.

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.