Skip to content

fix(lane_d): a frozen set whose draw misses the floors reopens and redraws - #1063

Merged
tensorlink-dev merged 2 commits into
mainfrom
fix/laned-frozen-reopen
Dec 2, 2026
Merged

tensorlink-dev merged 2 commits into
mainfrom
fix/laned-frozen-reopen

Conversation

@tensorlink-dev

Copy link
Copy Markdown
Contributor

A frozen lane D set whose draw misses the floors reopens and redraws.

Defect. advance_frozen_set returned a frozen set unchanged whenever its raw id counts passed fresh_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 miss min_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 covers min_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 stays pending_floor with 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).
  • Draw seeding, the signed report schema and the [lane_d] params are unchanged. A re-frozen record keeps the member's t_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 except w7a/test_w7a_public.py and w9/test_w9_public.py, which fail identically on the base.

🤖 Generated with Claude Code

…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
@vercel

vercel Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
cascade Ignored Ignored Preview Dec 2, 2026 12:31pm UTC

Request Review

@tensorlink-dev
tensorlink-dev added this pull request to the merge queue Dec 2, 2026
Merged via the queue into main with commit 59bba85 Dec 2, 2026
12 checks passed
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