[GH-ISSUE #4451] [Engine] 0.2.7 --batch: a streaming reply of one client's request (its reasoning stream) is delivered to a different client's connection #1988

Closed
opened 2026-11-04 01:55:48 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @Barmallini on GitHub (Oct 28, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4451

[Engine] 0.2.7 --batch: a streaming reply of one client's request (its reasoning stream) is delivered to a different client's connection
Reproduction status

Observed twice in production (Oct 28 2026, ~14:25-14:31 and ~14:38 MSK); not yet captured in a test. --api-monitor is now enabled to capture the next occurrence with per-request records.
Hardware and config

6× Tesla V100-SXM2-16GB (sm_70), engine 0.1.52 (v0.2.7.1 checkout), source build, CUDA 12
--batch 4, layer split 9,18,27,35,43, --kv int8 --kv-resident 262144 --max-context 262144, --prefill auto:32768, --vision (the encoder on a dedicated card), STRATA_DEFAULTS=026 (so the cards run the 0.2.6-style batch path, not the 0.2.7 pipeline)
Three streaming clients over the same VPN: two agents (10.7.0.14 with 90K-236K-token prompts, 10.7.0.8 with 60K-135K prompts, turns every few seconds) and a third client (192.168.88.200, ~117K-token prompts), all on /v1/chat/completions streaming

What happened - twice within 15 minutes

A client received, inside its own streaming reply, the internal reasoning (thinking) stream of a different client's request - a vision request that asked about a screenshot of an STM32CubeIDE "New project" wizard ("why is the Next button disabled?"). The victim's own reply continued afterwards; the reasoning text was foreign to its conversation from the first token.

Timeline of the second occurrence (from GET /metrics, all times server-local):
Code block

14:36:58 192.168.88.200 starts streaming (117K prompt, 974 output) - the victim
14:37:31 10.7.0.14 starts (94.8K prompt), ends 14:38:29
14:38:03 10.7.0.8 starts (134.4K prompt), ends 14:38:16 <- the resent
14:38:05 10.7.0.8 starts (134.5K prompt), ends 14:38:30 <- STM32CubeIDE question
~14:38 the victim's stream carries 10.7.0.8's reasoning about the STM32CubeIDE wizard

The first occurrence, ~14:25-14:31, had the same shape: the victim was streaming, both agents had overlapping requests, and the same foreign request's reasoning arrived (the other client hit "retry", so the reasoning text repeated verbatim - which is how we noticed it was the same request).
Notes

The two affected agents run on agent harnesses that record their own trajectories, so both sides of the leak are independently documented: the source agent's trajectory contains the same reasoning text and a tool-call frame (bash: ls -d /home/dev/STM32CubeIDE/...) that the victim's stream delivered. The tool-call frame crossing connections matters beyond privacy: if output frames can be misrouted, tool-call routing needs an audit too.
The engine's token bookkeeping looks consistent: every prompt N tokens = R reused + K read line adds up; no non-finite/session-drop lines. It does not look like context mixing - it looks like the reasoning SSE frames of one request being written to another connection.
The reasoning stream specifically: both leaks carried reasoning-style deliberation, not final-answer text. The victim's clients render reasoning separately from content, which may matter for where the frames are misrouted.
--api-monitor was off during both occurrences, so the per-request records are not retained; it is on now and the next occurrence will be reported with the exact request ids, inputs and outputs.
Possibly related to #4427 (malformed tool call under 0.2.7) - both are "a request's output ends up wrong under concurrent streaming".
STRATA_DEFAULTS=026 was set throughout, so the card-level batch pipeline of 0.2.7 was off; whatever misroutes the frames is in the path both modes share.
Originally created by @Barmallini on GitHub (Oct 28, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/4451 [Engine] 0.2.7 --batch: a streaming reply of one client's request (its reasoning stream) is delivered to a different client's connection Reproduction status Observed twice in production (Oct 28 2026, ~14:25-14:31 and ~14:38 MSK); not yet captured in a test. --api-monitor is now enabled to capture the next occurrence with per-request records. Hardware and config 6× Tesla V100-SXM2-16GB (sm_70), engine 0.1.52 (v0.2.7.1 checkout), source build, CUDA 12 --batch 4, layer split 9,18,27,35,43, --kv int8 --kv-resident 262144 --max-context 262144, --prefill auto:32768, --vision (the encoder on a dedicated card), STRATA_DEFAULTS=026 (so the cards run the 0.2.6-style batch path, not the 0.2.7 pipeline) Three streaming clients over the same VPN: two agents (10.7.0.14 with 90K-236K-token prompts, 10.7.0.8 with 60K-135K prompts, turns every few seconds) and a third client (192.168.88.200, ~117K-token prompts), all on /v1/chat/completions streaming What happened - twice within 15 minutes A client received, inside its own streaming reply, the internal reasoning (thinking) stream of a different client's request - a vision request that asked about a screenshot of an STM32CubeIDE "New project" wizard ("why is the Next button disabled?"). The victim's own reply continued afterwards; the reasoning text was foreign to its conversation from the first token. Timeline of the second occurrence (from GET /metrics, all times server-local): Code block 14:36:58 192.168.88.200 starts streaming (117K prompt, 974 output) - the victim 14:37:31 10.7.0.14 starts (94.8K prompt), ends 14:38:29 14:38:03 10.7.0.8 starts (134.4K prompt), ends 14:38:16 <- the resent 14:38:05 10.7.0.8 starts (134.5K prompt), ends 14:38:30 <- STM32CubeIDE question ~14:38 the victim's stream carries 10.7.0.8's reasoning about the STM32CubeIDE wizard The first occurrence, ~14:25-14:31, had the same shape: the victim was streaming, both agents had overlapping requests, and the same foreign request's reasoning arrived (the other client hit "retry", so the reasoning text repeated verbatim - which is how we noticed it was the same request). Notes The two affected agents run on agent harnesses that record their own trajectories, so both sides of the leak are independently documented: the source agent's trajectory contains the same reasoning text and a tool-call frame (bash: ls -d /home/dev/STM32CubeIDE/...) that the victim's stream delivered. The tool-call frame crossing connections matters beyond privacy: if output frames can be misrouted, tool-call routing needs an audit too. The engine's token bookkeeping looks consistent: every prompt N tokens = R reused + K read line adds up; no non-finite/session-drop lines. It does not look like context mixing - it looks like the reasoning SSE frames of one request being written to another connection. The reasoning stream specifically: both leaks carried reasoning-style deliberation, not final-answer text. The victim's clients render reasoning separately from content, which may matter for where the frames are misrouted. --api-monitor was off during both occurrences, so the per-request records are not retained; it is on now and the next occurrence will be reported with the exact request ids, inputs and outputs. Possibly related to #4427 (malformed tool call under 0.2.7) - both are "a request's output ends up wrong under concurrent streaming". STRATA_DEFAULTS=026 was set throughout, so the card-level batch pipeline of 0.2.7 was off; whatever misroutes the frames is in the path both modes share.
Author
Owner

@Niko1221 commented on GitHub (Nov 5, 2026):

Thanks for taking the time to report this.

Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. Closed here does not mean rejected.

To reopen it takes about two minutes:

  1. Re-test on 0.2.11. It may already be fixed. Write down what you see.
  2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other].
  3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system.
  4. Comment /reopen. A check runs and either reopens the issue or lists what is still missing.

The rules are in CONTRIBUTING.md.

<!-- gh-comment-id:6660467217 --> @Niko1221 commented on GitHub (Nov 5, 2026): Thanks for taking the time to report this. Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. Closed here does not mean rejected. To reopen it takes about two minutes: 1. Re-test on 0.2.11. It may already be fixed. Write down what you see. 2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other]. 3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system. 4. Comment `/reopen`. A check runs and either reopens the issue or lists what is still missing. The rules are in [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md).
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#1988
No description provided.