Skip to content

server: Responses accepts OpenAI's include values and ignores them - #759

Merged
ashhart merged 1 commit into
ashhart:mainfrom
Bizuayeu:pr/responses-include
Oct 13, 2026
Merged

ashhart merged 1 commit into
ashhart:mainfrom
Bizuayeu:pr/responses-include

Conversation

@Bizuayeu

Copy link
Copy Markdown
Contributor

What this changes

/v1/responses refused any include, and some clients send it by habit (reasoning.encrypted_content on
reasoning models), so they failed here. Each of OpenAI's include values asks for output this server has nothing
to add: reasoning comes as text, nothing is encrypted, no tool runs here, logprobs are empty. include() accepts a
list of them and changes nothing in the request; a value OpenAI does not define, or an include that is not a list
of strings, is refused by name. The frozen corpus case now sends an unknown value, and its golden reply is that
refusal. The values and the refusal follow @MiaAI-Lab's patch for the Python engine (Apache-2.0).

Receipt

  • Environment: TensorFold 0efbd447 plus this change; one GB10 (DGX Spark, sm_121, CUDA 13.3).
  • Exactness: no change to generation; the request is the same with or without the accepted values.
  • Decode and prompt speed: not applicable.
  • Tests run:
    • zig build test: 438 passed, 5 skipped, 0 failed; the new "OpenAI's include values are accepted, others refused
      by name" needs this change.
    • zig build test-cuda-host: 360 passed, 0 failed. zig fmt --check: clean. lean_check: 539, as main.
  • Not run, and why: test-golden (Macs only), so the corpus case's new golden reply was written by hand to the
    refusal's text and not replayed here.

Checklist

  • Every token still goes through the lane rounds. No serial path, and nothing that needs drafts off.
  • Drafted output equals "draft": false, a resumed prompt equals a fresh one, and concurrent equals solo.
  • No precision traded for speed. If the bits change, the description says which sums change and why.
  • Prompt processing is no slower than the last release.
  • The description says which platforms I ran, Metal M1 to M5 and CUDA, and which I could not.
  • New tests fail before the change, pass after it, and skip cleanly without their dependency.
  • Comments and docstrings are one line. No measurements or history in the source.
  • No personal data, machine names, internal hosts or local paths. No AI attribution lines.

/v1/responses refused any include, and some clients send it by habit
(reasoning.encrypted_content on reasoning models), so they failed here. Each of OpenAI's
include values asks for output this server has nothing to add: reasoning comes as text,
nothing is encrypted, no tool runs here, logprobs are empty. include() accepts a list of
them and changes nothing in the request; a value OpenAI does not define, or an include that
is not a list of strings, is refused by name, as MiaAI-Lab's patch for the Python engine
refuses it (Apache-2.0).

The frozen corpus case now sends an unknown value, and its golden reply is that refusal
(json.dumps as freeze_golden.py writes it); test-golden runs on Macs only and was not run
here. responses_include_test.zig covers the values.
@Bizuayeu
Bizuayeu force-pushed the pr/responses-include branch from 0a658c9 to e4f07ed Compare October 13, 2026 06:40
@ashhart
ashhart merged commit 53ab0a3 into ashhart:main Oct 13, 2026
2 checks passed
jschmied pushed a commit to jschmied/TensorFold that referenced this pull request Oct 13, 2026
jschmied pushed a commit to jschmied/TensorFold that referenced this pull request Oct 13, 2026
jschmied pushed a commit to jschmied/TensorFold that referenced this pull request Oct 13, 2026
…e repaired before they parse

docs/api.md still said include is refused and that a partial value stays content; ashhart#759 and ashhart#761 changed both.
jschmied pushed a commit to jschmied/TensorFold that referenced this pull request Oct 13, 2026
…al by name, as ashhart#759's and ashhart#761's heads now say

Comment and test-name wording only, from the PRs' current heads.

Co-authored-by: Bizuayeu <[email protected]>
@ashhart

ashhart commented Oct 13, 2026

Copy link
Copy Markdown
Owner

Thank you, @Bizuayeu. Clients that send include out of habit can talk to the server now, and an unknown value is still refused by name. Your commit landed in 1.0.9 under your name (89b7e743a).

One fix of ours went in beside it (0b9f4a1ca): the corpus now asks for reasoning.bogus, but the frozen request in golden/cases.json still sent reasoning.encrypted_content, so test-golden on a Mac compared the new 200 with the frozen refusal (the case and the request log). We rewrote that one recorded request; test-golden passes, as do the macOS host suites.

Your head moved after we landed it: its comments now say an unknown value is refused by name, where they compared it with the 2.x line. We took that wording as 3af60a449, with you as co-author, and both heads are merged into the history with no change to the tree (ddb2fde37, then 53ab0a3d2 for the current one), so GitHub shows this PR as merged.

outcastofmusic added a commit to outcastofmusic/TensorFold that referenced this pull request Oct 16, 2026
…ers refused by name

Every include was refused, so a client that always sends one (reasoning.encrypted_content, by habit) could not call
/v1/responses. Its eight values ask for output this server has none of: reasoning comes as text and nothing is
encrypted. An unknown value, or an include that is not a list of strings, stays a 400 that names it. Upstream
TensorFold 1.0.9 (ashhart#759) does the same.

Tests: tests/test_responses_api.py, 40 passed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
BlivionIaG pushed a commit to BlivionIaG/TensorFold that referenced this pull request Oct 20, 2026
BlivionIaG pushed a commit to BlivionIaG/TensorFold that referenced this pull request Oct 20, 2026
BlivionIaG pushed a commit to BlivionIaG/TensorFold that referenced this pull request Oct 20, 2026
…e repaired before they parse

docs/api.md still said include is refused and that a partial value stays content; ashhart#759 and ashhart#761 changed both.
BlivionIaG pushed a commit to BlivionIaG/TensorFold that referenced this pull request Oct 20, 2026
…al by name, as ashhart#759's and ashhart#761's heads now say

Comment and test-name wording only, from the PRs' current heads.

Co-authored-by: Bizuayeu <[email protected]>
BlivionIaG pushed a commit to BlivionIaG/TensorFold that referenced this pull request Oct 20, 2026
@Bizuayeu
Bizuayeu deleted the pr/responses-include branch October 25, 2026 07:27
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.

2 participants