#1 [high] Change: what PR #685 does and its size
PR #685 "fix(frontend): stream DeepSeek tool-call arguments", author peperunas, base main, head 2f0ed9d, 13 files +662/−72, open/ready for review, no reviews, no CI checks, no comments.
Files (pr_files): docs/api.md +25/−12; helios/src/output/dsml.rs +315/−18 (the real change); helios/src/server/output.rs +33/−19; helios/src/server/protocol/tests.rs +266/−0 (new tests); helios/src/output/{argument_tags,chatml,gemma_call,minimax_xml,pipeline,xtml}.rs and helios/src/runtime_core/protobuf.rs and helios/src/server/protocol/encode.rs and helios/src/server/runtime/phase_tests.rs — mechanical finish() -> finish(Termination::X) signature updates in tests.
Core mechanics (dsml.rs diff):
Callgainspublished_argument_bytes: usizeand apublish()that pushesEvent::ToolArguments{index, text: arguments[published..]}then advances the cursor; it is a no-op whileliteral.is_some()(a string="false" value may still be rewritten byclose_literal) (dsml.rs:38, :46-62).Event::ToolBegin{index: self.calls, name, id: None}is now pushed atOutputAction::ToolNameEnd(dsml.rs:~148-155) instead of at ToolCallArgumentsEnd.- Each argument-text action now calls
call.check_size()?; call.publish(self.calls, events);(dsml.rs:~188-192). - At
ToolCallArgumentsEnd: push closing_text, check_size, validate_arguments,call.publish(...), thenEvent::ToolEnd, thenself.calls += 1(dsml.rs:~200-208). - Strict tools keep parking (no frame before schema accepts) per description.
Second, independent behaviour change in helios/src/server/output.rs:
Accumulator::finish(&self)->finish(&mut self, cause: Termination): ifdrops_unfinished_call(cause)and last call!ended, pop it, then the existing "incomplete emitted tool call" error check (output.rs:163-171).- new
pub(crate) fn drops_unfinished_call(cause) -> bool { cause != Termination::Eos }(output.rs:~476-479). ResponseOutput::finish(&mut self)->finish(&mut self, cause): if drops_unfinished_call and open.is_some() and last block is Tool, pop block + call and clearopen(output.rs:1730-1737).Encoder::finishpasses cause tochats[index].finish(cause)under the Chat guard and tooutputs[index].finish(cause)unconditionally (encode.rs:672-677).- A pre-existing test named
user_stop_cannot_retract_an_already_emitted_partial_tool_callwas renamed touser_stop_omits_an_already_emitted_partial_tool_calland now asserts the partial call is omitted instead of finishing with error "incomplete emitted tool call" (output.rs:~1262-1276). This is an intentional reversal of previously asserted behaviour.
#2 [high] Claims and evidence: PR #685 description's numbers
Claims from PR #685 description (peperunas):
- Motivation:
DsmlOutputcollected parser actions and emitted begin/arguments/end together at ToolCallArgumentsEnd, so a multi-KBwriteargument left the stream silent; client sees a stalled response. - Test claim:
cargo test --locked --release --manifest-path helios/Cargo.toml --features runtime-core,server --lib=> 1783 passed, 18 failed: six need FLARE_TEST_TEMPLATE_DIR, twelve are engram tests failing only under parallel execution and "fail identically on the unmodified main checkout".output::suite 111 passed;server::protocolsuite 94 passed with the same template failure. - Live claim: against https://llm.giugl.io serving
pino/chat(DeepSeek-V4.1-Flash-1017) with the patched backend, a chat-completions request with stream:true, onewritetool and tool_choice "required" returned 566 argument frames totalling 2196 bytes, concatenation hashed identically to the non-streaming arguments; previously 2 frames for a 2.2 KBwrite. - Admitted gaps: Qwen function-tag, GLM argument-tag, MiniMax XML and Gemma call parsers still buffer (arguments synthesized from parameter syntax) so only DSML streams; tagged dialects not exercised against a served model;
flareandflare-clicrates not built (their calls into Helios unchanged). - Description does NOT mention that
UserStop/Cancelled/ExecutionErrornow omit a partial tool call from the buffered body, which is a wire-visible behaviour change (previously an error "incomplete emitted tool call"). It is only alluded to in one clause ("A call cut off by an output limit, a stop string or cancellation therefore keeps its streamed fragments and is omitted from the buffered body") — but not that this was previously a 500/error and that a test asserting the old behaviour was inverted. docs/api.md does state it.
Evidence status: no CI checks on head commit (orientation packet). No reviewer corroboration. Numbers self-reported; cannot run cargo here (no tooling).
#3 [high] Change: undeclared behaviour change — truncation now omits partial calls instead of erroring
Beyond the streaming fix, #685 changes wire behaviour for all parsers, not only DSML:
- Before (main):
Accumulator::finish(&self)returnedErr("incomplete emitted tool call")when any call was notended(helios/src/server/output.rs:163-168 at main). AUserStop/Cancelledmid-call therefore produced a server_error for the request. - After:
finish(&mut self, cause)pops the last unfinished call whendrops_unfinished_call(cause)(cause != Termination::Eos) and only then checks for remaining unfinished calls (output.rs:163-173).ExecutionErroralso drops, per the PR text. ResponseOutput::finish(cause)similarly pops the trailing Tool block, the call index and clearsopen(output.rs:1730-1738), so Messages/Responses streams that already emittedcontent_block_start/response.output_item.addedwill omit the block from the buffered body.- The pre-existing test
user_stop_cannot_retract_an_already_emitted_partial_tool_call(main, helios/src/server/output.rs ~:1254) asserted that UserStop could NOT retract a partial call and returned "incomplete emitted tool call". #685 renames it touser_stop_omits_an_already_emitted_partial_tool_calland asserts the opposite (output.rs diff hunks ~1262-1276). So this is a deliberate inversion of an earlier asserted decision, and the name of the old test ("cannot retract") suggests the earlier behaviour was intentional. - This is not called out as a behaviour change in the PR description headline; it is mentioned only in one clause inside the third paragraph. docs/api.md does now say it explicitly: "An announced call cut off before completion is omitted from a buffered response for every termination other than natural end-of-sequence, and the response reports that termination's finish reason; only an output-limit termination reports the output limit. A client that received fragments of such a call has already seen a call that cannot complete." (docs/api.md diff, ~:549-556 after change).
- Consequence for the wire: a client that saw a
content_block_start/output_item.addedfor the call will never see a matchingcontent_block_stop/output_item.donefor it; the encoder emits the termination frame fromreasons[index](encode.rs:690-748). See encode.rs:424 (Messages Change::End -> content_block_stop) and :470 (Responses Change::End -> output_item.done). - Interaction with
tool_choice: required:Encoder::finishstill errors "required tool choice was not satisfied" when!outputs[index].has_tools()(encode.rs:685-689). Alsotool_limit_reached(parallel_tool_calls=false) already maps toTermination::CancelledinEncoder::finish(encode.rs:666) and in http.rs:527, so #685's new Cancelled path also covers #333's second-call-discard path — previously the discarded second call never got a ToolBegin (encoder broke out of the loop before), but now DSML announces the second call's name before the encoder rejects it (encode.rs:564-576 breaks on ToolBegin aftertool_limit_reached), so the encoder suppresses subsequent frames; this should still hold because the break happens on the first ToolBegin.
#4 [high] Related work: prior PRs on dsml.rs and the output/encode path
Lineage of helios/src/output/dsml.rs (items_touching + search_history, newest first):
- #670 (merged 2026-12-02, lukealonso) parameterize THINK_TAGS reasoning + TAGGED_JSON parser — touched dsml.rs (+3/−3) and 7 other files #685 touches; landed on main after #685 branched (1fbcc3c), so #685's diff is measured against pre-#670 main but the orientation packet notes #670 and #660 landed in between; no textual conflict evident in dsml.rs hunks.
- #418 (merged 2026-11-22, jcartu) Add strict function-tool schemas for DSML, Qwen, GLM and TML parsers — source of the
strictparking path inEncoder::apply(pending_strict_calls, encode.rs:570-621) that #685 explicitly preserves. #685's new testsa_header_only_call.../ strict exclusion rely on it. - #364 (merged 2026-11-19, voipmonitor) Enforce DeepSeek tool call size and retain deeply nested values — moved the 1 MiB check to "before emitting the first tool event". #685 reverses exactly that:
docs/api.mdnow says the bound "is enforced on the append that crosses it, after the call name and earlier argument fragments were published and are not retracted". Reviewer of #364 (yatesdr) asked for that doc wording. So #685 intentionally supersedes the "check before publishing" property introduced in #364 — worth flagging for @voipmonitor/@yatesdr. - #359 (merged, voipmonitor) Retain DeepSeek tool values that are not valid JSON — source of
close_literaland theliteral/literal_quoted/literal_escapedfields that #685'spublish()must respect (it defers publication whileliteral.is_some()). - #228 (merged, voipmonitor) XTML message closure after structured answers; #167 (merged, yatesdr) reasoning budget + V4.1 sampling; #162 (merged, brandonmmusic-max) reasoning close delimiters.
- #578 (merged, malventano) bump deepseek-recipe for aborted DSML parameter openers — the pinned dependency #685 relies on ("The pinned deepseek-recipe parser already releases each argument label and text fragment as it decodes input").
helios/src/server/output.rs lineage: #191 (open, YouNeedCryDear Inkling recipe) besides merged #670, #637 (synthesized tool-call IDs, flare-autobot), #170, #67, #167.
Same-topic neighbours:
- #333 (merged 2026-11-18, yatesdr) "Complete responses after one tool call when parallel calls are disabled" deliberately replaced the earlier contract (from 6f7a45bd) that a second call caused a terminal stream error. It routes the discard as
Termination::Cancelled(http.rs:527, encode.rs:666). #685's new "Cancelled drops the announced call" path sits on top of that. - #577 (open, brandonmmusic-max) preserve Chat reasoning aliases + "allow literal closing tool tags in argument values" — touches argument_tags/chatml/gemma_call/minimax_xml, i.e. the parsers #685 explicitly leaves buffering. Different files from dsml.rs; complementary, not conflicting.
- #575 (open) "Preserve raw JSON tool arguments in TmlOutput for strict TMLv0 calls" — same family of "arguments must be byte-faithful" concern for another dialect.
- #418's evidence mentions an "output-limit sweep verifying finish_reason: length / response.incomplete with zero leaked partial calls or argument" — i.e. the no-leaked-partial-call property was a tested guarantee there.
- #102 (merged, mark-yong) "Consult ignore_eos when classifying a finish reason at the output limit" — a reviewer noted a partial tool call stays in the message while finish_reason changes; adjacent finish-reason territory.
#5 [high] The why: no issue asks for this; buffering was documented at docs/api.md:541
No issue in the local copy of the tracker describes a stalled/silent stream while a DeepSeek tool call is being generated. Searches run: "tool call arguments stream incremental", "DSML arguments stream", "streaming tool arguments stalled live", "buffer tool envelope argument frames", "stream stalls hung model client stalled response", "DeepSeek tool call silent until envelope closes", "incomplete emitted tool call user stop partial", "write tool argument silent stream stall client", "api.md parsers buffer tool envelopes complete", "fsync 8 MiB argument events incremental". Only #685 itself matches the framing.
Closest adjacent reports found:
- docs/api.md line 541 on main literally documented the defect: "The model parsers buffer tool envelopes until they are complete, so argument events do not imply incremental generation of an unfinished call" — that sentence is removed by #685 and replaced with the per-parser description. So the buffering was documented behaviour, not an undocumented bug; whether the docs intent was "acceptable" or "known limitation" is not recorded anywhere found.
- #133 (closed, eduffd) GLM-5.3 live-serving report; a comment from eduffd asked "tool blocks when a later call fails to parse? What it does today, which is documented: docs/api.md ('Truncated tool envelopes are omitted...')" — evidence that at least one live-serving reporter was reasoning about truncated tool envelopes on the wire.
- #319 (closed) "Serving engine wedges under real agent traffic" — multi-second stalls under agent traffic, but attributed to scheduling/cancellation, not parser buffering; only a keyword neighbour.
- #679 (open, ktsaou) output-layer stream failures counted as cancellations — adjacent but about outcome metrics, not streaming cadence.
- #347 (open) "Engine fixes from qualifying GLM-5.3-Flash for production agent traffic" — the general umbrella for agent-traffic readiness; #685 would plausibly fit it, but #347 does not mention this defect (read_item(347) not retrievable: tool refused with "the arguments are not valid JSON for this tool", so its body was not read; only its title/related listing is available).
So: no pre-existing demand thread, no linked issue, no thumbs-up/traffic data. The motivation is entirely the author's own live-serving observation (llm.giugl.io, pino/chat) on 2026-12-02, the same day the PR was opened.
#6 [high] People: first-time contributor, area owners unengaged, PR body edited post-open
Author: peperunas (Giulio De Pasquale per the commit author line of 2f0ed9d3). GitHub association FIRST_TIME_CONTRIBUTOR. History in the last 180 days: 0 merged, 1 closed, 0 open — the closed one is #519 "fix(helios): park an Engram gather while it waits for device-published ids" (2026-11-25), i.e. an engram-focused attempt, not merged. Discord handle given as "peperunas" (PR convention in this repo: each PR ends with a Discord line).
Who usually works in these areas (last 180 days on the default branch): helios/src — Luke Alonso (237 commits), Martin Vit (52), yatesdr (49); docs — Luke Alonso (391), Martin Vit (55), yatesdr (49). For dsml.rs specifically: Luke Alonso (a7af975e official DeepSeek parser adapters, 2026-10-19), Martin Vit/voipmonitor (#359, #364, c96ed096, 89054cb3, f76b517f), Joshua Cartu/jcartu (#418), yatesdr (#167, #333), brandonmmusic-max (#162, #577). For server/output.rs and encode.rs: yatesdr (#333, #167), flare-autobot (#637), mark-yong (#170, #67), WynnD (metrics PRs #548/#560/#562).
Priority contributors per charter: @voipmonitor (= Martin Vit, the dsml.rs owner-author), @original-el8, @lukealonso. #685 touches voipmonitor's 1 MiB-check-before-publish decision from #364 and yatesdr's UserStop/partial-call behaviour, so the two natural reviewers are voipmonitor and yatesdr — neither has engaged.
Engagement so far: zero. pr_comments returned "No comments"; read_item(685) shows "Discussion (0)"; no reviews; no labels; no CI checks on head 2f0ed9d. Unlike #573/#670, no flare-autobot case file or Autobot Review was posted on #685 (those are triggered separately), so no automated review exists yet either.
Note on the PR body itself: it was edited after opening — the orientation packet's copy says "1783 passed and 18 failed: six failures need FLARE_TEST_TEMPLATE_DIR, and twelve are engram tests", while the live read_item copy says "1787 passed and 16 failed: six ... and ten are engram tests", and the output:: suite went 111 -> 113, server::protocol 94 -> 96. Same for "and its argument text is published fragment by fragment" vs "and publishes the argument bytes". So the author pushed/amended (head stayed 2f0ed9d per the packet — the description was edited, not the head commit). The flaky-test count moving between 12 and 10 with the same code is consistent with the author's claim that those engram tests fail only under parallel execution.
#8 [high] Change: six details the description does not state (literal withholding, size-bound reversal, id synthesis)
Verified from the diff (not from the description):
Event::ToolBegincarriesid: Nonefor DSML (dsml.rs:151-155), so the id is synthesized downstream bysynthesize_tool_call_id(Accumulator, output.rs:101) / ResponseOutput (output.rs:1782). Not a change, but means DSML ids remain synthesized.publish()is called aftercheck_size()on each argument-text action (dsml.rs:191-192), so a fragment is published then the next append can fail the 1 MiB bound — the PR's doc change admits this ("the bound is enforced on the append that crosses it, after the call name and earlier argument fragments were published and are not retracted"). This is a direct reversal of #364's property that nothing is emitted before the size check passes (see #364 description: "checks ... before emitting the first tool event"). yatesdr approved that property in #364's review.ToolBeginis now emitted on the first non-repeatedToolNameEndwhileself.callsstill counts only completed calls — so during an open call,self.callsis the index of the open call. Every subsequentpublish(self.calls, ...)uses that index; consistent.- But
Event::ToolEnd { index: self.calls }also usesself.callsthen increments — unchanged. publish()skips whileself.literal.is_some()— astring="false"value is withheld for the whole parameter, so for awritewhose payload is a non-string value the streaming benefit is per-parameter, not per-byte. Not stated in the description.- If a call is rejected by
validate_argumentsat ToolCallArgumentsEnd (duplicate parameter names etc.), the fragments are already published and the request fails (new testa_rejected_argument_object_fails_after_its_fragments_are_published). Before #685 nothing was published, so on that path a client now sees partial arguments followed byserver_error. Description mentions "schema rejection after fragments" only as a test, and ties the accounting risk to #679 (fan-out/cancellation accounting, see separate note). Encoder::finishcallsself.chats[index].finish(cause)?only forProtocol::Chat; Completions keeps no Accumulator.ResponseOutput::finish(cause)is called for every protocol and its result is discarded for Chat (only used for Messages/Responses frames viaself.change(change)).- Example of the "reason" selection the drop interacts with:
Encoder::finishsetsreason = "length"for OutputLimit, else "tool_calls" ifcause != UserStop && has_tools(), else "stop" (encode.rs:690-696). Because the unfinished call is popped,has_tools()is false for a header-only truncated call, so a non-OutputLimit cause yields "stop" — matching the new tests. drops_unfinished_callis apub(crate) fnon Termination, i.e. a shared-behaviour predicate, not a per-dialect flag — consistent with the charter's no-per-model-flags rule.- Nothing in the diff changes the
stricttool path in dsml.rs (call.strictis still set at ToolNameEnd and still consulted for literal escaping at dsml.rs:182-188), andEncoder::apply'spending_strict_callsparking (encode.rs:585-599) still suppresses frames until the compiled schema validates. Verified claim. - The PR does not touch
helios/tests/deepseek_output.rsintegration test file, which #364 had extended.
#10 [high] Reach: streaming win is DSML-only, but the truncation behaviour change is universal
Reach — who and what is affected:
Users / clients:
- Any client of Chat Completions, Anthropic Messages or OpenAI Responses streaming a DeepSeek (DSML) tool call now receives the tool name at header completion and argument text incrementally. Non-streaming requests are unaffected in content (buffered body still gets the whole arguments object).
- Clients with a stall watchdog / SSE timeout benefit; the PR's motivating case is an agent loop that could not distinguish a silent stream from a hung model.
- Clients that previously relied on "no tool event until the call is complete" must tolerate partial JSON in
function.argumentsdeltas. That is already the OpenAI SDK contract, but Flare's docs had said otherwise (docs/api.md:541 on main), so any client-side workaround built on the old documented behaviour would now break.
Behaviour change beyond the motivation (all protocols, all parsers):
- A partial tool call at UserStop / Cancelled / ExecutionError is now dropped from the buffered body and the response ends with the termination's finish reason instead of a
server_error"incomplete emitted tool call". Previously a stop-string match mid-call failed the request; now it succeeds with the call omitted. That changes error rates and finish reasons for operator dashboards. - Related to #679 (open): ktsaou reports that output-layer stream failures are counted as cancellations, not failures. #685 removes one class of those failures (incomplete-call errors) but adds a class of streams that deliver fragments and then terminate — which #679's accounting doesn't cover either way. Not addressed by #685.
Operators / config / defaults:
- No configuration, flag, env var, default or request field changes. No new protobuf field, no contract change (runtime_core/protobuf.rs diff is a one-line test call-site update). So no recipe re-export is needed and existing cores keep loading.
- Metrics: unchanged counters; but the mix of
server_errorvsstop/length/tool_callsshifts for truncated calls (see above).
Compatibility / dependencies:
- Pinned
deepseek-recipedependency untouched; #685 relies on its existing per-fragment action stream ("The pinned deepseek-recipe parser already releases each argument label and text fragment as it decodes input"). No dependency bump. - Internal signatures changed:
Accumulator::finish(&self)->finish(&mut self, Termination),ResponseOutput::finish(&mut self)->finish(&mut self, Termination).Accumulatorispub(crate);ResponseOutputispub(super)— both crate-internal, so no downstream crate breakage. The 8 non-test file changes besides dsml.rs/output.rs/encode.rs are exactly the call-site plumbing (argument_tags, chatml, gemma_call, minimax_xml, pipeline, xtml, protobuf, phase_tests). - The
flareandflare-clicrates were not built by the author; they call Helios but not these internal symbols, so the claim is plausible and unverified here.
Documentation:
- docs/api.md is materially rewritten in the tool-call section (+25/−12): per-parser streaming guarantee, what fragments concatenate to, how a truncated announced call ends, the literal-privacy rule, and the new "bound enforced on the append that crosses it" wording. Downstream: anyone quoting "argument events do not imply incremental generation" must update.
- No change to helios/model-contract.md; no change to any doc under docs/ other than api.md.
Breadth: single dialect out of seven+ for the streaming win, but the truncation/omission change is universal (every tool parser, every protocol).
#11 [high] Research summary
Case file for PR #685 "fix(frontend): stream DeepSeek tool-call arguments" (peperunas, FIRST_TIME_CONTRIBUTOR; open, ready for review, head 2f0ed9d, 13 files +662/−72, no reviews, no comments, no CI checks).
Ten scratchpad entries cover every angle. The change itself is small and well-targeted: DsmlOutput::apply now pushes Event::ToolBegin at ToolNameEnd instead of at ToolCallArgumentsEnd, and publishes argument bytes through a new Call::publish() cursor (helios/src/output/dsml.rs:49-62,145-156,188-205), with the string="false" literal kept private while close_literal may rewrite it. Eight of the other twelve files are mechanical finish(Termination) call-site updates.
What a reader could not learn from the description, and what dominates the case file, is a second and universal behaviour change: Accumulator::finish and ResponseOutput::finish now drop an announced-but-unfinished tool call for every cause except Eos (new drops_unfinished_call, helios/src/server/output.rs:163-173,1730-1742), so a UserStop/Cancelled/ExecutionError mid-call now ends with the termination's finish reason rather than the previous server_error "incomplete emitted tool call". The PR inverts the pre-existing test user_stop_cannot_retract_an_already_emitted_partial_tool_call to assert the opposite. This applies to all seven-plus parsers and all three wire protocols, while the streaming win is DSML only.
Two further reversals matter. #364 (voipmonitor, merged 2026-11-19, reviewed by yatesdr) deliberately moved the 1 MiB check to before the first tool event; #685 now publishes fragments before the bound can trip, and says so in docs/api.md. And docs/api.md:541 on main explicitly documented "The model parsers buffer tool envelopes until they are complete, so argument events do not imply incremental generation" — the sentence this PR deletes, i.e. the buffering was documented behaviour, not an undocumented bug. No issue in the tracker asks for this; #133, #319, #347 and #679 are only keyword neighbours.
Fit: the charter supports the root-cause framing and the description has all four required parts, but "what gets merged" wants a maintainer request, roadmap item, filed bug or measured issue — none of which this has, the evidence being the author's own llm.giugl.io measurement. Area owners voipmonitor and yatesdr have not engaged; #670 (lukealonso) landed in eight of the same files the same day the PR opened, so a rebase of docs/api.md and the two test files is needed. The self-reported flaky-engram test count moved from 12 to 10 between the packet's copy of the description and the live one (the body was edited post-open; head unchanged).
#7 [medium] Project fit: charter aligns on root cause and description shape; fit risk is "no maintainer request, no filed bug"
Charter (read_charter) mapping, as facts:
Where #685 lines up:
- Vision lists "coding agents, and heavy tool use" as the target workload; a stalled tool-call stream is exactly that workload's failure mode.
- "Bug fixes need to address the root cause; don't just swallow, skip, or retry an unexplained error (#397)" — #685 changes when the parser publishes, and does not buffer/skip: it names the root cause (
DsmlOutputcollected actions and emitted at ToolCallArgumentsEnd) and fixes it at that layer. That is the charter's "solve the right problem in the right place". - "PR descriptions: Expect four parts — why, what changed, claimed result, evidence." #685's description has all four (why in ¶2, what in ¶3, result in ¶4, evidence in ¶5-6) and is unusually explicit about what was NOT tested.
- "Bring real evidence... Bug fixes need to address the root cause." The live measurement (566 frames / 2196 bytes hashing identical to non-streaming) is the kind of served-workload evidence the charter wants, though it is self-reported and single-model.
Where it does not line up / needs a judgement call:
- "Keep the runtime small and model-agnostic... shouldn't accumulate per-model branches (#267, #334)." #685's core change is inside one dialect adapter (dsml.rs), gated by nothing model-specific at the shared layer; but it introduces a dialect-dependent streaming guarantee: DSML streams, the other six dialects (QwenCoder, GlmArgumentTags, MiniMaxXml, GemmaCall, Xtml, Atem/TmlJson/TaggedJson) still buffer. docs/api.md now has to spell out that split. That is a "two behaviours behind one Event contract" tension a reviewer could raise, though the charter's rule is about runtime branches and no new per-model branch is added (the split already existed; the PR documents it).
- "Don't silently ignore API fields" (#417) is not implicated.
- "Check interactions across every supported model, cache scheme, parallel layout... verify existing data, artifacts, exported cores still load" (Code Review Standards). #685 declines to build the
flareandflare-clicrates ("not built, their calls into Helios unchanged") — the charter's compatibility check would normally want those built sinceAccumulator::finishispub(crate)(internal) andResponseOutput::finishispub(super), so the signature change is not a public API break; butResponseOutput::finishispub fninside the crate module (output.rs:1730) — its consumers are all in-crate (encode.rs:677). - Roadmap: no roadmap item covers tool-call streaming; "What gets merged" requires a maintainer request, roadmap item, reproducible bug, measured perf issue, or bad docs. #685 is closest to "reproducible bug" + "measured perf issue", but the bug is not filed as an issue and the measurement is from the author's own deployment (llm.giugl.io), not a maintainer-requested one. That is the single biggest fit risk.
- Non-goals: none touched (no new model, no hardware, no alias).
#9 [medium] Recent activity: dsml.rs churn by voipmonitor in Nov, #670 landed the same day as #685 opened
Recent activity on the touched files on main, within 60 days (orientation packet + search_history):
- 4cc6f2fd 2026-12-02 PCCessna "helios/scheduler: budget interior conversation-anchor splits…" (#660) — touches helios/src broadly but none of #685's 13 files; no interaction.
- 2acc3f3a 2026-12-02 Luke Alonso (#670) TAGGED_JSON/THINK_TAGS — shares 8 files with #685 including dsml.rs, argument_tags.rs, pipeline.rs, protobuf.rs, server/output.rs, protocol/tests.rs, phase_tests.rs, docs/api.md. Merged to main the same day (14:16) as #685 was opened (18:07). #685's branch base is 1fbcc3c (before #670), so #670's edits are not in #685's branch. Overlap risk is textual only in docs/api.md (both rewrote the parser paragraphs) and in tests.rs/phase_tests.rs (both append tests). This is the change that landed between branching and review that a rebase must absorb.
- 1fbcc3c9 2026-12-01 Luke Alonso "Harden Orbit payload integrity, multi-deployment TP seams, GB10 page-cache release, Unix flock drop, and multi-host peer exports" (#667) — no overlap.
- dsml.rs recent: 0b09434d (#418 strict, 2026-11-22), dc0d40e0 (2026-11-19 hardening), c96ed096/89054cb3/401b7e0c (#359/#364, 2026-11-18), f76b517f (#228), 902c88e2 (#167), 5dd6723e (#162). So dsml.rs was actively edited in the three weeks before #685 — by voipmonitor (Martin Vit) mostly, and that work is precisely the
literal/check_sizemachinery #685 has to thread through. - server/output.rs recent: 4ed5d875 (#637, 2026-11-30 flare-autobot), 0794d5b8 (#170), 902c88e2 (#167), a5b6ed26 (#67). Before that, bcd6b249/6f7a45bd/99cfcd5b (Luke Alonso, Oct 13-14) created the Accumulator/ResponseOutput/Encoder skeleton.
- docs/api.md is the most frequently edited doc (every one of the above touched it), so #685's api.md edits will need rebasing against #670's rewrite of the same section.
Does #685 build on, conflict with, or reverse that work?
- Builds on: #359's literal retention (publish() explicitly defers while a literal may be rewritten), #418's strict parking (preserved), #578's deepseek-recipe bump (the action stream #685 consumes), #333's Cancelled path (reused as the drop cause).
- Reverses: #364's "check size before emitting any tool event" (now emits before the bound can trip); the pre-existing
user_stop_cannot_retract_an_already_emitted_partial_tool_calltest/contract. - Supersedes the docs sentence at docs/api.md:541 ("The model parsers buffer tool envelopes until they are complete, so argument events do not imply incremental generation of an unfinished call").
- Conflicts (textually) with #670 in docs/api.md and the two test files; #677 (open) touches argument_tags/chatml/gemma_call/minimax_xml — no file overlap with dsml.rs but same test-file adjacency? (related_items lists 4 files in common: argument_tags, chatml, gemma_call, minimax_xml — none of which #685 changes beyond signature updates, so a rebase there is mechanical
finish(cause)plumbing).
#12 [medium] Process: draft/ready state, CI, review state, age
- State: open, marked ready for review (orientation packet). Base
main, head commit 2f0ed9d3da704143b8437eb40e49fd451bb875e0 (2f0ed9d), branchfix/dsml-tool-call-streaming(read_item(685)). - Opened 2026-12-02 18:07, last updated 2026-12-02 18:07 per read_item(685); the orientation packet notes #685 is not in the local copy, so open/update timestamps came from the fetched copy. Branch point is 1fbcc3c, i.e. before #670 (2acc3f3a, merged 2026-12-02 14:16) and #660 (4cc6f2fd) landed on main.
- Age: hours, not days, as of this case file. No CI checks on the head commit at all (orientation packet: "CI on the head commit: no checks"). So the only test evidence is the author's local run reported in the description — there is no independent green build.
- Labels: none. Reviews: none. Comments: none (pr_comments -> "No comments"; read_item -> "Discussion (0)"). No flare-autobot case file or Autobot Review comment was posted on this PR, unlike #573 and #670 where the bot posted an intake notice plus a full review within ~a day. So no automated review exists yet either.
- The description was edited after opening: orientation-packet copy says 1783 passed / 18 failed (12 engram failures); live copy says 1787 passed / 16 failed (10 engram failures);
output::111 -> 113 passed,server::protocol94 -> 96. Head commit id was the same in both, so this is a body edit rather than a new push (or the packet snapshot predated a push; can't distinguish without the PR timeline API). - Draft status: not a draft. Size is reviewable (13 files, one substantive file at +315/−18 plus +266 of tests).
#13 [medium] Community: zero engagement, and how this repo's review traffic usually arrives
- #685 has drawn no interest yet: 0 comments, 0 reviews, 0 inline review comments, no labels, no reactions available (pr_comments -> "No comments"; read_item(685) -> "Discussion (0)").
- For contrast, comparable output-layer PRs in the same area do draw traffic quickly: #573 (lukealonso, merged 2026-11-28) received a flare-autobot case-file notice ~1.5 h after opening and a full Autobot Review ~2.5 h before merge; #670 (lukealonso, merged 2026-12-02) likewise got an intake notice 24 min after opening and a review 13 min later with "Changes Requested" and 3 blockers. #364 (voipmonitor) got a substantive human review from yatesdr within 10 minutes.
- So the absence of any bot review on #685 after hours is itself a signal that the automated review pipeline has not been triggered for this PR (no
#autobottrigger and apparently no auto-run), not that the PR was screened out. - The PR ends with "Discord: peperunas", matching the repo's convention (each of #364 "Discord: festr", #670 "Discord: lukealonso", #573 "Discord: no username provided").
- No thumbs-up/eyes reactions were readable through the tools available; no downstream agent-loop or SDK consumer has spoken up in the tracker about the silent-tool-call symptom.