verification-oracle

verification-oracle is a skill for Claude Code from metraton/gaia. It costs 74 tokens per session (1,425 once invoked), scanned A, original, MIT.

A checker that reruns a declared command or code verification and compares the actual result with the expected result.

In plain words
What is it for?
Use it for task gates or contract checks based on commands or code. It does not decide semantic reviews or self-reported checks.
Why use it?
It provides an objective pass or fail for checks that can be run deterministically, rather than relying on a claim that the work was verified.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the gaia plugin — 38 skills, 9 agents, 11 hooks shipped together

Good fit Use it for task gates or contract checks based on commands or code. It does not decide semantic reviews or self-reported checks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/metraton/gaia/verification-oracle
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.

Any agent
npx skills add metraton/gaia --skill verification-oracle
Clone the repo
git clone --depth 1 https://github.com/metraton/gaia

Made for: Claude Code.

Or install gaia, the plugin that ships this one along with the rest of its 38 skills, 9 agents, 11 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for verification-oracle

README.md
[![agentmods](https://agentmods.dev/badge/skills/metraton/gaia/verification-oracle/github.svg)](https://agentmods.dev/skills/metraton/gaia/verification-oracle)
Your own site
<a href="https://agentmods.dev/skills/metraton/gaia/verification-oracle"><img src="https://agentmods.dev/badge/skills/metraton/gaia/verification-oracle/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for verification-oracle

Your own site · 80×15
<a href="https://agentmods.dev/skills/metraton/gaia/verification-oracle"><img src="https://agentmods.dev/badge/skills/metraton/gaia/verification-oracle.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 74 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,425 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00074 $0.01425
Opus 5 $0.00037 $0.00713
Sonnet 5 $0.00015 $0.00285
Haiku 4.5 $0.00007 $0.00143

Measured 8d ago against content hash ee6eaba61367, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

verification-oracle 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 8d ago.

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.

skills/verification-oracle/SKILL.md · 99 lines

How it starts

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

Verification Oracle

Deterministic re-execution of a command/code task gate: run the declared check again, compare the actual result to what the gate expects, and return an objective pass/fail with the evidence that produced it. This is the mode a verifier loads when a gate's verification_type is one of the two DETERMINISTIC types in gaia.state.VALID_VERIFICATION_TYPES -- command and code -- as opposed to semantic (needs human/rubric judgment) or self_review (trusts the producing agent's own statement).

Position in the flow

This mode runs mid-verification, not standalone. Upstream, a planner already authored the gate (gaia task gate add ... --type=command|code --evidence-shape='<check>', persisted in task_gates) or a producing agent already proposed evidence_report.verification on its contract (gaia.contract.validator) -- either way the check spec exists as text before this skill runs; the oracle never invents what to check, only whether it currently holds. Downstream, the pass/fail verdict feeds whatever decides the gate's/AC's status next -- so a wrong verdict here propagates as a false pass or a false block one layer up, not just a local mistake.

Why command and code are ONE mechanism, not two

Read gaia.state.gate_validation and gaia.contract.validator before assuming code needs different execution machinery than command: both types resolve to the SAME shape, a runnable string -- evidence_shape on the persisted gate, or command on the contract envelope (e.g. {"type": "code", "command": "ruff check ."}). gaia.state.__init__ calls the two "synonyms for the two shapes of a deterministic check" -- command typically names a broader run (a test suite, a script); code typically names a narrower code-level check (a linter, a type-checker, an assertion). The label changes what a human reads in a report; it does not change how the oracle runs it.

Process

  1. Confirm the type is deterministic. Read verification_type (gate) or type (envelope). If it is not command or code, this mode does not apply -- semantic needs a rubric/human, self_review needs to trust the agent's own statement. Re-running either of those as if it were a shell command is a category error: there is nothing to exec.
  2. Extract the check spec. Pull the runnable string off evidence_shape (gate shape) or command (envelope shape), whichever is present. An absent or blank spec on a declared deterministic type is a hard rejection -- mirrors gate_validation.validate_gate's own required-field check -- never fall back to "assume pass."
  3. Re-execute, do not re-read. Run the exact string as a subprocess -- tokenized, never shell=True (see command-execution) -- and capture stdout, stderr, and the exit code. This is the one point in the flow that performs real I/O: the entire point of an oracle is that it re-observes the world instead of trusting a prior claim about it.
  4. Compare against the gate's expected value, not against zero by convention. Default expectation is exit code 0, but a gate MAY declare a different expected_exit_code (e.g. a linter that exits 2 on findings by design) -- read it when present, default to 0 when absent. Pass is actual_exit_code == expected_exit_code, nothing softer than that.
  5. Return the full verdict, not a bare boolean. Carry ok, verification_type, the resolved command, exit_code, expected_exit_code, stdout/stderr, and errors (unresolvable type, empty spec, un-tokenizable string, command not found, timeout). Whatever consumes this needs the evidence to report verbatim_outputs, not just the pass/fail bit.
  6. Never launder a failure into a pass. A non-zero unexpected exit code, a timeout, or a missing binary are all ok=False with a distinct errors entry -- collapsing any of them into a silent pass defeats the purpose of an oracle mode (see agent-protocol's verification honesty rule: a clean exit is not the same as the change working, and here the exit code itself IS the thing under test).

Read the full file on GitHub · 99 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. 8d ago First seen · 99 lines · 74 tokens per session scan A ee6eaba61367

Subscribe to this mod's changes

verification-oracle is a skill published in the GitHub repository metraton/gaia (3 stars, last pushed yesterday), licensed MIT. It adds 74 tokens to every session and 1,425 once invoked, about $0.0004 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.

Related

Other skills, from other repositories