Commit daefda7
Address PR #360 AI review round 3: frequency_rank assert + scenario 14 doc cleanup
Two findings (1 P2 + 1 P3):
- P2: `_compare_by_path` now asserts `py_path["frequency_rank"] ==
r_path_entry["frequency_rank"]` for every committed path. Both
scenarios are constructed with unique path frequencies (scenario 13
via the mixed_single_switch pattern, scenario 14 via deterministic
counts 40/25/10/5), so rank ordering is unambiguous and any
regression in top-k tiebreak handling now fails explicitly instead
of passing silently as long as the selected path set and per-path
effects remain correct.
- P3: scenario 14 generator docstring and recorded params still
described the old stochastic `p_switch`-driven DGP (the pre-PR
variant that blew out SE parity via cross-path cohort mixing). The
`multi_path_reversible` pattern is now DETERMINISTIC: path
assignment is a fixed function of F_g with counts 20/20/15/10/10/5
across the 6 F_g values. `p_switch = 0.35` dropped from both the
scenario call and the `params` block in the fixture; comment block
rewritten to describe the deterministic design and cite the REGISTRY
note for the rationale behind the design choice.
Fixture regenerated; scenario 14 params no longer carry the stale
`p_switch` entry. Point and SE parity numbers unchanged
(deterministic DGP produces the same treatment matrix as before).
Tests pass (2/2); ruff clean.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent c9dfc82 commit daefda7
3 files changed
Lines changed: 27 additions & 8 deletions
File tree
- benchmarks
- R
- data
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
618 | 618 | | |
619 | 619 | | |
620 | 620 | | |
621 | | - | |
622 | | - | |
623 | | - | |
624 | | - | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
625 | 631 | | |
626 | 632 | | |
627 | 633 | | |
628 | | - | |
| 634 | + | |
629 | 635 | | |
630 | 636 | | |
631 | 637 | | |
| |||
634 | 640 | | |
635 | 641 | | |
636 | 642 | | |
637 | | - | |
| 643 | + | |
638 | 644 | | |
639 | 645 | | |
640 | 646 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
660 | 660 | | |
661 | 661 | | |
662 | 662 | | |
663 | | - | |
664 | | - | |
| 663 | + | |
665 | 664 | | |
666 | 665 | | |
667 | 666 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
545 | 545 | | |
546 | 546 | | |
547 | 547 | | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
548 | 562 | | |
549 | 563 | | |
550 | 564 | | |
| |||
0 commit comments