Skip to content

train 1117014129: #3457 #3560 #2979 #3588 #2824 (CI only) - #3639

Closed
ashhart wants to merge 15 commits into
mainfrom
lead/train-1117014129
Closed

ashhart wants to merge 15 commits into
mainfrom
lead/train-1117014129

Conversation

@ashhart

@ashhart ashhart commented Nov 17, 2026

Copy link
Copy Markdown
Owner

CI for a landing train: #3457 #3560 #2979 #3588 #2824 stacked on main in that order. Nothing merges from this PR: each PR above lands on its own once this tip is green, and this PR is then closed.

EugeneClaw and others added 15 commits November 17, 2026 03:03
The engine kept a prompt cache but advertised no warm turns, so the server
never prefilled the next turn's rendering and a follow-up that re-renders
earlier rows prefilled the whole conversation again. The capability now
follows the cache's presence; the cache rules are unchanged.
… the completed prefix

A warm pass ran to the end of the prompt instead of stepping aside when
foreground work arrived: the loop checked cancellation but never the yield
hook its background passes wire. The pass now keeps its completed prefix
and returns error.Yielded at the boundary; the next pass resumes the kept
mark.
A planned store kept a warm end off the grid, and under a one-snapshot
budget the unusable end evicted the usable mark: the next request resumed
at zero. The rules now set warm_usable, and the one-snapshot regression
stays.
…prose

Tool-call openers quoted inside Markdown inline code spans (`...`) or fenced code blocks (```...``` or ~~~...~~~) in generated assistant prose were treated as live call openers. Quoted `<tool_call>` tags paired with a following real call's `</tool_call>` and rejected it, quoted `<tool_call>NAME<arg_key>...` fragments naming an offered tool streamed bogus arguments, and complete quoted calls inside prose or code blocks executed as tool calls.

Add a linear-time Markdown code-span and fence scanner (reply_code.zig) and wire it into whole parsing (tool_parse.zig), streaming call deltas (tool_stream.zig), single-call prose filtering (tool_policy.zig), prose hiding and thinking-tail lifting (reply_text.zig, reply_tool_tail.zig), LFM2 rewrites (tool_lfm2.zig), logprob ranges (logprob_parts.zig), and EOS call closing (chat_generation.zig). While streaming, an inline backtick span containing a tool opener waits until a matching closer confirms code or a paragraph break or end proves it literal.

zig build test-tool-parse-host test-tool-visibility-http-host test-thinking-tail-host, zig build test test-golden dev-tools -Dcpu=apple_m1, zig fmt --check build.zig zig, and python3 tools/pr_check.py --base origin/main pass.
… a 4096-row-multiple end

The Qwen3.5 CUDA family declared no warm pass, so the server never ran one for
it. Both entry points now declare `warm_quiet` (150 ms) and `warm_usable`,
`cuda_snaps.cacheRules` reads a family's `warm_usable`, and a CUDA host takes
the family's own wait instead of Nemotron's. What the pass keeps is the narrow
part: a request's chunk starts never reach its own end, and this family's grid
is 4096 rows, so the end survives only when the prompt is an exact multiple of
it. A turn under 4096 rows keeps nothing and is cancelled before it runs; a
5000-row turn keeps its 4096 mark but not its end.

`prefillFn`'s whole text pass is fixed on main (#2838); this branch carries the
enablement only, and #2873's foreground yield goes first.

Host tests: the declarations on both entry points, and a family's warm rules
and its own wait.

Refs #2812
Share the existing chat chunk-start expression through Plan.request. A warm pass computes its own system prefix and uses that same plan, so request-starts caching does not skip the system cut on the background path.

The host regression compares warm-prefix and later-request cuts with a 600-token system prefix. Skipping the cut fails the test; preserving it gives the same starts below the warm end.

Refs #2812
@ashhart
ashhart force-pushed the lead/train-1117014129 branch from 9eec9ad to 8d9aa22 Compare November 17, 2026 03:03
@ashhart

ashhart commented Nov 17, 2026

Copy link
Copy Markdown
Owner Author

Stopped at #3457.

@ashhart ashhart closed this Nov 17, 2026
@ashhart
ashhart deleted the lead/train-1117014129 branch November 17, 2026 03:46
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.

4 participants