Docs / Check and compare

The five verdicts

Every stage in a two-run comparison (diff, or localize given two runs) gets exactly one of five verdicts. There is no sixth.

What a verdict is about

A verdict is always about a stage's output — specifically, outputs_root for a per-document stage (see the format page), or the output digest directly for a run-scoped one. A difference in the instrument that produced the output (its name, version, or configuration digest), or in the constants a stage asserts, never changes a verdict by itself. It shows up as an annotation alongside the ladder instead — naming exactly what differs — so a same verdict never hides that how an output was produced changed even when the bytes it produced didn't.

The overall result, separately

Each verb also reports one word for the whole comparison, with its own exit code:

Verb Result words Exit codes
diff identical, diverged, not comparable, refused, could not check 0, 1, 2, 3, 4
localize (two runs) same five words as diff same five codes
localize (one run) clean, located (plus refused/could not check) 0, 1 (3, 4)
reproduce each stage is REPRODUCED, DIVERGED, or COULD NOT CHECK 0 all reproduced, 1 any diverged, 4 any could-not-check and none diverged, 3 refused

reproduce's own three outcomes are a different question from the five verdicts above: they answer "if I re-run this stage's own code right now, does it produce what the receipt says it produced," not "do two already-recorded runs match." rederivable is measured by actually re-executing the stage, never declared; a stage that isn't rederivable keeps its originally recorded outputs rather than being treated as broken.

A run's verdict against a reference (onetrace 0.6)

A reference is a sealed record of a known-good run. onetrace verdict RUN --reference FILE reads a finished run against one and gives each step one word, and the run its own. A verdict is derived from the record and the reference's declared rule; nothing is inferred.

A re-run is never counted (0.7). On a run whose receipts carry the re-run mark rerun, the verdict's first line says so, re-run: reproduce of <run id>; not counted, and the words below it are the same words as for any run. The verdict JSON keeps the mark as rerun.

The run's word is one of four, with the same exit codes the other verbs use:

word means exit
identical every step matched 0
diverged a step's output, setting or input differs from the reference; the verdict names the first such step 1
refused the run is refused (it does not verify, or a step was held) 3
could not check the verifier could not check the run, or the reference names a step the run does not record 4

Each step's word is one of seven, each with the record item it rests on:

Among the first three differences the order is output, then setting, then input: a step reads the first that holds. The run divergeds at the first step that reads output, setting or input differs.

onetrace-verify gains the same verdict over a run and a reference, as rows beside its others: --reference FILE adds one row per step — PASS (same output, or slower than its range), FAIL (output, setting or input differs), or NOT-RUN (could not check) — and a row for the reference's seal and, where it carries one, its signature. A nested run is checked against its own reference with --nested-reference FILE, given its folder with --nested-run; with no reference for it, the nested run reads NOT-RUN with the reason. A run verified without --reference reads exactly as before. The verifier reads the reference with its own canonicalizer and imports nothing from the SDK.