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)
- Scope grew from 6 files/+562−31 to 9 files/+614−50 and two production files are new:
helios/src/output/pipeline.rsandhelios/src/output/tml.rs(plushelios/src/server/request/tml_tests.rs, a real-tokenizer test). Production code is now ~+170/−50 across five source files;request.rsshrank from +32/−3 to +15/−4. - The two charter/architecture objections from the bot review are genuinely fixed, not papered over.
tml_text_transition_tokens()is deleted; thePromptEncoder::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 existingCONTROL_MARKERS(helios/src/output/tml.rs:25,29, table attml.rs:41-44), resolved from already-validated single-tokenoutput.control_tokensbytml::text_frame_opener()(helios/src/output/tml.rs:46-57) viaOutputConfig::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. - The U+FFFD heuristic is replaced by exact byte-level UTF-8 checking:
trim_incomplete_utf8_tail()(helios/src/server/runtime.rs:417-461) concatenatesFrontend::token_bytes()for the last ≤8 generated tokens, walksstd::str::from_utf8(), and truncates only whenUtf8Error::error_len()isNone— literal U+FFFD and complete characters survive; the old "keep ≥1 generated token" floor is gone, sogenerated_len1 and 2 now trim. Call siteruntime.rs:2160-2163. - 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_preemptedpasses&[],runtime.rs:2152) and the plain output limit remain untrimmed. (b) Injected tokens still go throughActive::close_reasoning()(runtime.rs:2004-2020), so each incrementscarried.generated_tokens, runs token-stop matching, and a user token stop still truncates the sequence mid-frame (budget_stopbreak,runtime.rs:2009-2012). (c)record_decoded_tokenruns per injected token (runtime.rs:2023-2026) andmetrics.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. - New, undeclared cost: boot-time
VocabularyBytesfor every core.helios/src/server/config.rs:281now callsfrontend.prepare_token_bytes()?unconditionally (themodel.max_top_logprobs != 0gate was removed), building one decodedVec<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 fortoken_bytes()insidepark()(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. - Evidence improved but is still unverifiable by automation. There is now a real-tokenizer
#[ignore]testthinking_budget_prepares_content_headers_cut(helios/src/server/request/tml_tests.rs:355-417) assertingcut.close == [END_MESSAGE, model_tok, text_tok],max_new_tokens == 16,after == 48against real Inkling-2-Minitokenizer.json(not opened); the author reports 6/6 passing--ignored, plus seven liveflare runscenarios on NVIDIA GB10/SM121. Still no CI checks on head7dde009, the live runs are not reproducible from the repo, and Inkling-2-Small, vision and TP>1 remain untested. - 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. - Correction to the earlier related-work note: #582 does not touch
helios/src/server/runtime.rs. Atcc144c7cits files aredocs/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
- New:
thinking_budget_prepares_content_headers_cut,#[ignore]-gated onFLARE_INKLING2_TEST_SNAPSHOT(helios/src/server/request/tml_tests.rs:355-417), assertingclose == [END_MESSAGE, model, text],max_new_tokens == 16,after == 48for a plain Chat request against the real Inkling-2-Mini tokenizer; tools →[END_MESSAGE]only;json_objectgrammar →[END_MESSAGE]only; omitted budget → no cut,max_new_tokens 64. This replaces fixture-only proof for the sequence claim. - Author-reported live evidence (
pr_comments, newjordan 19:53): releaseflarebinary on NVIDIA GB10 SM121 serving Inkling-2-Mini — Chatbudget=32/64with a Unicode prompt enteringcontentwithreasoning_tokens=32/64and zero U+FFFD; tools →finish_reason="tool_calls"get_weather;json_object→{"answer":391}; Messagesbudget_tokens=48; uncappedreasoning_effort="none"→ 0 cuts;[server] thinking_token_budget = 64reflected in/v1/models. - Still unverified: no CI checks exist on
7dde009; the live transcript is not reproducible from the repo; Inkling-2-Small, vision and TP>1 are untested (PR limitations section). The CPU unit tests indecode.rs/phase_tests.rsremain the only automatable coverage. - Net: the central behavioural question — does a real Inkling 2 model continue in a text frame after
<|message_model|><|content_text|>— is now evidenced for one model by one author's serving transcript, not by CI or a second party.
§3 Amendment: related work
- #457 (open) — unchanged in substance: it rewrites the TMLv0
TmlOutput"header without content" EOS behaviour (helios/src/output/tml.rs) and the unnamed-header/content-header grammar rules, i.e. exactly the shape #615 injects. The force-push does not cross-reference it. What did change: the grammar side is now belt-and-braces guarded twice (request.rs:385andruntime.rs:1995-1998), so the residual interaction is the parser side (an unnamed model header immediately followed by a content-kind marker, and EOS handling inTmlOutput). - #582 (open,
cc144c7c) — correcting the earlier claim: it does not edithelios/src/server/runtime.rs. Its files aredocs/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 remains relevant because its blocker fix latcheszero_budget_anchoron(raw_anchor, prompt_tokens)precisely becausepark()changes the readmitted prompt length (#582 review thread, voipmonitor 2026-11-29 17:14; FujitsuPolycom reply 19:20). #615 introduces a shrink of up to 3 tokens on the same path. A reviewer of both should confirm the #582 latch is still correct when the readmitted prompt is shorter than the generated token count. - #167 (merged) — still the origin and still not reversed; #615 edits #167's own
docs/api.mdparagraph (813-833). - #541 (open, jere357) documents
reasoning_budget_cuts_total, whose semantics #615 preserves (one increment per cut,runtime.rs:2027-2029) while changing the surrounding generated-token counters — so a metrics consumer will see up to 3 extragenerated_tokensper cut with no change to the cut counter.
§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)
- 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-820documents the prompt side only. - 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? - Is the unconditional
prepare_token_bytes()(config.rs:281) acceptable to whoever owns startup cost/memory for multi-core deployments? No measurement is given. - 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. - Does #582's
zero_budget_anchorlatch tolerate a shrinking readmitted prompt frompark()? - No user-facing issue anywhere requests this; demand is documented only by the code gap. Is that acceptable for an
enhancement?