Commit Graph
96 Commits
Author SHA1 Message Date
Hasan BasbunarandClaude Opus 5.5 026d6004b0 cockpit: a login's Origin over plain HTTP, [::1] sent on to localhost, and its key to its own cockpit alone
A browser sends no Sec-Fetch header over plain HTTP to a tailnet or a LAN address, the cockpit's own case: its Origin has to
be the host it asked there. A content policy has no name for an IPv6 address, so nothing of the Agent view opened at [::1]:
the cockpit sends on to localhost. On a pair, the proxy asks what answers on the loopback to prove it is this box's cockpit
before it logs in: an ssh tunnel to the other box's held that port and got this box's key. The banner of a cockpit that does
not answer says nothing of the loopback's IPv6 address. (review of v1.60.0)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 13:12:08 +01:00
Hasan BasbunarandClaude Opus 5.5 532a94924d cockpit: the agent's relay on a LAN beside the tailnet, ::1, its own client key, and no login from another site
The Agent view's relay takes several addresses (AGENT_BIND=tailscale,192.168.1.10): the tailnet's and a LAN's, each with a
state of its own. The cockpit and the relay serve the loopback's IPv6 address where the box has one. The proxy asks this
box's cockpit on its own loopback, where it always answers, so a pair's tile speaks while Tailscale is down. Where the proxy
knows its clients by their keys, Smoke and Decide go with the key its file labels "cockpit", and say what to add when it has
none, instead of failing on a 401. A login posted by another site's page is refused before it counts as one of the five
tries a minute. Decision 1623.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 13:12:08 +01:00
Hasan Basbunar 98d199b55a tests: the pair's lane names exclude the embed lane's served name
/v1/embeddings is no pair route and a request for the embed model never
leaves the box it reached (decision 966), so its served name is not one of
the pair's; the registry's gate (test_lane_registry) already said so.

Generated by Mistral Vibe.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 16:40:20 +01:00
Hasan BasbunarandClaude Fable 5.2 0c46b67464 v1.48.0: the Qwen3.8 Flash-Next Unsloth GGUF lane, served by llama.cpp
A tenth lane, and the first on llama.cpp: Unsloth's GGUF of
Qwen3.8-Flash-Next (UD-Q4_K_XL, four parts pinned by sha256 and size),
served by llama.cpp's own server from the image its project publishes for
arm64 with CUDA 13 (b12316, pinned by digest), drafted by ggml-org's
DFlash2 head behind llama.cpp's n-gram lookup. The model's n-gram table
(26.8 GiB) stays on the disk (--lazy-mode on).

The lane is a text lane like the others: its unit (one engine at a time),
its installer (install, update, --units-only, --prepare, --fetch,
--stage, --uninstall), switch-model.sh, uninstall.sh, check-pins.sh, the
proxy (v6.55: llama.cpp ends a request whose connection closes, as vLLM
does), the cockpit (engine panel, load from /metrics, Unsloth's logo),
opencode and pi. Unsloth's chat template raises on a system message
after the first: the lane loads the template with the fixes the other
Qwen lanes' templates have. The image has no Python: the GGUF files are
fetched by gguf-fetch.py, on the host, each checked by its sha256.

Measured on the reference box on 2026-11-11 and 12 (docs/flash-unsloth-lane.md
has every number with its conditions): at the model card's sampling, one
request, on the pinned image, 51.8 tok/s in code, 56.7 in reasoning, 29.2
in prose and 132.4 in a rewrite of code, against 27 to 28 without a
draft. Two requests at once, each with the model's whole window of
262,144 tokens (-c 524288 -np 2): 54.2 tok/s alone, 63.2 in all at two.
Quality with the draft: GSM8K 0.984 on 250 problems, HumanEval 0.994 on
164, 20 tool calls right of 20.

Tests: tests/test_flash_unsloth_lane.py and
dashboard/tests/test_flash_unsloth_cockpit.py are new, and the lists and
counts of the other lanes' tests follow.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-12 12:10:09 +01:00
Hasan BasbunarandClaude Fable 5.2 3640b441ac tests: the pair's tests are four files, and CI measures their coverage four files at a time
tests/test_proxy_pair.py held 498 tests in 8,054 lines and took 892 s of every
pass that ran it, in one piece: half of the pass that runs every module of
tests/ (1,808 s on 2026-11-10), most of the coverage step that runs its files
one after the other (1,283 s), and the tail of the offline suite.

It is cut by class, each class copied line for line:
- tests/test_proxy_pair.py keeps the two boxes that serve two models, the
  pair's pieces and the lane names (185 tests);
- tests/test_proxy_pair_inprocess.py has the same cases with the entry in the
  test's process (58, and the check that this twin declares every case);
- tests/test_proxy_pair_one_model.py has the two boxes that serve one model (127);
- tests/test_proxy_pair_one_model_inprocess.py has its in-process cases (127,
  and the same check for this twin);
- tests/pairbox.py is what they share and holds no test: the identities, the
  fake engines, peers and cockpits, PairFixture.

A twin names its base class by its module: unittest runs every TestCase a
module names, so the class itself, imported, would run its cases a second
time. The check that each twin declares every case of its class is one test
in each twin's file where it was one test for both: 499 tests where there
were 498, every other one with the body it had (compared by the syntax tree,
method by method, before and after).

The coverage step of the root modules names the four files and runs its
files four at a time, the longest first.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-10 20:48:46 +01:00
Hasan BasbunarandClaude Opus 5.5 456189ecc6 tests: a generation held for the whole test (busy) ends with the test, not its secs later
The fake engine waited out every x_delay with time.sleep, and busy()'s cleanup
joined its requests: a test held for 25 s by one busy request lasted 25 s
whatever its own steps took. The engine now waits on an Event its test's
cleanup sets, so the requests answer as soon as the test is over, and the next
test still starts once they are in, as before. No assertion reads them past
the test (decision 1137, the CI's time).

A test that ends sooner can leave the next one what its seconds used to let
run out: a pause of the other box (PAIR_SPREAD_COOL_S, 2 s in this class). An
instrumented run of the class, each test's start reading what the one before
left, found one: 1.07 s of pause on spark2 after
test_a_box_gone_without_a_reset_holds_a_shared_request_seconds_not_ten, in the
in-process twin, and no stop window nor floor left open. The in-process twin
now forgets any pause as each test starts. In the class run as a process of
its own, the one test that pauses spark2 already waits its pause out (2.5 s).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 13:49:03 +01:00
Hasan BasbunarandClaude Opus 5.5 27d1b232fe relay: the findings of the seventh max review, fixed
The review of bf45717..7db3237 reported 15 findings, no crash and no corrupted stream. Fixed,
each with a test that fails on 7db3237 or on a mutant (4 mutants caught):
- A regression of the sixth review's fix: every error the other box gave once its client had
  left forgot the conversation there, its prefix in that box's cache. Only what says the
  request is not served there (409 model_not_served, a prompt too long) forgets it now; any
  other error keeps it, as with its client present.
- Tests the review found missing: the stop's wake of an idle relay (no keepalive before its
  cut), an answer cut within the second its client left, no pause for a 409.
- shut alone says this request's watch cut the upload; the watch reads its client through
  gone_now; texts said as the code is; no sleep at pace 0 in the test helper.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 09:55:02 +01:00
Hasan BasbunarandClaude Opus 5.5 9eac5d5819 relay: the findings of the sixth max review, fixed
The review of c08c7f3..bf45717 reported 9 findings, none serious. Fixed, each with a test that
fails on bf45717 or on a mutant (5 mutants caught):
- A stopped spool drops what its engine still sends, freed and its relay woken in one step
  (_Spool.stop): cleared alone, it filled again while its relay was frozen in a write.
- A client's leaving is read wherever the request's course is decided (gone_now): a close or
  a whole answer that came within the watch's first second went the way of a client still
  there.
- A refusal read after its client left moves no conversation to the box that refused it.
- "left" only where this request's own watch cut the upload.
Tests: the close and the whole answer within that second, the refusal's affinity, the
stopped spool fed no more, its freeze checked; the slow peer of the test of a client that
leaves during its upload now outlasts the watch's 5 s, as its own close came first.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 08:50:11 +01:00
Hasan BasbunarandClaude Opus 5.5 aaac46ab40 relay: the findings of the fifth max review, fixed
The review of 7c855b5..c08c7f3 found no bug in that delta's runtime changes; what it found,
fixed, each with a test that fails on c08c7f3 (or 7c855b5) or on a mutant (4 mutants caught):
- A stop frees what waits in its relay's spool: never written once stopped, it stayed up to
  SPOOL_MAX_BYTES behind a relay frozen in a write, CLIENT_IO_S long (the spool's bound grew
  from 1,024 events to 32 MiB with the rework).
- A client's leaving is read as the other box's refusal or close comes, not at the watch's next
  tick: within that second, a shared request whose client had left was served on this box.
- Tests for the two fixes before that had none failing on the old code (the spool freed before
  the abort's round trip, the stop's mark read in _pair_take_over), and the stopped count
  helper used by its four tests; comments on what clear and a take-over's True say.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 07:48:37 +01:00
Hasan BasbunarandClaude Opus 5.5 0e3e676f07 relay: the findings of the fourth max review, fixed
The review of 38b3351..7c855b5 reported 11 findings, none serious, each read again in the
code. Fixed, each with a test that fails on 7c855b5 or on a mutant (3 mutants caught):
- A stop's mark is read where a hand-off to the other box is decided, under the lock the stop
  marks under (_pair_take_over), and only there: a box alone or a hop keeps the size guard's
  400 for a prompt too long, which a stop during its count had turned into a cut or an ended
  by order; a stop between a check and the hand-off can no longer have the other box serve it.
- What waits in the spool is dropped whenever its answer is drained (a client gone on a write,
  a stop at the relay's turn) and, for a client too slow, before the abort's round trip.
Tests: a hop's 400 kept, the floor's refusal of a stopped request too long, a drained spool
freed, the away refusal pinned to its path.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 06:31:37 +01:00
Hasan BasbunarandClaude Opus 5.5 b17ffdc1b8 relay: the findings of the third max review, fixed
The review of 9c0730e..38b3351 reported 14 findings, each read again in the code. Fixed, each
with a test that fails on 38b3351 or on a mutant (5 mutants caught):
- A floor stop that lands while an Abort all's generations still run reaches them again and
  holds new generations back, as v1.43.0 does: SGLang answers abort_all before its scheduler
  frees anything. The three reviews of v1.44.0 disagreed on it; the box's behaviour is kept
  until it is decided.
- A request a stop reaches during its size guard's count is never handed to the other box as
  too long for this one: one answer for a stopped request (_stopped_now), refused while the
  floor holds, cut otherwise, wherever it would go on.
- What waits in the spool of a client too slow is freed at once: never written, it stayed
  32 MiB behind a hop that reads again within CLIENT_IO_S, or a drain.
- A box away that refuses a shared request after its client left is paused, as when it stays.
Tests: the floor's branch of a stopped request driven; the late answer after a plain close,
where the first write goes through; the paths of the shared request's close and of the two
stops pinned; the drip of the stop window test given room.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 05:04:00 +01:00
Hasan BasbunarandClaude Opus 5.5 9fb29e843d relay: the findings of the second max review, fixed
The review of bb03551..9c0730e reported 34 findings, each read again in the code. Fixed, each
with a test that fails on 9c0730e or on a mutant (14 mutants caught):
- Two of the first review's fixes went wrong: the 5 s cut of a client too slow cut the other box
  of a pair before it could be told the order, which then bound the request 10 minutes (no
  such cut for a hop now: it is told once it reads again); and an Ollama stream that ended
  whole, its last line unwritten to a client gone, read as a death (nothing is read after an
  end now).
- The floor's episode for a generation an earlier stop had marked is undone (the first
  review's change): it holds no engine memory, and revue 627 holds nothing back for a stop
  that stops nothing new.
- A request a stop reaches while it waits in the proxy is refused or cut then, never held or
  handed to the other box; a stop's window stays open until its abort_all is answered, and
  closes even when the stop raises.
- An order put before a death by order is said; a failed /v1/responses stream is never said
  finishing at its end; a keepalive's write ended by the client too slow is said so; the cut
  of a client too slow shuts its TCP side, as the pair's watch does.
- The pair's entry: an answer that came while its client left goes to nobody; a box that
  closed on a shared request after its client left is paused, as when it stays; a hop says an
  answer its engine aborted as an order, which binds nothing; a stop's stream whose engine
  knows no rid of it is drained, not closed.
Refuted: vLLM's message stream converter ends its stream after its error event, so taking it
out of reach before the probe costs nothing. Tests made sturdier where the review found them
timed or weak.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 03:07:01 +01:00
Hasan BasbunarandClaude Opus 5.5 d366290b3e relay: the findings of the max review of its rework, fixed
The review of 93746bf..bb03551 reported 41 findings, each read again in the code. Fixed, each
with a test that fails on 7d806dc or on a mutant (21 mutants caught):
- vLLM: the proxy's own close of the upstream (its client gone, a stop, its client too slow)
  was read by the pump as its engine cutting the stream, and bound the request 10 minutes:
  what the proxy ends itself (_aborted, stop, drain) is never a cut.
- A client too slow: its generation aborted then closed by the pump, once, and drained where
  the engine knows no rid of it; the relay no longer closes the upstream before the abort; a
  client that reads nothing at all is cut within SPOOL_CUT_WAIT_S; the other box is told no
  order after its engine's death; what ends the answer (its end, a death, a cut) goes past the
  spool's bound.
- vLLM's death on /v1/messages: probed on /health, out of every stop's reach before the probe,
  and said by a hop in words the entry reads as a death.
- Stops: one window per stop (_STOP_WINDOWS), closed when no engine listens, read as a
  generation goes out, after the size guard; the floor's episode counts what still runs.
- The pump's decisions are guarded; a dead, aborted or failed stream is never said finishing;
  PROXY_SPOOL_MAX_MIB is read as its siblings are; the deferred reads say what they follow.
Tests: the frozen client's helper reads several records and says when each abort and close
came; the stop's helper chooses its targets as the stop does; the timing tests wait for the
reads they mean; the in-process stop tests carry a test key, never this machine's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 01:08:42 +01:00
Hasan BasbunarandClaude Opus 5.5 abad3153c5 pair: the entry reads a death after every client that leaves, streamed or not (decision 1112)
The seconds the entry kept the connection after its client left served a stream already
relayed only. An answer not streamed read its 502, its cut or its connection closed by the other
box after its client left, and bound nothing; a stream that began after its client left, or
whose head could not be written, was left at its head. Each binds a death read within
PAIR_ORDER_GRACE_S now, as when its client stays. The watch's own end of the connection is said
by an Event of its call (it was an attribute of the handler) and never binds. An NDJSON death
line held back where its client left is read whole. Six tests fail on 79aef20, eleven mutants
are caught; the test of a client that leaves waits out those seconds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 00:23:12 +01:00
Hasan BasbunarandClaude Opus 5.5 8138c1d8c2 pair: the entry reads on after its client leaves, a death the other box sends then binding the request (decision 1112)
The watch ended the connection to the other box at once when the client left before a death
was relayed: a death that box sent then went unread and the request unbound (the fourteenth
review of v1.43.0). The grace of PAIR_ORDER_GRACE_S follows every client that leaves now, and
_end_after, which replaces _order_after, reads a death as well as an order: a death binds, an
order binds nothing, a cut counts as a death, and the watch's own end of the connection never
does (_pair_watch_shut). Three tests: a death after the client left is bound (fails on
bb03551), a stream that ends binds nothing, and the watch's end is no death (fails without
the flag); mutants without the grace or the death read caught.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 23:40:25 +01:00
Hasan BasbunarandClaude Opus 5.5 4638cd138c relay: an SSE answer's end is read and decided as its engine sends it, whatever its client's pace (v6.53, decisions 1106 to 1109)
The pump read the engine into a queue of 1,024 events and waited when it was full: behind a
client that read nothing, it read nothing more, the end included, and what the proxy decides at
an engine's end (out of a stop's reach, the order read in systemd, the binding of decision
1019, the order told to the other box) waited for the relay to reach it. The twelfth to
fifteenth reviews of v1.43.0 found a window in that each time.

- The pump puts into a _Spool that never waits, bounded at SPOOL_MAX_BYTES (32 MiB,
  PROXY_SPOOL_MAX_MIB): past it, the generation is stopped and the client cut, CLIENT TOO SLOW.
- _engine_end decides a death or a cut as the pump reads it: out of reach, the order read
  once, the request bound or a hop's box told ("o", put before the death or the cut), the
  3 s of deferred reads started at the binding; _engine_end_late reads the order again at a
  dead stream's clean end. The relay only writes what was decided: a client that leaves first
  no longer leaves a death unbound, an order seen at the death binds nothing however late.
- The ends: [DONE], message_stop, response.completed, .incomplete and .failed (SSE_ENDS), an
  Ollama stream's last line (_NDJSON_DONE), and vLLM's death on its Anthropic route, said as a
  ValidationError of ChatCompletionStreamResponse, when the engine no longer answers.
- stop_generations skips what a stop marked already, ends a running vLLM relay's upstream at
  once, and a generation that starts while a stop is under way is that stop's (_STOP_WINDOW,
  8 s more when SGLang's abort_all did not go, the cockpit then sending its own); the stop
  route's finishing counts the streams whose end was read (_FINISHING).

Tests in tests/test_proxy_pair.py (the frozen client helper rewritten: one freeze, the effect
waited for, a binding's deferred reads counted, the end delayed at will), each failing on
93746bf's proxy, fifteen mutants caught; CLIENT TOO SLOW in dashboard/tests/test_lifecycle.py;
the floor stop tests start each with no stop under way. docs/pair.md says the bindings as
they are.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 23:25:09 +01:00
Hasan BasbunarandClaude Opus 5.5 a95de39ead tests: the fifteenth review: client_gone's withdrawal pinned, and the frozen client helper says what it relays (decision 1090)
The fifteenth code review of v1.43.0 (4caeec4..e2c1783) found the diff sound, and gaps
in its tests:

- The withdrawal of client_gone (decision 1088) had no test that fails on 4caeec4: one
  now, a death and a cut read while the lane's stop job ran, the client gone once the
  job was over, which 4caeec4 bound 10 minutes and which binds nothing here.
- The end tests checked the stop and the outcome, not that the end reached the client:
  they do now, and fail on a pump that drops the end it took out of reach.
- The helper's relay waited out MAX_SILENCE_S, an hour, when the end never came: it
  gives up past 20 s now, and a test whose end is lost fails instead of hanging (shown
  with an end put once).
- The helper asserts the queue full behind its frozen client, keeps the errors of the
  stop it runs instead of reading them as a client gone, and freezes no longer than a
  test asks: the file runs about 2 s faster.

No line of the proxy changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 11:04:32 +01:00
Hasan BasbunarandClaude Opus 5.5 522a053506 relay: the fourteenth review: client_gone withdrawn, the pump's reading of the end kept and tested for message_stop (decision 1088)
The fourteenth code review of v1.43.0 (5677add..4caeec4) found, among others:

- client_gone() decided a death or a cut the pump had read with a systemd read taken
  when the client was found gone, long after: an end caused by an ordered stop whose
  job was over by then was bound 10 minutes (reproduced here: bound on 4caeec4,
  nothing on 5677add). Withdrawn: that path binds nothing, as before.
- The pump reads an engine's end as it comes only while its queue has room: behind a
  client more than 1024 events late it reads nothing more until the client takes some.
  The relay that decides an engine's end as it reads it is v1.44.0's (decision 1088);
  the comment says so.
- No test reached the pump's message_stop branch: one does now, on /v1/messages.
- The frozen client tests' helper ran its stop as read1 returned the event, before the
  pump had parsed it, and skipped its freeze when the pump read first: it freezes once
  now, and waits for the stream to leave the stops' reach, or 2 s. 8 runs of 8 pass with
  a thread switch interval of 1 microsecond. The ended stream's test freezes 2.5 s, past
  one of the end's 2 s waits to be put.

The new test fails on 5677add's proxy and on a mutant without message_stop; the end
and death tests fail on 5677add's and on their mutants (tests/test_proxy_pair.py).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 10:11:57 +01:00
Hasan BasbunarandClaude Opus 5.5 790d7714be relay: the thirteenth review: an engine's death or end is out of every stop's reach as the pump reads it, and a client gone before the relay reached it binds it all the same
The thirteenth code review of v1.43.0 (5df072b..5677add) found the twelfth review's
windows still open behind a client that reads nothing, each reproduced here:

- vLLM's death read by the pump waited to be put in a queue full behind such a client,
  and was out of a stop's reach, and bound, only once the relay took it: a stop counted
  the dead stream, cut its client as stopped and left the death unbound (decision
  1019), and on a hop said it ended by order. The pump takes the stream out of reach as
  it reads the death now.
- [DONE] or message_stop, read and waiting the same way, left an answer whole at its
  engine a stop target: a stop cut it, its client generated all of it again. Out of
  reach as it is read now.
- A client gone before the relay reached a death or a cut the pump had read left a real
  death unbound, its retry free to reach the other box. client_gone decides it then, in
  both places a write finds the client gone.
- The cut is put through the pump's own put, and the frozen client tests take a freeze,
  events before the end and a client that leaves, with one stop of their own.

Three tests failing on 5677add, and a mutant for each piece of the fix caught by its
tests (tests/test_proxy_pair.py).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 06:20:06 +01:00
Hasan BasbunarandClaude Opus 5.5 44f2d077a1 role 10 and the relay: the twelfth review: a try undoes only its own binding, and a stream is out of every stop's reach once its engine's end is known
The twelfth code review of v1.43.0 (cb481a8..5df072b) found, each reproduced again here:

- A retry whose death read had seen its lane's stop bound nothing, yet at its ordered
  end undid the binding an earlier real death of the same body had made (decision
  1019), the next retry free to reach the other box. _unbind_killer undoes only a
  binding this try made now.
- A request held and sent again kept one binding state for all its tries: its second
  try's ordered end, or the 3 s reads once its client left, undid the binding its
  first try had made at a real death. _forward starts each try with its own.
- A stream whose engine died stayed a stop target while systemd was read at its death
  and at its clean end, and an engine's cut or end while the relay wrote the events
  before it to a slow client: a stop counted it, started the floor's episode for
  nothing and cut it as stopped, an engine's cut left unbound, and a hop's death
  relayed was then said to be an order, which undid its binding at the entry.
  _generates_no_more takes it out of every stop's reach at its death, its cut and its
  end, the stop that marked it first kept as an order.
- The pump put the engine's cut once, with 5 s to wait: behind a client that read
  nothing while 1,024 events waited, it was dropped, and the end that followed closed
  the client's stream as whole on a cut answer. It waits for room now, as the end does.

Seven tests, each failing on 5df072b, and a mutant for each piece of the fix caught by
its test (tests/test_proxy_pair.py).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 05:48:05 +01:00
Hasan BasbunarandClaude Opus 5.5 9a2b9feaba role 10: a request bound at a death here whose client leaves early reads its lane's stop again
v1.43.0's ninth code review: a request of this box's own client, bound at its engine's death by a read
of systemd that saw no stop job yet, is unbound when the stop shows at the stream's clean end or at its
cut. Its client gone at the death (the SDKs raise on that error event), the relay returned on the failed
write with no such read, and the request stayed bound 10 minutes after an order: its retries refused
while this box served another lane. systemd is read again three times over 3 s, off the request's
thread, and the binding is undone (the one before it given back) at the first order seen. The test
fails on the commit before it, and a mutant without the reads fails it too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 04:07:03 +01:00
Hasan BasbunarandClaude Opus 5.5 0b45ffcc5f role 10: an order undoes only the binding it ends, and a death the other box relays is bound as it comes
The minor findings of v1.43.0's eighth code review, each with a test that fails on the commit before it
and a mutant:
- killer_forget erased any binding of the fingerprint to that box: an order that ended a retry erased
  the binding an earlier real death of the same body had made (decision 1019). killer_note returns the
  binding it replaced, the request keeps the one before its first binding (_bind_killer), and undoing
  gives it back while it lasts (_unbind_killer).
- A death the other box relayed was bound once the watch saw the client gone, which it looks for once
  a second: a retry sent within that second went unbound. It is bound as it is relayed now, and an
  order said after it undoes it, the client gone or not. The watch binds nothing (its read, note and
  read again of the seventh review's fixes go) and keeps the connection open PAIR_ORDER_GRACE_S for
  that order only.
- gone() read on for an order from the bytes relayed, not the NDJSON line held back: an order line
  split there went unread. It reads recent + part.
- The line end the other box puts before its order line, after a line of the answer it relayed unended
  (over 64 KiB), went to the client, ending half a line as if whole: it stays at the entry.
The race test of the watch's note goes with the note; the bindings' other tests hold.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 04:07:03 +01:00
Hasan BasbunarandClaude Opus 5.5 08b9293471 role 10: the eleventh review: a stream its engine cut is out of every stop's reach, and the cut's ordered outcomes tested
What the eleventh code review of v1.43.0 found, each with a test that fails on the commit before it or a
mutant:
- _engine_cut read systemd while the stream its engine had cut was still a stop target: a floor stop
  that landed during that read counted it as stopped, started the floor's 60 s episode while nothing
  generated, and left it unbound (its _stop_why set), its retry free to reach the other box's engine
  (decision 1019; on the Ollama routes, a regression of the tenth review's fix). The cut takes it out of
  the stop's reach first, under the stop's lock; a stop that marked it first is an order, said to a hop's
  box as _cut_stopped says it.
- The two ordered outcomes of a cut with no death before it, the hop's box told "ended by order" and
  this box's own request left unbound, had no test: two mutants that break them passed the whole class.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 03:55:28 +01:00
Hasan BasbunarandClaude Opus 5.5 e999b2b536 tests: each in-process pair test starts with no binding, and a missing stop reads as missing
The eleventh code review of v1.43.0 found two tests that leave a binding behind them (a request bound at
a vLLM death, a hop's engine death in an open stream) and one that counts every binding: run after either,
in an order other than the alphabet's, it failed ("an ordered stop bound the request"). setUp empties the
in-process module's bindings. A mutant without it fails that test run after the first. And the
refused-connection test asserts its stop happened before what it counted, where a stop that never ran
read as a stop that counted the request.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 03:55:28 +01:00
Hasan BasbunarandClaude Opus 5.5 a5818cce65 role 10: the tenth review: one decision at an engine's cut, made before its client sees it
What the tenth code review of v1.43.0 found, each with a test that fails on the commit before it:
- The ninth review's fix (bound before the cut its client sees, on one read of systemd) reached the
  SSE path alone: an Ollama stream, or a non-streamed answer cut mid-body, was still cut to its client
  before its request was bound, and its retry went to the other box (reproduced by the reviewer;
  decision 1019). _engine_cut makes the decision once, for both paths, before any cut: a hop's box told
  an order, this box's own client's request bound, or unbound when the stop shows only now, a death
  read already deciding. It reads systemd only where the read says something: not for a hop whose box
  was told already, nor with bindings off.
- A connection error (the engine refused or dropped it) stayed a stop target until _forward let the
  request go: a floor stop in the keeper's join counted it as stopped, started its episode, and cut its
  client. It is out of reach as an answer or an error is, unless a stop closed it and marked it first.
- The premise of the late-order cut test is read on the whole stream read so far (it was read only when
  the death event fell in one read), and the test of a death whose own read saw the order asserts that
  nothing was bound at the death, its engine's stop job now visible a second.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 02:36:32 +01:00
Hasan BasbunarandClaude Opus 5.5 d339797711 tests: the pair port's keeper waits while a test reads the pair as dissolved
test_a_request_bound_to_a_box_of_a_pair_dissolved_since_goes_nowhere replaces pair_conf with a pair of no
peer for its length. The in-process proxy's pair port keeper, looking every 2 s, closed spark1's pair port
when it fell in that window and opened another (PAIR_PORT=0): every later test that connects to the port
the class knew (pport1) was refused. The full local CI failed so in its job that runs each file alone (7
ERROR, ConnectionRefusedError), and so did the file run alone here. The test holds the keeper's lock
while the pair reads as dissolved, and checks that the port has not moved past a look of the keeper: a
mutant without the lock fails it (the port closed under it).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 02:36:32 +01:00
Hasan BasbunarandClaude Opus 5.5 977baa5687 role 10: the ninth review: an engine's error is no stop target, and a cut binds before its client sees it
What the ninth code review of v1.43.0 found, each with a test that fails on the commit before it and a
mutant:
- The eighth review's fix took only the engine's answer out of a stop's reach: an engine's error being
  relayed was a stop target again, and a floor stop that landed then held new generations back 60 s for
  nothing and cut its client, who got no answer (reproduced by the reviewer). The cause was the flag
  outliving the try it was set for: the engine's error takes the request out of reach again, and each
  try of _forward puts it back in.
- A cut after a vLLM death read systemd again and bound the request even when the death's own read had
  seen its lane's stop: a death read already decides now, and the cut reads systemd once.
- With no death before it, a cut was shut to its client before the request was bound, on a second read
  of systemd: a quick retry could reach the other box meanwhile (decision 1019). The request is bound
  before the cut, on the one read.
- The two tests of a death here whose order shows late assert their premise (the request bound at the
  death): they passed whenever the death came after the order.
A mutant that binds just after the cut, on the read made before it, is not caught: the window it leaves is
microseconds, where the one fixed here was a second read of systemd, seconds under memory pressure.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 01:27:39 +01:00
Hasan BasbunarandClaude Opus 5.5 ab31b1491d role 10: the eighth review: a retry after the engine's 503 is a stop target, a cut after a death unbinds
What the eighth code review of v1.43.0 found in the proxy, each with a test that fails on the commit
before it and a mutant:
- An engine's error answer (herr) was taken for an answer relayed whole: on a 502, 503 or 504 the
  request is held and sent again (role 6), and its retried generation was then out of every stop's
  reach. On SGLang a stopped Anthropic stream ended in end_turn as if whole, v6.47's fault back
  (reproduced by the reviewer on the commit before, and by the new test). Only the engine's answer
  is taken now.
- A request of this box's own client, bound at a vLLM death by a read of systemd that saw no stop job
  yet, was unbound at the stream's clean end only: ended by a cut after the stop showed, it stayed
  bound 10 minutes. The cut reads the order once and undoes the binding as the clean end does.
- A box alone read systemd at the end of every dead stream, with nothing to tell or undo: the read is
  made for a hop or a request this box routed only.
- A recovery's mark counted while the unit's last state change was within RECOVERY_START_S of it,
  and systemd stamps every step of a stop (unit_notify in systemd 255, read): a stop slower than
  2 minutes outlived its mark. ActiveExitTimestamp, set once as the restart leaves active, counts too.
- The stop route's answer, _forward_peer's "moved checkpoint" and recovery_runs' window are said in
  their docstrings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 00:40:16 +01:00
Hasan BasbunarandClaude Opus 5.5 da5463e1d9 tests: a silent box's port comes from localports, never read out of a socket
Two tests of the pair stood a socket that takes the connection and never answers its TLS (a box gone
without a reset) on port 0 and read its number back with getsockname()[1], which test_localports
refuses in any test file (NoTestFile): the full local CI failed on it in two jobs. silent_port() takes
a held port from tests/localports.py and listens beside the socket that holds it, as serve() does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 00:40:16 +01:00
Hasan BasbunarandClaude Opus 5.5 a2ec18965d role 10: the seventh review: bound as its client leaves, unbound by an order said after
What the seventh code review of v1.43.0 found in the proxy, each with a test that fails on the commit
before it or a mutant (decisions 1061 and 1062):
- Decision 1061: once a death was relayed, the watch left the connection to the other box open with no
  bound, and with that box silent the request was bound only after 60 s of silence, its retry running
  unbound on this box's engine meanwhile. The watch binds it within a second of its client leaving, and
  shuts the connection after PAIR_ORDER_GRACE_S (5 s); an order the other box says before that undoes the
  binding. An order read between the watch's read and its note is read again after the note (found
  re-reading this fix; a mutant without it fails its test).
- A request of this box's own client, bound at a vLLM death by a read of systemd that saw no stop job
  yet, stayed bound once the stop showed at the stream's clean end: unbound there now.
- A 409 for another checkpoint kept the checkpoint it proves stale, and the next requests went there for
  a 409 each: the row keeps the name and drops its revision ("moved checkpoint").
- A finished answer that is not a stream was taken out of a stop's reach at its relay: in the keeper's
  join a stop could still cut it. It is set as the engine gives it, under the stop's own lock, and the
  stop's answer says how many such answers are left to go out ("finishing").
- A recovery's mark counted for any restart of its run within 10 minutes, one the cockpit left behind
  included: it counts now for the restart it was written for only, the unit's state changing within
  RECOVERY_START_S (2 minutes) of it (decision 1062).
- An order split across two reads was missed by the wait for it; the words of an engine's death inside
  an Ollama tool call's arguments read as a death (a whole line's top-level error now, ndjson_death);
  the order's NDJSON line could follow a line over 64 KiB with no line end; a box never read since
  pair.json was had no first-read window in _pair_served_nowhere (peer_row_may_serve(None)).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 00:01:56 +01:00
Hasan BasbunarandClaude Opus 5.5 3c199fe3f9 role 10: the sixth review: the wait for an order holds in production, the relaying box says it late too
What the sixth code review of v1.43.0 found in the proxy, each with a test that fails on the commit
before it (decision 1058):
- Decision 1054's wait never held: the request's own watch saw the client gone and closed the connection
  to the other box within a second, and with nothing between the death and the order the wait never ran
  (bound 10 minutes in 5 runs of 5). The test of the commit before replaced that watch, which hid it; no
  test replaces it now. Once a death is relayed, the watch leaves that connection to the relay.
- The box that relays never said an order it saw only after a vLLM death: vLLM ends a dead stream
  cleanly ([DONE]), and the order is read again at that end, said before it.
- On vLLM a stop shut the upstream of a non-streamed answer being relayed: cut, taken for its engine's
  death, bound 10 minutes on a hop; and a floor stop that cut nothing held new generations back. An
  answer relayed whole is no stop target, and an answer a stop did cut is a stop.
- A refusal for another checkpoint of the model (409) read as one for another model: the other box's row
  dropped the name, and peer_may_serve said no box served it. The refusal's "served" says which.
- Decision 1059: a stop is an order again, marked or not, and lane_away says so.
- One rule for peer_may_serve and _pair_served_nowhere (peer_row_may_serve), one line reader for NDJSON
  (whole_lines), one test for the hold and the keeper (held_as_stream): copies of each had drifted. The
  keeper's choice for the Ollama routes has a test (a mutant without it fails it), and role 6 in the
  header says those routes wait in silence.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 00:01:56 +01:00
Hasan BasbunarandClaude Opus 5.5 628bfe784e role 10: the fifth review: a recovery read before its jobs, an order said late still counts (1054, 1055)
What the fifth code review of v1.43.0 found in the pair, each with a test that fails on the commit before
it (decision 1052):
- The run the cockpit's mark names was read after the jobs: once the restart's stop half was over, it was
  the next run, and the recovery read as an order. It is read before them.
- A mark the cockpit left behind (a restart that never went) made a later Load of that run a recovery: no
  mark older than 10 minutes counts.
- Decision 1055: the operator's stop of an engine the cockpit shows wedged or zombie, marked, is no order,
  and its lane, on its way back, keeps its checkpoint.
- A request whose client left at a death the other box relayed was bound at once, before an order that
  box said after the death (its read of systemd late): decision 1054 (Hasan, 2026-11-04), what that box
  still sends is read up to 5 s, never relayed, and nothing is bound if an order comes.
- An Ollama stream from the other box had the 60 s silence bound of an SSE stream, with no keepalive to
  keep it: a long prefill was cut and bound 10 minutes. NDJSON has none.
- peer_may_serve took a 409 "moved" (no models, its last list, no error) for a failed read and refused a
  request bound here 10 minutes: it follows the served-nowhere rule, a failed read included.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 00:01:56 +01:00
Hasan BasbunarandClaude Opus 5.5 19823d35eb role 10: the fourth review: every end by order said, the reads of systemd bounded (decisions 1048, 1049)
What the fourth code review of v1.43.0 found in the pair, each with a test that fails on the commit
before it (decision 1048):
- A restart the cockpit makes to recover an engine is no order, whatever checkpoint it loads: the
  proxy reads the cockpit's mark, the run it restarts (decision 1049, Hasan, 2026-11-04). An update
  that staged another checkpoint made the autoheal's restart read as the Load of that checkpoint
  (1041), and the request that wedged the engine went unbound to the other box.
- A hop whose engine closed before any byte as its lane stopped by order got a plain 503: the other
  box served it itself, paused this box 30 s and counted a failover. It gets the 503 that says the
  order (decision 1031), outcome "503 pair stopped here".
- vLLM's 500 under an ordered stop, once the keeper had opened the hop's stream, went without its
  header, and the other box bound the request 10 minutes: the stream's own event says it first.
- The other box's end-by-order line on the Ollama routes reached the entry's client, whose parser
  failed on it (ollama-python's ChatResponse needs a message): the entry relays NDJSON line by line
  and keeps that line.
- A death the other box relayed was bound at the stream's end, and a client that left first left it
  unbound (decision 1019): it is bound when the client leaves too.
- lane_away read systemd afresh for each request while this box's engine was away, two or three
  systemctl a request, for hours on a box serving images: once a second now, by one request at a
  time. A read that failed said "no text lane", and the lane's model went to the other box whatever
  its checkpoint (1018): it says nothing now, read again a second on, and the lane seen last stays.
- A main process gone or a zombie (a crash, before systemd reaps it) read the unit's ExecStart, its
  NEXT start, which an update may have changed: no checkpoint now.
- A launcher edited in Latin-1 raised out of every reader of the unit, and the request died with no
  answer: any bytes are read.
- A request bound here, its box serving another model now, was refused 10 minutes while the other
  box was off: the other box may serve it within the bounds the served-nowhere rule uses (30 s after
  pair.json is read, 15 minutes after its last good list), then this box's lane answers (986).
- A box that reads no key refused its own lane's model when the other box served the same
  checkpoint: its own path holds it.
- Cleanups: the rid override reads the scripts as every reader does, a dead write goes, killer_note
  says "" for this box, and the restart test reaches 1041's comparison. Tests that change what
  systemd says between two asks forget the first read (lane_away keeps it a second).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 00:01:56 +01:00
Hasan BasbunarandClaude Opus 5.5 cc538830b7 role 10: docs/pair.md and two comments say what decision 1031 changed
The third review: docs/pair.md still said an Abort all or the memory floor on the other box
closes the connection with no answer, the entry pausing that box 30 s; with decision 1031 it
says so, the client gets a 503 that runs nowhere else, with no pause and nothing bound, and only
a restart of its proxy or its power is a request lost. _pair_lost's message says the same. The
cockpit's outcome table and the test constants had their comments one entry off.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 00:01:56 +01:00
Hasan BasbunarandClaude Opus 5.5 a284fcdf49 role 10: the signals of the third review: an end by order is known whole, said in the client's dialect, read first
What the code review of the fixes found in the signals between the boxes, each with a test that
fails before it:
- The marker of an end by order matched a field anywhere, which an Ollama route's tool call
  could set with its arguments: the box's whole event, or its line on an NDJSON stream, now.
  The Ollama routes' NDJSON streams said nothing before an ordered cut: a line of their own.
- The 503 of an end by order was written by hand, with no Retry-After and the OpenAI shape on
  /v1/messages, and the entry relayed it with the other box's "this box": the hop answers in its
  client's dialect, and the entry writes its own 503 naming the box that ended it.
- The entry read the body before the header, and an ordered 503 whose body was cut ran here,
  undoing an Abort all there: the header first.
- vLLM's death during an ordered stop of its lane was bound: the hop says so (the header on its
  500, its event before the death in a stream), and the entry decides a stream's binding at its
  end, once an order said after the death has come.
- A request bound to this box, which serves another model now, was refused only when the other
  box's current list named it: a read that failed, or a pair.json read again, counts now.
- A box that reads no key turned away, before the other-checkpoint rule, a request it holds for
  its own engine: the key is checked once a request would go to the other box.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 00:01:56 +01:00
Hasan BasbunarandClaude Opus 5.5 e6e30b273d role 10: the readers of the third review: a restart to another checkpoint is an order (decision 1041)
What the code review of the fixes found in the readers, each with a test that fails before it:
- The cockpit's Load of another checkpoint of the same lane is a restart, which bound the shared
  requests it ended for 10 minutes. Decision 1041 (Hasan, 2026-11-04): a restart whose unit
  starts another checkpoint than the one this box served last is an order too; on the same one
  (a recovery, an update) it still binds (decision 1030). Only the lanes' units are read.
- While its lane was stopped by order (a Load of another lane), this box kept the lane seen last
  as its own, and a request of its model was held through the next lane's whole boot, then
  refused: no lane here now; a restart reads what its unit brings back; the read is fresh.
- systemd 255 runs systemd-executor as the main process before the exec, a command naming no
  model that was kept 10 s: a command naming no model is unsure, read again a second on, and
  says what the unit starts.
- Another lane saying no checkpoint (a custom model) was never noted: noted, with none.
- The bindings that ended left only on a new note, and a box alone hashed every body after one:
  they leave on any lookup, and a box alone binds nothing.
- This box notes itself as "", whatever its pair.json says: its pair name made its own binding
  a box that left once pair.json was gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 00:01:56 +01:00
Hasan BasbunarandClaude Opus 5.5 93a4a2da5d role 10: the routing of the delta's review: 986 kept, a restart held, nothing bound runs here
What the delta's code review found in the routing, each with a test that fails before it:
- A request bound to this box for a lane name no box serves, which this box's lane answers
  (decision 986), was refused "this box serves another model now" for 10 minutes though nothing
  switched: that refusal is for a name the other box serves, and this one is served here.
- With this box's engine away and the other box on another checkpoint, the request got a 503 at
  once: it goes on to this box's own path now, which holds it while the engine comes back (role
  6), as for a model no other box serves; a 27B restart of minutes left its clients only 503s.
- A request bound to the other box on a box that reads no key ran on this box's engine: refused
  with "own key unreadable", as an unbound one is.
- Once a pair was dissolved, a request bound to the box that left ran here: it goes nowhere for
  the rest of its 10 minutes.
- A client that left while its body was still on its way to a box that took the connection got
  its conversation moved to that box, which never read it: "left" forgets it there, with no
  pause.
- The refusals of a bound request, and the one of a box that reads no key, come from one place
  each.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 00:01:56 +01:00
Hasan BasbunarandClaude Opus 5.5 c948b0c818 role 10: the readers of the delta's review: a start, a stop, an empty command, a death relayed
What the delta's code review found in the readers, each with a test that fails before it:
- An engine's command read empty (its process between fork and exec: 158 reads in 300 right
  after a start, or a zombie) was kept 10 s, the box saying no checkpoint and no slots: it is
  read again at the next request. The tests that spawned a process and read its command at once
  failed half the time for the same reason: they wait until /proc shows it (10 runs in 10 now).
- A unit starting (ExecStartPre, the wait before a restart) was skipped, so a proxy restarted
  with its engine sent its 27B to the other box whatever its checkpoint: what its unit starts is
  read in its ExecStart, as before v1.43.0. A unit stopping after a crash, its restart not due
  yet, keeps the lane seen last.
- The lane seen last was written with no checkpoint whenever the unit had no process to read,
  and every request of its model then got "another checkpoint": it keeps the one it had.
- vLLM's death relayed in a stream the keeper opened carries this proxy's prefix, which the
  pattern missed: matched now.
- This box's own stream that vLLM ended on its death was journaled "ok": "502 upstream" now,
  and a branch that could not run left.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 00:01:56 +01:00
Hasan BasbunarandClaude Opus 5.5 9f68e5d0c4 role 10: a box tells the other when it ends that box's request by order (decision 1031)
The delta's code review found that the other box's Load, Abort all or memory floor, which bind
nothing on the box where they happen, looked like an engine's death from the entry: a cut with
no answer was a request lost (decision 1017), a cut stream one an engine died during, and both
were bound to that box for 10 minutes; after a Load of another model there, their retries got
503s that long, where the entry serves the same model. Decision 1031 (Hasan, 2026-11-04): the
box that ends a request the other box sent on says so before the cut.

- No byte of an answer out: a 503 with X-Alzeo-Pair-Ended: order. The entry answers its client
  503 and runs nothing (an Abort all there is not undone here, decision 1017), binds nothing,
  pauses nothing and counts nothing on the tile ("503 pair stopped there").
- A stream open: the stream's own keepalive event with "x_alzeo_ended": "order" (an SSE comment
  would kill the Claude-family parsers, role 1), then the cut. The entry binds nothing and cuts
  its client's stream as before.
- Both for this box's Abort all and memory floor, and for its engine cut while its lane's unit
  is stopped by order. An answer begun that is not a stream cannot say it (the engine sends a
  non-streamed answer whole, so it is rare): the entry still binds that one.

Each test fails on the commit before: a cut with no answer, no marker in the open stream, the
retry bound to the other box (503), the request run here after the other box's Abort all.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 00:01:56 +01:00
Hasan BasbunarandClaude Opus 5.5 4c1c22522e role 10: only a stop is an order (decision 1030); the binding reads systemd only when it has something to note
The delta's code review found that any systemd job on the lane's unit counted as an order, the
restart the cockpit runs on an engine a request may have wedged (autoheal, zombie) included: that
request was bound to nothing, a hop answered 503 instead of 502, and its retry went to the other
box, where it could wedge the other engine too. Decision 1030 (Hasan, 2026-11-04): only a job of
type stop is an order (a Load of another lane, the Stop button); a restart, whoever asked for it,
binds the request as an engine's death, and its retry waits here for the engine.

- unit_jobs reads systemd's jobs once for engine_coming and unit_stopping_by_order.
- _killed_here checks the fingerprint first: a hop or a box alone forked systemctl for nothing,
  and a hop's closed request twice.
- running_said counts as busy_here does, from one function; two comments that the eager
  fingerprint and the per-request lane read made false say what is true.

Fails on a mutant with the rule before (any job an order): the hop got 503, not 502, and the
parser said a restart was an order.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 00:01:56 +01:00
Hasan BasbunarandClaude Opus 5.5 1bf44ae0b0 role 10: a binding a box noted while it was alone is its own once paired
A box alone notes "" for itself when its engine closes on a request (decision 1019). Paired
within the 10 minutes, it took that for a box that left the pair and served the request
nowhere, where it is this box's: served here now (fails on the commit before: 503 "box ,
... is no longer in this pair"). lane_away's docstring wrapped as the file is.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 00:01:56 +01:00
Hasan BasbunarandClaude Opus 5.5 d4519ef076 tests: the two tests the checkpoint batch outdated, the four twins it left out, and the check that sees them
The full pair suite failed three times after the batch that reads a box's checkpoint in its
engine's command: the reader's own test still showed systemd an ExecStart, which is no longer
read, and the 409 of a bound request now says "another model or checkpoint". Both say what
the code does now. Four tests of that batch were not declared in the in-process twin, which
ran them only by inheritance: declared, and EveryCaseHasItsInProcessTwin checks it for both
pair classes as tests/test_proxy_hold.py does (it fails with one twin taken out).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 00:01:56 +01:00
Hasan BasbunarandClaude Opus 5.5 406b51a6b9 role 10: a box that serves no text lane now keeps no model of its own from the other box
Re-reading the engine-away rule of the batch before (decision 1018): a box switched to its
image or video lane, or with its lane stopped, kept the 27B it served last as its own, and
refused its clients the other box's 27B of another checkpoint, though it serves no text model
at all now. The lane seen last is kept only while a unit of PROXY_HOLD_UNITS is up or on its
way back (a crash), read from systemd as engine_coming reads it (text_lane_coming, which
engine_coming now calls behind its own settings, unchanged: test_proxy_hold passes). Fails on
the commit before: 503.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 00:01:56 +01:00
Hasan BasbunarandClaude Opus 5.5 b10e2f8bd6 role 10: docs/pair.md and the proxy's own docs say what the final review changed; a test keeps its refused port
- docs/pair.md: the checkpoint a box says is its engine's, the one a request sent on carries
  and the 409 of another one; the entry serves a request the other box refused at TLS; a
  request an engine died with is bound as one it closed on, nowhere once its box left the pair,
  and a stop by order binds nothing; the engine-away rule reads the command of the engine
  starting; a binding is kept by the entry the request went through.
- The module's docstring says decisions 1017 to 1019 and the checkpoint header, and
  _forward_peer's says "lost" and "gone" (both missing, found in review).
- The test of a lane whose port refuses kept no hold on that port once its engine stopped:
  another test's server could take it (localports.held now, as every other test).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 00:01:56 +01:00
Hasan BasbunarandClaude Opus 5.5 eba29bbe83 role 10: what each failure says, third batch of the final code review, each with a test that fails before it
- vLLM 0.29.0 (the pinned image) answers the requests in flight when its EngineCore died with an
  HTTP 500, or an error event in a stream begun, then stops: relayed, bound to nothing, and the
  SDKs' retry went to the other box, which the same request could take down (decision 1019).
  Such a request is bound to its box now, the other box's too, the answer recognised as JSON
  only (its body rendered from vLLM's own code on the reference box; fails on the commit before:
  the retry went to the other engine, or was served here).
- An engine that closed the connection on the size guard's count closed it on this request:
  bound, and a hop answers 502 (fails on the commit before: 503, which the other box serves).
- Under TLS 1.3 a box that no longer pins this box's certificate refuses it at the first read
  of a request sent on (TLSV1_ALERT_UNKNOWN_CA, 40 times in 40 on the reference box under
  9 KB): it was said lost, bound there and that box paused, where its proxy never read it. This
  box serves it now and says why (fails on the commit before: 503).
- A client that left while its body was on its way to a box that took the connection got that
  healthy box paused 30 s, cut by this request's own watch (fails on the commit before).
- A request bound to a box that left the pair was served here, the fallback 1019 rules out: a
  503 now (fails on the commit before: 200 from this box).
- A stream the other box ended on its engine's death was journaled "ok pair": "502 pair
  upstream" now, as the same answer not streamed (fails on the commit before).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 00:01:56 +01:00
Hasan BasbunarandClaude Opus 5.5 15b753bd4d role 10: the checkpoint a box serves is its running engine's, and every shared request carries it (decision 1018)
What the final code review found, second batch, each with a test that fails before it:
- A box said the checkpoint its unit names for the NEXT start: switch-model.sh rewrites the unit
  and reloads systemd without a restart, and the box said the stock checkpoint while its engine
  served the uncensored one until its next start. It reads the arguments its engine's main
  process was started with now (/proc/<MainPID>/cmdline: every text lane execs docker run, a
  start under way included), as the cockpit asks the engine (fails on the commit before: the
  unit's revision; on the reference box it reads b9ce18a6887e, 8 slots, qwen3.8-flash-next-fp4).
- While its engine did not answer, a proxy that had never seen it answer (an update restarts
  both, and the 27B loads for minutes) sent the 27B's clients to the other box whatever its
  checkpoint: the command of the engine starting names its model and checkpoint, else the lane
  this proxy saw last (fails on a mutant without the command: the other checkpoint's answer).
  Those requests count on the tile as the docs say.
- A box that switched checkpoints under the same name got shared requests until its list was
  read again, minutes later for an idle entry. The entry's checkpoint comes with each request
  for a model it serves too (X-Alzeo-Pair-Checkpoint), the other box answers 409 when it serves
  another one, and the entry serves it and reads that list again; a client's own header never
  crosses (fails on the commit before: 200 for another checkpoint, the client's header carried).
- A box reads its own checkpoint once another box is a candidate, not for each request of a
  model no other box serves.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 00:01:56 +01:00
Hasan BasbunarandClaude Opus 5.5 133e2e1c3b role 10: what the final code review found, first batch, each with a test that fails before it
- An ordered stop or restart of the lane's unit (a Load, an update, switch-model.sh) closed every
  request in flight and bound each one to its box for 10 minutes (decision 1019), and a hop got
  the 502 no box takes back: while systemd runs a job on a unit of PROXY_HOLD_UNITS, or after
  this proxy stopped the generation itself, nothing is bound and a hop gets the 503 the other
  box takes back (fails on two mutants: the retry stayed on this box, a 502).
- A request bound to this box, which then switched lanes, was answered by the new lane for the
  model the other box serves: a 503 now (fails on the commit before: 200 from this box).
- A request bound to the other box whose list read failed (it restarted) got "another
  checkpoint" at each retry for 10 minutes: that box is tried and its list read again (fails on
  the commit before: 503).
- The other box's engine closing on a hop is recognised by its error event only, never by model
  output that quotes the sentence (fails on the commit before).
- The bindings that ended leave the memory as others come; PAIR_CONNECT_S refuses inf and nan,
  which raised an OverflowError nothing caught (both fail on the commit before).
- Role 8 reads a whole answer relayed from the other box 64 KiB at a time, as the local relay
  does, where its lowercase copy doubled an answer of up to 256 MiB.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 00:01:56 +01:00
Hasan BasbunarandClaude Opus 5.5 9cad05f3eb role 10: what the final review's verifier found, each with a test that fails before it
- The full CI was red: three outcomes of the proxy were missing from test_lifecycle's table
  (the request lost by the other box, bound elsewhere, another checkpoint).
- A request bound to the other box (decision 1019) whose box serves another model now got no
  answer at all, the 409 written nowhere: a 503 now (fails on the commit before: TimeoutError).
- The binding of 1019 was noted on the body this proxy had rewritten (a reasoning effort it
  maps, a tool schema it fixes), and looked up with the body as sent: the fingerprint is taken
  once at routing now (fails on the commit before: the retry went to the other box).
- An engine that died during its answer, this box's or the other's, bound nothing: it does now
  (fails on the commit before: the retry streamed from the other engine).
- This box's engine away, a model its lane served went to the other box whatever its
  checkpoint: from the same checkpoint only, a 503 otherwise (decision 1018; fails on a mutant
  without the check: the uncensored answer).
- The two counts the other box reads are taken under one lock (a hop between them said more of
  the other box's generations than of all), the marker of an engine closing on a hop is looked
  for across two reads, and a box that reads no key binds nothing to the other box either.
- docs/pair.md: 1019 binds before and during an answer, the engine-away rule, and the journal
  lines of a box of v1.42 in a mixed pair.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 00:01:56 +01:00
Hasan BasbunarandClaude Opus 5.5 3ccfda86cf role 10: a request bound to the other box goes nowhere once that box serves another checkpoint
Decisions 1018 and 1019 together: a request an engine of the other box closed on is sent
there or nowhere, and it was sent there even once that box served another checkpoint of a
model both serve, the uncensored 27B for a client of the stock one. It gets a 503 now, until
it is forgotten, served neither there nor here. Found while preparing the final review. Fails
on the commit before ("from spark2").

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 00:01:55 +01:00
Hasan BasbunarandClaude Opus 5.5 6a192e909b role 10: what the review's minor notes found: the token count's reason, its test, the 64 GB box and role 9
- The reason given for answering a token count here was false: the prefix fingerprints start
  with the route, so a count never placed a conversation. It stays here because it costs the
  other box a hop and a load for nothing (code comment and CHANGELOG). Its test's last check,
  a turn served here after the count, could not fail: it checks now that this box's engine
  answered the count, the boxes far apart.
- docs/pair.md and the CHANGELOG say the 27B's 8 at once is a 128 GB box's: on a 64 GB box its
  unit says 4, so 3 ahead moves a conversation there.
- docs/pair.md says role 9 is split between the boxes: a long prompt sent again after its
  client gave up is told apart by the box that served it.
- Two paragraphs of the v1.43.0 section wrapped again at its width.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 00:01:55 +01:00