# Methodology

Every artifact sold on ContextFile ships with a signed verification report: what was
claimed, which passage supports each claim, and how strongly. This page defines how
that report is made, what it guarantees, and what it does not.

## The pipeline

Every generation runs the same stages, and the report records the outcome of each.

| Stage | What happens |
| --- | --- |
| retrieve | lock the evidence corpus: content-addressed, licenses checked |
| generate | write claim-anchored prose against the locked corpus only |
| decompose | break the draft into atomic, checkable claims |
| verify | score each claim from 0 to 1 for entailment by its cited passage |
| bind | rewrite, cut, or send to human review anything under the floor |
| humanize | optional voice pass; every touched claim is verified again; always disclosed |
| report | sign it, content-address it, publish it with the artifact |

## Claim decomposition

A finished draft is broken into atomic claims, each a single checkable statement
bound to a passage in the locked corpus. "Nansen sailed in September 1893 with
provisions for five years" becomes two claims. Opinion and invented voice carry no
claim; only statements of fact enter verification. You cannot verify an essay, but
you can verify it one sentence at a time.

## Entailment scoring

Each claim gets a score from 0 to 1 for whether its cited passage supports it, not
whether the passage mentions the topic.

- **1.0** means the passage states the claim outright.
- **0.0** means the passage contradicts the claim or says nothing that supports it.
- Hedged, speculative and topic-adjacent statements score low by design.

A separate model scores, never the one that wrote the prose, so the writer does not
grade its own work. Every report pins the judge model, the judge prompt version, and
the SHA-256 of the prompt text. A claim's state follows its score: `verified` at or
above the floor, `in_review` just below it (a person decides), `cut` otherwise.

## The floor: what it guarantees, and what it does not

A listing's floor is a fraction of claims. A floor of 0.95 means at least 95 percent
of the edition's claims are verified against their sources, checked again at
purchase time for the format basket the buyer chose. The platform default floor is
0.90: it is chosen against the golden set, not
guessed.

| What | Status |
| --- | --- |
| Each delivered edition met its floor when checked, or the buyer was refunded automatically | guaranteed |
| The full source ledger and a signed, content-addressed report you can check yourself | guaranteed |
| Errata propagate to every sold edition when a source is corrected | guaranteed |
| That the sources themselves are right; archives get corrected | not guaranteed |
| Opinions, voice, or anything that is not a bound claim | not guaranteed |

The guarantee is faithfulness to evidence, plus a public correction when evidence
changes.

## What a report says it did not check

Every report carries a scope block, built from the pipeline run itself: the checks
that ran, the checks that did not (a run with no style pass lists the re-verify after
it as not run), and what no run covers. Proving where a claim came from does not prove
the artifact is safe: the scope block says that the sources themselves, statements the
decomposition did not extract, code or instructions in the artifact, and licensing are
outside what the report checked. The report page shows it.

## Checking a score yourself

Reports are content-addressed (the digest is a hash of the body) and signed. Anyone
can recompute the digest and verify the signature against the published key, with no
account. Each report is also an in-toto attestation in a Sigstore bundle that cosign
checks with the published key, and reports on the registry are logged in the public
Rekor instance. The daily receipt tree is anchored in Rekor too, or co-signed by an
independent witness. [Verify it yourself](/docs/verify) has the commands.

The free re-verify endpoint (`claims_verify`, REST `POST /v1/reverify`)
re-runs one claim of a public report against the report's pinned judge and returns a
result signed with the report key. It needs no account and is rate-limited per caller.

## How accurate the judge is

We measure the pinned judge against a golden set: works whose claims are labeled
supported, wrong (the cited passage contradicts the claim) or misgrounded (the claim
may be true, but the cited passage does not support it). The harness reports
precision, recall and the misgrounded rate, the share of misgrounded claims the judge
let through. Every result names the judge model, the judge prompt hash, the set digest
and the date, and it is signed.

The results are on [/benchmarks](/benchmarks), and agents read the same values at
[/benchmarks.json](/benchmarks.json). The set and the harness live in the
`benchmarks/` folder of our repo and will be mirrored to a public harness repo, linked
from /benchmarks once it is published. You rerun the harness with your own model key:
we run no endpoint that scores an arbitrary claim. A rerun should match each published
metric within the tolerance printed with the result. To re-check one claim of a
published report instead, use the re-verify endpoint above.

The set has its full 220 works. Claude drafted every work and its labels; a person is
adding a second label to a sample, and /benchmarks will show the agreement between the
two once that is done.

A new judge version cannot ship unless its golden-set result meets the thresholds in
our audited config, and CI names the metric that fell when it does not.

## What ContextFile adds to an agent

The uplift scorecard asks the same model the same version-pinned coding questions
twice with the same prompt: once with the ContextFile MCP server connected and once
with no tools. For each arm it reports task accuracy, the call rate (how often the
model used a ContextFile tool), tokens per answer and the misgrounded-citation rate
(the share of ContextFile citations not backed by a source the model read in that run).
Every result names the models, the run date, the harness version and the task set
digest, and it is signed.

The scorecard is on [/benchmarks](/benchmarks#uplift) and in the `uplift` field of
[/benchmarks.json](/benchmarks.json). It reruns on a set cadence and is marked stale
when the newest run is older than that. The tasks, the harness and the rerun steps are
in `benchmarks/uplift/` of our repo.

## Escrow makes the floor binding

Every purchase is escrowed. The delivered edition's report is checked against the
listed floor, and funds release only on a pass. A miss refunds the buyer in full with
no dispute, and the failure is written to the seller's trust graph.

## The trust graph

Reputation is computed, never typed in. Each verification outcome, cleared escrow,
failed floor, refund and erratum writes an edge to an append-only graph, and a score
is computed from that history with recent events weighted more, so it has to be kept
up rather than banked.

## Judge versions

The live judge prompt is public, so anyone can rerun the benchmark with the exact
prompt we use. Its full text is at
[/benchmarks/judge-prompt.json](/benchmarks/judge-prompt.json), with its version and
the hash every report pins; the harness carries the same file. When a new version
ships, the old text moves to the retired-prompt archive below. Because every report
pins that hash, a blind spot found in one version defines an exact cohort of reports, which
recall operations re-verify and the transparency digest reports. A buyer's agent can
refuse reports scored under an older judge (`min_judge_version`) or under one with an
open recall (`reject_open_judge_errata`).

## The judge, by version

| Version | Status | Prompt hash | Text |
| --- | --- | --- | --- |
| `v0-dev` | live | `sha256:1e64388843ffb61194ac8007b4992da06d5edd7ac2671ec35b1e82d8c2a9d04d` | published at [/benchmarks/judge-prompt.json](/benchmarks/judge-prompt.json) |

## Retired-prompt archive

No judge version has retired yet. `v0-dev` is the first; when its successor ships, its text moves here against the hash above.

## The golden set today

The harness that gates every pipeline change runs today on a fixture of 2 locked sources (`packages/core/src/golden.ts`). It must produce a signed report whose digest and signature verify and whose every claim is bound to a source. The full golden set is built from real works before the eval gate is armed; until then this page says so rather than quoting a pass rate.

Version 5, updated 2026-11-11.
