Repository navigation
Drop the pass rule's requirement that the interval reach zero (#1443) - #1447
Merged
Merged
Conversation
A pass now needs only the pass-level lower bound above the margin (ADR-0025, superseding ADR-0024's pass rule); the forecast uses the same decision. A pass whose pass-level interval lies wholly below zero is annotated worse, within the margin, in JSON, text and the Console. New Verdicts use paired-dirichlet-v3 and record pass_rule in the Bar; saved v2 Bars without it keep the old rule when read and resumed. The guide and site pages give the recalibrated A/A pass rates and each suite's shortfall.
Name the Bar's pass rule and the worse-within-the-margin annotation in the glossary, give the site pages each suite's shortfall and link ADR-0025, name the v3 method constant and annotation predicate, and keep the legacy resume fixture free of the new pass_rule key.
This was referenced Oct 27, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A pass no longer needs the pass-level interval to reach zero (ADR-0025, superseding ADR-0024's pass rule). The forecast of additional Eval tasks uses the same decision.
Levels::Separategainspass_rule. New Bars write"pass_rule": "margin"and Verdicts usepaired-dirichlet-v3. A saved Bar without the key reads asreaches_zero(paired-dirichlet-v2) and re-serializes byte-identically. Resuming with the same levels keeps the stored rule, as single-level (v1) Experiments already did.worse_within_margin: trueon the metric's JSON. The text view showsVerdict: pass (code-review accuracy: worse, within the margin). The Console adds a tag to the metric's explanation and a Pass rule row in the Bar fold.docs/research/non-inferiority-pass-rule.md, and ADR-0024 points to it.docs/guide.mdgives the recalibrated A/A pass rates and each suite's shortfall (about 20 code-review and about 80 Spec-review Eval tasks); the default stays at the 70% floor. GLOSSARY's Bar,site/index.html,site/how-it-works/andsite/architecture/are updated, andsite/docs/is regenerated.Evidence
Before: 27 equal + 3 slight-loss code-review tasks at pass 50% / fail 99.9999% gave a pass interval wholly in (margin, 0) and the Verdict
inconclusive.After:
fail_takes_precedence_and_a_pass_interval_wholly_below_zero_passes_worse_within_the_marginreturnspasswithworse_within_margin: true.a_saved_two_level_bar_keeps_the_rule_that_a_pass_interval_must_reach_zerokeepsinconclusiveandpaired-dirichlet-v2for the same scores under a saved v2 Bar, and its forecast differs from v3's.Before (store change reverted):
saved_reaches_zero_experiments_keep_their_bar_and_verdict_when_read_and_resumedfailed withBar cannot change after the first Trial.After: it passes. Its Bar, Verdict and file bytes are unchanged, and no extra Trials run.
a_pass_worse_within_the_margin_is_annotated_in_the_console_and_textcovers the text line, the Console tag and the Pass rule row.Recalibration check: a throwaway seeded simulation at Rerun the A/A Experiment on repaired Eval suites #1370's rates (not committed) gave A/A pass rates of code-review 69% / spec-review 55% at today's sizes and about 80% near 20 / 80 tasks. That matches the issue's table, which the guide reproduces. Because both intervals come from the same draws, a higher pass level only widens the interval, so under ADR-0025 it can't raise the pass rate.
Local runs:
cargo test --bin thirdshift verdict::testspasses 19/19, the touchedtests/experiments.rsandtests/consoletests pass,npm test --prefix sitepasses 50/50, and clippy and fmt are clean.Full
cargo test --no-fail-fast: the failures below are pre-existing on this machine. Each fails identically on an unchangedissue-1252checkout, or is environmental:eval_arms(3 tests), plusexperiments::model_graders::model_grader_timeout_keeps_trace_and_resume_reuses_trialsandexperiments::timed_out_trials_keep_partial_usage_and_exportable_session_ancestry.sandbox::tests::tool_bin_dirs_names_only_bound_roots.worktree::synchronization_tests, because this machine setstag.gpgSign=true.github::execution_tests::interruption_during_read_backoff_starts_no_further_request, which is timing-sensitive and passes alone.The one real failure in this change,
legacy_resume_commands_keep_literal_model_arguments_and_the_recorded_levels, came from its fixture keeping the new key in a v1 Bar. The fixture is fixed and the test passes.Merge Danger
Door: two-way
New Experiments record
pass_ruleand v3. Reverting would make those Bars carry an unknown key that serde ignores, so they would be judged under the old rule. Saved v1 and v2 Experiments are untouched.Blast Radius: Verdicts
A Candidate that is consistently a little worse, inside the 10-point margin, now passes, with the annotation. ADR-0025 is numbered after this base's ADR-0024;
mainalready has a different0024-*, so the numbering may need a pass when #1252 merges to main.Unaddressed findings
Standards
PassRule. Declined. The enum has two variants, and each match answers a different question: the decision insrc/verdict/levels.rsdecide, the method string insrc/verdict.rs(which also switches onLegacy), and the explanatory prose insrc/console/experiments/render.rs. Putting Console prose on the domain enum would move presentation intoverdict.constconcatenation is awkward. The renaming half is fixed:METHODis nowMARGIN_METHOD.("accuracy", …)/("wrong findings", …)atrender.rs:145andrender.rs:401, and the text view is the only caller. The colliding name is fixed: it is nowgrading::Verdict::worse_within_margin_metrics.render.rs. Declined. The reviewer notes it isn't a bug, since the Bar can't change after the first Trial. The surrounding code already reads the margin fromview.description.bar(render.rsinterval(…)calls).tests/console/experiments.rs::a_pass_worse_within_the_margin_is_annotated_in_the_console_and_text.Spec
Intervals::from_drawstakes both levels' central intervals from the same sorted draws, so a higher level gives a lowerpass.lower, anddecidenow tests onlypass.lower > margin. The simulation check above agrees: at every size, 80% and 95% passed fewer A/A runs than 70%.No finding was declined for a Spec or Day shift decision, so no issue was filed.
Security review outcome
No unaddressed introduced findings.
Review coverage
Both axes read every changed file except
site/docs/index.html. That file is generated fromdocs/guide.mdbycd site && npm run docs, regeneration left it unchanged, andnpm test --prefix sitechecks that it is current. It is excluded as generated output and was intentionally not read. Findings fixed in 07a4db3:Closes #1443
Built with claude 2.1.311 · default model · default effort