Repository navigation
feat(lane D): held gate candidates' bench sweep starts with the settlement step, beside scoring - #1044
Merged
Conversation
…ement step, beside scoring Owner 2026-12-01. At step start, when the boundary has held gate candidates and a bench host, their gate sweep (with KING_D and the house; same session id, suite draw, sentinel and contexts as _run_gate) runs on a background thread in the boundary's SweepSession while the eval host scores. The gate's SweepSession.paired adopts a prefetched digest only when the suites match exactly and the host's settlement context equals the prefetched one; anything else (failure, partial reply, context mismatch) is swept in order as before. paired waits for a running prefetch (one sweep on the bench host at a time); no prefetch beside the king's full bench. _run_gate and the signed report are unchanged: timing only. 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. |
tensorlink-dev
added a commit
that referenced
this pull request
Dec 1, 2026
Resolves docs/MINER_LANE_D.md (main's gate paragraph kept, the held-first crown-order bullet after it). lane_d.py auto-merged: #1044's prefetch adopts the held candidates' rows in SweepSession.paired, which held-first gating calls first; new clears are still not benched when a held candidate crowns. 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.
Owner request 2026-12-01: lane D's public-bench gate for already-held candidates starts on the bench host when the settlement step starts, in parallel with scoring (eval-host pool/public forecasts, ~20-30 min). Before this, it waited for scoring to finish.
How it works
lane_d_wiring.LaneDStep._producecalls_start_gate_prefetchright after the block hash and sentinel are read, before_read_inputs. That call gets a plan fromLaneDInputsSource.gate_prefetch(b), which only reads: held digests via the new purelane_d.held_gate_digests, KING_D, the house, and their contexts from_needed, the same mapset_contextsreceives. It opens the boundary's bench session (same session id) and runsSweepSession.prefetchon a daemon thread. The suites are the gate's owngate_recorddraw plus the sentinel.SweepSession.prefetchsets the rows aside.paired()adopts a prefetched digest only when the suites tuple matches exactly andhost.context_of(dg)equals the prefetched context. Anything else is dropped, and the gate sweeps that digest as before._run_gateis unchanged.pairedwaits for a running prefetch. No prefetch starts while the king's full bench is running or while an earlier prefetch is still alive. The step waits for any prefetch to finish before using a fresh session and before scheduling the king bench. A retried tick for the same boundary reuses an unused prefetch session.SSHBenchHost.__call__takes an optionalcontexts=override. The rows are the same as from a normal call.Byte-identity: the gate decides on the same per-digest host rows, so the report, gate record, bound bench records, receipt and state are identical. This relies on the bench host's per-digest results not depending on how digests are grouped into calls, which the session cache already assumes. External validators and satellites are unchanged: they have no bench host, so they never prefetch.
Tests
tests/accept/w8b/test_w8b_gate_prefetch.pyis torch-free, and all 11 tests fail on base by assertion. They cover:held_gate_digestsdoes not mutate state and matches_held_candidatesRegression: w8b, w3b2, w3b3, w3b4, w3b6a, w3b6b, w5e, w8c and w_offbox all green, plus
test_incident_rules.py(89 passed). Ruff is clean.Labels: laned:W8b (wiring + tests), laned:W3b2 (lane_d_bench.py), laned:W3b6a (bench host + inputs), laned:W5e (lane_d.py).
Not merged and not deployed.
🤖 Generated with Claude Code
https://claude.ai/code/session_01BMT4D7f8wd5dXsASyWUBwe