Repository navigation
test: seeded schedule exploration for the lane host (test-lane-explore-host) - #3233
Merged
Merged
Conversation
ashhart
force-pushed
the
lead/lane-schedule-explorer
branch
from
November 14, 2026 20:10
c422471 to
3f43d90
Compare
Closed
1 task done
ashhart
added a commit
that referenced
this pull request
Nov 17, 2026
ashhart
added a commit
that referenced
this pull request
Nov 17, 2026
This was referenced Nov 17, 2026
Closed
The lane host tests run hand-picked orders; their seeds pick samples, not schedules. test-lane-explore-host wraps the fake target and, before each prompt call, prompt step, batched pass, first draw, one-token step and verified round, lets a seed pick the next arrival, a cancel, the backend's room for live lanes or the memory pressure the host reads. The seed also picks the setup: lanes, requests, a draft head or none, pipelined or verified one-token rounds, early or late speculation, batched or per-stream head drafts, sampled or greedy requests, and for chunked prompts the chunk count and the prompt-row budget. After each schedule every request has finished exactly once with no event after it, ended `length` with all its tokens or `cancelled` only when cancelled, and its tokens are a solo run's (or their prefix); no reply passes max_tokens, the backend never holds more lanes than the host, prompt steps beside a decoder stop at the row budget, a stream's chunks run in order, and no lane or stream is left. A third test replays 16 seeds of each scenario and compares a digest of every yield point's act and every reply. A failure prints its seed and `zig build test-lane-explore-host -Dexplore-seed=S` replays it; -Dexplore-seeds=N sets the sweep (default 200 a scenario) and -Dexplore-tally=true prints what the schedules did. The test binary runs in about 2 s. A planted skipped release on cancel and a removed budget stop each fail at a printed seed that replays. No engine code changes. The nightly Linux host list runs the step.
ashhart
force-pushed
the
lead/lane-schedule-explorer
branch
from
November 17, 2026 09:36
3f43d90 to
17ef8d1
Compare
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.
The lane host tests run hand-picked orders; their seeds choose samples, not schedules. This adds
zig build test-lane-explore-host, which wraps the fake target and yields before each prompt call, prompt step, batched pass, first draw, one-token step and verified round. At each yield point a seed picks the next arrival, a cancel (of a request queued, filling, decoding or already ended), the backend's room for live lanes, or the memory pressure the host reads. The seed also picks the setup: lanes, request count, a draft head or none, pipelined or verified one-token rounds, early or late speculation, batched or per-stream head drafts, sampled or greedy requests, and, for chunked prompts, the chunk count and the prompt-row budget.Two scenarios follow the existing tests: queued requests through batched prompt passes, and a decoder beside chunked prompts under the prompt-row budget. After every schedule:
lengthwith all its tokens, orcancelledonly if it was cancelled;A third test replays 16 seeds of each scenario and compares a digest of every yield point's act and every reply.
A failure prints its seed;
zig build test-lane-explore-host -Dexplore-seed=Sreplays it.-Dexplore-seeds=Nsets the sweep (default 200 per scenario) and-Dexplore-tally=trueprints what the schedules did. The test binary runs in about 2 seconds. A planted skipped release on cancel and a removed budget stop each failed at a printed seed that replayed. No seed found a bug in main. No engine code changes; the nightly Linux host list runs the step.