Opened by a workflow run, Dec 2, 2026 3:48 PM EST. decide malicious: all_clear (100%): No malicious content found
explore
Author: jcartu (GitHub association CONTRIBUTOR; 3 merged / 3 closed / 3 open PRs in 180 days; Discord: jcartu)
Motivation: On DeepSeek V4/V4.1 cores in the default thinking mode, tool_choice: "required" is prompted exactly like "auto" — no "you must call a tool" instruction is added — but the docs said required mode always adds one. A maintainer triaged that asymmetry as deliberate and said the docs should say so; this PR rewrites that one paragraph.
Scale: +14 / −8 lines in 1 file (docs/api.md)
Proposal:
- Splits the required-mode sentence into: tools required; shared-lowering encoders (Jinja, TMLv0) add a system instruction; native DeepSeek V4/V4.1 encoders omit it (thinking = identical to
"auto", opening<think>; non-thinking/chat= prompt ends inside the DSML tool-call block). - States completion still validates at least one completed declared call in every mode, including DeepSeek thinking.
- Re-wraps the adjacent Responses custom-tools lines (text unchanged).
- No code, schema, test or compatibility change. Touches:
- docs/api.md — the only file; the required-mode paragraph at :666-678 (section "Conversation and tool semantics") Related items:
- #445
tool_choice: "required"is dropped on DeepSeek V4/V4.1 in the default thinking mode (open): the issue this fixes; its behavioral request was declined, docs half is what lands - #461 Document strict tool selection and numeric range precision (open): same author, adjacent named/required paragraph, has CHANGES_REQUESTED from yatesdr
- #685 fix(frontend): stream DeepSeek tool-call arguments (open): same file, different region (~:540-575), no conflict
- #418 Add strict function-tool schemas for DSML, Qwen, GLM and TML parsers (merged): this author's earlier edit of the same tool block
- #670 parameterize THINK_TAGS, add TAGGED_JSON tool parser (merged): newest main commit before the branch, same doc section
Link: https://github.com/NVIDIA/hyperflare-inference/pull/686
Autobot comments:
docs/core-design.md:1727-1728keeps the old unconditional claim ("tool_choice=requiredadds a prompt instruction"), so after this PR the design doc contradicts api.md — the PR does not update it. "Fixes #445" would close an issue whose primary request (required must prompt differently from auto) is deliberately not implemented. No CI checks ran on head 6a2cacc, no reviews/labels/comments. Every technical claim in the description was verified against code and the two named tests.
Value Proposition
Value Proposition — PR #686 docs(api): document DeepSeek V4/V4.1 behavior for tool_choice required
Charter alignment — strong. The charter's merge criteria explicitly include "bad docs," and this PR answers a maintainer request: yatesdr's triage on #445 states the documented behavior is "not true for these recipes. The docs should say so." It documents implemented behavior — no per-model branch is added, no request field is newly ignored — so it does not collide with the #417 "don't silently drop API fields" rule; the maintainer's position is that required is enforced at completion (encode.rs:685-689), not dropped. The only latent tension is that it puts prose around the existing renders_tool_choice per-encoder branch, which predates this PR (585702d3).
Novelty & status — genuinely additive. Not obsolete: docs/api.md:666-669 still carries the unconditional claim and no main commit since the branch point (c513e46) touches that file. Not superseded: #461 edits the adjacent named-selection region and #685 a different section; overlap is file-level only. The dossier verifies every new sentence against frontend/mod.rs:151-156, request.rs:465-476, deepseek.rs:272-280, encode.rs:685-689, and both named tests in deepseek_requests.rs.
Value vs maintenance cost — favorable. Docs-only, one file, +14/−8, no runtime, schema, or compatibility surface, no rebase needed. The behavior has been stable for over a month, and because DeepSeek V4/V4.1 default to thinking enabled (api.md:980-981), the caveat describes the default path rather than an edge case: a required request can terminate as "required tool choice was not satisfied" instead of a tool call. Review cost is near zero; the declared lack of a build/test run is immaterial for prose.
Gaps to close before merge (all small):
docs/core-design.md:1727-1728retains the old unconditional sentence and defers here at :1732 — the same edit, or a committed follow-up, is needed or the docs stay self-contradictory.Fixes #445closes an issue whose behavioral half was declined; that decline should be recorded in the closing comment or the reference made non-closing.- An undeclared but harmless rewrap of the adjacent Responses custom-tools lines (
:679-681). - Coordination with #461 is unstated; if both land, required mode is described across two separately authored paragraphs. (The TMLv0 qualification gap in
docs/TODO.txtis pre-existing.)
Verdict: Worth it with changes.
Full report Decide Value: yes (100%): This change is worth reviewing: it provides value to the project in line with its charter.
Classify intake
Selected: triage:review, documentation, area:api, model:deepseek-v4, model:deepseek-v4.1
Threshold: 65%
Triage
- [✓]
triage:review: 99.4% -
triage:design-review: 0.2% -
none: 0.1% -
triage:partial: 0.1% -
triage:validation: 0.1% -
triage:integration: 0.0% -
triage:investigate: 0.0% -
triage:verify-for-closure: 0.0% -
triage:superseded: 0.0%
Priority
-
none: 100.0% -
priority:P1: 0.0% -
priority:P2: 0.0%
Type
- [✓]
documentation: 96.7% -
community: 26.9% -
bug: 16.5% -
duplicate: 8.5% -
enhancement: 1.8% -
performance: 0.0%
Area
- [✓]
area:api: 94.7% -
area:preparation: 1.2% -
area:caching: 1.0% -
area:engram: 1.0% -
area:selene: 0.4% -
area:rocenante: 0.1% -
area:scheduling: 0.0% -
area:orbit: 0.0% -
area:kernels: 0.0% -
area:memory: 0.0% -
area:packaging: 0.0%
Model
- [✓]
model:deepseek-v4.1: 92.4% - [✓]
model:deepseek-v4: 89.3% -
model:glm-5.3: 4.2% -
model:inkling-small: 4.2% -
model:kimi-k3.1: 2.6% -
model:qwen3.8-flash-next: 1.2% -
model:nemotron-3.5-bolt: 1.0% -
model:muse-glimmer: 0.9% -
model:qwen3.8-27b: 0.7% -
model:mimo-v2.6: 0.5% -
model:gemma4: 0.4%
Apply Labels (Intake)
Applied: +triage:review, +documentation, +area:api, +model:deepseek-v4, +model:deepseek-v4.1
Subtraction and simplicity
PR #686 is a one-hunk prose diff in docs/api.md (+14/−8); it introduces no flags, config knobs, wrappers, fallback branches, speculative generality, or dead code, and duplicates no repo helper. The subtraction lens therefore reduces to prose that can be deleted or collapsed.
Findings, high value first:
- should-fix, in the diff —
docs/api.md:667-669invents the category name "shared lowering" ("Prompt encoders using shared lowering (Jinja templates and TMLv0) add a system instruction … omit that shared instruction"), lifted fromlet shared_lowering = …athelios/src/server/request.rs:467andhelios/src/frontend/mod.rs:152-153; the phrase occurs nowhere else indocs/. It also makes "that shared instruction" a false definite. Sincerenders_tool_choiceis true only forDeepseekV4|DeepseekV41(frontend/mod.rs:151-156), the complement is exactly {Jinja, TmlV0}; name the encoders directly (api.md already does at :721-722, :980). Suggested rewrite also drops the redundant trailing clause "so generation starts inside the tool-call envelope" and folds the final sentence: 9 lines/~110 words → 7 lines/~90 words. - should-fix, outside the diff —
docs/core-design.md:1727-1728keeps the old unconditional claim "tool_choice=requiredadds a prompt instruction and requires a completed call to a declared tool", while :1732 defers detail to api.md. After merge the design doc still asserts what this PR corrects. Subtractive fix: delete the false clause. - minor —
docs/api.md:671"non-thinking (chat) mode" backticks a value api.md never documents (it comes fromhelios/src/frontend/deepseek.rs:181-190; :1005-1006 lists only rejections). Drop the parenthetical or name the option once.
Explicitly not findings: the rewrap of the Responses custom-tools lines (main :673-675 → head :679-681) is required reflow, not churn; the paragraph's restatement of completion validation is load-bearing for issue #445 and should be folded, not deleted; no code/test change belongs to this lens.
Open questions: whether yatesdr intends Fixes #445 to close an issue whose behavioural half was declined; whether core-design.md is fixed in a follow-up; coordination with #461, which edits the adjacent required-mode paragraph.
Correctness and contracts
PR #686 is a prose-only correction to docs/api.md:666-678 (one hunk, +14/−8), splitting the old unconditional "required adds a prompt instruction" claim into shared-lowering encoders (Jinja, TMLv0) versus the native DeepSeek V4/V4.1 encoders, which omit it. The new text, and the PR description's before/after, are accurate: every clause traces to helios/src/frontend/mod.rs:151-156, helios/src/server/request.rs:465-476 and :506-514, helios/src/frontend/deepseek.rs:272-280, helios/src/server/inference.rs:387-390, helios/src/server/protocol/encode.rs:685-689, and the tests helios/tests/deepseek_requests.rs:348-415 and :690-711. No runtime, wire, proto, admission, metric or cache path is touched, so the concurrency/contention, memory, failure-blast-radius, metric-span and platform-parity checks come back clean by construction.
Findings: (1) Major — docs/core-design.md:1727-1729 still says "tool_choice=required adds a prompt instruction and requires a completed call to a declared tool" unconditionally, the exact sentence the maintainer's #445 triage called false, and :1732 only defers to api.md at file level, so the two normative docs will contradict each other after merge; fix it in this PR. (2) Minor — docs/api.md:669-670 "render required mode identically to "auto"" is prompt identity only: with a strict tool the plan still sets require_call from request.tool_choice (helios/src/server/request.rs:277-281, helios/src/grammar/strict.rs:1829-1835) and helios/tests/deepseek_requests.rs:815 rejects plain prose; add one clause.
Open: whether Fixes #445 should close an issue whose behavioral half was declined, and whether core-design.md gets corrected here or in a follow-up.
Final review
Recommendation: Changes Requested
The new required-mode prose in docs/api.md is factually accurate against the implementation and test suite at 6a2cacc, and directly addresses the maintainer triage on #445 with zero runtime blast radius. However, docs/core-design.md:1727 still carries the exact unconditional statement this PR exists to fix, leaving the two normative docs contradicting each other while Fixes #445 closes the issue. Updating that one sentence in docs/core-design.md—and optionally dropping the unexplained internal shorthand ("shared lowering" / `chat`) in docs/api.md—will make the documentation consistent and ready to merge.
Merge Risk
Level: Low
- Documentation-only diff (
docs/api.md, +14/−8); no runtime, scheduler, protocol, grammar, schema, or build paths are touched. - Zero concurrency, resource, failure-propagation, or cross-platform regression surface.
- Textual merge conflict exists with open PR #461 on the same required-mode paragraph in
docs/api.md(lines 666–678 here vs. lines 562–575 onpr/461); whichever lands second will need a small rebase.
Walkthrough
docs/api.md:666-674: Replaces the unconditional claim thattool_choice: "required"always adds a prompt instruction with an encoder-specific split:- Jinja-template and TMLv0 encoders add a system instruction to call a tool (
helios/src/frontend/mod.rs:154-156,helios/src/server/request.rs:467-476,helios/src/server/inference.rs:387-390). - Native DeepSeek V4 and V4.1 encoders omit that instruction—rendering required mode identically to
"auto"in thinking mode so reasoning begins in<think>(helios/src/frontend/deepseek.rs:272-280,helios/tests/deepseek_requests.rs:690-711), and opening the DSML tool-call block at the end of the prompt in non-thinking mode (helios/tests/deepseek_requests.rs:348-415). - Completion validation enforces at least one completed call to a declared tool across all modes, including DeepSeek thinking mode (
helios/src/server/protocol/encode.rs:582-584,:685-689).
- Jinja-template and TMLv0 encoders add a system instruction to call a tool (
docs/api.md:674-681: Reflows the remainder of the same paragraph (unchanged wording for sampling, missing-call errors, and Responses custom tools).
Pre-merge Checks
- [PASS] Security / malicious screen: Prose-only change in
docs/api.md; no code, links, scripts, or prompt-injection vectors. - [PASS] Charter & value fit: Directly addresses maintainer triage on #445 ("bad docs" merge criterion) without adding runtime per-model branches.
- [WARN] Related / duplicate / conflict check: Not a duplicate, but directly conflicts textually with the author's own open PR #461 (
docs/api.md:562-575onpr/461edits the same required-mode paragraph);docs/core-design.md:1727also remains out of sync. - [PASS] Tests & verification evidence: Every statement was verified against the implementation and existing tests (
helios/tests/deepseek_requests.rs:348-415,:690-711); omitting a build/GPU run is declared and acceptable for a docs-only diff.
Blockers
None.
Should Fix
- Update the contradicting unconditional claim in
docs/core-design.md:1727-1728.docs/core-design.md:1727-1728still states unconditionally:`tool_choice=required` adds a prompt instruction and requires a completed call to a declared tool.- The pointer at
docs/core-design.md:1732-1733defers only "the accepted strict schema subset, parser formats, protocol mappings and streamed errors" toapi.md, so it does not qualify or rescind:1727. Merging #686 withFixes #445leaves the core design specification contradictingdocs/api.mdon the exact sentence #445 flagged (violating.agents/skills/repo-prose/SKILL.md:26-27(not opened)). - Fix: Remove the stale clause at
docs/core-design.md:1727(e.g.,`tool_choice=required` requires a completed call to a declared tool.or note that Jinja/TMLv0 encoders also add a prompt instruction while native DeepSeek V4/V4.1 encoders do not; seedocs/api.md).
Subtract / Simplify
- Drop internal implementation shorthand (
"shared lowering") and undefined option spelling (`chat`) indocs/api.md:667-674."shared lowering"(docs/api.md:667) appears nowhere else indocs/; it is lifted from the local variablelet shared_lowering = ...inhelios/src/server/request.rs:467(.agents/skills/repo-prose/SKILL.md:22-25(not opened) advises against turning implementation shorthand into document vocabulary). BecausePromptEncoderhas only four variants (helios/src/frontend/mod.rs:142-149), naming the encoders directly is exhaustive and shorter.- Similarly,
(`chat`)(docs/api.md:671) backticks thethinking_mode: "chat"value (helios/src/frontend/deepseek.rs:181-183), butthinking_modeis never defined anywhere indocs/api.md. - Suggested tightening for
docs/api.md:666-674:Required mode needs at least one declared tool. Jinja-template and TMLv0 prompt encoders add a system instruction to call a tool to the prompt. The native DeepSeek V4 and V4.1 prompt encoders add none: in thinking mode they render required mode identically to `"auto"` so reasoning starts in `<think>`, and in non-thinking mode their template opens the DSML tool-call block at the end of the prompt so generation starts inside the tool-call envelope. In all modes, including DeepSeek thinking mode, completion validates that generation produced at least one completed call to a declared tool.
Nits
None.
Dropped on verification
- "
Fixes #445closes an issue whose behavioral request was declined without recording the decline" (Discovery Dossier / Value Proposition): Dropped. Maintaineryatesdralready recorded the design ruling directly on #445 (2026-11-21: "For DeepSeek V4 and V4.1 this is deliberate, and the gap is in the docs… The docs should say so"). Closing #445 viaFixes #445is appropriate oncedocs/core-design.md:1727is also updated. - "
render required mode identically to \"auto\"overstates equivalence for strict tools" (Correctness & Contracts lens): Dropped. Atdocs/api.md:668-670, the subject is "The native DeepSeek V4 and V4.1 prompt encoders" and the verb is "render", which accurately scopes the statement to prompt rendering (helios/src/frontend/deepseek.rs:276-280,helios/tests/deepseek_requests.rs:697-703). Strict-tool grammar enforcement (require_callathelios/src/server/request.rs:278-281,helios/src/grammar/strict.rs:1829-1835) relates to the pre-existing"Sampling is unchanged"sentence (docs/api.md:674), which is already being updated in open PR #461. - "Undeclared rewrap of Responses custom-tools lines (
docs/api.md:679-681)" (Discovery Dossier / Value Proposition): Dropped. Those lines belong to the same paragraph (no blank line separator) and are normal ~78–80 column reflow with byte-identical text. - "Overlap with #461 is file-level only; no textual conflict" (Discovery Dossier): Corrected/dropped. Checking
pr/461(docs/api.md:562-575) shows #461 modifies the exact same required-mode paragraph (Required mode needs at least one declared tool... Sampling is unchanged...), so a textual conflict does exist between the two open PRs (noted under Merge Risk and Pre-merge Checks). - "Pre-existing TMLv0 qualification gap in
docs/TODO.txt:12-15" (Discovery Dossier / Value Proposition): Dropped as out of scope; that TODO tracks end-to-endstrict: truequalification on a TMLv0 core, not prompt-instruction lowering intemplate_messages. - "False definite reference on
that shared instruction" (Subtraction & Simplicity lens): Narrowed;"a system instruction to call a tool"is introduced in the immediately preceding sentence, so only the invented"shared lowering"shorthand is kept under## Subtract / Simplify.
Full report Decision to Test: no (100%): Testing will not add significant value as the code stands today. The code is either not yet ready to merge, or adequate testing has already been done to validate the contents of the code, or the available hardware is not suitable to test with.
Classify triage
Selected: triage:review
Threshold: 65%
Triage
- [✓]
triage:review: 99.7% -
triage:design-review: 0.2% -
none: 0.0% -
triage:integration: 0.0% -
triage:partial: 0.0% -
triage:validation: 0.0% -
triage:verify-for-closure: 0.0% -
triage:investigate: 0.0% -
triage:superseded: 0.0%
Apply labels
No label changes decide malicious: all_clear (100%): No malicious content found
explore
Author: jcartu (CONTRIBUTOR; 3 merged / 3 closed / 3 open PRs in 180 days; Discord: jcartu)
Motivation: Two normative docs claimed tool_choice: "required" always adds a prompt instruction, which is untrue for the native DeepSeek V4/V4.1 encoders. A maintainer triaged issue #445 as a docs gap, so this PR fixes the wording instead of the runtime.
Scale: +13 / −5 in 2 files
Proposal:
- Rewrite the required-mode paragraph in
docs/api.md:666-674: Jinja/TMLv0 encoders add a system instruction; native DeepSeek V4/V4.1 add none (thinking mode renders identical to"auto", non-thinking opens the DSML block). - State that completion validation still requires a completed declared call in all modes.
- Replace the unconditional
tool_choice=requiredsentence indocs/core-design.md:1727-1730with the same split plus a link toapi.md#conversation-and-tool-semantics(anchor resolves atdocs/api.md:485). - No runtime, schema, or compatibility change. Touches:
docs/api.md(required-mode contract, shared by all protocols)docs/core-design.md(normative design summary) Related items:- #445
tool_choice: "required"is dropped on DeepSeek V4/V4.1 in the default thinking mode (open): closed by this PR; its behavioural half was declined as deliberate. - #461 Document strict tool selection and numeric range precision (open): same author, adjacent paragraph, Changes Requested; possible rebase conflict, unverified locally.
- #685 DSML streaming rewrite (open): same file, different region, no conflict.
- #418 strict function-tool schemas (merged): same author's earlier edit of this tool block.
Link: https://github.com/NVIDIA/hyperflare-inference/pull/686
Autobot comments: This is an amendment pass. Since the previous report the PR grew to two files and the earlier "core-design.md still contradicts api.md" finding is withdrawn —
9ca1f72fixes it, and the bot review's two items (the core-design gap, plus the internal"shared lowering"and undefined`chat`shorthand) are both addressed, so the verdict moves from Changes Requested to approvable-with-nits. Unchanged flags:Fixes #445still closes an issue whose requested behaviour was deliberately declined (helios/src/frontend/deepseek.rs:275-280maps Required→Auto in thinking mode) — defensible per yatesdr's triage but worth stating; no human reviewer has commented; no CI evidence on the new head; the bot review's #461 line-conflict claim was measured at the old head and cannot be re-checked. One new nit:core-design.md:1735already links toapi.md, so the new link at:1729-1730is a duplicate pointer two sentences apart. Line ranges shifted: api.md prose 666-674, core-design.md 1727-1730.
Classify intake
Selected: triage:review, documentation, area:api, model:deepseek-v4, model:deepseek-v4.1
Threshold: 65%
Triage
- [✓]
triage:review: 99.5% -
none: 0.4% -
triage:validation: 0.0% -
triage:integration: 0.0% -
triage:partial: 0.0% -
triage:design-review: 0.0% -
triage:investigate: 0.0% -
triage:verify-for-closure: 0.0% -
triage:superseded: 0.0%
Priority
-
none: 100.0% -
priority:P1: 0.0% -
priority:P2: 0.0%
Type
- [✓]
documentation: 97.7% -
community: 56.2% -
duplicate: 26.9% -
bug: 13.3% -
enhancement: 0.6% -
performance: 0.0%
Area
- [✓]
area:api: 95.3% -
area:preparation: 1.2% -
area:selene: 0.7% -
area:rocenante: 0.5% -
area:engram: 0.4% -
area:kernels: 0.1% -
area:caching: 0.0% -
area:memory: 0.0% -
area:scheduling: 0.0% -
area:orbit: 0.0% -
area:packaging: 0.0%
Model
- [✓]
model:deepseek-v4.1: 91.5% - [✓]
model:deepseek-v4: 83.5% -
model:inkling-small: 1.2% -
model:qwen3.8-flash-next: 1.2% -
model:glm-5.3: 0.6% -
model:muse-glimmer: 0.1% -
model:qwen3.8-27b: 0.1% -
model:mimo-v2.6: 0.1% -
model:gemma4: 0.1% -
model:kimi-k3.1: 0.0% -
model:nemotron-3.5-bolt: 0.0%
Apply Labels (Intake)
No label changes
Subtraction and simplicity
The diff is lean and idiomatic for what it is: prose only, two files (docs/api.md +8/−3, docs/core-design.md +5/−2), no code, flags, wrappers, fallback branches, or dead code could be introduced or left behind, and no repo helper or abstraction is duplicated. The behavior the new prose describes matches the code vocabulary already used in api.md, and both docs follow .agents/skills/repo-prose/SKILL.md (not opened) (present-state specification, no chronology, no unexplained shorthand). Nothing blocks.
Highest-value trim: docs/core-design.md:1727-1730 restates, near-verbatim, the per-encoder required-mode rule that docs/api.md:666-674 already specifies in full, and links to it — while docs/core-design.md:1735 already points into api.md two sentences later. Collapsing the encoder clause to "prompt encoders differ in the instruction they add (see the API contracts link)" keeps one authoritative statement and removes the duplicate pointer, and incidentally removes the only occurrence of TMLv0 in core-design.md (a bare identifier with no local definition, against repo-prose SKILL.md:20-25). This is exactly the class of drift #445 reported.
Second, low: docs/api.md:670-672 ends with "so generation starts inside the tool-call envelope", which the preceding clause ("opens the DSML tool-call block at the end of the prompt") already implies — seven redundant words.
Third, no action: incidental wrap-point churn at docs/api.md:674 and docs/core-design.md:1731 is cosmetic and unavoidable in an insert.
Open questions: whether the unanchored api.md pointer at core-design.md:1735 should become anchorless-with-single-pointer or keep the new specific anchor (author's choice); whether a maintainer prefers core-design to hold only the invariant plus a pointer; no human review exists, and no CI ran on head 9ca1f72.
Correctness and contracts
Verdict: sound. No blockers, no majors — two Minor documentation nits on a prose-only diff (docs/api.md +8/−3, docs/core-design.md +5/−2 at 9ca1f72). Areas 1 and 2 (safety, concurrency, memory, failure propagation, platform parity) have no surface here and I say so rather than inventing findings.
Findings:
- Minor — "Sampling is unchanged" is over-broad. docs/api.md:672-674 says required mode only validates at completion and that "Sampling is unchanged", but with an active strict tool the requirement is also pushed into the decoding grammar:
allow_undeclared: request.tool_choice == ToolChoice::Auto/require_call: matches!(request.tool_choice, ToolChoice::Required | Named(_))at helios/src/server/request.rs:277-282, which also documents device-masked decoding at MTP width one (docs/api.md:760-768). Fix: add a half-clause ("with an active strict tool the call is also required by the request grammar"). - Minor — duplicate api.md pointer. docs/core-design.md:1729-1730 adds a link to api.md#conversation-and-tool-semantics two sentences before the pre-existing link at :1735. Trim one.
- Every factual claim in both hunks verified: encoder split at helios/src/frontend/mod.rs:151-156 (four exhaustive variants), request.rs:467-476, helios/src/server/inference.rs:387-390; DeepSeek
Required → Autoat helios/src/frontend/deepseek.rs:275-280; tests helios/tests/deepseek_requests.rs:347-415 (DSML envelope, non-thinking) and :689-711 (identical to auto,<think>); completion validation at helios/src/server/protocol/encode.rs:582-584 and :685-689. - Non-findings: no contract/schema/captured-graph change, so no owner sign-off needed; no metric or rate/admission span touched;
Fixes #445closes a deliberately-declined behaviour, defensible given yatesdr's triage and now stated plainly; no CI on the head, acceptable for prose and no new test needed.
Open questions: #461 shares the same api.md paragraph (rebase-order only; pr/461 not in local copy); no human maintainer has reviewed; how GitHub renders the anchor was checked by reading, not rendering.
Re-review
Recommendation: Ready To Merge
PR #686 cleanly resolves both items from the prior review at head 9ca1f72 (9ca1f72bd0b40ead0fe13f20364fb876c6607295): docs/core-design.md is now aligned with docs/api.md, and the internal "shared lowering" / `chat` labels were removed. Every documented claim matches the verified runtime implementation and existing tests across Jinja-template, TMLv0, and native DeepSeek V4/V4.1 prompt encoders, with zero runtime or compatibility blast radius.
Merge Risk
Level: Low
- Documentation-only diff across two Markdown files (
docs/api.md+8/−3,docs/core-design.md+5/−2); no runtime, scheduler, grammar, wire-schema, cache, or build files are modified. - Zero concurrency, contention, memory/CPU/I/O, failure-propagation, or cross-platform regression surface.
- Minor textual rebase overlap exists with the author's open PR #461 (
docs/api.md, required/named tool-choice paragraph); whichever merges second will need a trivial rebase with no semantic conflict.
Walkthrough
docs/api.md:666-674: Replaces the unconditional claim thattool_choice: "required"always appends a prompt instruction with the actual encoder split:- Jinja-template and TMLv0 prompt encoders append a system instruction to call a tool (
helios/src/frontend/mod.rs:142-156,helios/src/server/request.rs:467-476,helios/src/server/inference.rs:387-390). - Native DeepSeek V4 and V4.1 prompt encoders append no instruction—rendering required mode identically to
"auto"in thinking mode so reasoning begins in<think>(helios/src/frontend/deepseek.rs:272-280,helios/tests/deepseek_requests.rs:690-711), and opening the DSML tool-call block at the end of the prompt in non-thinking mode (helios/tests/deepseek_requests.rs:348-415). - Completion validation still enforces at least one completed call to a declared tool across all modes, including DeepSeek thinking mode (
helios/src/server/protocol/encode.rs:582-584,:685-689).
- Jinja-template and TMLv0 prompt encoders append a system instruction to call a tool (
docs/core-design.md:1727-1730: Replaces the stale unconditionaltool_choice=requiredsentence with the matching encoder split and links toapi.md#conversation-and-tool-semantics(verified against## Conversation and tool semanticsatdocs/api.md:485).
Pre-merge Checks
- [PASS] Security / malicious screen: Prose-only Markdown edits with one relative intra-doc anchor (
api.md#conversation-and-tool-semantics); no code, scripts, external links, or prompt-injection vectors. - [PASS] Charter & value fit: Directly addresses maintainer triage on #445 (
yatesdr: "this is deliberate, and the gap is in the docs… The docs should say so") under the charter's "bad docs" merge criterion without adding per-model runtime branches. - [WARN] Related / duplicate / conflict check: Not a duplicate; overlaps textually with the author's open PR #461 on the same
docs/api.mdrequired-mode paragraph ("Sampling is unchanged"vs."adds no decoding constraint"), requiring a small rebase when the second PR merges. - [PASS] Tests & verification evidence: All statements were verified directly against the runtime implementation and existing unit/integration tests (
helios/tests/deepseek_requests.rs:348-415,:690-711); omitting a build/GPU run is declared and appropriate for a docs-only diff.
Blockers
None.
Should Fix
None.
Subtract / Simplify
- (Optional) Avoid repeating the encoder list and
api.mdlink indocs/core-design.md:1727-1736: The newly added link[API contracts](api.md#conversation-and-tool-semantics)atdocs/core-design.md:1729-1730appears five lines before the existingSee the [API contracts](api.md)pointer at:1735, andTMLv0appears only here indocs/core-design.md. If you wantdocs/api.mdto remain the single authoritative enumeration of encoder behavior, you can optionally collapse:1727-1730to:`tool_choice=required` requires a completed call to a declared tool; whether a system prompt instruction is added depends on the prompt encoder (see the [API contracts](api.md#conversation-and-tool-semantics)).Or simply drop the parenthetical link at:1729-1730and keep:1735. Not required for merge.
Nits
None.
Dropped on verification
- Correctness & Contracts Minor 1 (
docs/api.md:672-674—"Sampling is unchanged"omits strict-tool grammar path): Dropped."Sampling is unchanged; no calls are fabricated"is pre-existing, untouched prose onmainthat only appears in the diff because it shares a wrapped line withcompleted call to a declared tool.; strict-tool grammar enforcement is already documented atdocs/api.md:760-768, and tightening that exact sentence ("adds no decoding constraint") is explicitly scoped to the author's separate open PR #461. - Subtraction & Simplicity Finding 2 (
docs/api.md:670-672—"so generation starts inside the tool-call envelope"): Dropped as low-signal wordsmithing. The clause parallels"so reasoning starts in <think>"in the same sentence and accurately reflectsOutputStart::ToolBody(helios/tests/deepseek_requests.rs:357). - Subtraction & Simplicity Finding 3 (
docs/api.md:674,docs/core-design.md:1731— incidental wrap-point reflow): Dropped as unavoidable paragraph-reflow noise. - Discovery Dossier / Value Proposition concern over
Fixes #445closing the issue's behavioral request: Dropped. Maintaineryatesdrexplicitly triaged #445 on 2026-11-21 as deliberate behavior whose resolution is updating the documentation, soFixes #445matches maintainer intent. - Discovery Dossier note on
docs/core-design.md:1730-1731("Without a grammar it uses ordinary sampling."): Dropped. Pre-existing sentence whose"Without a grammar"qualifier remains accurate.
Classify triage
Selected: triage:review
Threshold: 65%
Triage
- [✓]
triage:review: 98.8% -
none: 1.1% -
triage:design-review: 0.0% -
triage:integration: 0.0% -
triage:validation: 0.0% -
triage:verify-for-closure: 0.0% -
triage:partial: 0.0% -
triage:superseded: 0.0% -
triage:investigate: 0.0%
Apply labels
No label changes Decision to Test: no (98%): Testing will not add significant value as the code stands today. The code is either not yet ready to merge, or adequate testing has already been done to validate the contents of the code, or the available hardware is not suitable to test with.