Amendments to the case file on PR #677 (head c897437, 2026-12-02)
The earlier report (run 2931) described head f439f74. The PR has since been rebased and revised: head c897437, base main@cc0a49d2, 11 files, +1089/−80 (was 6 / +791 −59), labels area:api, bug, priority:P2, triage:review, description rewritten into the AGENTS.md four-part format with in-repo-only evidence. Four of that report's findings are superseded; below are only the amendments.
Key findings (amended)
- The TMLv0 effort-shift finding is fixed, not merely undeclared.
Effort::Mediumwas added between Low and High (helios/src/server/inference.rs:117-125), Chat top-level"medium"selects it (helios/src/server/protocol/decode.rs:622-624) with ladder&["medium","high"](helios/src/server/request.rs:521), so TMLv0 renders its native 0.7 while Responses and nestedreasoning.effort:"medium"still resolve toEffort::High→ 0.9 (decode.rs:625). Verified against the real Inkling 2 contract (decode.rs:2706-2726viatests/support/contracts/inkling2_frontend.json(not opened);medium≡0.7,high≡0.9, Responsesmedium≡high) and documented (docs/api.md:991-993). highis now withheld from the template too.withheld_chat_effortcoversnone|minimal|low|medium|high|max(decode.rs:677-682,:690-692);xhighis deliberately left raw so DeepSeek-V4.1 keeps 75 vs 100 (asserteddecode.rs:2753-2756:xhighrenders75,maxrenders100). The Qwen3.8-vocabulary test now resolveshigh→mediumandmax→xhigh(decode.rs:2652-2671,:2668,:2670).docs/api.mdis now updated (+25/−5), satisfying AGENTS.md:230. Literal outer closing tags inside open non-JSON argument values stay argument text under a linear scan (docs/api.md:621-625); the reasoning section documents assistant-only aliases, the non-string 400, nestedreasoning.effort, Chat named-level normalization withxhigh/numeric passthrough, and per-vocabulary resolution incl. TMLv0 0.7 vs Responses 0.9 (docs/api.md:975-995).- The #670 conflict is gone. #670 merged (
2acc3f3a) and #677 was rebased over it; #677 now consumesJSON_BODY(helios/src/output/tagged.rs:46-48, used at:378-393) andwith_tool_delimiters(:466). No textual conflict remains. - New risk (not in the earlier report):
scan_value_end's default is not fail-closed. The trait default returnsOk(0)(tagged.rs:56-63) andTaggedTools::pushtreatsOkas "the value ended": it addsadvance(zero) and clearsin_valuewithout movingsearch_from(tagged.rs:350-361), so the next iteration re-selects the same closer. A future dialect returningIncompleteValuewithout overridingscan_value_endwould spin forever, and the 1 MiB bound (tagged.rs:330) would not catch it because no bytes are added. Safe today only because all threeIncompleteValuedialects override it:ArgumentTags(output/argument_tags.rs:117-123),FunctionTags(output/chatml.rs:30-47with newpossible_parameter_end:100-119) andGemmaCall(output/gemma_call.rs:176(not opened)). - New risk: effort resolution is now a sentinel-render heuristic.
Frontend::resolve_effortrenders the template six times, including the magic string__flare_unknown_effort__, and dropsmediumfrom the accepted set when its render equals the sentinel's (helios/src/frontend/mod.rs:843-880, cached inOnceLock effort_levelsat:799). Limits: it only detects fallback-by-rendering — a template that mapsmediumonto another valid level keepsmediumin the set; and the existing vocabulary test (frontend/mod.rs:1741-1777) still covers only raise-on-unknown templates.docs/api.md:988-991describes plain vocabulary matching without mentioning the sentinel. - Kani proofs are now in the diff (the earlier report said they were not):
tagged/kani_proofs.rs(+9/−3) addsin_valueand asserts!confirmed || in_json_string || in_value⇒Reject, plus acover!for the unclosed-argument-value case (kani_proofs.rs:96-135of the diff). The earlier "Kani/mutants not run" disclosure still stands, but the proofs are extended rather than untouched.
Superseded / corrected items
- Superseded: "undeclared TMLv0
medium0.7 → 0.9 behaviour change" — fixed (Key finding 1). The old warning about shifted prompt tokens and prefix-cache keys applies only to the GLM-stylemedium→highpath, not TMLv0. - Superseded: "
highis still forwarded raw, so Qwen3.8 still 400s" (Key finding 2). - Superseded: "
docs/api.mdnot updated" (Key finding 3). - Corrected: the alias lookup is
Role::Assistant-only; non-assistant roles readreasoning_contentonly (decode.rs:184-192). The earlier "across roles" wording, and the breadth implied by compat note (a), were too wide. - Corrected: the
#670merge-order item is obsolete (Key finding 4). - Coordination item narrowed to a docs collision: open docs-only PR #172 states named-effort resolution as Responses/Messages-only and GLM as
low/highelsemax; #677 makes that stale, so #172 needs rewording, not just a rebase.
Still standing from the earlier report
- Two independent fixes still bundled (decode/effort and output/parser) in one PR; the author did not split them. Autobot's review on the earlier head still raises this under charter fit.
- Unknown top-level Chat effort strings and
xhighpassthrough remain loosely specified.docs/api.md:984-987saysxhighand numeric scores pass through directly but does not say an unknown top-level string reaches the template verbatim (it does:decode.rs:627returnsNonefor Chat, so nothing is normalized or withheld). - No linked issue for either defect; the charter's "addresses a maintainer request, roadmap item, reproducible bug…" test is met only by description-level reproduction.
- Engagement unchanged: only Autobot has reviewed; no maintainer comment or review.
- Evidence: external SM120 GPU / BFCL v4 /
agentic_suite.py(not opened) claims were removed from the description rather than substantiated. In-tree Rust tests do back the behavioural claims (decode testsdecode.rs:2652-2758; GLM split/streaming sweepargument_tags.rs; ChatML, Gemma, MiniMax call tests). - Unverifiable without running the tree: the stated CPU test counts (1,841 unit, 62 integration,
tml_tests6/6, flare 254, flare-cli 245) and the Kani/mutants gap.
Verdict change
#677 moves from "changes requested / not mergeable" to mergeable-with-nits: all four earlier blockers now have in-tree fixes with tests and matching docs. The two things a reviewer should still press are the non-fail-closed scan_value_end default (Key finding 5) and the undocumented sentinel heuristic in resolve_effort (Key finding 6).
Verifications performed for this amendment
decode.rs:600-700 (effort match and withheld_chat_effort), :180-200 (assistant-only aliases), :2645-2761 (Qwen/TMLv0/DeepSeek assertions); inference.rs:110-130 (Effort); request.rs:515-532 (ladders incl. Medium); tagged.rs:40-70, :330-400; chatml.rs:18-50, :95-125; argument_tags.rs:112-140; frontend/mod.rs:795-890; docs/api.md:612-630, :960-1000; pr_files (11 files), pr_diff on kani_proofs.rs and frontend/mod.rs.
Open questions
- Does the sentinel probe cost anything at startup per core, and is the
__flare_unknown_effort__render safe for templates thatraise_exceptionon unknown values?renderreturnsNoneon error (frontend/mod.rs:853-862), sofallbackisNoneandhas_distinctisfalse— i.e. nomediumis ever dropped when the template raises on unknown values, the case the tests cover, so the heuristic is effectively untested where it actually fires. - Should
scan_value_end's default beErr(0)/an assertion so a future dialect cannot silently loop? - Does #172 need to land first (rewritten) to avoid publishing two contradictory effort sections?