Repository navigation
tool parsing: treat literal tool XML in prose/quotes/fences as text for glm5_next + qwen4_exp (ported from Enntity) - #230
Merged
Conversation
This was referenced Oct 28, 2026
Contributor
Author
|
Pair check vs parent (binary d0a68e2f, two GB10s, rc16 resident,
Single run, different binaries from those receipts, so it's an observation: no tool-calling regression from the literal-XML parsing change on this draw. |
AzeezIsh
force-pushed
the
stack/strict-mode
branch
from
October 29, 2026 04:44
220db42 to
c6adecd
Compare
AzeezIsh
force-pushed
the
stack/literal-tool-xml
branch
from
October 29, 2026 04:44
325a307 to
3d6af57
Compare
AzeezIsh
force-pushed
the
stack/strict-mode
branch
5 times, most recently
from
October 29, 2026 07:30
2aed61a to
590c18d
Compare
AzeezIsh
force-pushed
the
stack/literal-tool-xml
branch
from
October 29, 2026 07:42
3d6af57 to
17b1638
Compare
AzeezIsh
force-pushed
the
port/199-on-198
branch
from
October 29, 2026 07:45
61709e8 to
8a6ae6d
Compare
AzeezIsh
force-pushed
the
stack/literal-tool-xml
branch
5 times, most recently
from
October 29, 2026 08:54
9bfbf0a to
be8d15a
Compare
…es and streams as text Enntity's literal tool-XML mechanism (b1b5381, 69d32d3, 1c1a8fe, AGPL-3.0-only): models whose tokenizers register tool-envelope XML as added tokens (glm5_next, qwen4_exp) get a tagged sentinel family so quoted <tool_call> markup in incoming message prose encodes as text, reasoning preserves bare/split markup until the think-end token, and detector-rejected envelopes stay content instead of being reparsed as bare/JSON calls. LeakMarkers.for_literal_xml preserves parseable- looking envelopes in the same models; bare-role literal filtering stays for all other families. Off for every other model type: glm_tool_markup_as_text only switches on for the two carriers.
Enntity/atlas fbda04d (AGPL-3.0-only): shared LiteralXmlState scanner plus _with_literal_state sanitizer/detector/grammar hooks so parseable- looking tool XML spelled as ordinary text stays prose end-to-end.
…00-LoC cap, no logic edits)
AzeezIsh
force-pushed
the
stack/literal-tool-xml
branch
from
October 29, 2026 09:09
be8d15a to
9ebde29
Compare
Contributor
Author
|
GitHub closed this PR automatically during a restack: its base branch was briefly pushed to a commit containing its head, an accident reverted within minutes, and nothing reached main. Continued in #245, on the same branch. |
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.
Stack: main ← #198 ← #223 ← #224 ← #226 ← #227 ← #229 ← this.
Summary
b1b53814,fbda04d1,69d32d3e,1c1a8fee) with credit. Literal tool markup that the model writes as prose, in quotes or in code fences is kept as text instead of being parsed as a call or stripped. Reasoning keeps bare/split tool XML until think-end. Rejected envelopes can't be re-parsed as bare/JSON calls (LeakMarkers::for_literal_xml).glm5_nextandqwen4_exp; every other model type is unchanged.Test plan (vs parent #229)
literal_xml24/24,glm_tool_boundary38/38,tool_security9/9 (reiner)Tracking: #220.
Generated with Devin