Expand description
metadata.json — the retained-evidence schema every bake-off level must
carry (#5441).
Why: #5441’s gate contract requires each retained L1-L3 level to state
tokens, cache use, cost, turns, duration, status, and build provenance. The
first independent qualification attempt failed on exactly that: the runner
kept raw artifacts but recorded neither the candidate commit, the binary
hash, the challenge/runner revision, nor the instruction/agent/skill source
digests, so nobody could prove which binary produced the numbers. Declaring
the schema HERE — in the crate under test, not in the external runner —
makes the runner conform to the gate rather than the gate infer the
runner’s shape.
What: LevelMetadata and its parts, plus LevelMetadata::provenance_gaps,
which names every field a run left empty, "unknown", or zero. Deserialization
fails CLOSED: an unrecognised evidence_mode string becomes
EvidenceMode::Unknown, which the preflight rejects exactly as it rejects
a declared mock.
Test: bakeoff::tests::metadata_round_trips_the_documented_shape,
bakeoff::tests::provenance_gaps_names_every_missing_field,
bakeoff::tests::unknown_evidence_mode_is_not_real.
Structs§
- Build
Provenance - Which
tcodebinary produced the level. - Invocation
- Model, provider, and timeout the level was invoked with.
- Level
Metadata - One level’s complete
metadata.json. - RunTelemetry
- What the level’s run actually did.
- Runner
Provenance - Which bake-off runner produced the level, and at what revision.
- Source
Digests - Digests of the canonical instruction/agent/skill sources the run consumed.
- Tokens
- Token counts for one level, mirroring
tcode_report.json’susageblock. - Verifier
Result - The verifier’s verdict for one level.
Enums§
- Evidence
Mode - Whether a level’s artifacts came from a real model run or a plumbing-only mock.