Explore report · NVIDIA/hyperflare-inference #685

Raw Markdown for agents: https://autobot.eidonix.com/p/447d67f2-d555-4e0d-9491-37bca8f435d2.md

Amendments to the #685 case file (2026-12-02, run 2991)

New event since the base report: flare-autobot posted an intake notice at 18:10 and a full Autobot Review at 18:31 with recommendation "Changes Requested" ([pr_comments], https://autobot.eidonix.com/p/5e6f2bd5-3139-402b-a853-b6f6170dace0.html — full review text not retrievable from this environment, only the posted summary is quotable). Head also moved 2f0ed9d → 80c87b3d. Only the deltas follow; everything not listed here still stands as written in the base case file.

Key findings (amendments only)

  1. SUPERSEDED — "zero engagement / no automated review / no CI signal" (base Key finding 5, Community section, notes #12/#13). flare-autobot posted an intake case file at 18:10 and a full Autobot Review at 18:31 on 2026-12-02: Changes Requested — "Blockers: 2 · Should fix: 1 · Subtract/Simplify: 4 · Nits: 2", Merge Risk: High (pr_comments, https://autobot.eidonix.com/p/5e6f2bd5-3139-402b-a853-b6f6170dace0.html). Labels appeared with it: area:api, model:deepseek-v4, model:deepseek-v4.1, performance, triage:review (read_item(685), updated 2026-12-02 18:31). Still true: zero human comments, zero human reviews, zero inline comments, and neither natural reviewer has engaged (voipmonitor, whose #364 invariant this PR reverses; yatesdr, who approved #364 and authored the UserStop/Cancelled paths). The review independently converges with the base report on the inverted retraction test, the reversed signed-off invariants, the #364 pre-publication-bound reversal and the absence of any issue or maintainer request — and it adds the two defects now verified below. So the "no independent evidence" caveat is itself superseded: there is now an independent automated review, but still no human or CI run.

  2. CORRECTED — head hash. 2f0ed9d → 80c87b3d3435d505b18a2b34e87bdc153c890233 (same author, same parent 1fbcc3c9, same subject "fix(frontend): stream DeepSeek tool-call arguments"). Files and totals unchanged (13 files, +662 / −72) — confirmed via pr_files and read_item(685). 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. Consequence: the packet-vs-live test-count drift (1783 passed/18 failed with 12 engram failures → 1787/16 with ten; output:: 111→113; server::protocol 94→96) still reads as a PR-body edit, not evidence of a new push. Note the review's Merge Risk header itself pins up to 2f0ed9d, i.e. the review analysed the pre-push hash.

  3. UPGRADED from suspicion to verified — CI breakage the author's cargo test … --lib evidence structurally cannot see. CI runs integration tests: .github/workflows/native-serving.yml:63 (not opened) (Linux) and :68 (Windows) invoke cargo test --locked --release --manifest-path helios/Cargo.toml (not opened) --target-dir flare-cli/target --features runtime-core,server without --lib; the PR touches no helios/tests/ file (pr_files). Four existing tests fail, statically verified by reading them:

    • helios/tests/deepseek_output.rs:576 (assert!(output.push(Input::Text(&header))?.is_empty())) and :581 (each parameter push empty) in the shared helper parse_literal_parameters — the header push now emits Event::ToolBegin (helios/src/output/dsml.rs:151-155). This helper also drives tool_call_size_includes_retained_strings_and_closing_brace_in_either_order (:595-619) and literal_nesting_includes_the_enclosing_argument_object (:621-635).
    • helios/tests/deepseek_output.rs:511 (published.is_empty() before the "nonempty and unique" rejection) — Event::ToolBegin now precedes validate_arguments (dsml.rs:151-155 vs dsml.rs:202).
    • helios/tests/deepseek_requests.rs:683-684 — serde_json::from_str::<Value>(text).unwrap() on a single Event::ToolArguments fragment, which is now partial JSON ({"location": , "Berlin", …), so the unwrap panics. The review's claim of "four existing integration tests" in those two files matches exactly (3 in deepseek_output.rs + 1 in deepseek_requests.rs).
  4. UPGRADED from suspicion to verified — protocol-framing violation on truncation. ResponseOutput::finish(cause) (helios/src/server/output.rs:1730-1742) pops the trailing Block::Tool, pops self.calls and sets self.open = None before calling close(); close() (output.rs:1720-1729) is the only producer of Change::End. Change::End is what emits content_block_stop (helios/src/server/protocol/encode.rs:424-428) and response.output_item.done (encode.rs:470-516). Yet Encoder::finish still emits the terminal frames unconditionally — message_delta/message_stop (encode.rs:730-734) and response.incomplete/response.completed (encode.rs:735-745). Net: a client that received content_block_start (encode.rs:409-415) or response.output_item.added (encode.rs:430-434) for the dropped call never receives its stop/done frame. The PR's new protocol tests (helios/src/server/protocol/tests.rs:3810, :3894, :4004) assert only the buffered encoder.response(), never the frame sequence around the drop, so they miss it. For Chat, Accumulator::finish(cause) (output.rs:163-173) has the milder version: the client saw tool_calls[0].function.name in a delta (output.rs:111) and the final message has no tool_calls — exactly what the inverted user_stop_omits_an_already_emitted_partial_tool_call (output.rs:1265-1274) now blesses.

  5. NEW — the doc sentence #685 adds is already false on main, rebase or not. docs/api.md:543-547 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, merged 2026-12-02 14:16, after #685 branched at 1fbcc3c9) 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()), JSON_BODY = true (tagged_json.rs:57), no schema coercion. TaggedJson/TAGGED_JSON do not exist at 80c87b3d; on main they appear at helios/src/model/contract.rs:67 (not opened), helios/src/output/pipeline.rs:54,127, docs/api.md:610-619. So the rebase obligation in the base report is semantic, not a merge conflict — the review records "no textual merge conflict with #670" and reaches the same staleness conclusion.

  6. NEW — the firmest charter mapping is "suppress errors", stronger than the "no maintainer request" fit risk previously recorded. AGENTS.md:182-187: "Reject weakened guarantees. … 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:201-207: "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." #685 deletes the Err("incomplete emitted tool call") case (main helios/src/server/output.rs:165, :1723; the head-side :165/:1723 remain only for the EOS path), rewrites the test that asserted it (output.rs:1265-1274) and the doc sentence that documented the buffering (main docs/api.md:540-541) — three of the four surfaces that clause names (code, test, documentation), with no maintainer decision on record. The Autobot Review cites the same pair (AGENTS.md:182-187, 204-207) as its charter warning.

  7. REFINEMENT (framing only — the finding stands). Main already documented omission: "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." (docs/api.md:540-543 on main), 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). Err("incomplete emitted tool call") fired only for an already announced call. State the delta precisely: 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 (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). The PR body says this in one clause ("for every cause except natural end-of-sequence, ExecutionError included") but never frames it as replacing an error with success.

  8. NEW — the review adds a claim in the PR's favour that the base report did not have. Merge Risk section: all modified state (DsmlOutput, Accumulator, ResponseOutput, Encoder) is strictly per-request (helios/src/server/http.rs:451-600), Call::publish slices into the existing 1 MiB-bounded buffer (O(n) total allocation), and TTFT metrics are unaffected because stream_text excludes tool-call deltas (helios/src/server/latency.rs:116-142 — verified: only text/thinking/content/reasoning deltas count). The security screen passed: no unsafe code, no external I/O, parser (1 MiB) and response (8 MiB) bounds still enforced. Also unchanged-but-now-citable: the design guidance the review invokes for the unbuilt crates is docs/design-review.md:180-185 ("Run cargo test --locked --release on every affected Rust crate … helios with --features runtime-core,server, flare, flare-cli …").

Unchanged (re-state only to delimit the amendments)

The core of the base case file stands and the review corroborates it: a universal non-EOS drop behind a DSML-only streaming win (drops_unfinished_call(cause) -> cause != Termination::Eos, output.rs:478-480 — verified at head); the inverted user_stop_cannot_retract… → user_stop_omits… test; the #364 reversal (publish-then-check_size, documented at docs/api.md:570-572); no filed issue and no maintainer request for streaming tool arguments; self-reported evidence only (the 566-frame / 2196-byte hash-equal measurement against the author's own llm.giugl.io / pino/chat deployment); the undeclared details (per-parameter withholding of string="false" values, id still synthesized downstream, fragments published before validate_arguments rejects); #359/#418/#333 as the machinery it builds on; #577/#575 as rebase-adjacent; author standing (peperunas / Giulio De Pasquale, FIRST_TIME_CONTRIBUTOR, one prior unmerged PR #519, Discord: peperunas) and the area-owner map; and the file map (dsml.rs +315/−18 substantive, server/output.rs +33/−19, protocol/tests.rs +266/−0, docs/api.md +25/−12, encode.rs +2/−2, eight mechanically-touched call sites).

Open questions (revised)