Repository navigation
docs: add technical report for PR #1547 - #1552
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Technical report for PR #1547 (
fix(server): derive the thinking_mode sentinel from the chat template), in English and Korean, dated by that PR'smergedAtof 2026-08-31.TECHNICAL_REPORTS/.keep-reportsis present, so reports are tracked in git. #1547 was implemented directly rather than through a merge workflow, so no report was recorded at merge time; this adds it after the fact.What the report covers
The bug itself is small. What made it worth writing up is why it survived a test suite that covered the exact mechanism it broke.
thinking_mode: "enabled", which is one template family's convention. DeepSeek-V4 aliases the variable throughdefault()and gates on'thinking', so the injected value fell through to the else branch with no error.THINKING_MODE_LIKE_TEMPLATEcomparesthinking_modedirectly against"enabled", and the implementation injected"enabled". The fixture and the code were written from the same mental model, so the suite confirmed the model rather than the behaviour. The tests were parallel to the code instead of perpendicular to it.default()contributes no candidate: it holds the template's OFF value, so injecting it would be worse than injecting nothing.Section 7 records what remains unverified rather than implying the change is complete: only two template conventions have real fixtures, multi-step aliasing and non-
==operators fall back, and there is no end-to-end server test against a loaded V4.Section 8 deliberately files no follow-ups. Opening issues for conventions nobody has been observed to use would repeat the mistake #1531 was closed for, where an issue was raised on a hypothesised rather than measured problem.
Verification
**Author**: mlxcel maintainers, no AI attribution).{PR}-{title-summary}-{mergedAt:YYYYMMDD}.{en,ko}.md.git add -fon explicit paths, sinceTECHNICAL_REPORTS/is otherwise gitignored.Docs only; no code changes.