test_switch_fetch_only and test_switch_model_cache run switch-model.sh
with stubs for docker and systemctl, but with the machine's own df, so
the room check before the download read the disk the suite runs on. A
29 GB disk got "29 GB free, about 45 GB needed" and six tests failed
on the box's own code; the room check is not what they test, and has
its own suite with a df stub (test_switch_room). They get the same
stub now, a disk with 500 GB free.
Found in a cloud review of v1.36.1 (pull request #52), on a disk with
29 GB free; the reference box has 162 GB, where these passed. The stub
is the one tests/test_switch_room.py uses, in the shape dl_free_gb
reads.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The text switch (the 27B's targets and the flash's) asked the Hub every time, so a cockpit Load
of a text lane whose checkpoint the cache held whole needed the network, and died without it or
under the Hub's throttling, where the image, video and Kolibri switches answered from the cache.
It passes --offline-first to ckpt-fetch.py now: a checkpoint every shard of which is there needs
no request, and one missing anything is fetched as before (the review's proposal, Hasan's go,
2026-10-14). The test fails on the commit before.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
install.sh and switch-model.sh fetch the text lanes in their serving image, install-kolibri.sh
and switch-model.sh fetch Kolibri in its image, install-image.sh, install-video.sh and
switch-model.sh fetch the image and video lanes in their venv: all through ckpt-fetch.py now,
each with the options its own copy had (the image and video switches and Kolibri's two callers
ask the cache first; the image switch and Kolibri's check the room; the image and video
installers and the image switch pin refs/main, the text lanes and the video switch fill it).
What changes for a user: a cockpit Load of the image or video lane resumes after a network error
instead of failing, and the video one no longer takes a partition it does not serve for missing;
the text, image and video installers show the byte count; a Kolibri fetch that stopped is
charged what it lacks in bytes; a text lane's refs/main that holds no commit is repaired.
kolibri-fetch.py went into it.
The docker callers check that the script is there before mounting it (docker -v of a missing
file makes a root-owned directory in its place), as they did for hf-progress.py. The CI step
that holds install.sh to downloading the model and the served drafter reads its two dl_fetch
calls, and the test harnesses that copy a script into a fake repository copy ckpt-fetch.py
beside it. The tests that ran each copy now run the script with the arguments each caller passes
(the image pin, the Xet retry), the image switch's fixture holds weights in its cached snapshots
as a real one does, and tests/test_one_fetch.py holds who runs it with which options, the Xet
ban beside each call, and that no script keeps a fetch of its own.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Until v1.29 every switch to a side lane (image, video, Kolibri) wrote a link to the lane it took
the boot from, install.sh followed those links with six order-dependent lines, and three
uninstalls followed them their own ways: a round trip between side lanes made two links name
each other (close_lane_loop closed that in v1.29), a side lane removed left another's link
naming a unit that was gone (the image and video uninstalls then left no lane at boot), and
every new lane meant editing all of it (found in review, 2026-10-14). One record now,
text-lane, the SGLang text unit the box had at boot last: switch-model.sh notes it when it
leaves a text lane or switches to a text target, install.sh when it makes its lane the boot
lane, and install.sh's resolution and every uninstall read it from lanes.sh, which they all
source. With no chain there is no loop to close. A box switched before keeps its answer: the
links are read once, while the side lane is still the one at boot, and become the record. An
uninstall whose noted lane is gone gives the boot to whichever text lane is installed, the 27B
first, where a link that led nowhere left the box with nothing.
Tests: every sequence of switches up to six lanes long (1,364) through switch-model.sh's own
notes, install.sh's own resolution and the uninstalls' give-back resolves the last text lane
served; the library itself; the migration from the links (the reference box's three, one of
them stale); the harnesses that copy the scripts carry the library. test_lane_before_loops.py
tested the links and goes with them.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- cockpit: a non-digit Content-Length is a 400 before any read (-1 read an
unlimited body before login)
- proxy v6.24: the identity wall covers every route and method but /health;
a path still escaped after one decode is refused; relayed /server_info loses
the engine key fields; an unreadable keys file says so
- docs/clients.md: the keys file is installed owned by the user, the engine
key goes in an EnvironmentFile
- image unit: After= on the text units, so a switch stops before it starts
- lifecycle: a down unit with a live container is an orphan, busy for the gate
- cockpit: its own /health probe no longer counts as activity (the canary
never ran)
- install.sh: sudo asked at step 1 and renewed at step 8 with a prompt;
CONTEXT_MODE=1m refused on a flash box after the convergence; the flash
engine bind is read from the launcher
- switch-model.sh: downloads into the cache the installed unit mounts
- uninstall.sh, install-image.sh: remove only venv/ and sglang/ of the lane
- opencode limits hold the engine window (205000/32000 flash,
173000/64000 native), fit() and the cockpit's verdict and autofit use the
same rule, the 27B entry of a flash install comes from the table;
collect_opencode has its @guard back
- Setup's Fit button has a click handler
- bench-agent: the TTFT slope is in the unit it prints
- CI: negated grep, generated script lists, exact sudoers argv, flash flags
read from install.sh
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>