Expand description
Candidate-versus-baseline comparison (#5441).
Why: #5441’s gate contract asks for two different verdicts from one diff.
A correctness or completion regression — a verifier check that used to pass
and no longer does, a level that used to finish and now times out, a level
that is simply absent — blocks milestone closure outright. A cost, token,
turn, or duration change outside an explicit tolerance does not block, but
it does require a documented disposition; the first qualification attempt
stalled precisely because L3’s +27% wall-clock and +50% turns had none.
What: compare_against_baseline walks every level the baseline covered,
blocks on missing deliverables, pass-rate drops, and status regressions, and
for each of the four performance metrics either records the delta as a note
(inside tolerance, or dispositioned) or blocks on it.
Test: bakeoff::tests::a_pass_rate_drop_blocks_closure,
bakeoff::tests::a_documented_disposition_clears_a_performance_change.
Structs§
- Baseline
- A previously accepted bundle to measure the candidate against.
- Comparison
Inputs - Everything the comparison stage needs beyond the two bundles.
Constants§
- DEFAULT_
TOLERANCE_ PCT - Default percentage change a metric may move before it needs a disposition.
Functions§
- compare_
against_ baseline - Diff a candidate bundle against the previously accepted baseline.