From c8331d62467032ae1577a376cc0ef8fc5321e6ec Mon Sep 17 00:00:00 2001 From: Hasan Basbunar Date: Fri, 20 Nov 2026 12:19:20 +0100 Subject: [PATCH] opencode 2: no private path of the reference box in the repo, and the v1.56.0 notes in MB and GB Three comments and two lines of the notes pointed at the maintainer's local study files; they now say where the facts were measured (a sandbox and a proof on the reference box). The v1.56.0 section's sizes use MB and GB, as its neighbours do. Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 21 ++++++++++----------- install.sh | 3 +-- oc-permissions.py | 4 ++-- tests/test_install_agent_v2.py | 3 +-- 4 files changed, 14 insertions(+), 17 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fb991638..917d0cd4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -42,13 +42,12 @@ GitHub is reachable to install the pin. oversized, cut) with a 502, classifies a path only after normalizing it (`/api//config`, `/foo/../api/config`), answers 401 without the session cookie, and drops `accept-encoding` only on those secret routes. -- **Measured on 2.3.2.** the 2.x facts were first measured on 2.3.0 (2026-11-13 to 15, - `~/qa-tools/opencode-v2-migration/reprise-20261114/MESURES.md`); the delta to 2.3.2 was re-measured - in a sandbox before the pin moved (`~/qa-tools/opencode-v2/plan-20261120/sorties-232`). -- **Proven on the reference box (2026-11-20, 09:05 to 09:14, rc=0, - `~/qa-tools/preuves/ocv2/preuve.log`).** `./install.sh --opencode 2` from the branch (38f0ad96, the - commit the journal names) ran rc=0 (09:05:47 to 09:07:20), 249 Mo received, the Hugging Face cache - +0 Mo (568.98 Go), opencode 2.3.2 in place with the marker at 2, the unit serving "opencode v2.3.2" +- **Measured on 2.3.2.** the 2.x facts were first measured on 2.3.0 in a sandbox on the reference box (2026-11-13 to 15); the delta to 2.3.2 was + re-measured in a sandbox before the pin moved. +- **Proven on the reference box (2026-11-20, 09:05 to 09:14, rc=0 in the proof's + journal).** `./install.sh --opencode 2` from the branch (38f0ad96, the + commit the journal names) ran rc=0 (09:05:47 to 09:07:20), 249 MB received, the Hugging Face cache + +0 MB (568.98 GB), opencode 2.3.2 in place with the marker at 2, the unit serving "opencode v2.3.2" on 127.0.0.1:4096, loopback only, the 27B untouched (still revision 52d1adc5f38aa5ebf099c29ed7025ba34cfbb854 of RadixArk/Qwen3.8-27B-NVFP4). The relay on :30091 answered 401 without the cookie and `/api/info` 200 JSON version 2.3.2; seven GET routes answered @@ -61,11 +60,11 @@ GitHub is reachable to install the pin. and 0 once those 2 entries were removed from a copy of that config. A 4-turn v2 session through the relay took 5.8 s, 5.6 s, 3.5 s and 3.5 s per turn, the prefix-cache share of each prompt 0.9971, 0.9953, 0.9982 and 0.9955 (verdict `part_cache_tours_2a4` [0.9953, 0.9982, 0.9955]). - `./install.sh --opencode 1` ran rc=0 (09:09:10 to 09:10:38), 164 Mo received, cache +0 Mo - (568.98 Go), back on 1.19.6 with the marker gone and no v2 key left in either config, `compaction` + `./install.sh --opencode 1` ran rc=0 (09:09:10 to 09:10:38), 164 MB received, cache +0 MB + (568.98 GB), back on 1.19.6 with the marker gone and no v2 key left in either config, `compaction` back to `{"preserve_recent_tokens": 135000, "prune": false}`, and the live client check answered 7351 (rc=0, 17 s). Reinstalling from the published clone (stable, tag v1.55.0) ran rc=0 (09:11:56 - to 09:13:22), 1 Mo received, cache +0 Mo (568.98 Go), the sha256 of the units and configs identical + to 09:13:22), 1 MB received, cache +0 MB (568.98 GB), the sha256 of the units and configs identical to before (44 entries compared, empty diff), no banner; the box ended on 1.19.6, marker absent, the 27B stock. - **The tests.** the opencode v2 suites run green the way the CI runs them, each file on its own with @@ -77,7 +76,7 @@ GitHub is reachable to install the pin. scripts `test_oc_jsonc_edits.py`, `test_oc_fit_compaction.py`, `test_oc_merge_limits.py`, and in `dashboard/tests/` `test_agent_relay.py` (62), `test_agent_relay_session.py` (3), `test_cockpit_agent_collector.py` (7), `test_cockpit_opencode_config.py` (3): 316 tests plus 3 - scripts, 0 failure, 0 skipped (`~/qa-tools/logs/ocv2-v155-516ffddc.log`). Each defect the review of + scripts, 0 failure, 0 skipped (the test journal of 516ffddc). Each defect the review of this branch found (D1 to D7) has a test that fails on the code before its fix, shown with its output in that journal; the suites that read this CHANGELOG were re-run on this release's tree, in the gate journal of this commit. diff --git a/install.sh b/install.sh index b2e542ff..1e062e39 100755 --- a/install.sh +++ b/install.sh @@ -525,8 +525,7 @@ OPENCODE_PIN="${OPENCODE_PIN:-1}" # of 2026-10-22: prove it as an option first). From v2.2.0 GitHub publishes release assets # again (checked on the API the 2026-11-14), so the same recipe pins it: the arm64 asset # opencode-linux-arm64.tar.gz by its GitHub digest. Four things were read out of the 2.3.0 -# binary and the sandbox of 2026-11-14 (/home/hasan/qa-tools/opencode-v2-migration/ -# reprise-20261114/MESURES.md): serve refuses --log-level in capitals and dies at boot +# binary and a sandbox on the reference box (2026-11-14): serve refuses --log-level in capitals and dies at boot # (lowercase passes); OPENCODE_PERMISSION and OPENCODE_EXPERIMENTAL_OUTPUT_TOKEN_MAX are # gone (the answer is the ordered "permissions" array and OPENCODE_CONFIG_CONTENT, merged # last), the health probe must be GET /api/info (every unknown path, /global/health diff --git a/oc-permissions.py b/oc-permissions.py index 2c6a7cb0..cb9f794a 100644 --- a/oc-permissions.py +++ b/oc-permissions.py @@ -1,7 +1,7 @@ """The OpenCode 2 permission matcher, as its server applies it. -Measured on the box's 2.3.0 binary and read in its bundle on 2026-11-15 (the case table in -~/qa-tools/wildcard-measure-report.md): backslashes read as slashes on both sides, "*" matches any +Measured on the box's 2.3.0 binary and read in its bundle on 2026-11-15 (a case table measured on the +reference box): backslashes read as slashes on both sides, "*" matches any run, "?" matches EXACTLY one character, everything else is itself, the dot and the brackets included (a deny for "*co[nm]*" therefore matches only a command that writes those brackets), and the pattern must cover the whole command text (a bare "aliyuncs.com" matches nothing longer). diff --git a/tests/test_install_agent_v2.py b/tests/test_install_agent_v2.py index 87ad1d67..7b4ec9b6 100644 --- a/tests/test_install_agent_v2.py +++ b/tests/test_install_agent_v2.py @@ -1,8 +1,7 @@ #!/usr/bin/env python3 """install-agent.sh renders a unit for OpenCode 2 that can actually start and answer. -The 13/11-14/11 measurements on 2.3.0 (/home/hasan/qa-tools/opencode-v2-migration/ -reprise-20261114/MESURES.md) settled four facts this file pins down as tests: +The 13/11-14/11 measurements on 2.3.0, in a sandbox on the reference box, settled four facts this file pins down as tests: serve refuses --log-level in capitals (the 1.x unit line would never boot), reads neither OPENCODE_PERMISSION nor OPENCODE_EXPERIMENTAL_OUTPUT_TOKEN_MAX (dead lines lie to the operator), always names its Basic user "opencode" (a box installed in 1.x times must have