* feat(providers): accept OpenCode 1.18.31-1.18.34 version range
- Replace the exact pin with inclusive _OPENCODE_MIN_VERSION /
_OPENCODE_MAX_VERSION triplets; _parse_opencode_version returns
a triple and both gates (preflight + auth check) share one
range predicate; prereleases and unparsable output still fail
closed; the debug-config subset check is untouched
- 14 new boundary cases: parse accept (.31-.34) / reject (.30,
.35, prerelease, garbage, empty); probe accept / reject; RED
witnessed on the exact pin before the cutover
- Verified: tests/provider 55 passed, 3 skipped (pre-existing
POSIX-only skips); ruff + format + diff-check clean; live
matrix .31/.32/.33/.34 all green (auth + preflight +
isolated live run + run --help diff)
- Ponytail review: lean, no findings
Signed-off-by: Yoseph Zuskin <zuskinyoseph@gmail.com>
Co-Authored-By: OpenCode Muse Spark 1.3 Free (1M context) <noreply@opencode.ai>
* fix(providers): answer range review with explicit version set
- Replace the MIN/MAX window with _OPENCODE_SUPPORTED_VERSIONS,
a frozenset of the 4 verified triples; the predicate is
membership, so a raised MAX can never silently admit an
unverified patch; error text keeps the 1.18.31-through-1.18.34
wording
- README + DEVELOPMENT list the verified releases; prereleases
fail closed
- Comments carry per-version evidence; TEST_HOME/MANAGED
overrides confirmed per window; gate documented load-bearing,
not belt-and-suspenders
- tests: predicate-call rewrites, frozenset membership pin,
fake-binary preflight at .30/.35 (RED: missing name)
- Verified: file 58/5, provider+unit 140/5, ruff clean
Signed-off-by: Yoseph Zuskin <zuskinyoseph@gmail.com>
Co-Authored-By: OpenCode Muse Spark 1.3 Free (1M context) <noreply@opencode.ai>
* fix(providers): widen verified OpenCode set to 1.19.3
- Add (1, 19, 1), (1, 19, 2), (1, 19, 3) to
_OPENCODE_SUPPORTED_VERSIONS; nine explicit triples, never a
range
- Evidence beside the set: per-release live matrix with exact
nonce replies, auth-list shape byte-identical, preflight PASS;
run --help byte-identical across 1.19.1-1.19.3 (sole delta vs
1.19.0: hidden --share flag, session sharing discontinued);
plugin packages pinned identically across 1.19.0-1.19.3 in
bun.lock and no in-tree plugin source changed (the check review
asked to keep next to the set)
- Boundary tests move with the edge: accept 1.19.1-1.19.3; reject
1.19.4 at parse, probe and preflight levels; set pin covers
nine
- Docs: README table + fail-closed note and DEVELOPMENT list nine
- Verified: provider + agent_cli suites 155 passed, 10 skipped;
ruff check + format and git diff --check clean
Signed-off-by: Yoseph Zuskin <zuskinyoseph@gmail.com>
Co-Authored-By: OpenCode Zen DeepSeek V4.1 Flash Free (200K context) <noreply@opencode.ai>
* fix(providers): widen verified OpenCode set to 1.19.4
- Add (1, 19, 4) to _OPENCODE_SUPPORTED_VERSIONS; ten explicit
triples, never a range
- Evidence beside the set: same live matrix with exact nonce replies,
auth-list and both --help surfaces byte-identical to 1.19.3, plugin
packages and in-tree plugin source unchanged from 1.19.3
- Boundary tests move with the edge: accept 1.19.4; reject 1.19.5 at
parse, probe and preflight levels
- Docs: README table + fail-closed note and DEVELOPMENT list 1.19.4
- Verified: provider suite 72 passed, 6 skipped; ruff check + format
and git diff --check clean
Signed-off-by: Yoseph Zuskin <zuskinyoseph@gmail.com>
Co-Authored-By: OpenCode DeepSeek V4.1 Flash Free (1M context) <noreply@anthropic.com>
---------
Signed-off-by: Yoseph Zuskin <zuskinyoseph@gmail.com>
Co-authored-by: OpenCode Muse Spark 1.3 Free (1M context) <noreply@opencode.ai>
Co-authored-by: OpenCode DeepSeek V4.1 Flash Free (1M context) <noreply@anthropic.com>
The _build_opencode_argv docstring still said the runner disables plugins;
only external plugins are off, the internal OAuth/provider plugins stay
enabled. The isolation test now also feeds an ambient
OPENCODE_DISABLE_DEFAULT_PLUGINS=1, which the sandbox must scrub so a user
environment cannot switch the OAuth logins back off.
Refs #809
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: elliottwaves-20 <pail1217@web.de>
OPENCODE_DISABLE_DEFAULT_PLUGINS=1 skips every internal OpenCode plugin.
In OpenCode 1.18.33 those plugins implement the OAuth logins (ChatGPT via
CodexAuthPlugin, Copilot, GitLab, ...) and only register auth and
chat.headers/chat.params hooks, no tools. With the flag set, an OAuth
login is never attached and every call fails with "Unexpected server
error", although the sandbox is meant to keep the user's existing login
usable. Tool access stays denied by the deny-all agent and
OPENCODE_PERMISSION, and external plugins stay off through --pure /
OPENCODE_PURE.
Fixes#809
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: elliottwaves-20 <pail1217@web.de>
- run_agent_cli maps the Zen FreeTierError envelope (403 under the
deny-all isolation, verified by env bisect, re-observed
live 2026-10-03) to a fail-closed AgentCLIError naming the
incompatibility and suggesting a key-backed model; plain non-zero
exits keep the generic message
- No sandbox weakening: refusal never falls back to a weaker policy
- Verified: 2 new cross-platform tests (fake Popen); file suite
43 passed / 3 skipped; ruff check + format + diff-check clean
Signed-off-by: Yoseph Zuskin <zuskinyoseph@gmail.com>
Co-Authored-By: OpenCode Muse Spark 1.3 Free (1M context) <noreply@opencode.ai>
- Bump _OPENCODE_SUPPORTED_VERSION 1.18.32 -> 1.18.33 plus all
version references (code comments, test fixtures, README pin
note, DEVELOPMENT); run --help flags identical across the bump,
no policy changes
- Live 1.18.33 evidence: nonce probe returns the exact echo with
unchanged envelope shapes (one additive part.metadata.openai.itemId
field, ignored by the parser); _preflight_opencode_policy passes
against the real binary (version gate + all 12 sensitive settings
+ agent deny, no auth or inference required)
- Verified: file suite 41 passed / 3 skipped; ruff + format clean
- Note: full provider-path inference stays blocked by the known
isolation x auth limitation (pre-existing, version-independent,
tracked separately)
Signed-off-by: Yoseph Zuskin <zuskinyoseph@gmail.com>
Co-Authored-By: OpenCode Muse Spark 1.3 Free (1M context) <noreply@opencode.ai>
- Bump _OPENCODE_SUPPORTED_VERSION 1.18.31 -> 1.18.32 plus all
version references (code comments, test fixtures, README pin
note, DEVELOPMENT); run --help flags identical across the bump,
no policy changes
- Verified: file suite 41 passed / 3 skipped; ruff + format clean;
version gate passes on real 1.18.32; raw default-model inference
returns the exact nonce with valid envelope
- Note: full provider-path inference stays blocked by the known
isolation x auth limitation (pre-existing, version-independent);
Groq llama-3.3-70b-versatile and llama-3.1-8b-instant are retired
server-side (404), use current IDs for future probes
Fixes#612
Signed-off-by: Yoseph Zuskin <zuskinyoseph@gmail.com>
Co-Authored-By: OpenCode Muse Spark 1.3 Free (1M context) <noreply@opencode.ai>
* feat(providers): verify OpenCode 1.18.31 for the deny-all policy
- Bump _OPENCODE_SUPPORTED_VERSION 1.18.30 → 1.18.31 plus all version
references (code comments, test fixtures, README pin note, DEVELOPMENT);
run --help flags identical across the bump, no policy changes
- Fix test_probe_rejects_unverified_version to use 1.18.99 as its
rejection case (it had hardcoded the new pinned version)
- Verified: provider suites 128 passed; ruff + format clean; live
self-scan on 1.18.31 via Zen free tier (opencode/mimo-v2.5-free):
llm_available true, 3/3 calls succeeded, 0 semantic findings
Signed-off-by: Yoseph Zuskin <zuskinyoseph@gmail.com>
Co-Authored-By: OpenCode Muse Spark 1.3 Free (1M context) <noreply@opencode.ai>
* test(providers): use a version outside both pins in deny-all test
- test_unverified_runtime_version_fails_before_inference faked 1.18.31
as its rejection case, which stopped failing once the pin bumped to
it (CI: DID NOT RAISE); fake 1.18.99 instead, wrong under both pins
Signed-off-by: Yoseph Zuskin <zuskinyoseph@gmail.com>
Co-Authored-By: OpenCode Muse Spark 1.3 Free (1M context) <noreply@opencode.ai>
---------
Signed-off-by: Yoseph Zuskin <zuskinyoseph@gmail.com>
Co-authored-by: OpenCode Muse Spark 1.3 Free (1M context) <noreply@opencode.ai>