Oracles and Rubrics
ContextBrew decomposes “is this spec trustworthy?” into two axes, because the two questions have different natures and different evidence:
- Oracles — checks a machine can run, with a pass/fail answer.
- Rubrics — judgment calls that a human (or an AI reviewer) scores.
The taxonomy is not novel — a competitor platform launched in September 2026 (EasySpecs) independently coined the same oracle/rubric split in its “Trust Specs”, and we credit the contemporaneous coinage. What we claim is the part that is hard to fake: our oracles execute. They are failing tests brewed from the canon, run against real code, with every result attributed and recorded. This page maps each half of the taxonomy to the machinery that already ships.
The dividing rule
Section titled “The dividing rule”A check that can run, runs — and its result is recorded in the ledger. A judgment that cannot run says who made it, and on what basis.
Two invariants follow, and both are enforced rather than aspirational:
- No green without provenance. Every test result carries a provenance
stamp —
spec-derived,agent-authored, orunknown— plus an attribution source (manifest,naming, ornone). A “passing” test that was authored by the agent being judged is not evidence; the attribution surface exists precisely so it cannot pose as one. - A passing scaffold is perjury. Brewed suites start red: generated
scaffolds assert
expect.fail("@contextbrew-scaffold: …")until real implementation arrives. A scaffold that passes means the check was deleted, not satisfied — the oracle run design treats that as a verdict-grade lie, not a warning.
Oracles — the machine axis
Section titled “Oracles — the machine axis”Every row names the thing that runs (repo paths in code font). Nothing
on this list is a plan.
| Oracle | What runs | Where it lives |
|---|---|---|
| Brewed failing tests (“arming”) | Recipe generation emits expect.fail("@contextbrew-scaffold: …") suites that stay red until the behavior exists — the spec’s failing-tests-first contract |
packages/core/src/generators/vitest.ts |
| Recipe suite runs | runRecipeTests() executes the suite, parses results, attributes every test (provenance + attribution source), writes <recipeId>-state.json / -result.json, and flips the recipe to blocked on failure — blocked, not warned |
packages/core/src/recipes/test-runner.ts |
| Oracle run kernel (approved design) | verify/runSpecSuite(manifest) → RunRecord — every run ledger-recorded and bound to the spec envelope it judged (specAt version + content hash); verdicts are a policy function over recorded runs, never a button |
docs/spec/CONTEXTBREW-ORACLE-RUN-SPEC.md; runs surface via the Execution Engine |
| Eval verdicts | The eval runner executes generated eval suites and issues verdictForGeneration against a pass-rate threshold (currently 0.7) — used to judge generated artifacts, not just hand-written tests |
packages/core/src/evaluation/ |
| Gate commands | ctxbrew lint --gate and ctxbrew check --gate exit 1 (refuse) on failure — and a gate with zero runnable signals also refuses, because a gate that cannot see must not silently pass |
CLI reference |
| Conformance bundle | Third-party-runnable valid/invalid fixtures per format and version — check any .ctxbrew/CBRL artifact without installing us |
File Schemas overview |
Oracles answer pass/fail questions about artifacts: does the code satisfy the brewed suite, does the file conform to its declared schema version, does the eval cross the threshold. What no oracle can answer is whether the spec was a good idea — that is the other axis.
Rubrics — the judgment axis
Section titled “Rubrics — the judgment axis”A rubric scores a quality that cannot be reduced to pass/fail: is this requirement well-formed? is this attribution plausible? is this generated module good? The honest current state of our judgment layer:
| Rubric surface | What it records | Status |
|---|---|---|
| Test provenance attribution | Every result is stamped spec-derived | agent-authored | unknown, with how the attribution was made (manifest | naming | none) |
Shipped — packages/core/src/recipes/test-runner.ts |
| Signed exports | Recipe exports carry Ed25519 signatures; ctxbrew verify checks them — authenticity of who produced an artifact |
Shipped — packages/core/src/recipes/signer.ts |
| Provenance at the seam | Trust state is recorded beside artifacts (frontmatter, sidecars, ledger), never inside the parsed AST — so judgment metadata can evolve without breaking parsers | Shipped — the invariant set in docs/spec/CONTEXTBREW-ORACLE-RUN-SPEC.md |
| Pronouncement | The policy function that turns recorded runs into a shipped/not-shipped verdict, with the rubric inputs explicit | Designed — Phase 4 of the oracle run design, not yet shipped |
Rubric surfaces beyond these are named here, not built — and the naming is the point: when a judgment call appears in a ContextBrew surface, it will say who scored it and on what basis, or it does not ship.
The receipt chain
Section titled “The receipt chain”The two axes close into one loop: oracles produce recorded facts (runs,
verdicts, gate exits), rubrics carry attributed judgments, and the Brew
Ledger remembers both — who ran what, against which spec version, when.
The handoff half of the loop (agents reading approved specs and reporting
implementation back as ledger events) is the MCP mark_implemented
contract — see the Execution Engine page.
That is the difference between a trust workflow and a trust machine: a workflow asks a human to believe; a machine keeps the receipts either way.
