mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #2702] [CLOSED] serve: protect remaining input call literals #4221
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#4221
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/2702
Author: @allowq
Created: 10/15/2026
Status: ❌ Closed
Base:
main← Head:pr/input-call-literals📝 Commits (1)
71d0317serve: protect remaining input call literals📊 Changes
2 files changed (+115 additions, -3 deletions)
View changed files
📝
serve/frontend.py(+4 -3)➕
serve/test_quote_call_literals.py(+111 -0)📄 Description
Issue: Literal call markers in input can become protocol tokens
Follow up #2026 on v0.1.44.1 (
296b59d2). Nested JSON keys and structured assistantarguments are not all protected by the input-literal marking path.
Expected: data remains data; actual template call framing remains protocol.
PR: Protect remaining input call literals
Extend the existing marking path to nested keys and structured arguments.
Preserve upstream's call/response tag mapping, outer tool-result wrappers,
raw assistant content semantics and caller-owned objects.
Validation:
serve.test_quote_call_literals; ordinary tokenizer IDs for literals,real framing, nested data and unchanged-input controls. With upstream
serve.test_frontend: 33 tests pass. The added regressions fail on unmodified296b59d2(six assertion failures, including subtests).🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.