agentleFS
forsonnyforsonny/DG-Anvil/skills/verifying/SKILL.md

verifying

Skill0 starsChanged 7 months agoMITView on GitHub

Run the four verification probes (Exists, Substantive, Wired, Functional) per criterion. All four green per criterion or the criterion fails.

3 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions3 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 3

    1. genli-ai/market-research-skills★ 63same name
    2. renathoaz/arsyn★ 2same name
    3. kamenkurtev/ui-consistency★ 1same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository7 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read the contract via cli/lib/contract.js loadAndValidate to get each criterion and its four verification-level slots.

    line 16
  2. Very specific:

    Read the captured <worktreePath>/anvil/diff.patch and <worktreePath>/anvil/tool-output.jsonl.

    line 17
  3. Very specific:

    If Exists passes, run Substantive.

    line 19
  4. Distinctive:

    If Substantive passes, run Wired.

    line 20
  5. Distinctive:

    If Wired passes, run Functional.

    line 21
  6. Very specific:

    After all criteria are evaluated, run evaluateInvariants against the contract's invariants section.

    line 22
  7. Very specific:

    Write the structured result to <worktreePath>/anvil/verify/verify-result.json.

    line 23
  8. Distinctive:

    If any of these conditions obtain, the verify is rejected:

    line 35
  9. Distinctive:

    Every criterion has a result object with all four level fields present.

    line 45

“Common” is measured: kept by at least 6 in 10 of the 3 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

Overview

This skill runs the four-level verification probe per criterion. Exists checks the file or symbol is present. Substantive runs the target symbol against contract-provided inputs and checks for the named observable side effects plus the coverage floor. Wired walks the call graph from the contract's named entry point and confirms the symbol is reachable. Functional runs the declared test runner and checks exit code plus named passes. Three greens out of four is a fail. Invariants are evaluated on every verify pass.

When to Use

Invoked by the orchestrator after each executing dispatch returns. Reads only the captured diff and the captured tool output plus the worktree's source files. Does not read implementer narration.

Process

  1. Read the contract via cli/lib/contract.js loadAndValidate to get each criterion and its four verification-level slots.
  2. Read the captured <worktreePath>/anvil/diff.patch and <worktreePath>/anvil/tool-output.jsonl.
  3. For each criterion, run Exists first. If Exists fails, short-circuit and mark the criterion failed; do not invoke Substantive, Wired, or Functional for that criterion.
  4. If Exists passes, run Substantive. It invokes the target symbol and records coverage plus observable side effects. Pass requires every must_implement effect observed and every must_not effect absent.
  5. If Substantive passes, run Wired. It walks the call graph from the contract's named entry point. Pass requires the required symbols to be called inside the declared line range.
  6. If Wired passes, run Functional. It runs the declared runner against the declared target and checks the exit code and named passes.
  7. After all criteria are evaluated, run evaluateInvariants against the contract's invariants section. Any unknown invariant key yields a warning-status result that blocks allGreen.
  8. Write the structured result to <worktreePath>/anvil/verify/verify-result.json. Return { criteria, invariants, allGreen }.

Rationalizations

Reject the following shortcuts:

  • "The test passed, so the criterion is verified." A green test is not a green criterion; four levels must pass together (failure-taxonomy row 8: Claim-without-evidence).
  • "The target symbol exists, so Substantive is covered." Existence is a different probe; Substantive requires behavioural evidence (failure-taxonomy row 13: Semantic empty stub).
  • "The import references the module, so it must be Wired." Import is not a call; Wired walks the call graph for reachable call expressions (failure-taxonomy row 12: Orphan implementation).

Red Flags

If any of these conditions obtain, the verify is rejected:

  • The agent writes "the test passed" without recording what it actually covers; Substantive requires the probe to assert observable side effects, not the tautology that the mock returned the mock (failure-taxonomy row 13: Semantic empty stub).
  • A criterion whose Exists probe fails still has Substantive, Wired, or Functional probes invoked; short-circuit is mandatory (failure-taxonomy row 8: Claim-without-evidence).
  • The symbol is declared in a different file than the contract's wired.entry_point; the implementation is orphaned (failure-taxonomy row 12: Orphan implementation).

Verification

Each verify pass checks:

  1. Every criterion has a result object with all four level fields present.
  2. For every criterion whose Exists is fail, the other three levels are null (short-circuit evidence).
  3. <worktreePath>/anvil/verify/verify-result.json exists and is valid JSON with allGreen boolean.
  4. evaluateInvariants was called and any unknown invariant key returned status: 'unknown' with a warning.

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.