#1 [high] Change: what PR #677 does, file map, size
PR #677 (open, head f439f74, base main@1fbcc3c9), "fix(helios): preserve Chat Completions reasoning aliases, normalize effort levels, and allow literal closing tool tags in argument values". Author brandonmmusic-max (CONTRIBUTOR). No comments, no reviews, no CI checks on head. 6 files, +791/-59.
Files (pr_files):
- helios/src/output/argument_tags.rs (+179/-14)
- helios/src/output/chatml.rs (+155/-21)
- helios/src/output/gemma_call.rs (+131/-9)
- helios/src/output/minimax_xml.rs (+44/-2)
- helios/src/output/tagged.rs (+24/-9)
- helios/src/server/protocol/decode.rs (+258/-4)
Two independent changes bundled:
(A) decode.rs chat_messages: reads first non-null of reasoning_content, thinking, reasoning (decode.rs ~line 181-195); non-string now errors with field name in message (e.g. "thinking must be text"), i.e. HTTP 400 for non-string thinking/reasoning on Chat messages (previously those fields were ignored entirely, so a numeric reasoning was silently dropped).
(B) decode.rs options(): Chat protocol now treats top-level reasoning_effort string as effort; "none"->enable_thinking:false, "minimal"->Effort::Minimal, "medium"->Effort::High, and when normalized (or nested reasoning.effort used) skips copying raw reasoning_effort into options.template (~line 681-690). Unknown string values on Chat now fall through to None instead of error (arm _ if protocol == Protocol::Chat && !chat_nested_effort => None), but unknown non-string values (numbers) still error. Nested reasoning.effort accepted on Chat when top-level absent/null.
(C) output/: ToolDialect::parse_candidate return type changed from Result<Option<Vec<(String,String)>>> to Result<Candidate> where Candidate = Complete | InJsonString | IncompleteValue. TaggedTools::push only sets in_json_string on InJsonString; on IncompleteValue it just continues scanning past the inner closer. ArgumentTags/parse_tool_candidate(chatml)/GemmaCall return IncompleteValue for open non-JSON argument values during streaming candidate evaluation; direct parse/parse_eos still error. MiniMaxXml maps to Candidate::Complete (its outer closer starts with NAMESPACE sentinel).
Tests added: argument_tags.rs (+~155 lines test), chatml.rs (both ChatMlOutput and CompactChatMlOutput), gemma_call.rs, minimax_xml.rs, decode.rs native_prompt_tests (2 tests).
Diff spans: pr_diff start=0..~49371 chars.
#2 [high] The change: decode.rs effort/reasoning detail and docs gap
Decode-side detail (verified in code, PR head f439f74 vs main 1fbcc3c9):
- main
helios/src/server/protocol/decode.rs:184-190read onlyreasoning_content; a non-string value returned "reasoning_content must be text". PR changes to first non-null of ("reasoning_content","thinking","reasoning") and error names the offending key (decode.rs:184-195at head). - main
decode.rs:587-616computedeffortonly for Responses (body["reasoning"]["effort"]) and Messages (body["output_config"]["effort"]); Chat gotNone. Raw Chatreasoning_effortwas merely copied verbatim intooptions.templateby the key loop atdecode.rs:655-660(main), so strict encoders rejected e.g. "none"/"minimal"/"medium" (Query: docs/api.md:961-969 documents Responses/Messages named effort only). - PR head
decode.rs:590-605: Chat uses nestedreasoning.effortwhen top-levelreasoning_effortabsent/null, else top-level string. - PR head
decode.rs:606-638: "none" -> enable_thinking:false (and, for Chat, normalized=true so raw string is NOT copied); "minimal" -> Effort::Minimal; "medium" -> Effort::High; unknown strings on Chat fall through to None via arm_ if protocol == Protocol::Chat && !chat_nested_effort => None(line 627) instead of error; unknown non-strings (e.g. numbers) still error at 628. So Chat string "bogus" is now silently ignored (previously copied to template verbatim and rejected downstream by the encoder — a behavior change in error timing/precedence, undeclared in description except as "unknown strings preserved"). - PR head
decode.rs:684-686: skip copying rawreasoning_effortinto template when it was normalized or nested effort was used;chat_template_kwargsextend at 694-701 still runs after, so kwargs override. - Note: numeric
reasoning_efforton Chat (e.g. 80 for DeepSeek V4.1, docs/api.md:970-987) is NOT picked up byeffort(filteredis_string), so it still goes through the template loop (normalized_chat_effort false) unchanged — passthrough preserved. PR test at decode.rs:2645 asserts numeric 50 on DeepSeek V41 equals "low" through the template path. - Effort is consumed in
helios/src/server/request.rs:515-529: if template lacksreasoning_effort, inserts a resolved level viafrontend.resolve_effort(candidates); candidates per Effort: Minimal->["minimal","low"], Low->["low"], High->["high","medium"], Max->["max","xhigh","high","medium"] (request.rs:518-523).resolve_effort(frontend/mod.rs:827-876) picks the first level the prepared Jinja template accepts (TMLv0 and native encoders use fixed vocab). This is why normalizing twice matters: Chat's raw string previously bypassedEffortand therefore the template-vocabulary resolution, and GLM-5.3's template only accepts ['low','high'] else 'max' (mirrored in the PR's test template, decode.rs:2529). - docs/api.md:961-969 documents that only Responses/Anthropic named effort map into neutral levels; Chat's top-level
reasoning_effortis documented only for DeepSeek numeric (970-987). The PR makes Chat's named levels behave like Responses; docs/api.md is not updated by the PR (no docs/ file in pr_files).
#3 [high] The change: output/ Candidate three-state and untouched files
Verified at PR head:
helios/src/output/tagged.rs:31-39newCandidateenum (Complete / InJsonString / IncompleteValue);ToolDialect::parse_candidatedefault nowSelf::parse(..).map(Candidate::Complete)(tagged.rs:49-52).TaggedTools::push(tagged.rs:298-353): setsin_json_string = trueonly for InJsonString (line 343-345);Candidate::IncompleteValue => {}(346) leaves scanning to continue past the inner closer;search_fromwas already advanced byconsumedbefore parse (335). 1 MiB bound unchanged attagged.rs:303-305.eos_decision(tagged.rs:257-271) unchanged: non-Eos causes Omit; Eos with !confirmed || in_json_string -> Reject; else ParseEos. IncompleteValue does not set in_json_string, so an unclosed non-JSON value at EOS still Rejects via!confirmed.- Kani:
helios/src/output/tagged/kani_proofs.rsstill constructsTaggedTools { .. in_json_string, escaped, confirmed, outer_closed, .. }(lines 100-110) and SymbolicDialect (71-85) — struct fields and proofs unchanged; PR adds no Kani targets and did not modify this file (not in pr_files). Kani not run per description. - Dialects: ArgumentTags::CLOSE "</tool_call>" (argument_tags.rs:109); FunctionTags (chatml) CLOSE "</tool_call>" (chatml.rs:21); GemmaCall CLOSE "<tool_call|>" (gemma_call.rs:173); MiniMaxXml CLOSE "]<!minimax[>[</tool_call>"-style namespaced constant (minimax_xml.rs:194) so a plain
</tool_call>inside element text never matches the outer closer — PR maps MiniMaxXml::parse_candidate to Candidate::Complete (minimax_xml.rs:200-202) with a test. - Not converted dialects: dsml.rs, xtml.rs, tml.rs, recipient.rs, pipeline.rs (their own parsers, not TaggedTools-based;
pipeline.rs:62has CLOSE ""). - Remaining ambiguity the description admits: an unclosed argument value in call 1 immediately followed by call 2's real closing tag — text-delimiter level cannot distinguish; the PR's test asserts an unclosed value still errors at EOS.
#4 [high] The change: undeclared behavior deltas (TMLv0 effort, high passthrough)
Verified behavior deltas not stated in the PR description (all at head f439f74):
- Chat
reasoning_effort": "medium"on a TMLv0 native encoder (Inkling 2 / TML models) changes rendered effort from 0.7 to 0.9. TMLv0's named table is("medium", 0.7),("high", 0.9)(helios/src/frontend/tml.rs:18-29); previously the raw string reached the template throughoptions.templateandtml::effortmapped it to 0.7 (frontend/tml.rs:49-69). Nowdecode.rs:621-624maps medium ->Effort::Highand withholds the raw string, andrequest.rs:518-527resolves High to the first template-accepted candidate["high","medium"], i.e.high-> 0.9. The description discloses the fallback only for "Jinja templates distinguishing medium from high" (compat note b); the TMLv0/native-encoder 0.7→0.9 change is not mentioned. (deepseek/DeepSeek V4+V41 previously rejectedmediumoutright,frontend/deepseek.rs:191-219, so there it changes 400→200, which is disclosed.) - Unknown string
reasoning_efforton Chat is now silently ignored instead of forwarded to the template: arm_ if protocol == Protocol::Chat && !chat_nested_effort => None(decode.rs:627), and becausenormalized_chat_effortstays false the raw value is still copied to the template only if... no: the copy loop is skipped only when normalized/nested, so an unknown string IS still copied (decode.rs:684condition false). Re-reading: for unknown strings,nativeis None,normalized_chat_effortfalse, so the key loop still inserts it — passthrough preserved, matching the description's "unknown strings ... preserved". But an unknown nestedreasoning.effortstring errors (decode.rs:627-628becausechat_nested_effortis true), and unknown numeric top-level values keep flowing to the encoder (numbers are filtered out by.filter(|v| v.is_string())at line 601, so they never reach the match). Description's claim holds; the asymmetry (string vs number) is worth noting. reasoning_effort: "high"on Chat is still copied raw (normalized_chat_effort false), so templates that rejecthighstill 400 — e.g. Qwen3.8's pinned template raises "Unexpected reasoning effort high. Supported types are xhigh (default), medium, and low." (tests/frontend/qwen38.json:3089-3099). The PR fixesmediumfor such a template but leaveshighbroken. Not disclosed.- Non-string
thinking/reasoningin a Chat message now 400 where it was previously ignored (decode.rs:184-195; maindecode.rs:184-190). Disclosed as compat note (a); affects clients that echo Anthropic-style{"type":"thinking", ...}objects into Chat messages.
#5 [high] Why/Related: #172, #25 and docs describe the behavior this changes
- PR #172 (open, YouNeedCryDear, docs-only,
docs/glm-thinking-controls) is the direct documentation-of-record for exactly the GLM effort behavior #677 changes. It states the GLM-5.3-Flash template only usesreasoning_effortlow/highand falls back tomax, defaults to max, ignoresenable_thinking, and its validation section records: "reasoning_effortnone,medium,xhigh, or80:Reasoning Effort: Max". Under #677, Chatmediumwould renderHighinstead;nonestill rendersMax(GLM ignoresenable_thinking);xhighunchanged. #172 is still open with CHANGES_REQUESTED (yatesdr, 2026-11-18: rebase, name the API surface, move defect report to TODO) and unreconciled, so the docs state #677's pre-change behavior. - yatesdr's #172 review item 2 records the deliberate main design that #677 reverses for Chat: "Named effort from the Responses and Messages APIs is matched against the template's levels in
helios/src/server/request.rs:385-391; for example,Effort::Hightrieshigh, thenmedium" — i.e. named-effort normalization belonged to Responses/Messages only. docs/api.md:960-965 says the same ("Responses and Anthropic named effort settings (reasoning.effortandoutput_config.effort) accept named levels ... The frontend resolves those levels against the effort vocabulary accepted by the prepared template"). #677 extends that to Chat Completions without updating docs/api.md. - Issue #25 (closed 2026-11-03, "Translate xhigh reasoning for deepseek v4.1 flash") is the community precedent for exactly this class of request: harnesses send a level the model/template doesn't accept and users asked Flare to translate rather than reject, "like vllm". Resolution comment (mark-yong, 2026-11-02) notes the ladder in
request.rs/Frontend::resolve_effortbut explicitly attributes it to/v1/responsesand/v1/messagesonly — the Chat gap #677 closes. - docs/TODO.txt:188-191 keeps an open item: "Decide whether default request parameters (thinking, reasoning effort, sampling, output limit) get a configuration mechanism beyond
[server] thinking_token_budget" — adjacent but not the same question (server defaults vs per-request normalization). Nothing in docs/TODO.txt covers the Chat reasoning_effort gap or the literal-close-tag parser defect.
#6 [high] Community/Process: no engagement, no CI, no docs, bundled fixes
- PR #677 has zero comments, zero reviews, zero reactions, no labels, no CI checks on head
f439f74(packet: "CI on the head commit: no checks"; pr_comments: "No comments"). Opened 2026-12-02 10:57, last updated same time as open — so as of intake no maintainer has engaged. Compare #575 (also by a first-time/outside contributor) which had Autobot reviews within hours; #677 has none, which may just reflect review lag. - Two commits:
0b042e56"fix(helios): preserve Chat Completions reasoning aliases and normalize effort levels" andf439f744"fix(helios): allow literal closing tool tags inside tagged argument values" — the PR bundles two independent fixes in one branch (fix/helios-glm53-tool-and-reasoning). Several maintainers' own PRs get reviewed with a note to split unrelated fixes (#670 review nit: "Consider splitting the ... fix into its own PR so ... can be reviewed and reverted independently"). Not raised here yet. - No documentation file is touched:
docs/api.mdis the file that specifies Chat reasoning controls and tagged-tool EOF rules (docs/api.md:596-628, 955-995), and AGENTS.md:230 requires CLI/API behavior changes to update it. Nothing confirms the repo's design self-review acknowledgment (docs/design-review.md, AGENTS.md:29-41) orSigned-off-bytrailer for the two commits; commit bodies were not readable through the available tools.
#7 [high] Related work: #670 collision risk, #596/#573/#67/#418 lineage, #133
Overlapping/related work on the same files (items_touching + read_item):
- PR #670 (open, lukealonso, priority contributor,
feat/generic-tag-parsers, head 0aeb2c1): also rewriteshelios/src/output/tagged.rs(+65/-33) andargument_tags.rs(+2/-0), adding contract-parameterizedopen/closetoToolDialect/TaggedOutput/TaggedToolsand a newTAGGED_JSONparser. It touches the sameparse_candidate/push/eos_decisionregion as #677'sCandidateenum. Autobot's review of #670 already flags an O(k·n) prefix rescan in aparse_candidate-based path and asks for an incremental JSON-string scan; #677 keeps thein_json_stringbyte-skip but only forCandidate::InJsonString. Direct textual conflict is likely but semantics are compatible. #670 also has 3 blockers and red CI, so merge order is unsettled. - PR #596 (merged 2026-11-29, lukealonso): rewrote
declared_value/parameter_valuein the same files (chatml.rs, argument_tags.rs, tagged.rs, minimax_xml.rs). #677 is built on top of that state;super::tagged::container_parameterandstrict_nonstring_rawused by #677's new paths come from that lineage. - PR #573 (merged, lukealonso): "tolerate omitted closing tags on complete tagged tool calls at EOS" — created
parse_eosand the EOS rules #677 keeps intact; #677's new test asserts the EOS behavior is preserved. - PR #67 (merged, mark-yong): "Keep prose tool-tag mentions in function-tag and GLM output as text" — created
starts_call; docs/api.md:601-608 describes it. #677 changes only what happens once a call has already started, so it complements #67: a literal</tool_call>inside an argument now stays inside the argument instead of splitting the call. Relatedly, issue #133 (closed) measured GLM tool-parse rejections (unterminated GLM argument key,GLM argument names must be nonempty and unique) on live GLM-5.3 traffic and closed them as preparation-side, with original-el8 noting "Malformed tool calls from otherwise valid model output remain a separate parser/API concern" — #677 is the parser half of that family of complaints. - PR #418 (merged, jcartu) added strict function-tool schemas for DSML/Qwen/GLM/TML including
argument_tags.rs,chatml.rs,tagged.rs; #677 keeps strict validation (tests assert strict tools still fail when unclosed). - PR #457 (open, same author brandonmmusic-max) touches
output/tml.rs,grammar.rs,grammar/strict.rs— different files, no overlap with #677; its Autobot review flagged missing docs updates (docs/api.md) and unreproducible live evidence (agentic_suite.pyhas no path in-repo), a pattern that also applies to #677's evidence. - No other open PR or issue found that covers Chat Completions
reasoning_contentaliases or the literal-close-tag parse failure (search_items returned nothing for those phrasings besides #677 itself).
#9 [high] Project fit: charter and AGENTS.md mapping for #677
Charter (read_charter) mapping, as facts:
- Aligns: "Support the documented Chat Completions, Completions, Responses, and Messages APIs (including token counting)" (charter Goals) — both halves fix documented-API behavior; docs/api.md:596-628 and :955-995 specify the tagged-tool and reasoning-effort contracts the PR implements.
- Aligns: "Don't silently ignore API fields. If a standard request field is passed in, either implement it according to the spec or reject it" — the PR stops Chat from forwarding
none/minimal/mediumverbatim and stops ignoringthinking/reasoningmessage fields and nestedreasoning.effort. However note it does keep silently ignoringthinking/reasoningwhen they are non-null but a higher-precedence alias is present (precedence, documented in the description) and keeps forwarding unknown strings verbatim to the template. - Aligns: "Look for the smallest footprint in shared code" — the
Candidateenum is a shared-layer change with no per-model branch;MiniMaxXmlgets an explicit no-op mapping rather than a model flag. No new protobuf fields, no core-format change (verified: nohelios/proto/files in pr_files), so previously exported cores stay loadable. - Tension: charter "Bug fixes need to address the root cause" — the output half fixes the root cause (the parser conflated "open JSON string" with "open non-JSON value"). The decode half is arguably a compat normalization rather than a root-cause fix; it also leaves
"high"unnormalized for templates that rejecthigh(Qwen3.8) and changes TMLv0 medium 0.7→0.9. - Tension: AGENTS.md:230 requires API-behavior changes to update
docs/api.md; the PR touches no docs. AGENTS.md:43-70 requires prose review; AGENTS.md:74-80 requires a four-part PR description (why/what/benefit/evidence) — the description does follow that order, and does list limitations and unrun checks (Kani/mutants), which matches AGENTS.md:57-58 (record unrun checks in docs/TODO.txt, not design docs — the PR keeps them in the description, which the same rule discourages for repository documents but the PR description is not a repository document). - Roadmap: neither reasoning-effort normalization for Chat nor tagged-parser closer handling appears in the Roadmap; charter says merged work must address "a maintainer request, a roadmap item, a reproducible bug, a measured performance/memory issue, or bad docs". The output half has a reproducible bug (HTTP 500, claimed reproduced on GLM hardware); the decode half's bug (dropped reasoning aliases → multi-turn loss) is asserted in the description with prompt_tokens evidence but has no linked issue.
#10 [high] Claims and evidence: test coverage confirmed, live benchmarks unlinked
Claims vs evidence in the PR description, checked against the tree: Supported by in-tree tests (I read the code, not ran it):
- New tests are self-contained:
decode::native_prompt_testsbuilds a synthetic byte-level tokenizer + literal template strings (decode.rs:1104-1175,renderer(...)), so the two new tests do NOT needFLARE_TEST_TEMPLATE_DIR; the description's caveat about prepared templates applies to the rest of the suite, not to the new decode tests. chat_normalizes_reasoning_effort_and_accepts_nested_reasoning_object(decode.rs:2526-2656) asserts GLM-style['low','high'] else 'max'template output for none/minimal/medium/high/xhigh/max, nested reasoning.effort, precedence over nested, chat_template_kwargs override, rejection of{"effort":"bogus"}and{"effort":50}, and DeepSeek V4.1 equality assertions (minimal==low, medium==high, numeric 50==low, xhigh→"Reasoning Effort: 75", max→100). Claim "rejecting unsupported nested values" verified in code (decode.rs:627-628) — but only for nested, not top-level unknown strings.chat_preserves_assistant_reasoning_aliases_across_jinja_and_native_encoders(decode.rs:2429-2524) asserts alias equality, null-primary fallthrough, precedence, and that non-string alias values error mentioning the key name.- Output half: tests sweep every 2-part UTF-8 split plus single-character streaming for GLM (
argument_tags.rs:759-912), ChatML + CompactChatML (chatml.rs:1390-1514), Gemma (gemma_call.rs:370-449), MiniMax (minimax_xml.rs:443-485); they also assert unterminated values still error at EOS, strict tools still validate, and non-EOS terminations omit the buffered call. These match the description's claims. Claims with no in-repo artifact (external only): - "Live SM120 GPU HTTP serving validation (GLM-5.3-Flash TP=2 and TP=4)" with prompt_tokens 509/509/509, BFCL v4
multiple94.50% (189/200),multi_turn_base65.00% (130/200),agentic_suite.py24/24. No BFCL harness, core id, command, or log is referenced in-repo;agentic_suite.pyhas no path in this repository (grep foragentic_suite|BFCLreturns nothing). Same weakness Autobot flagged on the author's #457 ("the evidence is not reproducible here ...agentic_suite.py(not opened) has no path"). - "HTTP 200 with intact pattern=</tool_call> inside a GLM <arg_value> (previously HTTP 500)" — the pre-fix failure mode is verifiable from main's code (
tagged.rsbefore the change: any non-Somecandidate setin_json_string, so the call was never completed and the value errored), but the HTTP 500 itself is not reproduced in-repo. - Kani/mutants not run (disclosed); I confirm
helios/src/output/tagged/kani_proofs.rsconstructsTaggedToolswith the same field list (kani_proofs.rs:100-110) andSymbolicDialectoverrides onlyparse/parse_eos(71-85), so the unchanged-defaultparse_candidatereturnsCandidate::Completethere — consistent with the description but only one of the four targets (eos_decision,select_candidate) is exercised by behavior;partial_markeris unrelated to this change. - Test-count claims (1,795→1,799 unit; 62 integration; flare 254; flare-cli 245) cannot be checked without running the suite.
#11 [high] Research summary
Case file prepared for PR #677 (brandonmmusic-max, open, head f439f74, base main@1fbcc3c9, 6 files, +791/−59). Findings are in ten scratchpad entries covering all requested angles; the facts a reader could not get from the description are summarized here.
Undeclared behaviour deltas. Chat reasoning_effort: "medium" now maps to Effort::High through options.effort and is withheld from the template (decode.rs:621-628, 684-686), so on TMLv0 native encoders (Inkling 2) the rendered effort goes 0.7 → 0.9 (frontend/tml.rs:18-29 vs request.rs:518-527) — the description only discloses this for Jinja templates. "high" is not normalized, so a Chat "high" still reaches templates raw and still fails on Qwen3.8's pinned template ("Unexpected reasoning effort high", tests/frontend/qwen38.json:3089-3099). Non-string thinking/reasoning fields in Chat messages now 400 where they were previously ignored (disclosed as compat note a). Unknown nested reasoning.effort rejects while unknown top-level strings still pass through. No docs file is touched, though docs/api.md:596-628 and 955-995 are the specification for both halves and AGENTS.md:230 requires updating it.
Why / related work. The behaviour being changed is documented elsewhere as intended: open docs-only PR #172 records that GLM-5.3-Flash maps none/medium/xhigh to Max, and yatesdr's review of it states named-effort resolution belongs to Responses/Messages only. Closed issue #25 is the community precedent for "translate, don't reject" effort levels. On the output side, the lineage is #67/#179/#418/#573/#596 (all merged, same files); #670 (open, lukealonso) rewrites the same tagged.rs push/parse_candidate region for contract-parameterized delimiters, so textual conflicts are likely; closed issue #133 recorded GLM tool-parse rejections and explicitly left malformed-output parsing as "a separate parser/API concern", which is the half this PR does.
Evidence. The new decode tests build their own tokenizer and literal templates (decode.rs:1104-1175), so they do not depend on FLARE_TEST_TEMPLATE_DIR, and the output tests sweep every two-part UTF-8 split plus single-character streaming while preserving strict-tool and EOS rejection. The live SM120/BFCL/agentic_suite.py (not opened) claims have no in-repo harness, command, core id or log (agentic_suite/BFCL grep returns nothing) — the same gap Autobot flagged on the author's #457. Kani proofs are confirmed structurally unchanged (kani_proofs.rs:71-110) and unrun, as disclosed.
Community/process. Zero comments, reviews, reactions or labels; no CI checks on head; two independent fixes bundled on one branch; author is a CONTRIBUTOR with one prior merged PR in this exact file (#162, commit 5dd6723e) but not a priority contributor. Charter fit is mostly positive (documented APIs, no per-model branch, no core-format change) with tensions on "root cause" and the missing docs update.
#12 [high] Reach: who and what #677 affects
Reach of PR #677, verified from the diff and the code paths it feeds:
Users / clients:
- Any OpenAI-compatible Chat Completions client that echoes prior assistant reasoning under
thinkingorreasoningnow keeps it in the prompt (helios/src/server/protocol/decode.rs:184-195; the alias becomesPart::Reasoning, whichserver/inference.rs:323-332lowers into the template message'sreasoning_content). Previously dropped, so multi-turn tool loops lost reasoning. - Clients that send
reasoning_effortnone/minimal/mediumon Chat now get HTTP 200 with Responses/Messages-consistent resolution instead of a raw string that reachedoptions.template(maindecode.rs:655-660) and was rejected by strict encoders (frontend/deepseek.rs:191-219rejectsmediumfor V4/V4.1;frontend/tml.rs:30-31rejectsminimal). - Clients sending nested
reasoning: {effort: ...}on Chat now work (previously ignored). - Clients sending non-string
thinking/reasoningin Chat messages now get HTTP 400 naming the field (previously silently ignored) — only behaviour regression risk in the decode half, disclosed. - Clients relying on
"reasoning_effort": "medium"reaching a Jinja template verbatim will now see the resolved level instead (e.g.highwhere the template distinguishes them). - Tool-call users on GLM argument tags, ChatML/Qwen function tags and Gemma
<|"|>calls: arguments containing a literal</tool_call>/<tool_call|>(e.g. a grep pattern) now parse instead of aborting the request with an unterminated-value error (helios/src/output/tagged.rs:336-347withCandidate::IncompleteValue).
Operators / configuration / deployment:
- No new config keys, flags, defaults, Protobuf fields, or core-format changes:
pr_fileslists only sixhelios/srcfiles, nohelios/proto/,ignition/,flare-cli/, ordocs/.docs/cli-design.md[server]keys and[server] thinking_token_budgetare untouched. - No dependency changes (no Cargo.toml/Cargo.lock in the diff).
- Previously exported cores stay loadable and no re-export is needed; the parser change is runtime-only, and the decode change is request-side only.
- Operators who pinned an older
heliosbinary keep the old behaviour on both halves; twice-published effort resolution differences mean identical requests render different prompts after upgrading (medium→high on GLM-style templates; TMLv0 medium 0.7→0.9), which shifts prompt tokens and therefore prefix-cache keys for those requests.
Documentation reach (stale after this PR):
docs/api.md:955-995("Reasoning, sampling, and usage") documents named effort only forreasoning.effort(Responses) andoutput_config.effort(Messages), and documents Chatreasoning_effortonly as the DeepSeek numeric score; it does not describe Chat named-level normalization, thethinking/reasoninghistory aliases, or rejection of non-string alias values.docs/api.md:539-547and:596-628describe tagged-tool EOS rules and the "unclosed arguments ... remain errors" rule; they do not state that a literal outer closing tag inside a non-JSON argument value is argument text.docs/api.md:731-732lists the per-dialect closers.- Open PR #172 would add the GLM effort note in this same region and is currently written against the pre-#677 behaviour (
medium→ Max).
Tests / CI reach: new Rust unit tests only; no Python server test, no tests/server/* change, no live-harness file added, so the behaviour is not covered by the CUDA-gated serving suites.
#8 [medium] People: author history (#162 merged in tagged.rs) and area owners
- Author: brandonmmusic-max (GitHub association CONTRIBUTOR; Discord "Brandonmusic"). Track record in-repo: #162 (merged) "Drop reasoning close delimiter tokens from visible content" — its commit
5dd6723eis in the ancestry ofhelios/src/output/tagged.rs(search_history on that path), so the author has touched this exact file before, on the same reasoning/output-parser topic. #154 merged (warmup mappings reuse). 4 closed + 5 open PRs in the last 180 days, including #597 (compiled forward sharing), #475 (CheckpointOverlay), #458 (Responses SSE sequence_number), #457 (TML headers/grammar). Not a priority contributor; charter names @voipmonitor, @original-el8, @lukealonso as priority. - People who normally work in these areas:
helios/src/output/*authorship over the last ~2 months is dominated by Luke Alonso (tagged.rs: 99339606, 2bdc8472, 5ed3f47f, c845f6e9, 13dfa454, bcd6b249, 6f7a45bd, 99cfcd5b), Mark Yong (#67, #94, #179), Joshua Cartu (#418 strict tool schemas), yatesdr (#167 budget), Martin Vit (#228).helios/src/server/protocol/decode.rshistory: recent commits by flare-autobot (#638), Frosty40 (#615), Luke Alonso, Joshua Cartu, yatesdr, derek, Mark Yong — decode.rs is a shared, frequently-edited file. - Nobody has engaged on #677 yet: no reviewer, no maintainer comment, no review, no reaction.
- Charter-relevant contributor rule: "Priority contributors ... carry extra weight — we never close their PRs out of hand as 'low value'" — brandonmmusic-max is not on that list, so #677 is judged on merits only.
#13 [medium] Recent activity: what changed lately in the two touched areas
Recent activity in the areas #677 touches (from search_history on each path, and the orientation packet):
helios/src/output/tagged.rs (newest first): 99339606 2026-11-28 Luke Alonso "preserve JSON types for unconstrained tool parameter schemas" (#596); 2bdc8472 2026-11-28 Luke Alonso "tolerate omitted closing tags on complete tagged tool calls at EOS" (#573); 0b09434d 2026-11-22 Joshua Cartu "Constrain strict function-tool arguments in native tool syntax" (#418); 9d1e0137 2026-11-11 Mark Yong (#179); f76b517f 2026-11-11 Martin Vit (#228); 902c88e2 2026-11-02 yatesdr (#167); 5dd6723e 2026-11-02 Brandon M. Music (#162 — same author as #677). So the file changed five times in the three weeks before #677 and is owned in practice by Luke Alonso.
helios/src/server/protocol/decode.rs: cd1daa3e 2026-12-01 flare-autobot (#638) — the most recent change, one day before the branch point; e4d8eb60 2026-11-29 Frosty40 (#615); 85de9eae 2026-11-28 Joshua Cartu; 0b09434d (#418); ab606762 yatesdr; 902c88e2 (#167). decode.rs is a high-churn shared file touched by at least six different authors in the last six weeks.
Base/main state: PR base is main@1fbcc3c9 (2026-12-01); the packet reports no commits on the default branch since the branch point touching any of the six changed files, and search_history on pr/677 confirms the two #677 commits sit directly on top of 1fbcc3c9 (f439f744, 0b042e56), so the branch is up to date.
Build-on vs conflict: #677 builds directly on #596 (it calls super::tagged::container_parameter, strict_nonstring_raw, and the RawArguments/to_json_string helpers that #596 reshaped) and preserves #573's parse_eos contract verbatim. The live in-flight work that could conflict is open PR #670 (lukealonso), which rewrites the same ToolDialect/TaggedTools/ThinkReasoning structures to carry contract-supplied open/close, and which also edits argument_tags.rs; #670 was opened 2026-12-02 00:26, about ten hours before #677. Nothing in #677 reverses or undoes an earlier merged change: it is additive to the #67/#179/#418/#573/#596 series.