[PR #571] [CLOSED] Feat/responses api 451 #2700

Closed
opened 2026-11-04 02:02:28 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/571
Author: @CC-David-CC
Created: 10/3/2026
Status: ❌ Closed

Base: main ← Head: feat/responses-api-451


📝 Commits (4)

  • db8b0f7 serve: add an opt-in Responses API adapter
  • c216fea docs: clarify branch selection, activation and public evidence
  • ccbb062 docs: record Responses checks against upstream 0.1.37
  • bfd7751 Merge upstream main and preserve Responses browser protections

📊 Changes

13 files changed (+2398 additions, -5 deletions)

View changed files

📝 .gitignore (+1 -0)
📝 README.md (+10 -0)
📝 docs/DETAILS.md (+7 -0)
➕ docs/RESPONSES.md (+262 -0)
➕ docs/benchmarks/2026-10-02-responses-cuda.json (+107 -0)
➕ docs/benchmarks/2026-10-03-responses-merge-check.json (+91 -0)
➕ docs/benchmarks/2026-10-03-responses-upstream-0138.json (+97 -0)
➕ serve/response_store.py (+96 -0)
➕ serve/responses.py (+771 -0)
📝 serve/server.py (+166 -2)
➕ serve/test_responses.py (+785 -0)
📝 serve/web/monitor.html (+1 -1)
📝 serve/web/monitor.js (+4 -2)

📄 Description

Adds the standard /v1/responses interface for #451, using the existing Strata service directly. Enable it once at startup with --experimental-responses or top-level "experimental_responses": true; it is disabled by default.

A small controller owns response records, typed output items and lifecycle transitions. JSON and SSE are views of the same execution, retaining the existing engine serialization and cancellation/draining. The monitor observes those transitions.

  • Create, retrieve, paginate input items and delete; retained context supports independent previous_response_id continuations.
  • Client-owned function-call/result loops, stable item/call IDs, and typed text/argument deltas.
  • Responses text.format validation, existing authentication/CORS, atomic retained records, deletion coordination and restart recovery.

Unsupported parameters fail explicitly. Background execution/cancel endpoint, image input, reasoning representations, hosted tools, compaction and WebSockets are outside this patch. Strict schemas require jsonschema; completion is validated, without claiming grammar-constrained decoding.

Validation

Merged upstream 0.1.38 (99f3dbd), preserving the Host checks on all methods and the browser-Origin check before Responses POST dispatch. Two new HTTP regressions cover those protections on Responses routes.

All eight serving/security modules passed: 231 passed, 5 tokenizer-fixture skips, including all 41 Responses, 118 server, and 21 security tests. The OpenAI SDK contract check passed.

Upstream sync and test outcomes

The published native CUDA check passed all 10 integration groups on an RTX 4090 with Coder IQ1_M, 4,096-token context and the original 0.1.34 base. That result is not a native-GPU test of 0.1.38.

Enable and use Responses ? Native evidence and source hashes


🔄 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/571 **Author:** [@CC-David-CC](https://github.com/CC-David-CC) **Created:** 10/3/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feat/responses-api-451` --- ### 📝 Commits (4) - [`db8b0f7`](https://github.com/Niko1221/Strata/commit/db8b0f77ac1ba0024da1b1efcfd8fa7627ede95f) serve: add an opt-in Responses API adapter - [`c216fea`](https://github.com/Niko1221/Strata/commit/c216fea72a1cec10761eda404afebd5c47b714e5) docs: clarify branch selection, activation and public evidence - [`ccbb062`](https://github.com/Niko1221/Strata/commit/ccbb062ec5a1990b1253b0bc65fc2df6a0c75ca1) docs: record Responses checks against upstream 0.1.37 - [`bfd7751`](https://github.com/Niko1221/Strata/commit/bfd77510079a68e16facbff7a762fa058452f0a7) Merge upstream main and preserve Responses browser protections ### 📊 Changes **13 files changed** (+2398 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `.gitignore` (+1 -0) 📝 `README.md` (+10 -0) 📝 `docs/DETAILS.md` (+7 -0) ➕ `docs/RESPONSES.md` (+262 -0) ➕ `docs/benchmarks/2026-10-02-responses-cuda.json` (+107 -0) ➕ `docs/benchmarks/2026-10-03-responses-merge-check.json` (+91 -0) ➕ `docs/benchmarks/2026-10-03-responses-upstream-0138.json` (+97 -0) ➕ `serve/response_store.py` (+96 -0) ➕ `serve/responses.py` (+771 -0) 📝 `serve/server.py` (+166 -2) ➕ `serve/test_responses.py` (+785 -0) 📝 `serve/web/monitor.html` (+1 -1) 📝 `serve/web/monitor.js` (+4 -2) </details> ### 📄 Description Adds the standard `/v1/responses` interface for #451, using the existing Strata service directly. Enable it once at startup with `--experimental-responses` or top-level `"experimental_responses": true`; it is disabled by default. A small controller owns response records, typed output items and lifecycle transitions. JSON and SSE are views of the same execution, retaining the existing engine serialization and cancellation/draining. The monitor observes those transitions. - Create, retrieve, paginate input items and delete; retained context supports independent `previous_response_id` continuations. - Client-owned function-call/result loops, stable item/call IDs, and typed text/argument deltas. - Responses `text.format` validation, existing authentication/CORS, atomic retained records, deletion coordination and restart recovery. Unsupported parameters fail explicitly. Background execution/cancel endpoint, image input, reasoning representations, hosted tools, compaction and WebSockets are outside this patch. Strict schemas require `jsonschema`; completion is validated, without claiming grammar-constrained decoding. ## Validation Merged upstream 0.1.38 (`99f3dbd`), preserving the Host checks on all methods and the browser-Origin check before Responses POST dispatch. Two new HTTP regressions cover those protections on Responses routes. All eight serving/security modules passed: **231 passed, 5 tokenizer-fixture skips**, including all 41 Responses, 118 server, and 21 security tests. The OpenAI SDK contract check passed. [Upstream sync and test outcomes](https://github.com/CC-David-CC/Strata-a5500/blob/feat/responses-api-451/docs/benchmarks/2026-10-03-responses-upstream-0138.json) The published native CUDA check passed all 10 integration groups on an RTX 4090 with Coder IQ1_M, 4,096-token context and the original 0.1.34 base. That result is not a native-GPU test of 0.1.38. [Enable and use Responses](https://github.com/CC-David-CC/Strata-a5500/blob/feat/responses-api-451/docs/RESPONSES.md) ? [Native evidence and source hashes](https://github.com/CC-David-CC/Strata-a5500/blob/feat/responses-api-451/docs/benchmarks/2026-10-02-responses-cuda.json) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-04 02:02:28 +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#2700
No description provided.