Commit Graph
13 Commits
Author SHA1 Message Date
Hasan BasbunarandClaude Opus 5.5 5d43992522 flash-local: a start without its checkpoint or a table copy stays failed
A start missing what the unit mounts made runc create it, owned by root
(proved on the reference box with the lane's image, a fake cache and the
unit's mount lines, 2026-10-20): with the checkpoint gone, its folders inside
the Hugging Face cache, which install.sh then read as a lane begun, and with
a copy of the table gone, a folder in its place. flash-local-files.sh, the
head of the unit's ExecStart (after the memory guard every lane runs)
and so its main process, checks the checkpoint's index at the pinned
revision and each copy the mounts name before the engine runs, each a file and not empty, gives a cache on a disk
mounted late at boot 30 tries of 3 s, and exits 78, which stops the
restarts: RestartPreventExitStatus holds for the main process only, never
for an ExecStartPre. It is a script of its own, as flash-ats-check.sh is the
flash lane's, left out of what the engine reads, so a new wording of it asks
no serving lane to restart; the lane's installer puts it in with the unit
and --uninstall removes it. With the check itself gone, the unit stops with
78 and its line too, where bash's 127 was started again every 15 s.

Its line, "preflight: <unit> lacks its files", names the missing file, and a
disk not mounted among the causes, to be mounted before the Load, which
would fetch the checkpoint onto the system's disk with it away. The cockpit shows it on the lane's card,
broken inside the card on a phone, and in its banner, apart from the flash
lane's ATS refusal, with what brings the file back: the lane's Load, whose
switch now runs for a lane that cannot start as installed even as the boot
lane, or ./switch-model.sh flash-local. The cockpit holds a Start back on an
empty copy, or on a unit whose check is gone, so that its Load runs the
switch, whose stage puts it back. ple-table.py mounts a copy only when it is
a file of its original's size: an empty or cut one was written into the
unit. The copy removes an empty folder left in a
copy's place, on which its rename failed after copying the file whole, at
every Load (proved with a folder made by root through Docker, 2026-10-20),
and a copies folder made by root, which no copy can write into, is said
with the command that gives it back, where the copy ended in a traceback.
The unit's comment no longer says the allocator's setting met no refusal,
and both docs say the check, its line and its 78. The check reads every file the checkpoint's index names, a fetch cut short
leaving the index first, and each copy at its original's size, as
ple-table.py and the cockpit read a copy too. Each copy is synced to the
disk before it takes its name, so a power cut no longer leaves a renamed
copy empty or cut short. A copies folder that cannot be made or written into
is said with the remedy that fits its cause, and the Load's step for a boot
lane that lacks a file says it fetches and copies. The tests fail on the old
unit, page, cockpit and copy (found in four reviews, 2026-10-20).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 22:14:49 +02:00
Hasan BasbunarandClaude Opus 5.5 4cadc7fdb0 engine-inputs: the ATS question is no input to the flash engine
The flash launcher is about to ask flash-ats-check.sh before it runs the
image (issue #54), so engine-inputs.py would count it among what the engine
reads, and a new wording of that question alone would restart a healthy
flash lane at the next update (12 to 15 min). The engine never reads it: it
is listed with engine-preflight.sh, the other guard that runs before an
engine starts. The new test fails on the old engine-inputs.py.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 19:20:18 +02:00
Hasan BasbunarandClaude Opus 5.5 33103c094d cockpit: an update owed is said only of an engine that serves as installed
Found by the reviews of this release, each case reproduced on the page:
- a switch written and not restarted rewrote the same files an update
  does, so the cockpit said an update was owed, and the restart it
  offered switched the lane back; nothing is said while a switch waits
  for its restart (the "next start loads" banner covers it, in degraded
  too, and its Load applies both);
- the update tier's answer was up to 30 s old after a restart, and the
  card offered the restart again over the boot it had started: nothing
  is said while the engine boots, and a finished restart or switch reads
  what is owed again at once;
- the restart that applies an update went through the Load journey,
  which points the boot at the lane: it is the restart alone now (the
  runtime's preparation first if it is missing), and the card names it
  only when its Load is that restart;
- a switch to what a 27B unit or the flash launch script already loads
  rewrote it with a new date, which read as an update owed: it rewrites
  nothing now, as Kolibri, Nemotron and the image lane already did;
- engine-inputs.py, oc-fit-limits.py and oc-merge-limits.py, which the
  cockpit loads once, were not all among the files whose change says the
  cockpit is stale and restarts it.
The tests' boxes no longer stay in /tmp after a run.

The new tests fail on the previous code.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 23:43:08 +02:00
Hasan BasbunarandClaude Opus 5.5 f913c0ee1f cockpit: the engine check is bounded, and counts the vLLM lanes' middleware
The update collector called engine-inputs.py in the cockpit's own process,
whose docker and systemctl calls had no time limit: a docker that stopped
answering held the whole 30 s tier, every panel of it frozen when the
cockpit is the way to see what is wrong. Each call is now bounded at 5 s
for the cockpit (the installers still wait, as before), and the first one
over it ends that round with what it had.

The vLLM lanes read one file their unit does not name, the auth
middleware they mount from a folder, which their installer counts
(vllm-lane.sh's LANE_FILES): the cockpit now counts it too for those
lanes. Their start guard, in the same list, stays out, as engine-inputs.py
has it: it is no input of the engine, and a new guard restarts nothing.

Found in review, 2026-10-16. The new tests fail on the previous code.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 22:59:52 +02:00
Hasan BasbunarandClaude Opus 5.5 67cdd08fb2 vllm-lane.sh, install-nemotron-super.sh: one base for the vLLM lanes, and Super VL as one of them
The three vLLM lanes' installers (Kolibri, Nemotron, Nemotron Super) share vllm-lane.sh: the
engine's cache and port, the preflight and the room, the fetch, the service, the uninstall with
its opencode and pi cleanup, the proof. Each carried a copy of its own, a fix in one missing from
the next. lanes.sh's lane_prune_images removes a build of a lane's image once no installed unit
names it: the two Nemotron lanes run one image, and Bolt's update took away the build Super VL's
unit named; and unit_hf_cache and existing, one reading each where a dozen copies were.

The seventh lane: Super VL in NVFP4 with its LiLiCorr drafter, four requests at a time over
the 1,048,576-token window, 16 images and 2 videos per conversation, served in the Nemotron
lane's vLLM image (the card's own build does not hold the window at the card's share once
the media limits are set). Its unit, its installer in two halves (--units-only, --prepare,
the second building the shared image through install-nemotron.sh), its uninstall, which
keeps the image while the Bolt lane runs it, as the Bolt lane's keeps it while this one
does; every other unit names it in its Conflicts= and After=, the proxy holds requests for
it while it boots; its opencode provider (nemotron-super, 990,000 + 32,000 of its window),
pi's levels and check-pins.sh's two checks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 14:25:42 +02:00
Hasan BasbunarandClaude Opus 5.5 f6c56e1f89 install-nemotron.sh: NVIDIA's Nemotron 3.5 Bolt as a lane of its own
Its unit (NVIDIA's serving command on vLLM nightly 77154ca6 with the b12x 1.5.1
wheel, the LiLiCorr drafter, CUDA graphs on, 16 requests, a 0.70 memory share,
16 images and 2 videos per conversation, media inside the request only, three
caches kept), its installer in the two halves of an install on demand, its
uninstall, and its opencode provider and numbers (oc-nemotron.py, oc-limits.sh,
pi-gen.py). Every other lane's unit names it in its Conflicts= and After=, and
the key's middleware stays while either vLLM lane is installed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 08:46:57 +02:00
Hasan BasbunarandClaude Opus 5.5 25c2638185 lanes: a unit changed only in the lines naming the other lanes keeps its engine
A lane added to the box changes the Conflicts= and After= of every other unit,
which systemd applies at its daemon-reload and no engine reads. engine-inputs.py
hashed the whole unit, so the update that brings a lane restarted the text lane
that served (5 to 15 min), and the other installers said theirs ran older files
(found in review, 2026-10-15). The fingerprint leaves those lines out of the unit
and its drop-ins, and lanes.sh's unit_put, through which every installer now puts
its unit, keeps the unit's date when only they change: the running verdict and
lane_serves_older go by that date. Each step of unit_put returns on its failure,
and its callers stop on it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 08:46:57 +02:00
Hasan BasbunarandClaude Opus 5.5 dbf649932b v1.21.0: an engine restart no longer ends a session, and no engine starts on memory still held
Issue #26 reported a 27B engine dying about once a day with "CUDA error:
operation not permitted", systemd starting it again 17 s later, and the
fear that the restart lands in the window sglang#40948 blames for a DGX
Spark frozen 9.5 h. Measured on the reference box: a crashed engine's
memory is back 2 to 5 s after it dies, about 15 s before the restart.

engine-preflight.sh runs before every engine (27B, flash, image, video)
and refuses a start while what is left of an engine holds GPU memory,
while the driver holds more than 16 GiB that no process accounts for,
or while nvidia-smi does not answer; systemd tries again every 15 s.

The proxy (v6.28) holds a request while its engine comes back, through
a restart's stop half too, up to 1200 s: a streamed one gets its 200
and the keepalives at once. On a 503, opencode gave up after 151 s and
Claude Code after 325 s; both wait on a held stream (900 s measured).
An engine's mid-stream cut is passed on as a cut: the error event sent
in its place made Claude Code retry without a stream, give up on it
after about 330 s, and end with no answer.

The cockpit restarts an SGLang server left without its scheduler, once
it has been so for 2 min (COCKPIT_ZOMBIE_RESTART), tells one crash of a
serving lane from a boot that keeps dying, and says why a start waits
or was refused.

Tested end to end on the reference box: the flash lane's server sent
SIGQUIT under the real opencode and Claude Code, twice. The runs found
four faults the unit tests could not (a zombie probe docker refused, a
watched boot read as a boot again, a restart that ended the waits, the
cut's error event), each fixed with a test that fails without the fix.
After 632 to 1,068 s held, both clients got their whole answers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-01 23:20:35 +02:00
Hasan BasbunarandClaude Opus 5.5 8491b66dee engine-inputs.py: the run after a first install keeps the engine it started
The run after every first install restarted the engine: "why:
qwen38-sglang.service changed after qwen38-sglang.service started". The
installer writes the unit, then restarts the engine in the same second,
and systemd gives the start in whole seconds; compared with the file's
fraction (22:42:23.162 against 22:42:23), the write read as a change made
after the start. On the reference box, emptied and installed from nothing
on 2026-09-30, that second run cost an 8-minute boot, a new pool, new
opencode limits and a restart of opencode-web, all for nothing.

Both sides are whole seconds now, as install.sh's own stale_since compares
them for the proxy, the cockpit and opencode-web. A test pins the second of
the start (fails on the previous revision) and one the second after.

The last three strings that called the Agent view a tab (oc-fit-limits.py,
the relay's sign-in page, the cockpit's autofit event) say view.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 23:06:54 +02:00
Hasan BasbunarandClaude Opus 5.5 1a86997f77 tests: the launcher's rewrite-only-when-it-changes guard, read in its new shape
03cc671 made the launcher's write an if/else so that an unchanged launcher says so;
the test held the guard by its old one-line spelling. It now checks that the install
sits in the branch where the comparison found a difference, and that no other path
writes the launcher. An unguarded write fails it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 21:53:43 +02:00
Hasan BasbunarandClaude Opus 5.5 d163cc4c1f tests: thirteen that could not fail now see the defect they are named for
Each was reproduced by a mutant that left the suite green, and now fails on it:
- the uninstall inventory read the last assignment of each pin (the help text's moving
  tag, a later "$CUR_DRAFT"), matched images by substring and units and containers by
  presence anywhere in the file: it reads the pins, matches whole entries, and checks the
  disable, rm and docker rm lines themselves, the flash launcher's container included;
- the fake systemctl printed an epoch whatever it was asked, so a dropped
  --timestamp=unix went unseen;
- the native-restore guard's fixture carried a --context-length no native unit has, and
  its exit code was thrown away, so a dropped `|| true` stayed green;
- the 27B opencode block's own numbers were the table's, so which one was used could not
  be seen;
- needle.sh's 1/1 pass tolerated rc 1;
- the System One cancel was set before the call, so a check above the slot wait passed;
- the image lane's root refusal was a substring, the cockpit step's wiring too: both run
  now, the step against stub installers under install.sh's own shell options;
- job pruning was called by a name that did not exist, behind a hasattr;
- the audit test never read the argv it is named for;
- "importing binds nothing" looked for a name nothing defines: it measures threads and
  sockets around a fresh import;
- the static directory's containment was a string prefix, so a sibling named static.bak/
  was served before the session check: it compares path components, with a test.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-24 18:22:38 +02:00
Hasan BasbunarandClaude Opus 5.5 795b97a270 install.sh: an update that changes nothing restarts nothing; a moved branch or tag restarts the engine; summaries that point at the right things
- I18: the proxy, the cockpit and opencode-web restart only when they are not
  running, when the run changed what they run, or when they started before a
  file they read changed (stale_since); units, the proxy copy and the
  generated opencode config are written only when their content changes.
  The proxy still follows an engine restart. On 1m, step 7 keeps a fitted
  pair under the table's bounds (oc-merge-limits.py --keep-lower, and the
  generator), instead of writing the bounds for the end fit to undo: 49
  opencode-web and 36 cockpit starts on 2026-09-23, 79 config backups
- I13: engine-inputs.py resolves a branch revision through refs/ and counts
  the ref, and reads the image wherever it is named (a moving tag); the flash
  draft vocabulary is built for MODEL_REV=main
- I14: an explicit CONTEXT_MODE=native writes the native opencode limits
- I15: an oc at ~/.local/bin/oc that is not ours is left alone; the command
  offered instead carries OPENCODE_CONFIG (I35)
- I16/I17: the summary sends clients to the proxy; --no-service names what
  ./uninstall.sh --list shows, the key-reading provider included
- tests: the smoke extraction ends at its own last check; the abort test's
  fake engine registers a request before its headers, as SGLang does (an
  abort landed in that gap once in a CI run)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-24 17:00:07 +02:00
Hasan BasbunarandClaude Opus 5.5 917ad94100 install: restart the engine only when something it reads changed
Every ./install.sh restarted the engine, a full boot per update (7 to 8 min
on the 27B, 12 on flash) even when the update touched only the cockpit, the
proxy or opencode. engine-inputs.py finds what the engine reads at start from
its unit (unit, drop-ins, the flash launcher, config files named directly or
through /out, checkpoint configs, image IDs) and tells whether the running
engine already has it. Step 9 keeps the engine when it does, the run changed
none of it by content, and it answers /health; the real smoke test still
runs. RESTART_ENGINE=1 forces a restart, and every restart says why.

The unit, the flash launcher and the patched template are now written only
when their content changes: an identical rewrite dated them after the
engine's start and made every second run restart it.

Reference box: a plain ./install.sh on the serving 27B, 28 s twice in a row,
engine start time unchanged.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-23 21:09:53 +02:00