Repository navigation
feat(window): an arm carries its donor policy, and the strata have a plain way in - #1306
Merged
Merged
Conversation
…plain way in The PLM ablation for Ana runs each model with experimental donors and with every code but ND, at seven depths. The window summary described an arm by model, scoring, depth and self-exclusion only, so the two donor policies of one model drew as one series in the depth view, filtered as one model and labelled identically. - The summary reads the candidate set's donor policy and gives each arm donors: "experimental" when the policy kept experimental codes only, "all" when it kept any other, None without a recorded policy. - The panel tells arms apart by armModel, the PLM plus "exp" for experimental donors, in the model filter, the depth series, the detail columns and the labels. sameExclusion compares the donors too. - The window page opens the strata tab from a plain entry above the panel, where before they hid behind a small toggle on each result row (the author, 2026-11-25).
Codecov Report✅ All modified and coverable lines are covered by tests. ❌ Your project check has failed because the head coverage (83.92%) is below the target coverage (85.00%). You can increase the head coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## develop #1306 +/- ##
===========================================
- Coverage 85.69% 85.66% -0.04%
===========================================
Files 471 472 +1
Lines 37374 37463 +89
===========================================
+ Hits 32026 32091 +65
- Misses 5348 5372 +24
🚀 New features to boost your workflow:
|
frapercan
marked this pull request as ready for review
November 25, 2026 08:32
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.
Why
The PLM ablation on 211->227 runs every model twice: with experimental donors only, and with every code but ND. Each policy is read at depths 1, 2, 3, 5, 10, 20 and 30. The window summary described an arm by model, scoring, depth and self-exclusion only. So the two donor policies of one model:
Separately, the strata, which the author wants front and centre, hid behind a small "show strata" toggle on each result row.
The change
_window_summaryreads the candidate set'smeta.donor_policy.evidence_codes. Each arm getsdonors:experimentalwhen the policy kept experimental codes only (protea.core.ia_regimes.EXPERIMENTAL_EVIDENCE);allwhen it kept any other code;Nonewithout a recorded policy, as for a method's set.armModel, the PLM plus "exp" for experimental donors, now tells arms apart in four places: the model filter, the depth view's series, the detail view's columns and the arm labels.sameExclusionalso compares donors.?tab=strata).Tests
test_two_donor_policies_of_one_model_are_two_armspins the rule. The existing arm test expectsdonors: Nonefor a row without a policy.tests/test_the_window_summary.pypasses;lint-gates.shis green;vitest runpasses (48 files, 430 tests);tsc --noEmithas nothing new;Not in this PR
The per-result
StrataPanel, behind each row's toggle, reads the strata router, whose arm identity is the configuration. Its labels do not show the donor policy yet. The panel's own strata tab, which the new entry opens, reads the summary and does.