Files
junction/tests
Hermes 647b932e4a stream: each connection relays through its own buffer
relay_stream() and relay_dechunk() kept their read buffer in a static array,
but junction handles every connection in its own thread. Two live streams
therefore read into the same memory: each client received deltas from other
completions. splinter assembled those into Telegram answers with words
missing and sentences from other answers spliced in, and the corruption was
already in its session JSONL, so the chat was blamed.

Measured with a fake upstream that tags every delta with its completion id
and index, eight concurrent streams, three rounds: before 23 of 24 streams
carried foreign or missing deltas, after 24 of 24 are clean. tests/stream_race.py
is the counter-check; make test passes (537 checks).
2026-11-23 07:52:08 +00:00
..