Commit 397feb5
PR 6.2 Copilot review pass: fold all four real findings back in
Copilot's review of the PR 6.2 self-review surfaced four still-real
findings (two others were marked outdated — already addressed by the
self-review pass). Folded all four back in before requesting human
review.
- (COPILOT-1) Grammar: "reflect a honest production model" →
"reflect an honest production model" in NB04 §2 narrative.
- (COPILOT-3) The threshold-selection comment claimed the K-th
highest probability + ``mask = lr_probs >= threshold`` admits
*exactly* K leads, "ties resolved by score order". The
inclusive comparison can admit more than K when leads share the
threshold's probability — and there is no implicit tie-break.
Rewrote the comment to be honest about the semantics ("admits
AT LEAST K via probs >= threshold; ties at the threshold can
inflate the slate; ``actually_above`` makes the realised count
visible"). Kept the threshold-based selection rather than
switching to a true top-K via ``argsort`` because the
pedagogical point of section 6 is *threshold selection*, not
*rank cutoff*.
- (COPILOT-4) Bootstrap loop comment said "Degenerate resample —
re-roll" but the implementation writes NaN and continues.
Rewrote the comment to match what the code does (mark NaN, let
``_summary`` filter it out) and added the actual probability
bound — with n_test=750 and base rate ~22 %, the all-positive
or all-negative draw probability is ~10⁻¹⁰⁰, so the branch is
dead in practice and exists only as a defensive safety net for
tiny test sets. Implementing a real re-roll loop would never
execute on this dataset.
- (COPILOT-6) The top-level ``_doc`` in
``release/notebooks/_release_targets.json`` claimed the file
contains only "cross-seed-median metric values", which became
inaccurate after the PR 6.2 cohort_shift block (single-seed,
seed 42). Rewrote the docstring to call out the mixed
structure: per-tier blocks hold cross-seed medians; cohort_shift
block holds single-seed values from
``validation_report.cohort_shift``. Audit-sync test continues
to enforce both cases via separate loops.
- (COPILOT-2, COPILOT-5) outdated; already addressed by the
self-review fix-up commit (25b9ec1) — the 70/30-vs-85/15
narrative whiplash and the wrong summary numbers (0.19 / 2.6×
vs the actual 0.13 / 2.75×) are both fixed there. Resolved as
already-treated.
Net: 28/28 notebook builder + execution + audit-sync tests pass;
ruff + mypy clean; both notebooks still execute end-to-end in
<10 s each.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 25b9ec1 commit 397feb5
3 files changed
Lines changed: 33 additions & 7 deletions
File tree
- release/notebooks
- scripts
Lines changed: 16 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
333 | 333 | | |
334 | 334 | | |
335 | 335 | | |
336 | | - | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
337 | 344 | | |
338 | 345 | | |
339 | 346 | | |
| |||
508 | 515 | | |
509 | 516 | | |
510 | 517 | | |
511 | | - | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
512 | 525 | | |
513 | 526 | | |
514 | 527 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
| 131 | + | |
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| |||
421 | 421 | | |
422 | 422 | | |
423 | 423 | | |
424 | | - | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
425 | 432 | | |
426 | 433 | | |
427 | 434 | | |
| |||
644 | 651 | | |
645 | 652 | | |
646 | 653 | | |
647 | | - | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
648 | 661 | | |
649 | 662 | | |
650 | 663 | | |
| |||
0 commit comments