The code review of v1.56.0 found that OPENCODE_PIN=0 (docs/opencode.md: keep whatever opencode
you have) with the user's own 2.x served OpenCode 2 but wrote no marker, so every tool that reads
~/.config/qwen38/opencode.major took the box for a 1.x one: the Agent tab's retry command died on
"OpenCode 2, which this box did not choose", and switch-model.sh, vllm-lane.sh and
oc-fit-limits.py wrote the v1 compaction keys into the v2 config. Such a box now gets the marker
"2", which is the default and moves nothing at a later run; a 1.x of the user's, or no opencode
at all, still gets none. Test red on the old code (no marker), green now with the 74 of the suite.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The code review of v1.56.0 found that a box with an npm or Homebrew opencode 1.x earlier on the
PATH than ~/.opencode/bin kept running that 1.x after its move to OpenCode 2: the v2 oc launcher
and dashboard/install-agent.sh both took `command -v opencode`, so oc ran 1.x with --auto and the
Agent unit rendered 1.x over a config it cannot read, although the crossing NOTE says the Agent
unit takes the installed copy. Now oc takes ~/.opencode/bin/opencode first (the PATH only when it
is absent) and install.sh hands install-agent.sh the binary it chose (OC_FOUND). Two tests, red on
the old code (the launcher ran the 1.x; the calls passed no binary), green now with the 158 of the
install, Agent and cockpit suites.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The file taken out of plugins/ is removed only when it is byte-for-byte the copy this
repo delivers (cmp -s against extras/opencode); a copy the operator edited is moved to
~/.config/opencode/<name>.kept-AAAAMMJJ (never over an earlier kept copy), where no
major loads it (2.3.2 scans only plugin/ and plugins/ under the config root,
plugin/source-directory.ts; 1.19.6 globs {plugin,plugins}/*.{ts,js}, config/plugin.ts),
and a NOTE names the kept path. Both directions (to 2 and back to 1.x).
Generated by Mistral Vibe.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Since v1.56.0 (decision 1546) OpenCode 2 is the default, so the cockpit's opencode_pinned
falls back to the 2.x pin when neither the binary nor the marker speaks: a box installed
before v1.56.0 (no marker) is told the version a plain ./install.sh brings, and its Agent
tab says ./install.sh brings it in line. A marker "1" still names the 1.x pin, so a box
that chose --opencode 1 is not nagged. install-agent.sh keeps its stray-2.x refusal (a
marker 1 or no marker with a 2.x binary on the PATH) and its message now says that a
plain ./install.sh serves OpenCode 2 since v1.56.0; its no-marker fallback stays 1, since
a markerless box is one a pre-v1.56.0 release installed. switch-model.sh's comment says
the marker holds 1 or 2. The two new tests failed on the previous code; 66 + 8 green after.
Generated by Mistral Vibe.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A box moved to OpenCode 2 by the default (decision 1546) gets its migration spelled out:
when the operator had the v1 auto-continue plugin installed, the v2 port goes in its place
and the v1 file comes out (2.x does not run it), and going back to 1.x restores the v1
file, guarded by OC_WAS_2 like the config rollbacks. A box that installed no plugin is
left alone. The end of the install says plainly what happened: "moved to 2.3.2; to go
back: ./install.sh --opencode 1", only when the box served 1.x before the run and serves
2 now. The configs, the Agent unit and the oc launcher already follow OC_SERVE_MAJOR.
The three new tests failed on the previous code (plugin swap both ways, migration
message); 66 tests green after.
Generated by Mistral Vibe.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Decision 1546 (2026-11-20) replaces the opt-in (445): a plain ./install.sh serves the
pinned OpenCode 2 (OPENCODE2_VERSION), and so does the first update of a box installed
before v1.56.0, whose marker does not exist yet. --opencode 2 stays accepted; --opencode 1
pins the box back to the 1.x pin and writes the marker "1", so a later update without
the flag keeps it on 1.x. The marker now records the major either way, written only once
a matching binary stands (a failed download still writes nothing). OC_START_MAJOR keeps
the major the box served before the run, for the end-of-install migration message.
The no-flag test changes meaning: without the flag the run is the v2 run (CHOICE=2,
marker 2), a box marked 1 stays 1 on a plain update, and a stray 2.x on a no-marker box
is replaced by the pin. Each new test failed on the previous code (7 red, shown in the
session journal); 61 tests green after.
Generated by Mistral Vibe.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
3fc3e686 appended the --opencode flag tests after a second __main__ block, so a
direct run exited at the first one and the four tests of TheOpencodeMajorFlag
and TheNoFlagRunIsTheV154Run never ran (the offline suite's declared-vs-ran
check caught it: 51 of 55). One __main__ block, at the end of the file.
Generated by Mistral Vibe.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A host that never chose OpenCode 2 (no marker at the start of the run)
with a "permissions" table of its own in its global config got a NOTE on
every install: the removal tried, refused (the array is not the one this
repo wrote), and said so, though nothing was written. The removal now
carries the same OC_WAS_2 guard as the compaction-keys rollback below it,
so a host that never chose 2 is not even asked. Blind review 2026-11-20,
D4.
Test: test_a_host_that_never_chose_2_is_not_even_asked fails on the old
code (NOTE printed, run as the CI runs it: python3 tests/<file>).
Generated by Mistral Vibe.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Blind review of 2026-11-20, D2/D3: a download that fails while the run
crosses majors (1 to 2 or 2 to 1) used to leave the chosen major in
OPENCODE_MAJOR while the old binary kept running, so the rest of the run
wrote configs, the unit and the launcher for the wrong major: going 2 to
1 with GitHub down rewrote the generated config with v1 keys the 2.x
server does not read (the aliyuncs and cloud-metadata denies fell), and a
host that chose 2 with a 1.x binary back in place got the v2 "permissions"
array written into both configs, which 1.19 refuses to start on.
Now OC_SERVE_MAJOR is the major of the binary that stands after step 7
(the choice except when a crossing download failed), and everything
downstream follows it: the v2-key rollbacks, the generated config OC_MAJOR,
--deny-permissions on the user config, the oc launcher, both
install-agent.sh calls (the unit) and the final summary. The marker is
still written or removed only when a binary of the chosen major stands,
so a failed crossing does not touch it and a re-run repairs. The failure
message now says what really serves (version and path of the binary in
place), that nothing was written for the other major, and the exact
re-run command.
Tests: TheFailedCrossingServesWhatStands (D2: marker 2 + binary 2.3.2 +
--opencode 1 + failed download keeps serving 2, marker and denies
untouched; D3: marker 2 + binary 1.19.0 + failed 2.x download keeps
serving 1, our permissions array out of the global config, v2 compaction
keys out of both configs, marker left at 2 so a plain re-run retries) and
TheGeneratedConfigFollowsTheBinaryThatStands (serve 2 keeps the v2 keys
and the denies, serve 1 writes no v2 key at all). All five fail on the
old code, run as the CI runs them (python3 tests/<file>, cwd=repo).
Generated by Mistral Vibe.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The v2 install writes OpenCode 2's compaction block (keep.tokens + background) into
the generated config and into the user's global opencode.json, and --opencode 1 left
both keys there (the reference box's user config still held them after the 2026-11-20
proof, until cleaned by hand). A run that goes back to 1.x on a box that was in 2
(the opencode.major marker said 2 at the start of the run, read before it is removed)
now runs oc-merge-limits.py --remove-compaction-v2 on both configs: exactly keep and
background come out of the compaction block, the v1 keys and everything the user put
there stay, and a box that never chose 2 is not touched at all (no write, no backup).
Tests red on the old code: the merger's new mode (removes only those two keys, no-op
without them), and the installer's rollback block run in a throwaway HOME against both
configs, plus the marker read that says whether the box was in 2.
Generated by Mistral Vibe.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Since 2.3.1 OpenCode 2 reads CLAUDE.md of every directory without AGENTS.md, and
~/.claude/CLAUDE.md as the global fallback, into every prompt (source v2.3.2:
packages/cli/src/server-process.ts reads OPENCODE_DISABLE_CLAUDE_CODE_PROMPT at server
start for instructions.claude; documented in docs/instructions and migrate-v1). Measured
on the pinned 2.3.2 in a sandbox (/var/tmp/ocv2-bac-e56, fake server, canary key): with
the project's CLAUDE.md and the HOME one in place, both markers land in the system
message of every request, for run and for serve; with
OPENCODE_DISABLE_CLAUDE_CODE_PROMPT=1 both are gone and /api/info answers 200 JSON. On a
box ~/.claude/CLAUDE.md is the owner's private file, which must not leave in every Agent
tab prompt.
So the v2 render of opencode-web (the CAP_LINE block of install-agent.sh, which the 1.x
render does not share) now carries Environment=OPENCODE_DISABLE_CLAUDE_CODE_PROMPT=1, and
the v2 oc launcher exports it with a :-1 default (0 is not truthy for opencode, so the
user can bring the files back by hand). The 1.x unit and launcher are byte-identical to
before. Tests red on the old code: the v2 unit carries the line, the v1 unit does not;
the v2 launcher exports it to the child and yields to an explicit 0, the v1 one does
not.
Generated by Mistral Vibe.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- OPENCODE2_VERSION/OPENCODE2_SHA256: 2.3.2 with GitHub's digest of its arm64 asset
(read on the API the 2026-11-20); the 2.3.0 facts stay dated as measured, the delta
is re-measured before any default change
- docs/opencode.md: the tested 1.x is 1.19.6, the pinned 2.x is 2.3.2
- CHANGELOG: the v2 opt-in in an Unreleased section ahead of the published v1.54.0
- tests: the v1.54 opencode block is a fixture, and a run without --opencode is run
side by side with today's block: same answers, same files, no marker (decision 445);
the collector tests read both pins from install.sh instead of holding 1.19.5/2.3.0
Generated by Mistral Vibe.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- the flag parser is a while loop: ./install.sh --opencode 2 reaches the choice (the for-loop's
shift let "2" fall to the catch-all and the whole opt-in was unreachable), and --opencode with no
value is refused by the parser (finding 1)
- a cross-major run whose pinned download fails keeps the box on the major it chose, serves nothing
as the other major and writes no marker (finding 2)
- the rollback to 1.x speaks: a foreign "permissions" array, which the merger of the box refuses to
take out, is said with the way back rather than left to break OpenCode 1.19 in silence (finding 3)
- install-agent.sh reads the box's opencode.major marker when the environment is empty: a standalone
re-run (the retry hint, docs/cockpit.md) renders the profile the box serves (finding 4)
- the relay asks for identity encoding (a gzip answer on a credential route could only be a 502 the
browser never understands), classifies the secret paths on the NORMALIZED target (spelling walked
around the scrub and the key reached the browser), and a JSON 200 that is not an object is
unhealthy, not an exception out of the Agent panel (findings 5, 6, 8)
- one matcher, one probe table: oc-permissions.py holds the server's grammar as measured on the
2.3.0 binary and read in its bundle (star, single-character question, literal brackets and dot,
whole-text match), agent_relay._v2_wild and oc-merge-limits._wild both delegate to it, and the
cockpit's guard line probes mod.deny_probes(), the installer's own texts (finding 7; the ?
discovery means the old star-only relay matcher could have called a hijacked guard ok)
- report: ~/qa-tools/wildcard-measure-report.md (agent-measured today, sandbox /var/tmp/oc2-230-wildcard)
Tests: the argument loop, the stray-binary fallback, the rollback speech, the marker-standalone run,
the two matchers' equality, the guard probes, the odd spellings, the identity ask, the lying gzip,
the list-answer health. F10 (double import of the merger in cockpit) left as a proposal.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Both assets match GitHub's digests (arm64 5b68c1f4, x64 47734e08 in agent-bench.mjs). The 21 overflow
phrases and 3 exclusions are there, plus two (request body too large, multimodal data size is too large);
max_tokens, headers, default permissions, --yolo as --auto, masked keys, sessions both ways and the
aliyuncs.com refusal are as in 1.19.5. Refusals shaped like the proxy's (413 over the cap, 400
context_too_long) are compacted and sent again by both; a bare 400 "Request body too large" now is too.
agent-bench.mjs: 34 of 34 with 1.19.6. The real clients on a lane remain for after the GTA session's
priority.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1.19.4 skipped the password check for a request whose path matched the pattern of the terminal's
connect route and carried a ticket, leaving the ticket to that route's handler. 1.19.5 skips it only
when the server dispatches the request to that handler (anomalyco/opencode#58258). It also answers a
request of the TUI's worker that fails instead of leaving it waiting, updates the package of GitLab's
provider, which this repo does not use, and otherwise removes unused code.
Checked against 1.19.4 side by side on 2026-10-30: the overflow phrases and exclusions are the same
block byte for byte, max_tokens 32,000 and 182,000 on a fake endpoint with the same headers, the same
default permissions, --yolo still read as --auto, keys still masked, sessions read both ways, the
Agent tab through a copy of the relay with its terminal and its phone layer, and a shell command
naming an aliyuncs.com host refused under --yolo and under AGENT_AUTO's permission when a fake
endpoint asked for it. On the box's FP4-Local lane both sent the same request shapes, read
hello.txt with a tool and answered 7351. The x64 digest is GitHub's, checked against the download.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Found in the second review. The check that the rules held probed each
pattern, so a key after the block that allows only some commands
("bash": {"curl *": "allow"}) was not seen, and a curl to an
aliyuncs.com host stayed allowed: the block has to be the last key, as the
check after a write already required. The copy a fresh box gets carries
the rules of the generated config, so it no longer runs --deny-bash, which
said "hold already" on every first install.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Found in review. --deny-bash called rules "already there" that a key added
after them overrode, and it rewrote the user's own "bash". The rules now
live under "bash*", a wildcard that matches the shell tool, as the last
member of "permission": in the config install.sh generates, which oc and
the Agent tab load over the user's own, so they come after the user's rules
whatever those say, and put last again in the global config plain opencode
reads when it is this repo's. AGENT_AUTO repeats them under "*bash": with
the box's own global config, which has no "*", the bare value still came
last (checked with opencode debug agent).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
install.sh runs --deny-bash on the box's own opencode config, the one
opencode, oc and the Agent tab all read, and tells a user's own config the
rules to add. AGENT_AUTO=1 put a bare {"*":"allow"} after every rule of
the config, under which an echo naming an aliyuncs.com host ran on the box:
the unit now repeats the rules after it, and the cockpit still reads it as
auto.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1.18.35 runs on Bun 1.3.14, without the fix, and the agent's web fetch decodes whatever a page
sends (both read in their binaries). 1.19.4 was checked against 1.18.35 side by side: the same
overflow phrases, max_tokens 32,000 and 182,000 with the same headers, the compaction,
permission, flag and request code unchanged, keys still masked, sessions read both ways, no
update check and no OpenCode 2 offer with autoupdate false, and an engine holding its headers
320 s waited for through the proxy. The test of a newer opencode now takes a version past
whatever the pin is (1.18.40 is older than 1.19.4).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
For Homebrew opencode's upgrader runs brew upgrade, which installs the formula's own version
whatever version it is asked for, and Homebrew Core's formula is OpenCode 2 now (2.1.2 on
2026-10-22): up to 1.19.1 an update put OpenCode 2 under oc and the Agent tab. opencode's own
tap (anomalyco/tap, sst/tap before the project moved) stays on 1.x and still goes through the
upgrader: the keg's install receipt says which (source.tap), and a keg whose receipt names no
tap is kept. The pin tests clean their homes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With any value but false, opencode 1.19 checks for a release every 10
minutes and, once on the newest 1.x, shows "/update to upgrade to
OpenCode 2.0" on its TUI's home screen (cli/upgrade.ts, home.tsx), and
1.18.35 announces 2.x as soon as GitHub's latest release is one.
OpenCode 2's server is not the 1.x `opencode serve` the Agent tab's
relay is written for. Only false or OPENCODE_DISABLE_AUTOUPDATE turn the
check off. oc-merge-limits.py now writes the JSON boolean, and refuses a
value opencode's schema does not take: the old code wrote the string
"false", which that schema refuses.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
The CI's own /tmp audit (a full ci-local.sh run, everything created
since its start) still found files: the cockpit unit rendered by
dashboard/install-dashboard.sh, the image smoke's curl output, and
cockpit config directories with a one-byte api-key.
dashboard/install-dashboard.sh, dashboard/install-agent.sh and install.sh
render each unit (and the flash launch script) into a mktemp file and
removed it only on the way that succeeds; a run that stopped in between,
as several tests make it, left it in /tmp. An EXIT trap now removes it
however the script ends (install.sh: forget_rendered, which keeps the
exit status, checked with a run that ends 0 and one that ends 1).
tests/test_image_smoke_says_why.py ran install-image.sh's smoke block,
whose trap is set further up the script, with an environment that had
no TMPDIR: it passes the test's own directory now, and removes it.
tests/test_install_opencode_pin.py made the cockpit's config directory
inside a child with no TMPDIR: the test makes it, passes it, removes it.
dashboard/tests/smoke-http.sh (run by hand) also removes its second
cookie jar, which holds a cockpit session.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
With any one DRAFT2_* passed, the other three fell back to the defaults: DRAFT2_TOKENS=8 on
a box serving the BF16 draft moved it to the NVFP4 one. Each follows the unit unless it is
passed, the revision and quantization only with their repo. A pin a release replaced kept
its qwen38-pinned tag, so its 30 to 39 GB image survived every prune: the lane's other tags
go once its current pin is tagged, unless a container uses them. A df that failed under
pipefail ended the install before its "found unknown GB" message. An OPENCODE_VERSION
without its sha256 is refused before step 1, not at step 7. The download hint names
DRAFT2_REV, not the retired DRAFT_REV, and a disk comment gives the sizes the code asks.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
- 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>
- 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>
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>