Skip to content

Drop the pass rule's requirement that the interval reach zero (#1443) - #1447

Merged
JacobStephens2 merged 2 commits into
issue-1252from
issue-1443
Oct 27, 2026
Merged

JacobStephens2 merged 2 commits into
issue-1252from
issue-1443

Conversation

@JacobStephens2

@JacobStephens2 JacobStephens2 commented Oct 27, 2026 •

Copy link
Copy Markdown
Owner

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.

 decide(intervals, margin, pass_rule)
   if fail_interval.upper < 0            -> fail
-  if pass.lower > margin and pass.upper >= 0   -> pass
+  if pass.lower > margin and (pass_rule == margin or pass.upper >= 0) -> pass
   otherwise                             -> inconclusive
+worse_within_margin = pass and pass.upper < 0   # annotation only
  • Versioning: the Bar's Levels::Separate gains pass_rule. New Bars write "pass_rule": "margin" and Verdicts use paired-dirichlet-v3. A saved Bar without the key reads as reaches_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.
  • Annotation: worse_within_margin: true on the metric's JSON. The text view shows Verdict: 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: ADR-0025 cites docs/research/non-inferiority-pass-rule.md, and ADR-0024 points to it. docs/guide.md gives 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/ and site/architecture/ are updated, and site/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_margin returns pass with worse_within_margin: true. a_saved_two_level_bar_keeps_the_rule_that_a_pass_interval_must_reach_zero keeps inconclusive and paired-dirichlet-v2 for 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_resumed failed with Bar 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_text covers 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::tests passes 19/19, the touched tests/experiments.rs and tests/console tests pass, npm test --prefix site passes 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 unchanged issue-1252 checkout, or is environmental:

    • eval_arms (3 tests), plus experiments::model_graders::model_grader_timeout_keeps_trace_and_resume_reuses_trials and experiments::timed_out_trials_keep_partial_usage_and_exportable_session_ancestry.
    • sandbox::tests::tool_bin_dirs_names_only_bound_roots.
    • 3 worktree::synchronization_tests, because this machine sets tag.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_rule and 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; main already has a different 0024-*, so the numbering may need a pass when #1252 merges to main.

Unaddressed findings

Standards

  • 3. Repeated Switches on PassRule. Declined. The enum has two variants, and each match answers a different question: the decision in src/verdict/levels.rs decide, the method string in src/verdict.rs (which also switches on Legacy), and the explanatory prose in src/console/experiments/render.rs. Putting Console prose on the domain enum would move presentation into verdict.
  • 4 (second half). Engine suffix repeated in three method constants. Declined. They are fixed reproducibility strings, and the reviewer judged this weak because const concatenation is awkward. The renaming half is fixed: METHOD is now MARGIN_METHOD.
  • 6 (Feature Envy half). Declined. The repo already pairs ("accuracy", …)/("wrong findings", …) at render.rs:145 and render.rs:401, and the text view is the only caller. The colliding name is fixed: it is now grading::Verdict::worse_within_margin_metrics.
  • 7. Rule and margin read from different Bars in 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 from view.description.bar (render.rs interval(…) calls).
  • 8. Console browser fixture still v2. Declined. A saved v2 Bar is a valid input that these browser tests should keep rendering. The v3 rows and annotation are covered by tests/console/experiments.rs::a_pass_worse_within_the_margin_is_annotated_in_the_console_and_text.

Spec

  • 3. The guide's "a higher pass level only lowers the pass rate" claim replaces the old "72% beats 70%" claim. Declined. The old claim depended on ADR-0024's upper-bound clause, which this PR removes. The new claim follows from the code: Intervals::from_draws takes both levels' central intervals from the same sorted draws, so a higher level gives a lower pass.lower, and decide now tests only pass.lower > margin. The simulation check above agrees: at every size, 80% and 95% passed fewer A/A runs than 70%.
  • 4. Console "Pass rule" row in the Bar fold. Kept as a small addition. The reviewer also recommends keeping it, because it is how a reader tells a saved v2 Experiment from a v3 one.

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 from docs/guide.md by cd site && npm run docs, regeneration left it unchanged, and npm test --prefix site checks that it is current. It is excluded as generated output and was intentionally not read. Findings fixed in 07a4db3:

  • Standards 1, 2, 4 (name), 5, 6 (name) and 9.
  • Spec 1 and 2.

Closes #1443

Built with claude 2.1.311 · default model · default effort

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.
@JacobStephens2
JacobStephens2 merged commit 0c81ccf into issue-1252 Oct 27, 2026
18 checks passed
@JacobStephens2
JacobStephens2 deleted the issue-1443 branch October 27, 2026 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant