agentleFS
justinwilliamesjustinwilliames/skills/verification-gates/SKILL.md

verification-gates

Skill1 starsChanged 5 months agoMITView on GitHub

Evidence discipline for agents: a claim about the world requires an observation of the world. Load before claiming anything is fixed, done, working, deployed, or safe — and bake into any sub-agent brief whose output you will relay. Defines per-surface proof standards (code, UI, API, data, email, infra) and the heuristics that catch wrong-layer debugging. Do NOT use as a test-writing guide — it governs when you may make a claim, not how to build a test suite.

6 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 6 edited versions we read keep these.

  • 4

    Distinctive

    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:

    Before emitting any of: fixed / done / works / passing / deployed / safe / migrated / live — run the observation that would falsify it.

    line 19
  2. Distinctive:

    The invariant-symptom rule: If a symptom is unchanged under two genuinely different fixes, the bug is not in the layer you are editing — …

    line 44
  3. Distinctive:

    Signal ≠ cause: Before a state-changing command (restart, delete, config edit), check the evidence supports *that specific action*.

    line 49
  4. Distinctive:

    When you delegate, the gate delegates with it.

    line 71

“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “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

Verification Gates

The most expensive agent failure is not a wrong edit — it's a wrong claim. A wrong edit costs a retry; a claim of "fixed" that wasn't verified costs the user's trust plus the hour they spend discovering it. This skill makes claims gated: no observation, no claim.

The gate

Before emitting any of: fixed / done / works / passing / deployed / safe / migrated / live — run the observation that would falsify it. If you cannot run that observation, downgrade the claim explicitly: "edited, but unverified — I couldn't run X because Y."

A downgraded-but-honest claim is frontier behaviour. An upgraded-but-hollow claim is the failure this skill exists to prevent.

Proof standards by surface

SurfaceMinimum observation before claimingNot sufficient
Code changeRun the relevant tests/build and read the outputThe diff "looking correct"
UI changeCapture a screenshot AND inspect it for the expected stateThe code compiling; a screenshot you didn't look at
API / serviceRead the value back after writing it (GET after PUT)A 200 response on the write
Data / analyticsReconcile the figure against a second independent source or invariantOne query returning a plausible number
Email / rendered contentRender check in the actual client/preview pipelineThe template source reading correctly
Deploy / infraHit the live endpoint / check the running versionCI going green
Deletion / cleanupList the target afterwards and confirm absenceThe delete call returning success

The last row matters more than it looks: some APIs report success on operations they silently skip. Write-then-readback is the universal antidote — verify against the live system, not against your own request.

Heuristics that catch wrong-layer debugging

The invariant-symptom rule. If a symptom is unchanged under two genuinely different fixes, the bug is not in the layer you are editing — it's upstream (the data, the payload, the caller). Stop patching the render layer and inspect the input. This single heuristic recovers hours: two invariant results is the signal, don't wait for four.

Signal ≠ cause. Before a state-changing command (restart, delete, config edit), check the evidence supports that specific action. A symptom that pattern-matches a known failure may have a different cause; the remedies are not interchangeable.

Verify the environment, not just the artifact. A test passing locally verifies local. If the claim is about production, the observation must touch production (or you say "verified locally only").

Named failure modes

Failure modeWhat it looks likeAntidote
Diff-reading confidence"This fixes it" from reading your own editRun it
Testing the mockGreen tests that never touch the real dependencyOne integration-level observation per claim
Unread screenshotScreenshot captured, attached, never inspectedState what you see in it, specifically
200-means-doneTrusting the write responseRead it back
Wrong-environment proofLocal pass presented as production truthName the environment in the claim
Fix-loop blindnessThird different fix, same symptom, still same layerInvariant-symptom rule: go upstream
Relayed hollow claimSub-agent said "done", you repeated itSub-agents inherit this gate — brief them; spot-check their evidence

Sub-agent contract

When you delegate, the gate delegates with it. Every sub-agent brief that produces a claim must include: the verification command/observation to run, and the instruction to report the observation's output, not just a pass/fail adjective. When a sub-agent's report lacks evidence, treat the claim as unverified and either re-check yourself or relay it downgraded.

Related

operator-standard Rule 3 (faithful reporting) is the communication half of this skill; this file is the epistemics half. challenge-before-build applies the same discipline before work starts.

Sync home

Sync home: github.com/justinwilliames/skills — canonical. Installed copies (e.g. ~/.claude/skills/verification-gates) are distribution artifacts: edit the repo, re-copy.

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.