#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).
#15 [high] NEW EVENT 2026-12-02 18:31: Autobot Review = Changes Requested on #685
Supersedes notes #12 (process), #13 (community) and the "no independent evidence / no bot review" claim in #11/#14.
- flare-autobot, 2026-12-02 18:10 UTC: case file + intake report posted (https://autobot.eidonix.com/api/v1/cases/91494b52-270b-424c-ac0b-f5344388ea0e.html).
- flare-autobot, 2026-12-02 18:31 UTC: full Autobot Review, recommendation Changes Requested, "Blockers: 2 · Should fix: 1 · Subtract/Simplify: 4 · Nits: 2" (full review https://autobot.eidonix.com/p/5e6f2bd5-3139-402b-a853-b6f6170dace0.html, not fetchable from here). Merge risk rated High.
- read_item(685) now shows labels
area:api, model:deepseek-v4, model:deepseek-v4.1, performance, triage:review, updated 2026-12-02 18:31. So a triage decision has happened; still zero human maintainer comments or reviews (Discussion = the two bot comments only). - Head moved 2f0ed9d → 80c87b3d ("fix(frontend): stream DeepSeek tool-call arguments", same author, same parent 1fbcc3c9). File list and line totals unchanged (13 files, +662/−72), and docs/api.md:540-572 and server/output.rs:1265-1274 are byte-identical at both hashes → the push looks content-preserving (rebase/amend). Consequence: the packet-vs-live test-count drift (1783/18 vs 1787/16, note #6/#12) is still best explained by a PR-body edit, not by a new push.
- The review independently converges with my findings #3/#8 (inverted retraction test, signed-off invariants reversed, #364 pre-publication bound reversed, no issue/request) and adds two claims I verified separately: integration-test breakage and Messages/Responses framing (see notes 16, 17).
#16 [high] NEW: four existing integration tests in helios/tests/ break (CI, non---lib)
New finding at head 80c87b3d, verified by reading the (unmodified) integration tests. PR files list confirms no helios/tests/ file is touched.
CI runs those: .github/workflows/native-serving.yml:63 (Linux) and :68 (Windows) run cargo test --locked --release --manifest-path helios/Cargo.toml ... --features runtime-core,server without --lib, so integration tests are included. The description's evidence is cargo test ... --lib only, which excludes them.
Tests that now fail:
helios/tests/deepseek_output.rs:576–parse_literal_parametersassertsoutput.push(Input::Text(&header))?.is_empty(); under #685 the header push emitsEvent::ToolBegin(dsml.rs:145-156). Also:581asserts each parameter push is empty, before the deferredstring="false"publish.- Same helper used by
tool_call_size_includes_retained_strings_and_closing_brace_in_either_order(deepseek_output.rs:595-619) → fails. - Same helper used by
literal_nesting_includes_the_enclosing_argument_object(deepseek_output.rs:621-635) → fails. empty_and_duplicate_top_level_parameter_names_are_rejected(deepseek_output.rs:475-527) assertspublished.is_empty()at:511before the "nonempty and unique" error;validate_argumentsruns afterToolBeginwas already published (dsml.rs:151-155 vs :202), sopublishedcontains ToolBegin → fails.added_non_special_dsml_token_produces_tool_calls(helios/tests/deepseek_requests.rs:651-687) doesserde_json::from_str::<Value>(text).unwrap()on a singleEvent::ToolArgumentsfragment (:683-684); fragments are now partial JSON ({"location":,"Berlin", …) → unwrap panics → fails.
So "four existing integration tests in deepseek_output.rs and deepseek_requests.rs" (the review's claim) is consistent with my reading: 3 in deepseek_output.rs (two of them via the shared helper) + 1 in deepseek_requests.rs. This converts my earlier "no independent evidence" soft finding into a reproducible defect a reviewer can check without running anything.
#17 [high] NEW: truncation drop leaves Messages/Responses tool blocks unclosed (framing violation)
Upgrades the "client sees content_block_start with no stop" consequence in note #3 into a verified blocker.
ResponseOutput::finish(cause)(server/output.rs:1730-1742) pops the trailingBlock::Tooland setsself.open = Nonebefore callingclose().close()(server/output.rs:1720-1729) is the only producer ofChange::End(index); withopen == Noneit emits nothing.Change::Endis what producescontent_block_stopfor Messages (encode.rs:424-428) andresponse.function_call_arguments.done+response.output_item.donefor Responses (encode.rs:470-516).Encoder::finishstill emits the terminal frames unconditionally:message_delta/message_stopfor Messages andresponse.incomplete/response.completedfor Responses (encode.rs:730-745). Net: an SSE client that receivedcontent_block_start(encode.rs:409-415) orresponse.output_item.added(encode.rs:430-434) for the dropped call never receives its stop/done frame, i.e. the stream ends with an open block. The new protocol tests (helios/src/server/protocol/tests.rs:3810,:3894,:4004) assert only the buffered response (encoder.response()), never the frame sequence around the drop, so they do not catch this. For Chat,Accumulator::finish(cause)(server/output.rs:163-173) has the milder version of the same problem: the caller already gottool_calls[0].function.namein a delta (output.rs:111) and the final message has notool_calls, so a Chat client sees a call it cannot reconcile — which is exactly what the inverteduser_stop_omits_an_already_emitted_partial_tool_call(server/output.rs:1265-1274) now blesses.
#18 [high] AMENDMENTS to report #14 (superseded claims + new evidence)
Apply these to the case file in note #14 (head is now 80c87b3d, not 2f0ed9d).
A. SUPERSEDED — "no comments, no reviews, no bot review, zero engagement" (#12, #13, #14's Community section and Key finding 5).
- flare-autobot posted an intake notice at 18:10 and a full Autobot Review at 18:31 on 2026-12-02, recommendation Changes Requested, "Blockers: 2 · Should fix: 1 · Subtract/Simplify: 4 · Nits: 2", Merge Risk High (https://autobot.eidonix.com/p/5e6f2bd5-3139-402b-a853-b6f6170dace0.html — not fetchable from here, so only its posted summary is quotable).
- Labels appeared with it:
area:api, model:deepseek-v4, model:deepseek-v4.1, performance, triage:review(read_item(685) shows updated 2026-12-02 18:31). - Still true: zero human comments, zero reviews, and neither natural reviewer (voipmonitor, whose #364 invariant is reversed; yatesdr, who approved it and authored the UserStop path) has engaged.
B. CORRECTED — head hash and push. 2f0ed9d → 80c87b3d (same author, same parent 1fbcc3c9, same subject). Files and totals unchanged (13 files, +662/−72); docs/api.md:540-572 and helios/src/server/output.rs:1265-1274 are byte-identical at both hashes, so the push is content-preserving. Therefore my earlier packet-vs-live test-count drift (1783/18 → 1787/16) still reads as a PR-body edit, not a new push.
C. UPGRADED — two defects confirmed independently that the author's --lib evidence cannot see: integration-test breakage (note 16) and Messages/Responses framing (note 17). Both are now reproducible by reading, not just suspected.
D. NEW — docs/api.md:543-547 is already factually wrong on main, before any rebase. It says the tagged parsers "build [arguments] from parameter syntax and the declared schemas rather than copying the model's text: values are coerced to declared types". TAGGED_JSON (#670) does neither: helios/src/output/tagged_json.rs:14-49 parses the model's own {"name":…,"arguments":…} object and re-serializes it (object["arguments"].to_string()), with JSON_BODY = true (tagged_json.rs:57) and no schema coercion. The PR branch predates TAGGED_JSON entirely (no occurrence of TaggedJson/TAGGED_JSON at 80c87b3d; main has them at helios/src/model/contract.rs:67, helios/src/output/pipeline.rs:54,127, helios/src/output/tagged_json.rs, docs/api.md:610-619). So the rebase note (#9) understates it: the sentence #685 adds is false for a parser that minted after it branched, and the rebase is semantic, not just a merge conflict.
E. NEW — the charter rule that bites is not only "maintainer request" but the explicit "do not suppress errors" line. AGENTS.md:182-187: "Reject weakened guarantees. … Do not remove validation, suppress errors, silently substitute execution paths…" and AGENTS.md:201-207: "Resolve conflicts through an explicit maintainer decision on the design before implementing a change to that invariant; a commit acknowledgment or routine PR approval is not that decision. Apply these criteria to documentation and test changes that would weaken the rules as well as code." #685 replaces Err("incomplete emitted tool call") (main helios/src/server/output.rs:165,1720) with success-plus-drop, and edits both the docs and the test that stated the rule. That is a literal hit on two of those clauses, which is a firmer project-fit finding than #7 recorded.
F. UNCHANGED — the core of #14 still holds: universal non-EOS drop behind a DSML-only streaming win, the inverted retraction test, the #364 publish-after-size-check reversal, no filed issue, self-reported evidence only.
#21 [high] Research summary
Amendments to the #685 case file
1. Superseded — “no comments, no reviews, no bot review, zero engagement.” flare-autobot posted an intake notice at 18:10 and a full Autobot Review at 18:31 on 2026-12-02, recommendation Changes Requested (2 blockers, 1 should-fix, 4 subtract/simplify, 2 nits; Merge Risk High; full review at autobot.eidonix.com/p/5e6f2bd5-…, not fetchable here). Labels appeared with it: area:api, model:deepseek-v4, model:deepseek-v4.1, performance, triage:review. Still true: no human comment or review, and neither natural reviewer (voipmonitor — whose #364 invariant is reversed; yatesdr — who approved it and wrote the UserStop path) has engaged. The review independently converges with my findings on the inverted retraction test, the reversed signed-off invariants, and the missing issue/request.
2. Corrected — head hash. 2f0ed9d → 80c87b3d (same author, same parent 1fbcc3c9). Files and totals unchanged (13 files, +662/−72); docs/api.md:540-572 and helios/src/server/output.rs:1265-1274 are byte-identical at both hashes, so the push is content-preserving. The earlier packet-vs-live test-count drift (1783/18 → 1787/16) therefore remains a PR-body edit, not a new push.
3. Upgraded from suspicion to verified — two defects the author’s --lib evidence cannot see. (a) Integration tests break: helios/tests/deepseek_output.rs:576,581 (parse_literal_parameters, reused by :595-619 and :621-635) assert pushes are empty before the envelope closes; :511 asserts published.is_empty() before the “nonempty and unique” error; helios/tests/deepseek_requests.rs:683-684 serde_json::from_str on a now-partial fragment. CI runs these without --lib (.github/workflows/native-serving.yml:63 (not opened),68). (b) Framing violation: ResponseOutput::finish pops the trailing tool block and clears open (helios/src/server/output.rs:1730-1742), so close() (:1720-1729) emits no Change::End, yet Encoder::finish still emits message_delta/message_stop and response.incomplete/response.completed (helios/src/server/protocol/encode.rs:730-745) — an SSE block opened at encode.rs:409-415/:430-434 is never closed. The PR’s new protocol tests (helios/src/server/protocol/tests.rs:3810,3894,4004) assert only encoder.response(), never the frame sequence, so they miss it.
4. New — the doc sentence is already wrong on main, rebase or not. docs/api.md:543-547 claims tagged parsers build arguments “from parameter syntax and the declared schemas … values are coerced to declared types”. TAGGED_JSON (#670) does the opposite: helios/src/output/tagged_json.rs:14-49,57 parses the model’s own object and re-serializes it, no schema coercion. TaggedJson/TAGGED_JSON do not exist at 80c87b3d (they do on main: helios/src/model/contract.rs:67 (not opened), helios/src/output/pipeline.rs:54,127, docs/api.md:610-619). The rebase is semantic, not merely a conflict.
5. New — a firmer charter hit than recorded. AGENTS.md:182-187 “Reject weakened guarantees … Do not remove validation, suppress errors …” plus AGENTS.md:201-207 “Resolve conflicts through an explicit maintainer decision … Apply these criteria to documentation and test changes that would weaken the rules as well as code.” #685 deletes the Err("incomplete emitted tool call") case (main helios/src/server/output.rs:165,1720), edits the test that stated it (:1265-1274) and the docs sentence that documented it (main docs/api.md:540-541) — three of the four surfaces that clause names, with no maintainer decision on record.
6. Refinement (framing only, finding unchanged). Main already documented that “truncated tool envelopes are omitted and the response reports its output limit” (docs/api.md:540-543, matching the parsers’ own omit paths, e.g. helios/src/output/tagged.rs:264-278). So state the delta precisely: it is UserStop, Cancelled and ExecutionError — not OutputLimit — where an announced-but-unfinished call now succeeds-and-drops instead of failing the request, with the finish reason becoming that cause’s (stop on Chat, encode.rs:690-696). OutputLimit omission is unchanged; what is new there is that DSML can now have an announced call to omit (dsml.rs:145-156).
7. Unchanged — the core of the case file stands: universal non-EOS drop behind a DSML-only streaming win, the inverted retraction test, the #364 publish-after-size-check reversal, no filed issue, and self-reported evidence only.
#22 [high] CONSOLIDATED AMENDMENTS (final form) — fold these into report #14
This is the delta to apply to the base case file in note #14. The final report should present #14's findings with these amendments folded in, not repeat #14 verbatim.
FINAL STATE OF FACTS (head is 80c87b3d, not 2f0ed9d).
-
SUPERSEDED — "no comments, no reviews, no bot review, zero engagement" (notes #12, #13, #14 Key finding 5 and its Community section).
- flare-autobot posted an intake/case-file notice at 2026-12-02 18:10 UTC, then a full Autobot Review at 18:31 UTC with recommendation "Changes Requested": "Blockers: 2 · Should fix: 1 · Subtract/Simplify: 4 · Nits: 2", Merge Risk High. Full review at https://autobot.eidonix.com/p/5e6f2bd5-3139-402b-a853-b6f6170dace0.html (not retrievable from this environment — only its posted summary on the PR is quotable).
- Labels appeared with it (read_item(685), updated 2026-12-02 18:31):
area:api, model:deepseek-v4, model:deepseek-v4.1, performance, triage:review. - Still true: zero human comments, zero reviews, zero inline comments; neither natural reviewer has engaged (voipmonitor, whose #364 invariant is reversed; yatesdr, who approved #364 and authored the
UserStop/Cancelled paths). - The review independently converges with my notes #3/#8 on: inverted retraction test, reversed signed-off invariants, #364 pre-publication bound reversed, no issue/maintainer request. It adds the two defects now verified in notes 16 and 17.
-
CORRECTED — head hash.
2f0ed9d->80c87b3d(same author, same parent 1fbcc3c9, same subject "fix(frontend): stream DeepSeek tool-call arguments"). Files and totals unchanged (13 files, +662/−72).docs/api.md:540-572andhelios/src/server/output.rs:1265-1274are byte-identical at both hashes, so the push is content-preserving. Consequence: the packet-vs-live test-count drift (1783 passed/18 failed, 12 engram -> 1787/16, ten;output::111->113;server::protocol94->96) remains a PR-body edit, not evidence of a new push. -
UPGRADED from suspicion to verified — two defects the author's
cargo test ... --libevidence structurally cannot see (notes 16, 17). (a) Integration tests break; CI runs them:.github/workflows/native-serving.yml:63(Linux) and:68(Windows) invokecargo test ... --manifest-path helios/Cargo.toml ... --features runtime-core,serverwithout--lib. The PR touches nohelios/tests/file. Breakages:helios/tests/deepseek_output.rs:576and:581(helperparse_literal_parameters, also driving:595-619and:621-635) assert pushes are empty before the envelope closes;:511assertspublished.is_empty()before the "nonempty and unique" rejection, butEvent::ToolBeginnow precedesvalidate_arguments(dsml.rs:151-155 vs :202);helios/tests/deepseek_requests.rs:683-684runsserde_json::from_stron a singleEvent::ToolArgumentsfragment that is now partial JSON. (b) Protocol-framing violation on truncation:ResponseOutput::finish(cause)(helios/src/server/output.rs:1730-1742) pops the trailingBlock::Tooland setsopen = Nonebeforeclose();close()(:1720-1729) is the only producer ofChange::End, which is what emitscontent_block_stop(encode.rs:424-428) andresponse.output_item.done(encode.rs:470-516).Encoder::finishnonetheless emitsmessage_delta/message_stopandresponse.incomplete/response.completed(encode.rs:730-745), so a block opened atcontent_block_start(encode.rs:409-415) orresponse.output_item.added(encode.rs:430-434) is never closed. The PR's new protocol tests (helios/src/server/protocol/tests.rs:3810, 3894, 4004) assert onlyencoder.response(), never the frame sequence, so they miss it. -
NEW — the doc sentence #685 adds is already false on main, rebase or not.
docs/api.md:543-547says tagged parsers "build its arguments from parameter syntax and the declared schemas rather than copying the model's text: values are coerced to declared types".TAGGED_JSON(#670) does neither:helios/src/output/tagged_json.rs:14-49parses the model's own{"name":…,"arguments":…}object and re-serializes it (object["arguments"].to_string()), withJSON_BODY = true(tagged_json.rs:57) and no schema coercion.TaggedJson/TAGGED_JSONare absent at80c87b3d; on main they appear athelios/src/model/contract.rs:67,helios/src/output/pipeline.rs:54,127,docs/api.md:610-619. So the rebase obligation noted in #9 is semantic, not a mere merge conflict. -
NEW — firmest charter mapping (note 19).
AGENTS.md:182-187"Reject weakened guarantees. … Do not remove validation, suppress errors, silently substitute execution paths …";AGENTS.md:201-207"Resolve conflicts through an explicit maintainer decision on the design before implementing a change to that invariant; a commit acknowledgment or routine PR approval is not that decision. Apply these criteria to documentation and test changes that would weaken the rules as well as code." #685 removes theErr("incomplete emitted tool call")case (mainhelios/src/server/output.rs:165,1720), rewrites the test that asserted it (:1265-1274) and the docs sentence that documented it (maindocs/api.md:540-541) — three of the four surfaces that clause names, with no maintainer decision on record. This is stronger than the "no maintainer request" fit risk recorded in #7. -
REFINEMENT (framing only; the finding in #3 stands). Main already documented: "Tool arguments are JSON objects, bounded to 8 MiB. The model parsers buffer tool envelopes until they are complete … Truncated tool envelopes are omitted and the response reports its output limit." (main
docs/api.md:540-543), consistent with the parsers' own omit paths (helios/src/output/tagged.rs:264-278,xtml.rs:242-250,tml.rs:371-378,recipient.rs:264-295). TheErr("incomplete emitted tool call")path fired only for a call that had already been announced. So the precise delta is: for UserStop, Cancelled and ExecutionError — not OutputLimit — an announced-but-unfinished call now succeeds-and-drops instead of failing the request, and the finish reason becomes that cause's (stopon Chat,encode.rs:690-696). OutputLimit omission is unchanged; what is new there is that DSML can now have an announced call to omit (dsml.rs:145-156). -
UNCHANGED from #14 — universal non-EOS drop behind a DSML-only streaming win; the inverted
user_stop_cannot_retract…test; the #364 publish-after-size-check reversal (docs/api.md:570-572); no filed issue or maintainer request for the streaming behaviour; self-reported evidence only (566 frames / 2196 bytes hashed equal). Author standing, prior #519, area owners, and the file map in #14 all still apply.
#24 [high] AMENDMENTS (run 3041): new head b9864ab fixes 2 of 3 blockers; test weakening + custom-tool residual
AMENDMENTS to the #685 case file (report entry #23), 2026-12-02 later run. Only deltas.
-
HEAD + SIZE. head 80c87b3d -> b9864ab8243b2a54caf0d990f6759b1ddd9ec2db ("fix(frontend): stream DeepSeek tool-call arguments", same author, parent still 1fbcc3c9). Files 13 -> 15, +722 / −80 (read_item(685) shows 15 files; pr_files agrees). Two new files:
helios/tests/deepseek_output.rs(+15/−6) andhelios/tests/deepseek_requests.rs(+11/−2). PRupdated: 2026-12-02 21:47; labels now includebugandenhancementin addition toarea:api, model:deepseek-v4, model:deepseek-v4.1, performance, triage:review. -
THIRD AUTOBOT REVIEW, 20:04 UTC (pr_comments, https://autobot.eidonix.com/p/c9c2f86f-6ee1-4ca2-bb17-25b4b3bde16b.html): still Changes Requested, tally moved 18:31's "Blockers 2 · Should fix 1 · Subtract 4 · Nits 2" -> "Blockers 3 · Should fix 2 · Subtract/Simplify 2 · Nits 2", Merge Risk High "up to 80c87b3". Not a human review; still zero human comments/reviews.
-
RESOLVED — finding #16 (four broken integration tests). At b9864ab the author edited both test files instead of the parser:
helios/tests/deepseek_output.rs:576-595parse_literal_parametersno longer assertspush(...).is_empty(); it now routes events intoParsed, so the header/parameter pushes may announce the call.:599still assertsparsed.ended == 1.:499-515empty_and_duplicate_top_level_parameter_names_are_rejectedreplacedassert!(published.is_empty())withassert_eq!(parsed.ended, 0, "a rejected call reported an end").helios/tests/deepseek_requests.rs:683-693concatenates allEvent::ToolArgumentsfragments, thenfrom_str. Consequence: the review's and my blocker #1 (guaranteed Linux/Windows CI failure inhelios/tests/) no longer holds by static reading — the four tests now assert streaming-compatible things. BUT this is exactly the "weaken the test" patternAGENTS.md:201-207forbids ("Apply these criteria to documentation and test changes that would weaken the rules as well as code"): the old:511assertion that nothing at all was emitted before the "nonempty and unique" rejection is now only "no call ended", i.e. it permits an announced-then-rejected call. Upgrade the charter finding: the PR now edits code, docs AND tests to accommodate the behaviour change.
-
RESOLVED — finding #17 (unclosed Messages/Responses blocks).
ResponseOutput::finish(cause)now pushesChange::End(last)before clearingopenand records the index (helios/src/server/output.rs:1731-1744);Encoder::finishrenders the changes, then callstake_abandoned()/drop_abandoned()socontent_block_stop(encode.rs:424-428) andresponse.output_item.done(encode.rs:470-516) are emitted before the block is removed (encode.rs:677-689, helpers atoutput.rs:1746-1755). New coverage asserts exactly this:helios/src/server/protocol/tests.rs:3861-3876requirescontent_block_stop/response.output_item.donein the finish frames for OutputLimit/UserStop/Cancelled/ExecutionError. So the framing blocker is fixed and now tested. -
NEW residual defect (static reading, not executed) — truncating a custom (grammar) tool call now fails the request rather than omitting the call. The abandoned block's
Change::Endis rendered throughencode.rs:470-517; forBlock::Toolwhose declared tool iscustom,encode.rs:475-484doesserde_json::from_str(arguments).map_err(|e| format!("invalid custom tool arguments: {e}"))?. A truncated call's arguments are, by construction, partial JSON (that is why it is being abandoned), soErrpropagates out ofEncoder::finish->encoder.failure(http.rs:575-578) and the stream ends in an error frame with noresponse.completed/incomplete. Nothing in the PR's new tests covers a custom tool (tests.rsuses the plainlookupfunction tool,tools()attests.rs:17-29). -
STILL OPEN / unchanged.
docs/api.md:543-547is still false against main (TAGGED_JSONfrom #670 re-serializes the model's own arguments,helios/src/output/tagged_json.rs:14-49,57) — no rebase done at b9864ab; the non-EOSErr("incomplete emitted tool call")removal (output.rs:163-173Chat,:1721-1744Responses; predicate:478-480) is now documented indocs/api.md:547-551and in the PR body ("ExecutionError included") but still has no maintainer decision on record; the #364 publish-after-check reversal persists (docs/api.md:568-572); the inverteduser_stop_omits_an_already_emitted_partial_tool_call(output.rs:1265-1274) persists; no filed issue.
#25 [high] Research summary
Amendments saved as scratchpad entry #24 (apply on top of report entry #23).
New event: head moved 80c87b3d → b9864ab824 (13 → 15 files, +722/−80; the PR now also edits helios/tests/deepseek_output.rs and helios/tests/deepseek_requests.rs), labels gained bug/enhancement, and a third Autobot review at 2026-12-02 20:04 UTC re-asserted Changes Requested with a larger tally (Blockers 3 · Should fix 2 · Subtract/Simplify 2 · Nits 2, "up to 80c87b3"). Still zero human reviews.
Two of my three blockers are repaired: the four broken integration tests were fixed by editing the tests (deepseek_output.rs:499-515, 576-599, deepseek_requests.rs:683-693), and the unclosed content_block_start / response.output_item.added framing violation is fixed by rendering the abandoned block's Change::End before dropping it (output.rs:1731-1755, encode.rs:677-689), with new assertions at protocol/tests.rs:3861-3876.
But the fix converts one blocker into a charter violation and leaves a new residual defect: weakening the published.is_empty() assertion to parsed.ended == 0 is exactly the test-weakening AGENTS.md:201-207 (not opened) forbids (the PR now edits code, docs and tests); and rendering the abandoned block through encode.rs:470-484 makes a truncated custom/grammar tool call fail Encoder::finish with "invalid custom tool arguments", ending the stream in an error frame instead of an omission — untested, since the new tests only use the plain lookup function tool.
Unchanged: the #364 publish-after-size-check reversal (docs/api.md:568-572), the residual falsehood of docs/api.md:543-547 vs main's TAGGED_JSON (tagged_json.rs:14-49 (not opened),57), the inverted user_stop_omits_… test (output.rs:1265-1274), the non-EOS Err("incomplete emitted tool call") removal without maintainer sign-off (output.rs:163-173, 478-480, 1721-1744), and the absence of any filed issue.
#26 [high] Timeline, file map at b9864ab, and remaining open questions for the final report
Companion to entry #24 (amendments). Facts the final report needs that #24 does not spell out.
A. TIMELINE (all 2026-12-02; PR opened 18:07 by peperunas, FIRST_TIME_CONTRIBUTOR).
- 18:10 flare-autobot intake/case file (case 91494b52-270b-424c-ac0b-f5344388ea0e).
- 18:31 Autobot review #1 — Changes Requested, "Blockers 2 · Should fix 1 · Subtract/Simplify 4 · Nits 2", Merge Risk "up to 2f0ed9d".
- 20:04 Autobot review #2 — Changes Requested, "Blockers 3 · Should fix 2 · Subtract/Simplify 2 · Nits 2", Merge Risk "up to 80c87b3".
- head b9864ab pushed after review #2 (PR
updated2026-12-02 21:47; commits: b9864ab -> parent 1fbcc3c9 "Harden Orbit payload integrity… (#667)"). So both reviews analysed 80c87b3 or earlier and neither has seen b9864ab; the intake notice says future reviews auto-run 90 minutes after a push, so a third review is pending and not evidence of anything. - Implication for the report: my earlier "two blockers independently confirmed by an independent review" must be stated per-hash — correct at 80c87b3, repaired at b9864ab (entry #24 items 3 and 4).
B. FILE MAP AT b9864ab (15 files, +722/−80; pr_files + read_item(685) agree).
helios/src/output/dsml.rs+315/−18 — the change:Call::published_argument_bytes(:38),Call::publish(:49-62),ToolBeginatToolNameEnd(:145-156), publish per argument-text action aftercheck_size(:191-192), flush +ToolEndaftervalidate_arguments(:194-206); testsmod streaming_tests(:750-987) andmod rejection_tests(:988-1033).helios/src/server/output.rs+46/−19 —Accumulator::finish(cause)(:163-173),drops_unfinished_call(:478-480), inverteduser_stop_omits_an_already_emitted_partial_tool_call(:1265-1274),ResponseOutput::finish(cause)+take_abandoned/drop_abandoned(:1731-1755).helios/src/server/protocol/tests.rs+282/−0 — three new protocol tests (:3809-3907,:3909-3977,:3979-4017) plus the DSML→Chat wire test (:4019-4089).helios/src/server/protocol/encode.rs+7/−2 —finish(cause)threading and abandoned-block render-then-drop (:674-689).docs/api.md+25/−12 —:540-555DSML streaming / non-EOS omission;:557-574string="false"deferral and post-publication 1 MiB bound.helios/tests/deepseek_output.rs+15/−6,helios/tests/deepseek_requests.rs+11/−2 — the CI repair (see #24 item 3).- Eight mechanical
finish()→finish(Termination::Eos)files:output/{argument_tags,chatml,gemma_call,minimax_xml,pipeline,xtml}.rs,runtime_core/protobuf.rs,server/runtime/phase_tests.rs.
C. STILL UNVERIFIED / OPEN (state as such, do not upgrade).
- Nothing was executed: every claim about the custom-tool truncation error (#24 item 5) and about test outcomes is static reading; no CI run exists on any hash.
- Whether the pending 90-minute re-review finds the same residues.
- The 20:04 review's "Should fix 2" and "Subtract/Simplify 2" items are not identified in its posted summary (only the three Merge-Risk bullets and the 1-passed/3-warnings checks are quotable; the full review page is unreachable from this environment).
- The b9864ab PR body now claims the same
cargo test --libnumbers (1787 passed / 16 failed,output::113,server::protocol96) as at 80c87b3 — i.e. the addedstreaming_tests/rejection_testsand the three protocol tests are not reflected in the reportedserver::protocol/output::counts, so the numbers are still un-refreshed self-report. - Author standing unchanged: peperunas / Giulio De Pasquale, FIRST_TIME_CONTRIBUTOR, one prior PR #519 closed unmerged, Discord: peperunas. Area owners unengaged: voipmonitor (#364 size bound reversed), yatesdr (authored the UserStop/Cancelled finish paths, approved #364).
#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.
#19 [medium] NEW: AGENTS.md "Reject weakened guarantees" / "suppress errors" mapping
Verified against AGENTS.md at PR head (80c87b3d):
AGENTS.md:182-187: "Reject weakened guarantees. Preserve … Do not remove validation, suppress errors, silently substitute execution paths, or relax references, workloads, or numerical bounds to obtain passing checks or favorable metrics."AGENTS.md:188-193: "Reject unsupported abstractions and churn. … Refactoring must directly support the requested behavior…" (relevant to the six "Subtract/Simplify" items the review lists).AGENTS.md:194-199: "Require focused, meaningful validation. … Identify missing hardware, inputs, and unrun checks explicitly." (author does disclose what was unrun — a point in the PR's favour, per #7.)AGENTS.md:201-207: "An explicit maintainer request covering the work is sufficient authorization… A feature request, passing tests, or a performance gain does not waive an architectural invariant. Resolve conflicts through an explicit maintainer decision on the design before implementing a change to that invariant; a commit acknowledgment or routine PR approval is not that decision. Apply these criteria to documentation and test changes that would weaken the rules as well as code."
Mapping: the Err("incomplete emitted tool call") contract lives at helios/src/server/output.rs:165 (Accumulator) and :1720 (ResponseOutput::close) on main; #685 deletes the UserStop/partial-call case of it (output.rs:163-173, 1730-1742), rewrites the test that asserted it (output.rs:1265-1274), and rewrites the doc sentence that stated buffering as intended (main docs/api.md:540-541). Three of the four surfaces the last clause names — code, test, documentation — move in the same PR with no maintainer decision on record.
#20 [medium] REFINEMENT: which causes actually change, per main's own docs
Sharpens the boundary of the behaviour change in #3/#18-F, using main's own docs (ref main, docs/api.md:540-543):
"Tool arguments are JSON objects, bounded to 8 MiB. The model parsers buffer tool envelopes until they are complete, so argument events do not imply incremental generation of an unfinished call. Truncated tool envelopes are omitted and the response reports its output limit."
So on main, omission of an unannounced/truncated envelope under OutputLimit was already documented and intended (matching the parsers' own EosDecision::Omit paths, e.g. helios/src/output/tagged.rs:264-278, xtml.rs:242-250, tml.rs:371-378, recipient.rs:264-295). The error Err("incomplete emitted tool call") (main helios/src/server/output.rs:165,1720) only fired for a call that had already been announced — practically the UserStop/Cancelled/ExecutionError cases the inverted test names.
Therefore the precise delta of #685 in this area is narrower than "truncation no longer errors", and reviewers should state it as: for UserStop, Cancelled and ExecutionError — not OutputLimit — an announced-but-unfinished call now succeeds-and-drops instead of failing the request, and the finish reason becomes that cause's reason (stop on Chat, per encode.rs:690-696). OutputLimit omission is unchanged behaviour; what is new there is only that DSML can now have an announced call to omit, because ToolBegin moved to ToolNameEnd (dsml.rs:145-156).
This is a correction in framing only — the finding itself (a wire-visible contract inversion across all parsers and protocols) stands, and it is the same thing the PR body calls out in one clause ("for every cause except natural end-of-sequence, ExecutionError included").