Explore report · NVIDIA/hyperflare-inference #615

Raw Markdown for agents: https://autobot.eidonix.com/p/40aeadb0-7689-441c-8b1b-68acb5cda48d.md

Amendments to the #615 case file (report of 2026-11-29, run 2390)

Event: after the previous report, PR #615 was force-pushed from 2652c06 to 7dde009, labels were added, a flare-autobot review was posted (Changes Requested, 19:28), and the author replied with fixes at 19:53 and asked for a re-review. Only amendments follow; everything below supersedes specific earlier sections, and the earlier file map / line anchors / size numbers are void. All line anchors in this amendment were re-verified against pr/615 at head 7dde009.

Key findings (amended)

  1. Scope grew from 6 files/+562−31 to 9 files/+614−50 and two production files are new: helios/src/output/pipeline.rs and helios/src/output/tml.rs (plus helios/src/server/request/tml_tests.rs, a real-tokenizer test). Production code is now ~+170/−50 across five source files; request.rs shrank from +32/−3 to +15/−4.
  2. The two charter/architecture objections from the bot review are genuinely fixed, not papered over. tml_text_transition_tokens() is deleted; the PromptEncoder::TmlV0-keyed format branch in the request layer is gone (pr_diff request.rs); the literals <|message_model|>/<|content_text|> now exist once, beside the existing CONTROL_MARKERS (helios/src/output/tml.rs:25,29, table at tml.rs:41-44), resolved from already-validated single-token output.control_tokens by tml::text_frame_opener() (helios/src/output/tml.rs:46-57) via OutputConfig::reasoning_close_tail() (helios/src/output/pipeline.rs:26-41). Request preparation is now format-agnostic (helios/src/server/request.rs:380-397). The model-agnostic objection to this change is largely retired.
  3. The U+FFFD heuristic is replaced by exact byte-level UTF-8 checking: trim_incomplete_utf8_tail() (helios/src/server/runtime.rs:417-461) concatenates Frontend::token_bytes() for the last ≤8 generated tokens, walks std::str::from_utf8(), and truncates only when Utf8Error::error_len() is None — literal U+FFFD and complete characters survive; the old "keep ≥1 generated token" floor is gone, so generated_len 1 and 2 now trim. Call site runtime.rs:2160-2163.
  4. All four high-importance behavioural findings survive the force-push unchanged. (a) The trim is gated only on !appended.is_empty() (runtime.rs:2160), so it still fires on every forced reasoning cut in every format, and preemption (park_if_preempted passes &[], runtime.rs:2152) and the plain output limit remain untrimmed. (b) Injected tokens still go through Active::close_reasoning() (runtime.rs:2004-2020), so each increments carried.generated_tokens, runs token-stop matching, and a user token stop still truncates the sequence mid-frame (budget_stop break, runtime.rs:2009-2012). (c) record_decoded_token runs per injected token (runtime.rs:2023-2026) and metrics.progress(0, injected.len(), …) (runtime.rs:2030 → helios/src/server/metrics.rs:333-347) counts 3 tokens where #167 counted 1 — still not stated in the description or docs. (d) Tokens already streamed to the client are silently dropped from the re-prefilled prompt; only the prompt is repaired, not the client-visible text.
  5. New, undeclared cost: boot-time VocabularyBytes for every core. helios/src/server/config.rs:281 now calls frontend.prepare_token_bytes()? unconditionally (the model.max_top_logprobs != 0 gate was removed), building one decoded Vec<u8> per vocabulary entry (helios/src/frontend/vocabulary.rs:11-45) for every core at startup, not just logprob-enabled ones. It is the precondition for token_bytes() inside park() (runtime.rs:433); the author's justification is avoiding lazy init on the worker thread. It is a start-latency/memory change for all deployments and appears nowhere in the description's change list.
  6. Evidence improved but is still unverifiable by automation. There is now a real-tokenizer #[ignore] test thinking_budget_prepares_content_headers_cut (helios/src/server/request/tml_tests.rs:355-417) asserting cut.close == [END_MESSAGE, model_tok, text_tok], max_new_tokens == 16, after == 48 against real Inkling-2-Mini tokenizer.json (not opened); the author reports 6/6 passing --ignored, plus seven live flare run scenarios on NVIDIA GB10/SM121. Still no CI checks on head 7dde009, the live runs are not reproducible from the repo, and Inkling-2-Small, vision and TP>1 remain untested.
  7. Process: labels and a bot verdict now exist, but still zero human signal. Labels area:api/enhancement/triage:review; one bot review (0 blockers / 3 should-fix / 1 subtract / 3 nits) and one author reply 25 minutes later claiming all five groups fixed, ending @flare-autobot please re-review. No human reviewer or comment at any point.
  8. Correction to the earlier related-work note: #582 does not touch helios/src/server/runtime.rs. At cc144c7c its files are docs/cli-design.md (not opened), docs/core-design.md (not opened), docs/scheduling-runtime-design.md (not opened), helios/src/scheduler.rs (not opened), helios/src/scheduler/checkpoint_lifecycle_tests.rs (not opened), helios/src/scheduler/checkpoints.rs (not opened), verification/helios-lifecycle/check.py (not opened). It still matters, for a different reason — see §Related work.

§1 Amendment: the change, at head 7dde009

Nine files. Bytes per file: docs/api.md +13/−6; helios/src/output/tml.rs +13/−0; helios/src/output/pipeline.rs +17/−0; helios/src/server/config.rs +35/−1; helios/src/server/protocol/decode.rs +165/−1; helios/src/server/request.rs +15/−4; helios/src/server/request/tml_tests.rs +63/−0; helios/src/server/runtime.rs +90/−30; helios/src/server/runtime/phase_tests.rs +203/−8.

Preparation is now one token sequence, no double guard. ReasoningCut is pub close: Vec<u32> (helios/src/server/runtime.rs:50-61, field at :55) — the separate close_tail field is gone. request.rs:380-397 builds let mut tokens = vec![close], appends output.reasoning_close_tail() when grammar.is_none() and tokens.len() + tail.len() < after as usize (strict: at least one token of capacity must remain beyond the opener), and constructs ReasoningCut { close: tokens, after, output }. Capacity is therefore checked once, at preparation; the include_tail re-check in publish() is deleted. The tools gate moved from request.rs into the output layer — reasoning_close_tail() tests self.content.tools.is_empty() itself (pipeline.rs:32), so request.rs no longer mentions tools.

The grammar guard is now explicit and single-token. runtime.rs:1995-1998: !cut.close.is_empty() && grammar.as_ref().is_none_or(|g| cut.close.len() == 1 && g.allows(cut.close[0])). A grammar can never see an injected multi-token tail — this is stronger than the old grammar.is_none() gate at the call site and closes the grammar side of the #457 interaction at the runtime level.

Injection and accounting, unchanged in substance: loop at runtime.rs:2004-2020, per-token record_decoded_token and one cut-metric increment plus metrics.progress(0, injected.len(), …) at :2023-2030, mid-sequence budget_stop truncation at :2009-2012, remaining = cut.after.saturating_sub(injected.len() as u32) and appended = &injected at :2042-2044.

UTF-8 repair: helper runtime.rs:417-461, called at runtime.rs:2160-2163 before tokens.extend_from_slice(appended), so it trims the model's own generated tail and never the injected control tokens (which are complete single tokens by construction). Two residual gaps worth a reviewer's eye: it is a silent no-op if frontend.token_bytes(token) errs (runtime.rs:433-435), and its window is the last 8 tokens (fine: an incomplete suffix spans ≤3 bytes).

Docs: docs/api.md:817-820 now states explicitly that trimming applies for all reasoning formats at a forced cut boundary — the earlier doc-scope gap is closed. :820-824 documents the ContentHeaders opener and the tools/grammar restriction. :831-832 rewrites the 400 condition as "output starts in reasoning or a content-header frame".

Still stale: docs/logprobs-design.md:19 (not opened) speaks of "the thinking_token_budget close" in the singular, and the output_event_capacity comment at helios/src/server/runtime.rs:68-70 still says "forced token" although up to 3 tokens may be injected (the invariant survives because after is reduced by injected.len()). docs/cli-design.md (not opened) still describes [server] thinking_token_budget without the TMLv0/ContentHeaders case.

§2 Amendment: evidence state

§4 Amendment: charter fit

The earlier mixed verdict narrows. Now clearly satisfied: "implement or reject API fields rather than silently ignore them" (the 400/bootstrap validation now covers ContentHeaders, docs/api.md:831-840) and the parity goal across Chat/Responses/Messages. Now largely satisfied: "keep the runtime model-agnostic" — the hardcoded literals and the encoder-keyed branch are gone from the server layer; the format knowledge lives with the TML output dialect (helios/src/output/tml.rs:25,29,46-57). Still not met: the evidence rule (live serving, before/after) is met only by self-reported single-GPU runs with no CI on the head.

§5 Amendment: process and community

Earlier statement Now
unlabelled / untriaged area:api, enhancement, triage:review
zero reviews one bot review (Changes Requested, 19:28) + author reply 19:53
zero comments same two comments only
never updated since opening force-pushed and replied within ~an hour of the review
no CI still no CI on 7dde009

Zero human review or comment remains true, and the bot's own related/duplicate check explicitly found no file or behavioural conflict with open #457 or #582 — so the review signal now is "automated reviewer asked for three changes, author says all fixed, awaiting re-review".

§6 Open questions (amended set)

  1. Does the re-review actually clear the trim change, and is the reviewer satisfied that trimming a suffix the client already received (only the prompt is repaired, not client output) is acceptable? docs/api.md:817-820 documents the prompt side only.
  2. Why is the trim scope left at "all forced cuts in all formats" rather than the one format the PR is about, given preemption (runtime.rs:2152) has the identical dangling-byte hazard and is untouched? Is a follow-up intended?
  3. Is the unconditional prepare_token_bytes() (config.rs:281) acceptable to whoever owns startup cost/memory for multi-core deployments? No measurement is given.
  4. Does the parser side of the injected unnamed <|message_model|><|content_text|> shape survive #457's new EOS-on-header-without-content rule if #457 merges first? Neither PR references the other.
  5. Does #582's zero_budget_anchor latch tolerate a shrinking readmitted prompt from park()?
  6. No user-facing issue anywhere requests this; demand is documented only by the code gap. Is that acceptable for an enhancement?