Skip to content

fix(lane D): the eval host forecasts only the digests the settlement duels - #1047

Merged
tensorlink-dev merged 4 commits into
mainfrom
laned-forecast-judged-only
Dec 1, 2026
Merged

tensorlink-dev merged 4 commits into
mainfrom
laned-forecast-judged-only

Conversation

@tensorlink-dev

Copy link
Copy Markdown
Contributor

Problem (live 2026-12-01)

Lane D settlement 9624600 spent 30+ min on the eval host (lane_d_forecasts public ..., then live) forecasting 7 checkpoints. Most of them were never judged: held gate candidates (re-gated from the bench without a duel), entries already lost/closed, and entries skipped before_eval_delay. Owner: "it doesn't need live and public benchmark again".

Fix

  • Hook point: LaneDInputsSource._judged() (lane_d_inputs.py) runs between _needed() and the forecast/public asks, on both the in-process path and the W-OFFBOX path (HostJudge need, RemoteForecasts).
  • It calls the new lane_d.judged_digests(), which runs the settlement's own selection on a deep copy of the state, after migrate_confirm_pending / refresh_house. That selection is _choose(): the prefix of _judge_pools moved verbatim (registration, held candidates, select_queue, forecast checks, armed context, judging start). The live state is not mutated twice.
  • Live forecasts: the duelled members, plus KING_D, plus the house challenger when its cohort runs. When nobody is duelled (only held candidates re-gate), it asks for no live forecast and the gate still runs.
  • Public half: the same set plus KING_D, always. The report's signed public.dropped comes from the eval host's reply, so one digest is still needed for byte identity. With nobody duelled, KING_D is the only public ask.
  • The bench host's set_contexts map stays the full need, so the gate sweeps the same contexts. If the prediction fails, it asks for everything, as before.

Consensus

Forecasts of unjudged digests never reach the report: rows/pub_scored only cover the cohort's bars and members, and _public_half only requires scores for the digests that were forecast. test_w_offbox_judged_only checks that the report bytes, posterior state bytes and published objects are identical to "ask every needed digest" on a 3-settlement fixture (held, lost and before-delay entries). It covers the in-process path, the offloaded path, and the run with the public half on. External validators and satellites are unaffected.

Tests

  • New tests/accept/w_offbox/test_w_offbox_judged_only.py (5 tests, torch-free). They fail on base by assertion, both on the guard and on behaviour: B1 forecasts Y, which is before its judging start, and the reference does not ask more.
  • w8c armed/source tests now read the needed contexts from the bench host's context map, not from forecast calls. They pass on base and on this branch.
  • w_offbox, w8b, w8c, w7a, w5*, w_hz, w7c, w9, w8 and w_s1 all pass, except w7a_public, w5k_draw and w9_public, which fail identically on base because the box has no pyarrow. test_incident_rules passes. Ruff is clean.

🤖 Generated with Claude Code

https://claude.ai/code/session_01BMT4D7f8wd5dXsASyWUBwe

…duels

Settlement 9624600 spent 30+ min on the lane D eval host forecasting seven
checkpoints (public, then live), most never judged: held gate candidates
(re-gated from the bench), lost/closed entries, entries before their judging
start. Owner: "it doesn't need live and public benchmark again".

- lane_d.py: the selection step of _judge_pools (registration, held
  candidates, select_queue, forecast checks, armed context, judging start)
  moves verbatim into _choose(); judged_digests() runs it on a deep copy of
  the state (after migrate_confirm_pending / refresh_house) before any
  forecast exists and returns the duelled digests and KING_D.
- lane_d_inputs.py: _judged() restricts the live forecasts (in-process and
  the W-OFFBOX settle request) to the duelled digests + KING_D, none when
  nobody is duelled; the public half asks those + KING_D (its reply carries
  the read-time drops the signed public record names). The bench context
  map stays the whole need; any prediction failure asks everything.

Consensus: report, posterior state and published objects byte-identical to
asking every needed digest (test_w_offbox_judged_only, in-process, offloaded
and with the public half). w8c armed/source tests read the needed contexts
from the bench host's context map instead of the forecast calls.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BMT4D7f8wd5dXsASyWUBwe
@vercel

vercel Bot commented Dec 1, 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 1, 2026 1:02pm UTC

Request Review

@tensorlink-dev tensorlink-dev added laned:W-OFFBOX W-OFFBOX: lane D pool phase off the validator box laned:W8c Lane D plan WP W8c labels Dec 1, 2026
tensorlink-dev added a commit that referenced this pull request Dec 1, 2026
…try (owner 2026-12-01)

Owner 2026-12-01 ("we don't need that"). Held first (#1045) means a new
entry cannot crown at a settlement that re-gates a held candidate, yet the
settlement still duelled the queue's selection (live + public forecasts and
scoring on the eval host). Now _choose skips every entry the queue selects
(and the house challenger) with the existing reason pending_floor
(HELD_DEFER_REASON) whenever a held candidate exists: status pending,
unjudged, uncharged (no window spent, no frozen set, no forecast check). The
next settlement duels them against whoever is king then.

With #1047's judged_digests the plan for such a settlement is duel=[]: no
live forecast, the eval host's settle pool phase runs once with an empty
need (it still supplies the signed pool record: the box loads no pool_d),
and the public half asks KING_D alone. With no held candidate nothing
changes (report bytes as before).

Released checkers (git archive of validator-release-laned-live 890fe6d
and validator-release-laned-1201 15ae7e9): zero findings, no burn on the
held-crowns, held-fails and held-again chains (incl. the next settlement).

Tests: w5g/test_w5g_held_defers.py, w_offbox/test_w_offbox_held_defers.py;
the superseded held-first new-clear tests are removed from
test_w5g_held_first.py (its fixtures and no-held byte test stay).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BMT4D7f8wd5dXsASyWUBwe
(cherry picked from commit 35364e7)
@tensorlink-dev
tensorlink-dev added this pull request to the merge queue Dec 1, 2026
Merged via the queue into main with commit 1a1abad Dec 1, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

laned:tests-correction laned:W8c Lane D plan WP W8c laned:W-OFFBOX W-OFFBOX: lane D pool phase off the validator box

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant