Commit Graph
82 Commits
Author SHA1 Message Date
Hasan BasbunarandClaude Opus 5.5 1e16cacb83 oc-merge-limits: keep the ten newest backups of a config, not every one forever
Every install and lane switch edits opencode.json and the cockpit's copy and leaves a dated
backup; none was ever removed (98 and 91 on the reference box after three weeks, each holding
the API key). backup() now prunes the backups of the file beyond the ten newest, counting only
the names it gives: a copy made by hand is never touched. tests/test_oc_backups_kept_few.py
fails on v1.28.0 and passes now; a mutant that skips the pruning fails it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 01:56:47 +02:00
Hasan BasbunarandQwen3.8-Flash-Next 43d4408045 docs: soften the flash nightly claims after review
The re-check header now scopes the flash lane to 2026-10-12, and the
latest-nightly claim says measured here: a same-day upstream nightly
exists that this box has not measured. The dangling Either sentence the
review flagged was already gone (replaced with the move sentence).

Co-Authored-By: Qwen3.8-Flash-Next <noreply@dgx-spark.qwen38.local>
2026-10-12 15:20:23 +02:00
Hasan BasbunarandQwen3.8-Flash-Next 5924e9c0e4 flash lane: nightly-cu134-20261011-53295c6, measured equal or better (v1.28.0)
The lane served 6caf0ff since v1.19; thirteen days of upstream main sit on
top of it, with two QSA fusions on this lane's exact NEXTN tier, an opt-in
fp8 QSA indexer cache, and a cu134 rebase with newer DeepGEMM/DeepEP.
Adopted only after the full cycle on the reference box: static green
(digest, stack, all 30 flags accepted, auth.py identical, four PRs read)
and an A/B campaign against 6caf0ff with the same target and tier, same
probes in the same order (logprobs bit-identical, GSM8K 247 vs 248,
needle identical, decode a touch faster at concurrency 4, pool within
boot noise, every client green; one isolated Hermes truncation retested
3/3). uninstall.sh keeps both digests; docs and CHANGELOG carry the
numbers.

Co-Authored-By: Qwen3.8-Flash-Next <noreply@dgx-spark.qwen38.local>
2026-10-12 14:32:11 +02:00
Hasan BasbunarandClaude Opus 5.5 5a37ed2c43 docs: the cockpit at the top of the README, and every capture retaken at v1.27.0
The README shows the cockpit before "In detail": its Now view, taken from
this box's own page at v1.27.0 with the 27B serving. The cockpit section
shows Lanes in its place, where every version of a lane is now in sight.
Now, Lanes, Traffic and Video on a desktop and the phone's drawer are
retaken in deep indigo, and their alt texts say what each image shows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-11 21:40:55 +02:00
Hasan BasbunarandClaude Opus 5.5 84172878d0 cockpit: deep indigo, each lane with its maker's mark and its colour, every version in sight (v1.27.0)
The cockpit's new face, frontend only. A deep indigo ground with two slow
halos of light (js/backdrop.js: a small WebGL shader at a quarter of the
window's width and height, 8 frames a second at most, paused in a hidden
tab and under the Agent's fullscreen frame, one frame under reduced
motion, none under forced colours, the same light in CSS where WebGL is
missing),
translucent panels, opaque floating layers, Geist in place of Archivo.
Colour carries meaning: green ready and serving, amber on its way, red
broken, grey idle, blue memory, violet the brand. Each lane carries its
maker's mark (Qwen, MiniMax: Lobe Icons, MIT) on its bay and its card,
and its own hue on its share of the pool and the head's gauge. In Lanes,
a lane's versions are one button each, a radio group with arrow keys.

Every text of every view measured at WCAG AA or better on a desktop and a
phone over the backdrop's whole drift. Eleven new page tests, one
adapted, twenty mutants killed. The relay's property check knows the
Origin the relay sets since v1.26.2 (it failed when its generator named
a header "origin").

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-11 17:18:48 +02:00
Hasan BasbunarandClaude Opus 5.5 5011ff474b cockpit relay: opencode is shown its own origin, so the Agent tab's terminal works by the tailnet address (v1.26.2)
opencode gives its terminal only to a page of its own host or of loopback: the
connect ticket in every pinned version, the WebSocket too from 1.19.0. The relay
forwarded the browser's tailnet Origin with Host set to loopback, so the terminal
panel opened with no shell (ticket 403 twice, no WebSocket; measured in Chrome on
1.18.35 and 1.19.0). The relay, which already holds the Origin to its own host,
now presents opencode's own; a request with none still carries none.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-11 11:28:49 +02:00
Hasan BasbunarandClaude Opus 5.5 134d87e07c cockpit canary waits for a client that just started; the proxy leaves /ready open as the engine does (v1.26.1)
The canary was sent when the fast collector's last load read, seconds old, said idle: a
client's 77,887-token prompt that started in that gap had it queue behind a 58-second prefill
and time out, a failed probe the wedge rule counts and an abort the Traffic view counted
(reference box, 2026-10-11). The cockpit now reads the engine's load again right before the
probe and stays out when a request runs; a read that fails leaves the probe to go as before.

The engine's auth rule opens /health, /ready and /metrics by prefix; the proxy's door had
/health and /metrics, so /ready got 401 through the proxy and 200 from the engine. The door
opens /ready the same way (proxy v6.36); /readiness, not under /ready, still needs the key,
as at the engine. SECURITY.md and docs/clients.md updated.

Tests: the canary stays out for a client that started since the last read, and goes when the
read fails; /ready passes the door, /readiness does not. The first and the third fail on
v1.26.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-11 10:16:36 +02:00
Hasan BasbunarandClaude Opus 5.5 8c67170b48 keep the serving key off every command line: needle.sh, the smoke test, the Decide view, the docs (v1.25.2)
needle.sh without --model asked /v1/models with curl -H "Authorization: Bearer $KEY", and the
same shape sat in the cockpit's smoke test (the login's -d body), in the command the Decide
view gives to paste, in the README, docs/systemone.md and docs/operations.md, and in
evals/README.md (docker run -e OPENAI_API_KEY="$KEY"): each put the key in a command line any
local process reads in /proc. The bash scripts now hand curl a header file through printf, a
builtin (-H @<(printf ...)), the way install.sh does; the commands to paste pipe it to curl's
standard input (printf ... | curl -H @-), which runs in sh too; docker takes it by name.

Tests: needle.sh against a recording curl, the Decide view's command the same way, and a
search of every tracked file but the Python tests, fixtures and CHANGELOG for the three shapes,
each failing on v1.25.1 (nine lines found), with a fourth test holding the patterns to the old
lines.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 21:39:51 +02:00
Hasan BasbunarandClaude Opus 5.5 685a5acd12 cockpit: a result shows in its own shape, and an image opens at full size (v1.25.1)
The Image and Video views kept their result screen in a 16:9 box: an image wider or
taller than it overflowed and was cut (a 9:16 portrait showed the top of its spotlight,
the violinist cut away; a square lost its top and bottom), a gallery was cut at its
bottom, and nothing opened an image large (Hasan, 2026-10-10). The screen now takes the
result's own proportions (asked, then decoded), as wide as the column and no taller than
78 % of the window, centred; a click or Enlarge opens the image over the whole window,
fitted or at its own pixels (100 %), closed by Escape, Close or a click beside it. The
session's thumbnails show each image whole; a video's screen takes the video's shape.
Measured in Chrome against the real lanes on the reference box; the view's Turbo cost
basis says 2:06 to 2:18 after two more runs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 19:49:15 +02:00
Hasan BasbunarandClaude Opus 5.5 a3daa6182f video lane: SGLang v0.5.21 and a per-call Turbo switch (v1.25.0)
The video lane runs the v0.5.21 release's commit and wheel, as the image lane since
v1.24: a 4 s 480P video at 8 and at 50 steps came out identical to the byte on both
runtimes, 2.5 % faster at 50 steps. The installer notes the wheel and the source commit
beside the runtime, asks the registry instead of its source text, and counts the
runtime's two caches of its own (host_spill, 11.2 GiB; decode_dtype_store, 4.5 GiB) in its
room check; uninstall.sh lists them.

The Video view gains a Turbo switch: larryvrh's MiniMax-H3 Turbo LoRA, the cookbook's
speed/quality recipe, fetched as one file at its pin and put on for one call in SGLang's
dynamic mode, then taken off: 4 s at 480P in 127 s against 623 s for the base, the base's
next video unchanged byte for byte. Nine steps on this pin (sgl-project/sglang#38671 counts
evaluations on main), 480P and 4 s only (the adapter's memory). Never on a lane that runs
another commit, or started before its runtime changed, or whose start systemd does not say
(ddebc52 loads the whole DiT to put an adapter on); a base call waits while the lane cannot
say an adapter this cockpit put on is off. The merged variant and LightX2V's adapter were
studied and are documented.

Memory figures taken from SGLang now say GiB: its "MB" and its loader's "GB" count powers
of 1024. The image and video views' steps sliders put their thumb on the Turbo's steps.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 17:29:44 +02:00
Hasan BasbunarandClaude Opus 5.5 7c05acc0a6 opencode: pin 1.18.35, which masks the provider keys debug config prints
1.18.32 printed this box's API key in clear in `opencode debug config`; 1.18.35 prints ***
(checked with a fake key on both). What the repo relies on was checked against 1.18.32:
the overflow phrases and exclusions are the same block of the binary byte for byte,
max_tokens is 32,000 without the oc launcher's variable and 182,000 with it on a fake
endpoint, serve --hostname and the hidden --yolo are there, and the release diff touches
neither the compaction nor the permission code. Its model requests carry one more header,
x-opencode-session-id, with the session id x-session-id already carried.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 15:56:41 +02:00
Hasan BasbunarandClaude Opus 5.5 2f89c77d2a image lane: SGLang v0.5.21, and Qwen-Image 2.1 Turbo as a second checkpoint (v1.24.0)
The lane runs the v0.5.21 release's commit and wheel instead of the main commit ddebc52
and the 0.5.20 wheel: the base's images are byte-identical on both (twelve requests),
4.7 % faster at 1024x1024. sgl-project/sglang#43391 (merged 2026-10-10, in no release) is
backported as three one-file patches so the Turbo samples on its eight-step sigma grid;
image-sglang/turbo-grid-check.py checks the three parts on the runtime, and the installer
and the switch refuse the Turbo where one is missing.

./switch-model.sh image-turbo rewrites the unit's --model-path from a fixed staging path
(one new sudoers line), reads the revision the box serves (refs/main) and the pin only
when there is none, checks for room less what the cache holds, and keeps a checkpoint of
the unit's own across a round trip through the Turbo. An existing venv takes a new wheel
(sglang-wheel note, removed by both uninstallers); the runtime check asks the registry,
whose source text v0.5.21 no longer matches; no check rests on an assert. A first
install's checkout no longer trips on a patch merged upstream, in both diffusion
installers.

The cockpit asks the image engine what it serves (/model_info, once per life of the unit)
and the page, Load and the banner follow it; the Image view fixes the steps at 8 under the
Turbo, leaves num_inference_steps out and estimates with a formula fitted to both
checkpoints on the new runtime. Docs, README, MIRROR.md, ROADMAP and the CHANGELOG say what
changed, measured on the reference box.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 13:12:31 +02:00
Hasan BasbunarandClaude Opus 5.5 125e465c99 docs: the 27B on v0.5.21, and the flash lane as it is served
upstream.md still described the flash lane on the 2026-09-07 image and
"not moved", while v1.19 pinned nightly-cu134-20260928-6caf0ff. It now
says what that nightly adds over the 2026-09-07 build (the three QSA
fixes and #39474, each checked as an ancestor of 6caf0ff with the
GitHub compare API; the DGX Spark stack was already in the old build,
#39126 brought it into main), the 2026-09-29 measurement, and where
upstream stands on 2026-10-09: the cookbook's DGX Spark tag is
unchanged since 2026-09-07, v0.5.21 contains 6caf0ff plus 49 commits
but ships a CUDA 13.0 image only, and the cu134 nightlies have moved
on past #39627 and #40987.

clients.md and SECURITY.md: token_ids_logprob on v0.5.21. Its decode
producer fills an empty tensor where v0.5.19 filled a bare list, and
the issue's own two-request reproduction, 20 rounds on a v0.5.21 boot
in batches that mixed the two kinds, no longer killed the scheduler.
sglang#34719 is still open, so the proxy keeps refusing the field.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 02:16:12 +02:00
Hasan BasbunarandClaude Opus 5.5 b8306bac8a proxy: a lane switch is followed at once, request or not
The pool, the window and the names the proxy reads from the engine were kept 600 s and
dropped only by a request that found the engine gone. After a switch made while no request
came, a lane that boots in less than 600 s served its first minutes under the stopped lane's
facts: the 27B (about 7 min to boot on the reference box) refused every prompt past the
flash lane's 250,000 ceiling for up to 2.5 min, and /v1/systemone answered as the flash
(2026-10-08). The units PROXY_HOLD_UNITS names are now asked for their invocation id when
those facts are read, at most every 2 s, and a new one, which systemd gives every start,
drops them. A proxy that names no unit, or a systemd that does not answer, keeps them their
600 s. The hold tests' systemctl answers that question with ids that never change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 18:19:38 +02:00
Hasan BasbunarandClaude Opus 5.5 206bc50645 docs: the pool wedge is this box's own measurement, not sglang#36333
sglang#36333 is about a request left running after its client disconnects; SECURITY.md,
docs/clients.md and a proxy comment gave it as the reason a prompt past the pool wedges
the scheduler. The wedge was measured on the reference box (2026-08-29).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 15:01:57 +02:00
Hasan BasbunarandClaude Opus 5.5 0b27e26d99 proxy: the serving key is checked before a body is read
Without the identity wall, the engine's key is the port's one gate (README), and a
request without it still had its body read whole and, when large, counted by the
engine on the proxy's own key before the engine's 401. The proxy now applies the
engine's own rule first (measured on the live engine: bearer in any case, one space,
the key exactly) and answers the engine's own 401, before the body and before an
Expect: 100-continue invitation; /health and /metrics stay open. The test harnesses
decide which key their proxy holds, whatever HOME holds: those that give it one
present it, as every real client does, and those whose clients send none give it
none (the CI's offline step gives HOME a key). The cockpit knows the new outcome.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 15:01:56 +02:00
Hasan BasbunarandClaude Opus 5.5 f9c0fd0729 proxy: refuse token_ids_logprob where the engine reads it
On a batch that mixes a request asking for token_ids_logprob with one that does not,
the served 27B build (v0.5.19) fills a bare list for the one that did not ask and
calls .tolist() on every entry: its scheduler dies (sglang#34719, open). Refused at the
top of a /generate body and in the parameters of /vertex_generate, the only places the
engine reads it; a value the engine treats as absent passes, the OpenAI routes are not
touched.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 15:01:56 +02:00
Hasan BasbunarandClaude Opus 5.5 802ffcfbf4 video lane: the image lane's idle-loop patch, so an idle lane no longer holds a core
SGLang Diffusion's scheduler polls its request socket without ever
waiting, so a video lane with nothing to do held one CPU core at 100%.
On the reference box (2026-10-06) the box's CPU sat near 6 % through an
evening with the lane loaded and idle, against near 1.3 % on quiet hours
the day before, and its hottest zone near 61 C at rest against 43 C with
no lane loaded: enough to keep the fans loud. py-spy put the core in
recv_reqs() under event_loop(), every other thread idle.

The image lane has carried scheduler-idle-poll.patch since it was
measured there; this lane was left on the cookbook's code by choice
(2026-09-25), reversed now that the cost is measured. Applied by hand to
the box's video source first, 3 min after ready: 1.05 cores -> 0.05, the
hottest zone 67 C -> 54 C; a 4 s 480P request picked up in the second it
arrived, done in 691 s (592 to 760 s before), MP4 h264 864x480 with aac
audio; the scheduler idle again after it; a stop at rest 0.24 s.

install-video.sh now applies the patch as install-image.sh does (one
file in image-sglang/ for both lanes, at the same SGLang commit):
applied, already applied, or a note when a new pin no longer fits it,
taken off before a new pin's checkout; its at-rest measurement notes a
lane past half a core. The CI step that checks the patches against the
real upstream file now covers both lanes, each at its own pin. The test
that held "no local patch on this lane" now holds this patch and no
other; TheIdlePatch runs the installer's own lines against a throwaway
tree. Four hand-made mutants (never applied, the HTTP patch too, no
take-off before a new pin, no note) each fail the suite.

An update does not restart a serving video lane: the patch takes effect
at its next start, so that no video being made is ended.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 01:11:56 +02:00
Hasan BasbunarandClaude Opus 5.5 558786c08c install-agent: an editor's session stays out of opencode-web's PATH
The service gets the caller's PATH and the installed unit's, so that an
update from a shorter PATH takes no tool away from the agent. From a VS
Code terminal that PATH carries VS Code's remote CLI, under a directory
named after the editor's build, and two directories of its Copilot Chat
extension: an update on 2026-10-03 wrote the three of them into the
unit, so the unit changed and opencode-web restarted, and the next VS
Code update removes the directory the unit names. The installed PATH
being kept on every run, they would have stayed there for good.

They are known by their layout, which the forks of VS Code share: the
remote CLI of a server (bin/remote-cli), extension storage
(User/globalStorage) and versioned extensions
(extensions/<publisher>.<name>-<version>). They are left out of the
caller's PATH and of the installed one, and a box whose unit holds some
is told which ones leave it. The order is the one v1.22.6 had: the
caller's directories first, so a newer tool first on the caller's PATH
stays first for the agent. An AGENT_PATH is taken as given on its run.

The tests remove their directory now, and put their stubs first on the
PATH. The new ones run the script's lines: the editor layouts and
look-alikes a character or a part away, a name with spaces, relative
and ~ entries, the note, AGENT_PATH, the caller's order and each
directory named once.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 12:53:04 +02:00
Hasan BasbunarandClaude Opus 5.5 13d346b30c proxy v6.32: the engine key is masked everywhere in /server_info
SGLang's /server_info repeats the engine's whole command line in
launch_command, the API key included, and the proxy took out only the
key fields (api_key, admin_api_key, at the top and in every internal
state). Behind the identity wall, a named client could read through the
proxy the one secret the wall keeps from it; without the wall the
caller already holds it.

Every string of the answer now goes through mask_secrets: the value of
--api-key, --admin-api-key and --ssl-keyfile-password, in any form a
command line gives it, and the engine's own key wherever it shows (not
looked for by value under 8 characters, which no real key is and which
would garble unrelated strings). ssl_keyfile_password joins the key
fields.

Found by the flash audit of 2026-10-03; checked on the reference box:
through the proxy the key was in launch_command and in no other answer
(/v1/loads, /v1/models, /metrics, /model_info). The fake engine now
answers as the real one does; the server-info test and two new ones
fail against v6.31.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 18:12:56 +02:00
Hasan BasbunarandClaude Opus 5.5 01a2ac4e32 CHANGELOG: v1.22.5; docs: several agents share one KV pool
docs/flash-lane.md, "Several agents at once": the night of 2026-10-03
measured (eight sub-agents holding 771,301 tokens against a 437,184
pool: cache hits from 94.5% to 27.6%, decode from 69.3 to 3 tok/s), and
the rule, the sum of the agents' contexts under the pool the cockpit
shows. docs/opencode.md says what the proxy now does about opencode's
300 s wait for headers and points there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 12:35:51 +02:00
Hasan BasbunarandClaude Opus 5.5 0a3fec7e8d proxy v6.30: a refused top-level effort beside a chat_template_kwargs one is dropped
omp's default dialect sends the effort twice, at the top of the request
and in chat_template_kwargs. SGLang takes the chat_template_kwargs copy
first (serving_chat.py pops it and sets request.reasoning_effort when it
is not None), but validates the top-level one against its own enum, so
the template's lean, omp's default level here, was a 400 on every
request (omp 18.4.9, 2026-10-01). The proxy now drops the top-level copy
when SGLang would refuse it and chat_template_kwargs names a level: the
level that applies is the one that would have applied. A null there,
which SGLang skips, is filled as an absent one is (the v6.18 move), and
a top-level level SGLang accepts is left alone.

Checked against the flash lane, streamed and not: a top-level lean beside
a chat_template_kwargs lean, high or null, and a value SGLang refuses
beside lean, were a 400 through v6.29 and are answered through v6.30;
the five other shapes (lean alone, at the top or in chat_template_kwargs;
high beside lean or null; a refused value alone) answer the same through
both. omp 18.4.9 in its default dialect: a 400 through v6.29, "pong"
through v6.30.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-02 15:41:25 +02:00
Hasan BasbunarandClaude Opus 5.5 11bd3b385c docs/clients.md: Claude Code's pair on the flash lane
The pair docs/clients.md gave for Claude Code, 529000 with max_tokens at
250,000, is sized for the 27B in 1M mode. On the flash lane's window of
262,144 tokens every streamed request passed it: the engine refused each
inside its stream, and Claude Code (2.1.286) sent it again without a
stream, which it gave up on after about 6 minutes, so a long answer
never came and the hold of v1.21.0 could not keep it alive. Found by the
end-to-end test of v1.21.0 as installed, which docs/engine-restarts.md
now records too. On the flash lane the pair is 205000 with max_tokens at
32,000, opencode's limits there; with it, the request streams again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-02 13:58:35 +02:00
Hasan BasbunarandClaude Opus 5.5 8dbcf4f11a pi-gen.py: the pi and omp configs work against the box, checked with the real agents
Run through the proxy to the flash lane, both generated configs failed
every request. pi 0.99.2 sends its system prompt as the "developer"
role to a reasoning model on a provider it does not know, and the served
template refuses that role (400 "Unexpected message role."): each model
now carries compat.supportsDeveloperRole false. omp 18.4.9's default
dialect copies the effort into a top-level reasoning_effort, which
SGLang validates against none/minimal/low/medium/high/xhigh/max in both
lanes' images, so the template's "lean", omp's default level here, was
a 400: compat.thinkingFormat qwen-chat-template sends it in
chat_template_kwargs alone. With both, pi and omp answered at every
thinking level and made a tool call each.

The !cat that reads the key is quoted for the shell both agents run it
in. The files are regenerated only on a box that asked for them once
(./pi-gen.py made their directory), by a switch as before and by a fit
too (oc-fit-limits.py), whose limits they carry. docs/pi.md copies with
cp -n and says to merge into a config that has other providers. Tests:
four of the eight generator tests and the new fit scenario fail on the
code before this commit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-02 13:57:45 +02:00
Dimitris Kontokostas a59170b2fc pi-gen.py, docs/pi.md: the pi and omp agent configs derive from the generated opencode.json, one build two serializations, and a switch regenerates them (block 4f) 2026-10-02 13:57:45 +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 e6e667fcec release check: a box updated by the one-liner knows which release it runs
The cockpit told the reference box, running v1.20.1, "Version v1.20.1 is
out; this box runs v1.19.0". The check named the installed release from
the checkout's tags (git describe), and get.sh fetched main and no tag,
so every box it updated described itself as the release it was first
cloned at, in the banner and in the Library's release line.

The check reads the release the checkout's own CHANGELOG.md names, the
one the badge already showed; the tags answer only when the file names
none. get.sh fetches the release tags too, so git describe agrees; a
local tag of the same name is kept and the update goes on. Tests: the
check against a checkout whose tags lag its files, get.sh against a
release tagged after the clone and a clashing local tag; they fail on
v1.20.1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-01 11:31:47 +02:00
Hasan BasbunarandClaude Opus 5.5 eb7979f023 v1.20.0: every lane on every box, by default
The README, the lane docs, the upgrade notes, the architecture table and
the capabilities table say what a plain install now does: both text
lanes, the image and the video lanes, each proved the first time, about
440 GB in all, and what an update of an older box installs and how to
keep a box as it is. The notes carry what the whole-box install took on
the reference box, caches warm. The image installer's closing line names
the Load button the way the video one does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-01 04:04:34 +02:00
Hasan BasbunarandClaude Opus 5.5 116f34c169 docs: the Image, Video and Decide views are views everywhere
Eleven places in the README, the lane docs, the roadmap and the
capabilities table still called a cockpit view a tab. Browser tabs stay
tabs. Wording only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 22:24:05 +02:00
Hasan BasbunarandClaude Opus 5.5 897633d4b1 docs: captures of the rebuilt cockpit, taken from this box's own page
Now, Lanes, Traffic and Video on a desktop, and the drawer open on a
phone, all from the production cockpit at v1.19.0 with the flash lane
serving. The four captures of the tab layout go. The Agent view is not
captured: its frame shows the owner's sessions.

The alt texts now say what each image shows, not the whole view.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 22:16:28 +02:00
Hasan BasbunarandClaude Opus 5.5 5d964ecc42 v1.19.0: MiniMax-H3 as a fourth lane, and a cockpit rebuilt and checked under a finger
The changelog's three unreleased parts become v1.19.0, with the part the
2026-09-30 campaign added: the cockpit rebuilt and checked under a finger, an
update that touches only what changed, and the video lane's validation numbers.

The documents follow the rebuilt cockpit: its views are views (README, the cockpit
tour, the lanes' docs, CAPABILITIES), the tour's phone section describes the drawer,
the safe areas and the two browser checks that hold them, and the screenshots it
names are the rebuilt page's (added with the next commit). The design log gains a
dated section for the rebuild and what the phone taught the day after.

SECURITY.md says what each engine's coordination port exposes: PyTorch's store,
bound to every interface with no setting to narrow it (measured on the reference
box: the flash scheduler's and the video lane's), no key and no data, a denial of
service at worst, inside the trusted-network edge; how to see the ports and how to
firewall a box on a network it does not control. Taking them off the network by
default is on the roadmap, to be measured first. The video lane's doc no longer
calls its loopback bind the only thing in front of it, and carries the 2026-09-29
validation (the hot-NVMe 4 s, the 15 s run, the idle cores, the queued second
request).

The README's opening says what a box now gets: eight flash requests by default and
one Load button between lanes. The flash part of the changelog says what the new
default tier gives opencode on a fresh install (100,000 and 16,000, conservative
until eight heavy streams are measured) and how to keep the larger window.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 22:08:54 +02:00
Hasan Basbunar 75ee50e014 flash lane: the plan catches up to the box (tier concurrency, nightly engine)
The 2026-09-29 campaign measured the per-path cap and the nightly engine on this
box and put both in production (memory flash_palier8_nightly_2026_09_29: bench
46.9, canaries 4/4, needle 2/2, prefix cache 99.9%). The note listed the repo
catch-up under 'Reste a faire'; this pays it. Until now a plain ./install.sh
re-rendered the launcher from the 2026-09-07 image at 4 requests and 20 slots:
a silent walk back of the state the box actually runs, and the live smoke has
been reporting that drift since.

FLASH_IMAGE pins the nightly (the 9d2a pin stays tagged for rollback), the
concurrency tier gains --mamba-max-states-per-path 2 and becomes the default,
and the tier detection now also reads a 4-request launcher, which the old
default never needed: without that, an installed context box would have been
raised by the new default on its next re-run, in both directions a re-run now
keeps the installed tier. recipes.py learns the flag as a serve key, the two
tier spellings stay held equal by FlashTierParity, uninstall knows both
digests, and test_flash_tiers_resolve asserts both tiers from the real pins.

The live smoke reads 31/31 against this checkout, ci-local 45 ok 0 fail 0 skip.
2026-09-30 14:18:36 +02:00
Hasan Basbunar e2f1f324b6 cockpit redesign: the one-page front, its tests, and the one-click load
The monolithic app.js and the tab <select> become a rail of views:
index.html plus css/cockpit.css and nine scripts sharing one scope
(base, now, lanes, ops, agent, decide, image, video, boot). Every
regression the swap left behind is fixed here, not papered over.

The one-click lane change (the point of the redesign): the page walks
switch, stop, start as one journey, one job per step, stopping at the
first gate that refuses. In dry run the state never moves, so the wait
for the engine to go down was a 90 s stall against a wall; dry run now
skips that wait and the sheet says up front that a later gate can
refuse because the box still reads as it was.

Tests that read app.js read the page the browser loads instead:
pagejs concatenates the nine scripts in the order index.html asks for
them, and the CI target step reads LANE_TARGETS from base.js, the one
list the UI actually keeps. No assertion was weakened or deleted to
get here; the app.js readers were moved to the new markup, and the
video journal gained an end-to-end class over the real 12-minute
journal captured 2026-09-29.

House style reached the new files before they were tracked: five en
dashes in ops.js became the ellipsis the rest of the page already
uses for no-data cells.

Held by: ci-local 40 ok 0 fail (5 skip = missing packages on this
runner), ruff F/E9 clean, page tests 4/4, mobile-check 184/184 on four
iPhone viewports against this front, monkey 58/58, lifecycle mutation
93.4% over the 91% floor.
2026-09-30 12:00:59 +02:00
Hasan Basbunar fa8abf112a review pass four: the eight findings, fixed and held
Eight reviewers read the video lane end to end on 2026-09-29; every finding
below was re-verified in the code before it was believed, and each fix carries
a test that fails without it (proved by reverting on scratch copies).

- R1, the only functional hole: the lock is per-process, so a cockpit restart
  orphaned a queued lane job the boot sweep then deleted, and the new process
  generated beside it. Admission now asks the lane (409 on a live job, down
  lane proceeds as before) and the sweep stands down while the lane shows one.
- The parked badge froze at the hand-off minute: the watcher now reports
  status and progress into VIDEO_LAST until it clears them.
- The server validates seed (whole number, empty rides out omitted like the
  page) instead of filtering in silence; _video_unit_flag skips comments and
  bare flags instead of raising or matching them; a mute systemd at the cut
  reads as a crash (502) rather than an unprovable clean stop (503);
  video_content refuses past 1 GiB before or during the read; the page reads
  its fields through vidVal instead of throwing on a missing element.
- Docs: the installer and one test no longer preach the refuted stop-waits
  thesis; the timeout comment, the Conflicts scope, the filter-vs-refuse
  sentence, the slack self-contradiction, the ledger counts (fifteen defects,
  seventeen tests: thirteen new and four rewritten) and a dozen smaller
  attributions now match the measured code.
- Tests: lane-idle is declared explicitly where a call drives the lane (the
  spy default models an idle lane); health/engine-state/journal covered for
  the first time; the feed helper's route matching held to 100% branch
  coverage and 93.5% mutation (floor 91).

Left as accepted residuals, not oversights: a create POST lost to a timeout
leaves an id-less orphan the cockpit cannot reliably adopt (the lane answers
queued immediately, measured); the sweep call inside main() is untestable
without a refactor; one _feed_open mutant is provably equivalent and
documented as such in its test.

Suite: dashboard 710+ OK, ci-local 45 ok 0 fail.
Signed-off-by: Hasan Basbunar <basbunarhasan@gmail.com>
2026-09-29 18:45:05 +02:00
Hasan Basbunar 2dcbee7598 video lane pass three: what the reviews claimed, what the box answered
Every finding from the branch's security, concurrency and front-end reviews
went to its own verification agent before it was believed (the standing rule
after the QA pass's own two self-inflicted bugs), and everything below is
what survived that; the CHANGELOG's pass-three paragraph carries the full
ledger, the memory the verdicts per finding.

- silence is not death (real, the only true half of S1): run() swallows a
  systemctl slower than five seconds as "", and ("","") differs from every
  baseline - the poll cut a live request with a confident "the lane was
  stopped" and gave the lock back beside a job still generating. Silence now
  reads as LIFE_UNKNOWN and waits; deactivating stays terminal because this
  runtime cancels its tasks at stop (seven logged stops, all under a second),
  which is also what makes the Cancel modal's ~12 min honest and the
  template's TimeoutStopSec comment - and the docs' stop bullet - wrong:
  both rewritten around the ceiling they describe. M5, which promised a
  stop that waits the hour out, verified false against that journal.
- the admission guard had no slack (real): the largest accepted estimate,
  15 s at 720P on 57 steps, lands the lock's deadline on the lane's expected
  finish; the refusal now keeps a tenth, on both sides, and the parity test
  parses the margin out of app.js and cockpit.py and answers through the
  server for every tab combination.
- the numbers were the journal's, not the docs' (F3 real, no regeneration
  needed): 23:21:01 to 23:30:54 is 592 s, 9:52, over the 50-step default;
  the 10:52 and 49-step figures were typos that 197a3b1 had spread to the
  page four times, the changelog, the docs and the tests. k keeps its 3.05
  (592/(50x4) = 2.96 rounded up), the 720P pins 7.65 against a measured
  7.43.
- one cap per route (real): a shared max() had made the video route's cap
  the image lane's 40 MiB; a prompt plus two keyframes now answers 413 over
  its own 10 MiB at the socket, pinned by a test.
- the keyframes' whole story (three findings): an ENOSPC while staging died
  outside the error paths with no answer on the socket and a half-written
  PNG behind (now 503 with the reason, and whatever got named gets unlinked);
  the 504 hand-off unlinked frames a queued job had not read yet - the
  runtime localizes file:// URIs when the job starts, not when the POST
  arrives - so the watcher owns them now and unlinks when the lane is done;
  a cockpit killed mid-call left them forever, a fresh one sweeps them; and
  the parked video's link, which only lived in one page run, rebuilds itself
  from /api/video's progress after an F5.
- a non-numeric seed rode out as seed:null, which the filter drops in
  silence - a random video under a number in the box: vidProblem says what a
  seed may be before the wire.
- the switch grew the room check its text branch had learned (real on a
  fresh box: 145 GB behind a button over 90 free), reading the need from
  install-video.sh so the two drift together, its dl_free_gb defined once
  before every branch; and the rollback guard now really disables the
  competing units at a switch, llama.cpp's included - the uninstall test
  excludes that one by name and reason: the switch mentions it to stop a
  collision, it writes no such unit, and the file's own doctrine says an
  operator's unit is nobody's business.

Sixteen tests added (ten dashboard, three switch, one socket), five source
pins rewritten to the new shapes; the dashboard suite is 694, ci-local 45
ok 0 skipped, the typography gate holds, ruff F,E9 clean.

Signed-off-by: Hasan Basbunar <basbunarhasan@gmail.com>
2026-09-28 23:53:35 +02:00
Hasan Basbunar 9ef7351f48 cockpit QA of the live page: two defects fixed, both held by a test
Every tab was opened and clicked against the serving box, dialogs confirmed
then cancelled, actions run for real (flush refused by the busy engine, smoke
done, System One answered in 0.77 s). Two defects came out of it.

- the Engines row read "qwen38-video · MiniMax-H3 H3": the video unit is
  named after the checkpoint it serves, and laneLabel appended the target
  short on top of it anyway; it no longer appends what the name already ends
  with, and the image lane's "Qwen-Image 2.1" is held unchanged by the test
- the Logs tab served the video journal with its ANSI colour codes verbatim:
  the <pre> printed escape bytes as noise. /api/logs strips the sequences
  for every source now, under the same masked-key test, which now fails if
  an escape byte survives

Two em/en dashes the review pass slipped into docs/video-lane.md: the house
typography step failed on them the day after that commit was made.

Dashboard 684 (two added), ruff F,E9, node --check, and both failing CI
steps green on re-run.

Signed-off-by: Hasan Basbunar <basbunarhasan@gmail.com>
2026-09-28 18:41:27 +02:00
Hasan Basbunar 40198bfdad extras: chromium-sandbox, the sysctl that makes browse alive on Ubuntu 24.04
The Spark ships Ubuntu 24.04, which restricts unprivileged user namespaces and
kills every Chromium launch with 'No usable sandbox!'. One boot-persistent
sysctl is the whole fix, field-proven on the reference box (gstack /browse
screenshots from v1.91). Ships the conf, an idempotent setup.sh with
--uninstall, and the honest trade-off; linked from README and operations docs.
2026-09-28 17:46:51 +02:00
Hasan Basbunarandopencode 35963f9843 video lane: the branch's own review, in two passes, eleven defects fixed
Pass one reviewed the ten commits of the video lane; pass two re-reviewed
pass one's fixes with fresh eyes. Each fix is verified against what runs
(the installed lane's validator, huggingface_hub's ref-on-fetch order, an
errexit probe, app.js under a fakedom), never against the doc.

- the smoke body carried no task and no target: the lane 400s by
  construction and the smoke throws away a fifteen-minute boot; it is also
  skipped with a reason when the install names ref2va or a custom model
- switch-model.sh fetched the video checkpoint without a revision, which
  repoints refs/main at the upstream tip before the first byte lands; it
  now serves the sha refs/main holds, and writes the ref when it is absent
  or holds no commit hash (local-cache success included), never a valid one
- uninstall never listed the video unit's HF_HOME: 145 GB unlisted, and the
  CI inventory gate cannot see cache paths, only repo names
- the admission budget answers the two measured rows (3.05 and 7.65 s per
  step-second, decodes folded in, keyframes +10 %), refuses canvases past
  1280x720 and ratios other than 16:9/9:16, and the journal its smoke dies
  promise is printed before they die (|| true, or set -e kills the message)
- the tab carried a different formula than the server (portrait priced
  2.6x apart), an invented placeholder keyframe, refusals the server made
  and the page did not, and a 504 that threw the video id away: it mirrors
  the budget with a parity test, sends only attached frames, and parks the
  id with the content URL that serves the MP4 when the lane is done
- watcher: missing is terminal, like the synchronous poll; the hand-off
  flag goes up before the thread starts; the smoke's health die prints the
  journal
- three claims in the docs and the bench table corrected (a refusal the tab
  does not make, a measured row called cookbook, a staging claim naming
  paths the cockpit does not use); SECURITY.md line 160 back to two spaces

Fifteen tests added or rewritten. Lane 62, dashboard 682, standalone loop,
ruff F,E9, node --check and resilience 16/16, all green.

Co-Authored-By: opencode <noreply@opencode.ai>
2026-09-28 14:58:01 +02:00
Hasan Basbunar 22a59dd8b5 video lane: the lane's text task is t2va, not t2v 2026-09-26 01:56:57 +02:00
Hasan Basbunar fe0afb7fad video lane: measured rows (t2v/fl2va 480P, 720P) and the output-path fix 2026-09-26 00:35:44 +02:00
Hasan Basbunar 197a3b1a92 video lane: MiniMax-H3 as a fourth lane, served from the cookbook recipe with no local patch
./install.sh --with-video adds text-to-video with joint video-and-audio
(MiniMaxAI/MiniMax-H3, pinned rev), driven like the other three lanes:
switcher, stop, start. The unit serves the cookbook's MiniMax-H3 recipe
exactly as upstream wrote it (fl2va variant, no placement flags, loopback
behind the cockpit's Video tab, which holds the async call to completed
and refuses outside the cookbook's bands). Measured on the reference box:
boot 11 min, 4 s 480P in 592 s with download proven (h264 + aac stereo,
inspected), fl2va conditioning proven from a keyframe.

Each addition comes with the tests that hold it; the whole offline suite
and ci-local.sh are green with and without it.
2026-09-26 00:10:47 +02:00
Hasan Basbunar 55aa5c0b9c Merge branch 'worktree-agent-a33e6eea7379c33df' into fix/revue-v1.18.6 2026-09-25 12:11:43 +02:00
Hasan Basbunar 36f1af125a Merge branch 'worktree-agent-a97fa8f4c266976d5' into fix/revue-v1.18.6 2026-09-25 12:11:32 +02:00
Hasan Basbunar b37d35937c Merge fix/revue-v1.18.6 into the docs zone 2026-09-25 00:33:49 +02:00
Hasan BasbunarandClaude Opus 5.5 ea35022a40 cockpit: an edit leaves out the two fields its endpoint drops unread
The lane's edits() declares neither flow_shift nor max_sequence_length (image_api.py of
the installed runtime), and five flow_shift values made one output on the reference box:
the cockpit forwarded both to an edit, and the page sent its Shift box's value and showed
it in the edit's curl, for a lane that reads neither. The cockpit leaves both out of an
edit, the page leaves the shift out, and the note under the Image tab says what the page
does instead of claiming it refused it (found in review, 2026-09-24).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-25 00:26:58 +02:00
Hasan BasbunarandClaude Opus 5.5 87f5ee8e0a docs/cockpit.md: the release check shipped with the cockpit in v1.6, not in v1.5
v1.5 has no dashboard/ at all (git show v1.5:dashboard/cockpit.py fails); v1.6
carries COCKPIT_BIND and the releases/latest call.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-24 23:33:24 +02:00
Hasan BasbunarandClaude Opus 5.5 2cbe8335fd docs: two dead references, System One's thinking numbers, and the test pages' own figures
- docs/clients.md pointed at a BENCHMARKS.md section that does not exist and
  still priced images at a declared count each: an image is priced from its
  header since proxy v6.15, measured in CHANGELOG v1.10.1.
- docs/systemone.md linked BENCHMARKS.md relative to docs/, a 404; its
  thinking-budget numbers were the run on the lane's default (80.0% at 8.8 s),
  while the lever asks for xhigh since 2026-09-21: 84.5% at 12.5 s, against
  80.5% inherited (keepalive-proxy.py, the SYSTEMONE_THINK_EFFORT comment),
  and that knob is now named.
- TESTING.md: the proxy's floor is 83% (ci.yml), cockpit.py has 2,898 lines,
  and the French free -g and the rid flood line are written in the tests, not
  in dashboard/tests/fixtures/.
- CONTRIBUTING.md: shell checks take every tracked script, ruff takes the
  listed files (engine-inputs.py and oc-merge-limits.py are only compiled).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-24 23:24:44 +02:00
Hasan Basbunar 2fdaa897e8 Merge branch 'fix/revue-v1.18.6' into worktree-agent-a97fa8f4c266976d5 2026-09-24 23:24:00 +02:00
Hasan BasbunarandClaude Opus 5.5 c068fe8b6d docs: the cockpit, flash and install pages brought to what the code does now
- docs/cockpit.md: the Image tab drives the image lane since v1.18.0, only
  Video says Coming soon; the fifth System One example has eight options,
  labelled A to H (two letters only start past 26); the relay binds the
  cockpit's own address when that is a LAN one, and a COCKPIT_BIND drop-in
  moves the page but not the relay, which keeps COCKPIT_AGENT_BIND.
- README: the Models row names the command that prints reclaim commands
  (./uninstall.sh, not --list); the concurrency tier's pool was measured at
  468,480 tokens, not a third of the context tier's (install.sh --help said the
  same, fixed with it); a flash install builds no overlay, a flash boot takes
  12 to 15 min (docs/flash-lane.md: 12 min 21 s fresh, 14 min 54 s rewriting),
  the retired overlay's files are a checked record, and --no-start skips the
  smoke test, the 1M fit, the cockpit and the image lane.
- ARCHITECTURE.md: the same boot time.
- docs/flash-lane.md: the flash context tier's opencode pair is 205K/32K.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-24 19:33:13 +02:00
Hasan Basbunar e321878fa5 Merge the docs zone of wave 2 (D1 to D13)
# Conflicts:
#	install.sh
2026-09-24 19:27:29 +02:00