[PR #2702] [CLOSED] serve: protect remaining input call literals #4221

Closed
opened 2026-11-07 15:34:08 +07:00 by bsakaguchi · 0 comments
Owner

📋 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)

  • 71d0317 serve: 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 assistant
arguments 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 unmodified
296b59d2 (six assertion failures, including subtests).


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/2702 **Author:** [@allowq](https://github.com/allowq) **Created:** 10/15/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `pr/input-call-literals` --- ### 📝 Commits (1) - [`71d0317`](https://github.com/Niko1221/Strata/commit/71d0317e30c5c15b9e32cd4d82f84a1c3c60016f) serve: protect remaining input call literals ### 📊 Changes **2 files changed** (+115 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `serve/frontend.py` (+4 -3) ➕ `serve/test_quote_call_literals.py` (+111 -0) </details> ### 📄 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 assistant arguments 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 unmodified 296b59d2 (six assertion failures, including subtests). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 15:34:08 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#4221
No description provided.