Skip to content

tool parsing: treat literal tool XML in prose/quotes/fences as text for glm5_next + qwen4_exp (ported from Enntity) - #245

Closed
AzeezIsh wants to merge 0 commit into
port/199-on-198from
stack/literal-tool-xml
Closed

AzeezIsh wants to merge 0 commit into
port/199-on-198from
stack/literal-tool-xml

Conversation

@AzeezIsh

Copy link
Copy Markdown
Contributor

Replaces #230. GitHub marked #230 as merged automatically: during a restack, its base branch was briefly pushed to a commit containing its head (an accident, reverted within minutes). A merged PR can't be reopened. Nothing reached main. The branch is the same (stack/literal-tool-xml); #230 has the history and receipts.

Stack: main ← #198 ← #223 ← #224 ← #226 ← #227 ← #229 ← this.

Summary

  • Ports Enntity's literal tool-XML handling (AGPL-3.0, 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).
  • On by default for glm5_next and qwen4_exp; every other model type is unchanged.
  • Fixed while porting: a content arm that stopped after the first detector item, an early tool-call header emitted for unregistered tools, and a pre-existing fixture bug in spark-server: tool-call guard (atlas-tool-guard crate, --tool-guard, default off; ported from Enntity) #227's tests (the guard defaulted on in a non-guard test).

Test plan (vs parent #229)

  • literal_xml 24/24, glm_tool_boundary 38/38, tool_security 9/9 (reiner)
  • tool probe, greedy C1 vs serial refs, BFCL ST-995 on the pair (job J35)

Tracking: #220.

Generated with Devin

@AzeezIsh

Copy link
Copy Markdown
Contributor Author

GitHub closed this PR automatically during a restack. Continued in 253 on the same branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant