Commit Graph
3 Commits
Author SHA1 Message Date
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