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.