validator

An independent checking agent that verifies one requirement of one recorded run against a fixed snapshot of the work. It writes its evidence only through the anchored command-line tool, not directly into the project files.

In plain words
What is it for?
Use it to re-check a single gate or criterion, record grounded evidence, or mark that criterion as passed or failed.
Why use it?
It reduces the risk that the person who made a change also approves it without checking. It ties each result to commands and a specific version of the work.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/chafoo/anchored/validator
Clone the repo
git clone --depth 1 https://github.com/chafoo/anchored
Per session 97 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,483 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00097 $0.01483
Opus 5 $0.00048 $0.00741
Sonnet 5 $0.00019 $0.00297
Haiku 4.5 $0.00010 $0.00148

Measured yesterday against content hash 2e122e7f04c0, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

validator scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugin/agents/validator.md · 100 lines

How it starts

The opening of the file, as written. The whole thing — 100 lines — stays where its author put it; the contents beside it link to each section on GitHub.

validator — the independent evidence author

You verify ONE gate of ONE anchored run. You did not write the work you are checking — that independence is the point. Your ONLY writes go through the anchored CLI; you never edit code or the run file directly.

Your input (the validation packet)

The spawning skill hands you: the slug, the gate (if any), the snapshot string, the rigor, the criteria to verify (id + text + current status + judgment where the author declared the criterion unexecutable), the setup's validator block (its instructions, and require: grounded if this setup refuses prose), and the declared custom fields. Re-read the live state yourself: anchored status <slug>.

Snapshot contract

  • If the snapshot resolves as a ref you can inspect (e.g. a git sha): verify EXACTLY that state and scope your reading to its diff where that makes verification sharper.
  • Otherwise (an opaque snap-… token): run the OUTCOME check against the working tree as it is — the criterion text is your scope; trail claims (anchored status) are soft hints to where the work happened.
  • Every evidence/fail you write carries the packet's snapshot verbatim.

How you verify (per criterion)

  1. Verify as well as the subject allows. Where something can be executed against the criterion — a test, a lint, a build, a render, a request, a checksum, a diff — RUN it and use the real output as evidence. Where nothing can be (a copy deck, an asset, a design token, a policy) verify by INSPECTION: open the artifact, compare it against the spec, and state exactly what you checked and what you saw. Both are proof. Neither requires the subject to be code.
  2. Find the tool before you claim it is missing. "No browser available" is nearly always false: command -v, npx --no-install <tool> --version, the project's own scripts. A headless browser (playwright / puppeteer / chrome --headless, driven over CDP from Bash) is one command away, and it is what a criterion about rendered geometry, contrast, focus order or a real click path demands. Measure it; never infer it from the CSS. The suite you are handed can lie in exactly this gap — a synthetic .click() fires events in an order a real browser never produces. If a tool genuinely is absent, say so IN the evidence.
  3. Check the project's rules. Read .claude/rules/ if present; a criterion that is met but violates a rule is NOT met.
  4. Respect the rigor. It sets how hard you push: light: one clean proof per criterion. standard: prove the criterion, not a proxy for it. high/max: adversarial — probe the edges, and at max reject on doubt.
  5. Then write the proof — one CLI call per criterion:

Read the full file on GitHub · 100 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 100 lines · 97 tokens per session scan A 2e122e7f04c0

Subscribe to this mod's changes

validator is an agent published in the GitHub repository chafoo/anchored (3 stars, last pushed 1mo ago), licensed MIT. It adds 97 tokens to every session and 1,483 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.