Files
alzeo/.github
Hasan BasbunarandClaude Opus 5.5 f01bc52dda The image lane is a lane: switched to, started and stopped like the other two
The first version gave the image lane its own Start button inside the Image tab.
It started the lane by a path neither text lane uses, and through the unit's
Conflicts= it stopped a serving text lane silently, where the cockpit's rule for
every other lane is to refuse and say "stop it first". It is now driven from the
same three controls as the 27B and flash lanes, the switcher, Switch, and the
action bar's lane button, and the Image tab has no lane control of its own.

A THIRD ENGINE TO THE LIFECYCLE. The collector was written for docker engines:
a container, docker logs, a pool guard, a wedge canary on the text port. The
image lane gets its own facts (the unit's state, its own /health, its journal)
and produces the same entry shape, so every generic view picks it up unchanged:
the lane pill, the lane button, the Engines card, the Overview card, the badges.
Its boot is read off its own journal in eight named milestones, matched on what
a line says rather than when (the engine and uvicorn write two timestamp
formats), and the component being loaded travels as `detail`: "the 13.3 GB DiT"
says more than "weights" for the half minute it takes. Its boot duration is
learned like the others' (70 s, recorded on the reference box).

THREE ENGINES, ONE RULE. blocked_reasons picked "the other engine" with [0],
which with three of them checked one neighbour in two and let the third
through. It now checks every other engine. Starting the image lane while the
27B serves answers 409 blocked, and so does starting the 27B while the image
lane loads. Conflicts= stays on the unit as a second belt for a systemctl start
typed at a terminal, which the cockpit never reaches.

A TEXT ENGINE IS NOT ANY ENGINE. servingReady() answered "is an engine up",
and four callers meant "is the TEXT engine up": Flush cache, Abort all and
Smoke were enabled while the image lane served and would have hit a closed
port, and the Overview kept the previous LLM's model, pool and window under an
image engine. textReady() is the question they ask now.

switch-model.sh image verifies the checkpoint from the lane's own venv (no
docker image to inspect) and makes the image unit the one enabled at boot. It
leaves the proxy and opencode alone: both are text clients, and pointing
opencode's default at an image lane would break every session it opened. A
switch to a text target now takes the image lane off the boot too.

Found by running the real cycle through the cockpit's own action API, not by
reading the code:

  - The image unit was installed 0600. mktemp creates 0600 and cp keeps the
    mode, so the unit was readable by root alone. systemd did not mind; every
    other reader did, and failed quietly: switch-model.sh could not find the
    runtime, and the cockpit's reads of the port, the bind and the model all
    fell back to their defaults, which happened to be right on the reference
    box and would not have been on one installed with IMAGE_PORT= or
    IMAGE_BIND=. Installed with install -m 644 now, and an already-installed
    unit is chmod-ed even when its content has not changed.
  - The image branch of switch-model.sh ran before install.sh's pins were
    evaluated, so HF_CACHE was unbound under set -u.
  - A plain ./install.sh on a box switched to images fell through to "27b",
    enabled the 27B unit beside the image one, and left two engines set to
    start at the next reboot, with the order systemd pulled them in deciding
    which came up. That undid the operator's switch on a routine update, the
    one thing install.sh promises not to do. It now brings the text lane up to
    date without enabling or starting it, and the image lane stays the boot
    lane.
  - install-image.sh's smoke test stopped the image unit on the way out
    unconditionally, so re-running the installer on a box whose image lane was
    serving ended with it stopped. It now leaves the lane as it found it.

What the user saw during the two waits, fixed from screenshots taken in a real
browser at laptop and iPhone widths:

  - The progress bar sat under the frame of the coming image, and a square
    1024 frame at the panel's width is taller than a laptop screen: the bar was
    below the fold for the whole generation. It now lives inside the frame,
    where the eye already is, and the frame and the image are capped to the
    viewport so the result and its facts are on screen. On a phone the result
    panel is scrolled into view below the sticky bars at their real height.
  - The bar was a node that moves into the frame, and emptying the output
    panel detached it, so the second generation would have appended null. It
    is held by reference.
  - "Use a sample" ran for twenty seconds behind a one-line status with both
    buttons live; a second click was a request the cockpit refused with 409 and
    a toast that read like a failure. It waits like any generation now, timed
    against its own 20 steps rather than the form's 40.
  - The sample is a red teapot and the "Local edit" example asked to change a
    book cover. The example is now the cookbook's own edit prompt, which is
    about that teapot.
  - Six strings said "about 9 minutes" to ready; the image lane takes about
    70 seconds. Each lane now reports its own, learned from its boots once it
    has some.
  - Before a lane has booted in front of the cockpit, its bar used the
    measured duration instead of reading "learning the duration".
  - The estimate was linear in pixels and 20% short at 2048x2048 (153 s
    against 190.9 measured). It is a power law fitted to nine measurements,
    within 6.5% of every one of them.
  - A target whose lane is not installed is marked so in the switcher and
    cannot be picked, with the command that installs it. The image lane is
    opt-in, so most boxes would otherwise offer a switch that fails a second
    later.
  - The opencode banner compared against the usable share of the pool, a
    number printed nowhere else on the page, beside a panel showing the pool:
    it read as the cockpit contradicting itself. It names both now.

Known and documented, not fixed: when the image engine wedged, its /health kept
answering 200. The lifecycle would read such a wedge as ready; the text lanes
have a generation canary for that and this lane does not yet.

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