Commit Graph
12 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 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 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 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 e321878fa5 Merge the docs zone of wave 2 (D1 to D13)
# Conflicts:
#	install.sh
2026-09-24 19:27:29 +02:00
Hasan BasbunarandClaude Opus 5.5 3651650fac opencode configs: edited the way opencode reads them, and only where they must be
opencode parses its config with jsonc-parser and allowTrailingComma (read in the
1.18.32 binary). oc-merge-limits.py understood whole-line // comments only, so a
comment at the end of a line, a /* */ block or a trailing comma made every edit refuse
behind install.sh's `|| true`, and --remove-providers left a provider reading the key
file uninstall.sh deletes (also when that provider was the last one under a comment
line). oc-point-default.py rewrote the whole file with json.dump at every install and
switch: non-ASCII escaped, one comment gave exit 3, a default pointed at another provider
replaced, no backup, written in place.

Both now read the file as opencode does, find each member by walking the document from
the root (not the first text match), check the edit reads back as exactly the intended
document, back up under a name no earlier backup has (five edits in one second kept one
backup, not the original), and replace the file in one step, keeping comments, line
endings, symlinks and mode. The default model follows the lane only when it is unset or
already this box's. install.sh's generator writes the served entry's final name, so the
generated config is no longer written twice per run.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-24 18:43:05 +02:00
Hasan BasbunarandClaude Opus 5.5 0942e4f46c docs: what binds where, what the proxy refuses, and what the cockpit really has
Checked against the code at 9a11cea and, for exposure, against the reference box
(engine on 127.0.0.1:30000, /metrics 200 with no key on :30000 and :30001,
/v1/models 401).

- DESIGN.md: the cockpit is installed by default since v1.12 and binds the
  tailnet address on a first install, not "opt-in, loopback".
- SECURITY.md, README, ARCHITECTURE.md, docs/operations.md: the engine is on
  loopback since v1.17, run.sh and ENGINE_BIND=0.0.0.0 are the two paths that
  put it on the network; the proxy has optional TLS and per-client identity
  since v6.16; /metrics is read through :30001, needs no key, and the image
  lane exports none; the flash lane's proxy, not the lane, is on every
  interface.
- docs/clients.md: no lane truncates; a prompt past the pool share or the
  flash ceiling is a 400 context_too_long, a 413 is only the body cap.
- docs/context-1m.md: pools measured 832,993 to 922,094 over sixteen boots,
  the static 1m pair's worst case is 923,863 (one agent step counted), a
  native re-install keeps the proxy.
- README: disk needs are the preflight's, per disk and summed for one disk;
  the one-liner serves 1M; the Operations code block is closed (it swallowed
  the next heading); the Logs and Setup rows list what the tabs do.
- docs/cockpit.md and install.sh: no bench job, canary battery, key panel or
  Benchmarks tab; reclaim commands come from ./uninstall.sh, not --list.
- docs/opencode.md, docs/clients.md: the variants are lean, low, medium and
  xhigh, lean being the default.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-24 18:21:51 +02:00
Hasan BasbunarandClaude Opus 5.5 7a8d0afdd7 v1.18.7: a full review of v1.18.6, and the defects it found fixed with a test each
- 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>
2026-09-24 13:40:38 +02:00
Hasan BasbunarandClaude Opus 5.5 21ecc040e4 Fixes found by a real uninstall and a real first install on the reference box
- oc and the Agent tab load the box's generated opencode config through
  OPENCODE_CONFIG: on a box emptied and installed with the published
  one-liner, both answered with opencode's hosted free model (big-pickle),
  not the model the box serves.
- uninstall.sh --yes takes the providers that read the API key out of
  opencode's config before deleting the key (opencode refused to start at
  all: "bad file reference"); a file with nothing else of the user's goes to
  a backup (oc-merge-limits.py --remove-providers).
- The uninstall inventory knows the image lane's checkpoint (31 GB), and the
  CI gate on inventory pins reads install-image.sh too.
- The docker room check asks only for the container's room when the image is
  already here (an update with 36 GB free was refused for want of 40).
- A commented-out opencode PATH line no longer counts as one.
- uninstall.sh says when there was nothing to remove.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-23 17:43:37 +02:00
Hasan BasbunarandClaude Opus 5.5 f89f4f31c2 install: a fresh box's opencode gets a config, and a lane added later its provider
- A box with no ~/.config/opencode/opencode.json gets this repo's (it was a
  printed cp: a first install left opencode answering "Provider not found:
  qwen38"). A config that exists is never overwritten.
- A config with one of this repo's providers gains the provider of a lane
  installed since (oc-merge-limits.py --add-providers: targeted edit, backup,
  read back and compared, restored if anything else moved). The 27B first and
  the flash lane later left opencode sending the 27B's limits to the flash lane.
- A missing opencode is said plainly where a first-time user meets it: the
  installer's step 7 and last lines, the oc launcher, the cockpit's Agent tab.
- The last lines name a command the user's shell can run, and the config
  opencode actually reads.
- CI: the unittest step prints what failed instead of dying silently.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-23 15:17:30 +02:00
Hasan BasbunarandClaude Opus 5.5 caa596ad79 opencode is pinned: the same tested version on every box, and it stops drifting
Until now the repo installed no opencode: it took whatever was on PATH, and
opencode installs its own patch releases unless "autoupdate" says otherwise
(read out of its binary: only false, "notify" or a minor/major release stop
it), so two boxes installed a week apart ran two versions. The reference box
sat on 1.18.27 while 1.18.32 was out. Four things the repo does were read out
of one opencode binary and checked against its behaviour: the compaction
threshold oc-fit-limits.py sizes for, the hidden 32,000-token output cap the
oc launcher lifts, the overflow phrases the proxy answers with so a refusal
makes opencode compact, and --yolo / OPENCODE_PERMISSION for the Agent tab.

OPENCODE_VERSION=1.18.32 with OPENCODE_SHA256, GitHub's digest of
opencode-linux-arm64.tar.gz. Checked against 1.18.27 before pinning: the 21
overflow phrases and 3 exclusions verbatim in both binaries; max_tokens
182,000 with the launcher's variable and 32,000 without, on both, recorded
on a fake OpenAI endpoint with isolated config, data and cache; the code
around compaction and OPENCODE_PERMISSION identical once the bundler's chunk
names are set aside; serve --hostname and the hidden --yolo on both.

install.sh, step 7: none found, the release asset is downloaded, checked
against its sha256 and installed where opencode's own installer puts it,
with its PATH line in ~/.bashrc; an older one there is replaced the same
way; an older one from npm, brew or bun goes through `opencode upgrade`,
which knows its method; a newer one is kept and said so, because going back
a version can leave sessions a newer opencode wrote unreadable. A download
that does not match is not installed, a version without its checksum is
refused, and nothing about opencode fails the rest of the install.
OPENCODE_PIN=0 keeps whatever you have. The generated config and the user's
get "autoupdate": "notify" (oc-merge-limits.py --autoupdate, a targeted edit
that keeps comments; a stricter false is kept).

The Agent tab says when the opencode it serves is not the pinned one, read
from install.sh so the two cannot disagree. uninstall.sh lists an opencode
this repo installed and leaves it. CI downloads the pinned asset and checks
its sha256 on every run (and fails with a wrong one, checked).

docs/opencode.md said the 1M starting pair sits under the worst measured
pool; it does not (832,993 to 922,094 over sixteen boots), which is why it
is fitted after each boot.

Tests: eleven on the installer's own lines in a throwaway HOME with a fake
curl and fake opencode binaries (absent, pinned, older in place, older from
npm, newer, bad checksum, pin off, version without checksum), the merge, and
the cockpit's read of the pin. The checksum, no-downgrade and opt-out guards
were each undone once and their tests failed. CI 61/61.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-23 14:40:19 +02:00
Hasan BasbunarandClaude Opus 5 719c17b947 docs: the README becomes an entry point, and its numbers are checked against the record
1,045 lines, one door, and the only way to find anything was to scroll. It is 509
now: what this is, the seven targets with their measured headline, how to install
it, what speed and quality to expect, the targets and the switch, the tools, the
cockpit in short, and an index table naming every other file and the question it
answers. Seven sections moved out whole, each to its own file under docs/, each
leaving a summary and a link behind: the 1M context mode, the flash lane, the
cockpit tour, operations and upgrades, the opencode integration, the GB10 memory
trap in full, and where each lane stands against upstream.

The split was checked line by line against the file it came from. Of 1,045 lines,
the only ones with no verbatim equivalent in the new README or in one of those
files are the 32 rewritten on purpose, and each of those is a correction:

- the headline said 65 tok/s for the 27B lane, which is the v1.9 figure. v1.14.0
  measured 71.4 on the release image this lane has served since 2026-09-17, in the
  same campaign that measured 69.8 on the image it replaced. Title, target table
  and speed section now say 71.4 and name the campaign behind each number.
- the memory section read as though the installed fraction were 0.50, which is the
  native-mode and ./run.sh value. The 1m mode has been the default since v1.12.1
  and runs 0.76. Both are stated now, each with its mode.
- the KV pool comparison published three boots against two. The engine journal has
  eleven for that day, six and five: 517,184 to 566,016 against 482,560 to 510,592.
  The ranges still do not overlap, by 6,592 tokens at their closest, but the gap on
  the means is 9.6% and not the 6% published from the subset. README, BENCHMARKS and
  the v1.14.1 entry all carry the full set now.
- two citations pointed at text that is not there: the README claimed a flat-memory
  result was "quoted elsewhere in this README" when it lives in BENCHMARKS.md, and
  keepalive-proxy.py justified its 92% usable share by quoting a README line about a
  178,560-token pool that no longer exists anywhere. Both now name where the number
  actually is. Neither was caused by this release; both survived because nothing
  checks a quoted section title.
- the flash lane's quality is in the README as measured rather than as adjectives:
  GSM8K 97.41% over all 1,319 questions, MMLU 500 at 90.8%, HumanEval 164 pass@1 at
  95.73%, tool calling 15/15 with reasoning off and on, needle 2/2 at 120K and 200K,
  conc-check 40/40 serial and 80/80 at four concurrent.

evals/ ships the two drivers, because two of those numbers could not be reproduced
from this repo. The image's run_eval --eval-name mmlu shells out to an sgl-eval
binary it does not ship, and its HumanEval path needs a package that is not there
and then dies in os.fork against the image's filelock. Six gates hold what makes
them work, with a stub sglang and no network: the score line a caller greps, the
dataset MMLU is measured against, spawn rather than fork, and one sample per task
instead of the harness default of five, which at temperature 0 is the same answer
five times.

ARCHITECTURE.md gains the two directories it did not describe and tools-check.py in
its table of instruments. TESTING.md gains a 2026-09-19 column counted mechanically
on both commits: 34 test files against 20, 587 test functions against 442, 55 CI
steps against 38. docs/flash-lane.md records the one boot in thirteen that died at
CUDA graph capture on 2026-09-18, because a failure that costs twelve minutes and
explains nothing belongs written down even when it happened once.

Local CI: 56 steps, 55 ok, the socket gate failing on this serving box because
other processes cycle ephemeral listeners during the suite, which is the case its
own message describes. Both suites green: 223 and 370.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-19 12:55:10 +02:00