CHANGELOG and docs/pair.md: the relay and the pair as the second review left them

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Hasan BasbunarandClaude Opus 5.5 committed 2026-11-06 03:07:01 +01:00
1 parent 9fb29e843d
commit 38b335151e
2 files changed
+53 -50

No files matched your search

+25 -22
View File
@@ -17,42 +17,45 @@ it read nothing more of the engine, its end included, and what the proxy decides
reach, the order read in systemd, the binding of decision 1019, the order told to the other box) was decided once the
client's relay reached it, behind up to 1,024 events, as the fourteenth and fifteenth reviews of v1.43.0 found. Its
reader never waits now: the answer waits in a spool bounded at 32 MiB (PROXY_SPOOL_MAX_MIB), past which the generation
is stopped (read to its end unrelayed where the engine knows no id of it to abort) and the client cut within 5 s, even
one that reads nothing at all (CLIENT TOO SLOW in the journal); what ends the answer, its end, a death or a cut, goes
whatever waits. The engine's death, cut or end is decided as it is read, the order read in systemd once then, and a
binding's 3 s of reads started at once. A death or a cut is bound when its client leaves first, an order seen at the
death binds nothing however late the relay gets there, the end of a /v1/responses stream (response.completed,
.incomplete or .failed) and an Ollama stream's last line take it out of reach as they are read, and vLLM's death on
its Anthropic route, which it says without the engine's words, counts as one when its engine no longer answers on
/health, the box of a pair that served it saying it to the other box in words that box reads as a death.
is stopped (read to its end unrelayed where the engine knows no id of it to abort) and the client cut within seconds,
even one that reads nothing at all (CLIENT TOO SLOW in the journal), the other box of a pair being told it binds
nothing once it reads again; what ends the answer, its end, a death or a cut, goes past that bound. The engine's
death, cut or end is decided as it is read, the order read in systemd once then, and a binding's 3 s of reads started
at once. A death or a cut is bound when its client leaves first, an order seen at the death binds nothing however late
the relay gets there, the end of a /v1/responses stream (response.completed, .incomplete or .failed) and an Ollama
stream's last line take it out of reach as they are read, and vLLM's death on its Anthropic route, which it says
without the engine's words, counts as one when its engine no longer answers on /health, the box of a pair that served
it saying it to the other box in words that box reads as a death.
**A pair reads on after its client leaves.** When the client of a request this box sent to the other box left before a
death that box sent reached it, the connection was ended at once, the death went unread, and the request was left
unbound, its retry free to run on this box's engine too (the fourteenth review of v1.43.0, decision 1112). The entry
reads on what the other box sends for 5 s after every client that leaves now, streamed or not, whatever its answer had
reached: a death there binds the request (its error event or its 502, an answer cut, the connection closed with no
answer), an order binds nothing, and this box ending the connection at the end of those seconds is no death. The other
box generates for nobody up to that long, the cost of reading it.
reads on what the other box sends for about 5 s after every client that leaves now, streamed or not: a death there
binds the request (its error event or its 502, a stream or an answer cut while it is read, the connection closed with
no answer), an order or an answer its engine aborted binds nothing, and this box ending the connection at the end of
those seconds is no death. The other box generates for nobody up to that long, the cost of reading it.
**A stop reaches what it should.** A stop counted again a generation another stop had marked, an Abort all then the
floor: it counts once now, and the floor's episode still holds new generations back while that generation runs. On
vLLM, a running answer's engine connection ended only at its relay's next event, after a write to a slow client
returned, up to 900 s, the generation going on meanwhile: it ends at once. A generation that goes out while a stop is
under way is that stop's, refused or cut as a new one is: abort_all ended it unmarked, and SGLang ends an aborted
Anthropic stream as end_turn, its client taking the part it got for the whole answer. Each stop's window closes once
the proxy's abort_all went or no engine listens, and stays open 8 s more when an engine did not take it, the cockpit
then sending its own. And the stop's answer counts as finishing a stream whose end was read and still goes out, where
the cockpit said no generation ran.
floor, and started the floor's episode for it: it counts once now, and a floor stop that stops nothing new holds
nothing back. A request a stop reaches while it waits in the proxy (its size guard, its engine's first byte) is
refused or cut then, never held for its engine and cut once it is back. On vLLM, a running answer's engine connection
ended only at its relay's next event, after a write to a slow client returned, up to 900 s, the generation going on
meanwhile: it ends at once. A generation that goes out while a stop is under way is that stop's, refused or cut as a
new one is: abort_all ended it unmarked, and SGLang ends an aborted Anthropic stream as end_turn, its client taking
the part it got for the whole answer. Each stop's window stays open until its abort_all is answered, closes then when
it went, when the engine is vLLM, which has none, or when no engine listens, and stays open 8 s more when SGLang's did
not go, the cockpit then sending its own. And the stop's answer counts as finishing a stream whose end was read and
still goes out, where the cockpit said no generation ran.
**What an update does.** The proxy (v6.53) and the cockpit restart. The 27B's unit changes. A box that serves the 27B
restarts it during the update, about 3.5 minutes on the reference box, the proxy holding requests meanwhile. A box
that serves another lane starts the 27B without torch.compile at its next Load.
**Tests.** tests/test_27b_no_torch_compile.py: none of the 27B's launches (its three units and run.sh) passes either
flag. It fails on v1.43.0. tests/test_proxy_pair.py has 40 new tests and tests/test_proxy_floor_stop.py one: the relay
flag. It fails on v1.43.0. tests/test_proxy_pair.py has 53 new tests and tests/test_proxy_floor_stop.py one: the relay
behind a client that reads nothing (its end, its death, its cut and their order read as they come, the spool's bound),
the stops, and the pair's entry once its client left. Each one written for a defect fails on the proxy before its fix,
the others guard against a false alarm, and changing any part of the new code fails at least one of them (47 mutants).
the others guard against a false alarm, and changing any part of the new code fails at least one of them (61 mutants).
## v1.43.0 (2026-11-05): two boxes that serve one model share its requests, a conversation staying on the box that holds it
+28 -28
View File
@@ -117,34 +117,34 @@ list was read): the entry then serves it itself.
entry's pool, its engine warms up and cannot measure a long prompt yet, or its engine does not answer at
the first try (connection refused, or a 502, 503 or 504 while its lane starts or stops). The request goes
at once, not after a wait for the lane.
- A request whose answer began is never sent again, nor one an engine closed the connection on while it
had it: the same request could take the other engine down too. Clients send a request again by
themselves after a 5xx (Claude Code, opencode, the SDKs): for 10 minutes, a request an engine closed
on, before its answer or during it, died with (vLLM answers those with a 500), or that the other box had
and dropped, goes to that box or nowhere, never shared, handed back or taken over, and nowhere once that
box left the pair, or the pair was dissolved. It can take one box down, as on a box alone (decision 1019).
A stop of the lane's unit (a Load of another lane, the Stop button), a restart of it that loads another
checkpoint than the one the box served (the cockpit's Load of another checkpoint of the lane, decision
1041), an Abort all and the memory floor end requests by order, which bind nothing, and a box that ends so
a request the other box sent tells it before the cut. Any other restart binds them as an engine's death:
their retries wait for that engine (decision 1030). So does the cockpit's restart of a wedged or stuck
engine, whatever checkpoint an update or switch-model.sh staged for its next start: the cockpit says which
run it restarts to recover it, in ~/.config/qwen38/recovery-restarts.json (decision 1049): the job that runs
the restart writes it just before its systemctl and removes it when that fails, unless systemd took the
restart all the same or does not answer. The proxy takes a mark for the restart it was written for only,
the unit leaving active, or changing state, within 2 minutes of it, and none older than 10 minutes
(decision 1062). A death the other box relays is bound as it is relayed, and unbound if that box says
within 5 s that it ended the request by order (decisions 1054 and 1061), which it says at the stream's end
too when its lane's stop showed only then. A request of the entry's own client, bound at a death of its
engine, is unbound the same way when its lane's stop shows at the stream's end, at its cut, or within 3 s of
the binding. Only the binding a try made is undone, which gives back
the one the same body had before, from an earlier death or an earlier try of the same request. A death or
a cut is decided as the proxy reads it from the engine, its order read then, however far behind its client
reads (v1.44.0), and vLLM's death on /v1/messages, which its Anthropic route says without the engine's
words, counts as one when the engine no longer answers on /health; the box that served it says it to the
other box in words that box reads as a death. When the client of a request the entry sent on
leaves, streamed or not, the entry reads what the other box still sends for 5 s: a death there binds the
request, an order binds nothing (decision 1112).
- A request whose answer began is never sent again, nor one an engine closed the connection on while it had it:
the same request could take the other engine down too. Clients send a request again by themselves after a 5xx
(Claude Code, opencode, the SDKs): for 10 minutes, a request an engine closed on, before its answer or during
it, died with (vLLM answers those with a 500), or that the other box had and dropped, goes to that box or
nowhere, never shared, handed back or taken over, and nowhere once that box left the pair, or the pair was
dissolved. It can take one box down, as on a box alone (decision 1019). A stop of the lane's unit (a Load of
another lane, the Stop button), a restart of it that loads another checkpoint than the one the box served (the
cockpit's Load of another checkpoint of the lane, decision 1041), an Abort all and the memory floor end
requests by order, which bind nothing, and a box that ends so a request the other box sent tells it before the
cut. Any other restart binds them as an engine's death: their retries wait for that engine (decision 1030). So
does the cockpit's restart of a wedged or stuck engine, whatever checkpoint an update or switch-model.sh
staged for its next start: the cockpit says which run it restarts to recover it, in
~/.config/qwen38/recovery-restarts.json (decision 1049): the job that runs the restart writes it just before
its systemctl and removes it when that fails, unless systemd took the restart all the same or does not answer.
The proxy takes a mark for the restart it was written for only, the unit leaving active, or changing state,
within 2 minutes of it, and none older than 10 minutes (decision 1062). A death the other box relays is bound
as it is relayed, and unbound if that box says within 5 s that it ended the request by order (decisions 1054
and 1061), which it says at the stream's end too when its lane's stop showed only then. An answer its engine
aborted (finish_reason abort, an abort_all sent straight to it) is said the same way: an abort is no death,
and binds nothing (v1.44.0). A request of the entry's own client, bound at a death of its engine, is unbound
the same way when its lane's stop shows at the stream's end, at its cut, or within 3 s of the binding. Only
the binding a try made is undone, which gives back the one the same body had before, from an earlier death or
an earlier try of the same request. A death or a cut is decided as the proxy reads it from the engine, its
order read then, however far behind its client reads (v1.44.0), and vLLM's death on /v1/messages, which its
Anthropic route says without the engine's words, counts as one when the engine no longer answers on /health;
the box that served it says it to the other box in words that box reads as a death. When the client of a
request the entry sent on leaves, streamed or not, the entry reads what the other box still sends for about 5
s: a death there binds the request, an order binds nothing (decision 1112).
- While the entry's engine is away (a crash, a restart), a model its lane serves (as the command of its
engine says, what its unit starts, or as it served last) goes to the other box only from the same
checkpoint (decision 1018): otherwise the entry holds it while its own engine comes back, as for a model no