agentleFS
qwerfunchqwerfunch/cladding/skills/oracle/SKILL.md

oracle

Skill16 starsChanged 5 months agoMITView on GitHub

Author an IMPL-BLIND spec-conformance oracle for an acceptance criterion the policy worklist (`clad oracle --required`) demands — an empty worklist means don't author unless the user explicitly asks. YOU spawn a blind sub-agent from a spec-only brief, then record it. Activate only when the connected project contains spec.yaml or the user explicitly names Cladding; ignore ordinary requests in uninitialized projects.

20 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use bluebubbles, eightctl and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • seedprodSkill

    bluebubbles

    Build or update the BlueBubbles external channel plugin for OpenClaw (extension package, REST send/probe, webhook inbound).

    Also in 4 projects that use this

  • seedprodSkill

    eightctl

    Control Eight Sleep pods (status, temperature, alarms, schedules).

    Also in 4 projects that use this

  • +10 more from seedprod

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 19 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

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

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

    Run clad oracle --required to print the worklist — exactly which done ACs the policy demands an oracle for, which already have one, and why …

    line 23
  2. Very specific:

    Get the spec-only brief: Run clad oracle <featureId> --ac <acId>.

    line 29
  3. Very specific:

    NOT read src/ or any implementation file.

    line 34
  4. Very specific:

    Record it: Call the clad_author_oracle MCP tool with:

    line 39
  5. Distinctive:

    First RED is ambiguous: When a brand-new oracle fails on the current code, it is EITHER a real spec bug in the code (keep the oracle, fix …

    line 62

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

Cladding oracle — impl-blind conformance authoring

A SPEC_CONFORMANCE oracle is a conformance test authored without seeing the implementation, so a passing oracle means "matches the spec," not "matches the code." The A/B that motivated this: a blind oracle caught bugs a code-peeking (sighted) oracle rubber-stamped (7/8 vs 4/8). cladding owns no LLM — the blinding is your discipline as the host; cladding produces the brief, records provenance, and the gate audits it.

Which ACs need an oracle? (the policy)

A project sets its requirement under spec.yaml::project:

  • oracle_policy: { always_ears: [unwanted], sample: 0.2 } (RECOMMENDED) — risk-weighted: author an oracle for every done AC whose EARS category is in always_ears (default ['unwanted'] — error/edge handling), PLUS a deterministic ~sample fraction of the rest. v8 showed exhaustive per-AC oracles add ~0 quality at ~30% cost, so spot-check the bulk and concentrate verification where failures cluster.
  • require_oracles: true — EXHAUSTIVE (every done AC). Highest assurance, highest cost. oracle_policy takes precedence when both are set.
  • Neither — no mandate (an authored oracle still runs + is recorded; a missing one is not forced).

Run clad oracle --required to print the worklist — exactly which done ACs the policy demands an oracle for, which already have one, and why (always:<ears> / sample / exhaustive). Author oracles for the ← needs an impl-blind oracle rows only; do NOT author for ACs the policy did not select.

Protocol (three steps — do them in order)

  1. Get the spec-only brief. Run clad oracle <featureId> --ac <acId>. It prints the acceptance criterion
    • the module's declaration-only signatures — and NEVER an implementation body. This is the only thing the author may see.
  2. Spawn a FRESH, blind sub-agent (the Task tool / a new sub-agent context) handed ONLY that brief. It MUST NOT read src/ or any implementation file. Instruct it to write a vitest conformance suite that asserts only what the criterion literally requires — when the spec is silent on an edge, a WEAKER assertion, not a stronger guess (an over-strict oracle falsely fails correct code). The sub-agent's identity must differ from whoever implemented the feature.
  3. Record it. Call the clad_author_oracle MCP tool with:

    • featureId, acId, body (the authored test source),
    • readManifest: exactly what the sub-agent was shown — the brief's spec/AC + signatures. It MUST NOT list an implementation file the feature owns (the gate fails on manifest ∩ modules).
    • blind: true only if the sub-agent's context was the brief and nothing else,
    • authorName: the sub-agent's identity (≠ the implementer).

    cladding writes tests/oracle/<F>.<AC>.test.ts, records kind:'oracle' provenance, and stamps oracle_refs onto the AC. The SPEC_CONFORMANCE gate (stage_2.3 + the detector) then RUNS the oracle against the real code and AUDITS author≠implementer + manifest∩modules=∅.

clad oracle F-1a2b3c --ac AC-004      # 1. print the blind brief
# 2. spawn a blind sub-agent with ONLY that brief → it writes the oracle
# 3. clad_author_oracle { featureId, acId, body, readManifest, blind:true, authorName }

Honest boundaries (read these)

  • Blindness is enforced by YOU, not cladding. cladding cannot see or restrict a sub-agent's file reads (sub-agent tool perms belong to the host). Hand the sub-agent ONLY the brief; do not let it open src/. The gate audits the manifest you report — it catches an honestly-reported impl read, not a lie. blind:false records an unattested (self-reported) manifest and the gate surfaces it as info.
  • First RED is ambiguous. When a brand-new oracle fails on the current code, it is EITHER a real spec bug in the code (keep the oracle, fix the code) OR an over-strict oracle (the spec doesn't require it — revise/reject it). cladding cannot tell which without you. Decide deliberately; never auto-accept or auto-discard.
  • Opt-in + risk-weighted. The presence + provenance rules bind under project.oracle_policy (risk-weighted, recommended) or the legacy project.require_oracles: true (exhaustive). Without either, an authored oracle still runs (stage_2.3) and its provenance is still recorded, but a missing oracle is not forced. Prefer oracle_policy — exhaustive verification bought ~0 quality at ~30% cost in v8; concentrate the premium on the high-risk (unwanted) ACs + a sample.

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.