Repository navigation
fix(lane_d): a frozen set whose draw misses the floors reopens and redraws - #1063
Merged
Merged
Conversation
…draws A frozen lane D set was kept unchanged whenever its raw id counts passed the fresh-share check, but the W5j draw realises fewer windows than the raw ids (per-series no-overlap, unusable targets, missing forecasts, the source cap). Such a set could miss the floors at every settlement and never gain windows from newer snapshots. Now, when a frozen member's cohort draw is not ok (and the settlement budget still covers min_windows), the member's set reopens in the same settlement: advance_frozen_set(reopen=True) keeps its windows as the union, adds what the loaded pools admit, and runs the freeze test with this settlement's cap seed; on a reopen, union ids no loaded pool admits do not count toward the freeze floors. Each member is then redrawn once, alone, in reveal order: a passing redraw is judged as a normal cohort, otherwise the member stays pending_floor with the reopened record persisted. Draw seeding, the report schema and the [lane_d] params are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BMT4D7f8wd5dXsASyWUBwe
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BMT4D7f8wd5dXsASyWUBwe
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.
A frozen lane D set whose draw misses the floors reopens and redraws.
Defect.
advance_frozen_setreturned a frozen set unchanged whenever its raw id counts passedfresh_feasible. The W5j draw realises fewer windows than the raw ids (per-series no-overlap, unusable targets, missing forecasts, the source cap), so a frozen set could missmin_windows/ the fresh share at every settlement and never take windows from newer snapshots.Mechanism.
_cohort_plan: when a frozen member's cohort draw is not ok and the remaining settlement budget still coversmin_windows(a budget shortfall is not a reopen), each member's set reopens in the same settlement via_advance_member(..., reopen=True), and the member is redrawn once, alone, in reveal order. A passing redraw is judged as a normal cohort; otherwise the member stayspending_floorwith the reopened (unfrozen or re-frozen) record persisted.advance_frozen_set(reopen=True): treats the set as unfrozen, keeps its window_ids/sources as its union, adds what the loaded pools admit, and runs the normal freeze test with this settlement's cap seed. On a reopen, union ids no loaded pool admits do not count toward the freeze floors (they cannot be drawn).[lane_d]params are unchanged. A re-frozen record keeps the member'st_max.Tests.
tests/unit/test_lane_d_frozen_reopen.py(pure python, verdicts/draw stubbed): short draw reopens and passes with a newer pool's windows; short draw with no new windows stays pending (one redraw, deterministic); absent-from-pools ids do not count toward the floors on reopen; a budget shortfall does not reopen. Existing lane D acceptance suites (w5b, w5c, w5e, w5g, w5h, w5j, w7a, w7c, w7d, w9, w_hz, w_offbox) pass locally exceptw7a/test_w7a_public.pyandw9/test_w9_public.py, which fail identically on the base.🤖 Generated with Claude Code