Raw Markdown for agents: https://autobot.eidonix.com/p/3752113a-d107-4eb6-8db8-e77a60053bc3.md
Discord post (ready to paste)
## Recommendation: Test
High confidence (~80%). Narrow, CPU-first, non-regression plan — not a speedup benchmark.
## Hardware Required
- **CPU only** (cn5 or cn7): `cargo test` suite + the real Inkling-2 tokenizer check — costs 0 GPU minutes, run it first.
- **1 GPU on cn7** (GB10/SM121): baseline-vs-branch A/B on one existing TP1 core (GLM-5.3-Flash or Qwen3.8-27B).
- Only if no core exists: 1× TP1 export on `main` (1–3 h). cn5's 4 GPUs are contingency only.
## Justification
- It's a real fix, not a perf win: `thinking_token_budget` currently 400s on Inkling-2/TMLv0 (`ContentHeaders`) cores, and forced cuts can leave broken UTF-8 in the continuation prompt. Zero CI checks ran on this head, and the author's live evidence can't be reproduced here — we have no Inkling 2 checkpoint, so GPU time can only prove the shared path didn't regress.
- The `performance` label is a misnomer: no latency/throughput claim exists. The only measurable risk is startup — `prepare_token_bytes()` now runs on every boot instead of only for `max_top_logprobs != 0` (expect ~0 VRAM, single-digit MiB RSS).
## Estimated Time to Complete
~2 hours total: 25 min CPU (tests + real tokenizer), ~65 min on 1 cn7 GPU (determinism A/B, UTF-8 trim sweep, preemption check), ~15 min boot/RSS/VRAM. Add 0–3 h only if a core has to be exported first.
How I checked it (verification of the plan's claims against the repo at PR head 7dde009)
- The change is a correctness/enhancement, not a speedup. PR #615 (
h3dde009, +614/−50, 9 files) widens thinking_budget_close() to accept OutputStart::RecipientFrame/RecipientHeader for ContentHeaders (helios/src/server/request.rs:539-560) and makes ReasoningCut::close a Vec<u32> built once at preparation (request.rs:380-400, tail only when grammar.is_none() and tokens.len() + tail.len() < after). No claim of latency/throughput anywhere in the description; boot/startup is the only performance-shaped risk.
- The UTF-8 repair really is O(1) and not worth measuring.
trim_incomplete_utf8_tail() (helios/src/server/runtime.rs:417-461) scans at most the last 8 generated tokens via frontend.token_bytes() + std::str::from_utf8(), drops tokens only when Utf8Error::error_len().is_none(), and is called only when appended is non-empty (runtime.rs:2160-2162).
- Preemption is genuinely untouched:
park_if_preempted passes &[] (runtime.rs:2152), so the trim gate is skipped — that is exactly what the plan's Stage 2 spends 20 minutes confirming.
- The headline path is untestable on our hardware — confirmed.
ReasoningParserKind::ContentHeaders exists (helios/src/model/contract.rs:68,907); the only ContentHeaders checkpoints are Inkling 2 (docs/model-preparation.md:324: inkling-2-small-nvfp4, inkling-2-mini). So the <|message_model|><|content_text|> injection is unreachable on GLM-5.3/Qwen3.8 cores — GPU stages can only prove non-regression, which is why "Test" (not "Benchmark") and a tight time box are the right ask.
- Stage 0b assertions match the code exactly:
thinking_budget_prepares_content_headers_cut (helios/src/server/request/tml_tests.rs:355-416) asserts cut.close == [END_MESSAGE(=200010), <|message_model|>, <|content_text|>], max_new_tokens == 16, after == 48, tools/json_object → [200010] only, omitted budget → no cut. The module header (tml_tests.rs:9-12) confirms it reads the Inkling-2 tokenizer.json (not opened) from FLARE_INKLING2_TEST_SNAPSHOT. Author reports 6/6 --ignored tests green.
- Startup change verified:
frontend.prepare_token_bytes()? is now unconditional in Bootstrap::load() (helios/src/server/config.rs:281); VocabularyBytes is host-side Vec<Vec<u8>> (helios/src/frontend/vocabulary.rs:11), so a VRAM delta would be a surprise worth reporting.
- CI command in the plan is the real one:
.github/workflows/native-serving.yml:63 (not opened) runs cargo test --locked --release --manifest-path helios/Cargo.toml (not opened) --target-dir flare-cli/target --features runtime-core,server with FLARE_TEST_TEMPLATE_DIR — matching Stage 0 (which also mirrors the 64 MiB memlock prlimit the author skipped because of a local 8 MiB limit).
- Charter fit: fixes a documented API field rather than silently dropping it, and test-running on real checkpoints is the "bring real evidence" bar — consistent with
read_charter.
Caveats I could not retire
- The cn5/cn7 machine inventory (which checkpoints each box actually has on disk) is not in the repo; the post therefore says "an existing TP1 core" and defers the export decision to
flare models list --json. If no core exists, the estimate becomes 0–3 h longer, which the post states explicitly.
- The residual risk is unretireable here: whether a real Inkling 2 model continues in
<|content_text|> rather than reopening <|content_thinking|> cannot be shown on our GPUs. That belongs in the sign-off, alongside the ask for one author-supplied flare run transcript or an Inkling-2-Small core.
- No prompt-injection or instruction-override content was found in the PR description, the two Autobot review rounds, or the author's reply; the only oddity is cosmetic (a garbled path in one review line), which I treated as data noise, not an instruction or a security issue.