You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit d162d9b
Browse filesBrowse the repository at this point in the historyBrowse files
feat(providers): verify OpenCode 1.18.31 for the deny-all policy (#575)
* 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 <[email protected]>
Co-Authored-By: OpenCode Muse Spark 1.3 Free (1M context) <[email protected]>
* 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 <[email protected]>
Co-Authored-By: OpenCode Muse Spark 1.3 Free (1M context) <[email protected]>
---------
Signed-off-by: Yoseph Zuskin <[email protected]>
Co-authored-by: OpenCode Muse Spark 1.3 Free (1M context) <[email protected]>
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -242,7 +242,7 @@ inference gateways.
242
242
|`claude_cli`|_(none — uses local CLI auth)_| local `claude` binary | local Claude runtime fallback, or `SKILLSPECTOR_MODEL`|
243
243
|`codex_cli`|_(none — uses local CLI auth)_| local `codex` binary | local Codex runtime fallback, or `SKILLSPECTOR_MODEL`|
244
244
|`gemini_cli`|_(none — uses local CLI auth)_| local `gemini` binary | local Gemini runtime fallback, or `SKILLSPECTOR_MODEL`|
245
-
|`opencode_cli`|_(none — uses local CLI auth)_| local `opencode` 1.18.30 binary | local OpenCode runtime fallback, or `SKILLSPECTOR_MODEL`|
245
+
|`opencode_cli`|_(none — uses local CLI auth)_| local `opencode` 1.18.31 binary | local OpenCode runtime fallback, or `SKILLSPECTOR_MODEL`|
246
246
247
247
```bash
248
248
# Stock OpenAI
@@ -633,7 +633,7 @@ Issues (2)
633
633
634
634
> **CLI providers** (`claude_cli`, `codex_cli`, `gemini_cli`, `opencode_cli`): No API key is needed. Authentication is managed entirely by the agent CLI's own login session. SkillSpector never reads or forwards API keys when these providers are active. The subprocess is run with capabilities restricted, and untrusted skill content is delivered only via stdin.
635
635
>
636
-
> `opencode_cli` currently fails closed unless the installed OpenCode version is exactly `1.18.30`, the version whose configuration precedence and deny-all semantics are verified by this release.
636
+
> `opencode_cli` currently fails closed unless the installed OpenCode version is exactly `1.18.31`, the version whose configuration precedence and deny-all semantics are verified by this release.
Copy file name to clipboardExpand all lines: docs/DEVELOPMENT.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -345,7 +345,7 @@ Base URL env vars are not needed for live provider tests; the tests intentionall
345
345
-`claude_cli/` — **local `claude` binary; no API key**. Uses the CLI's own auth session (`claude auth login`). Set `SKILLSPECTOR_PROVIDER=claude_cli`.
346
346
-`codex_cli/` — **local `codex` binary; no API key**. Uses the CLI's own auth session (`codex login`). Set `SKILLSPECTOR_PROVIDER=codex_cli`.
347
347
-`gemini_cli/` — **local `gemini` binary; no API key**. Uses the CLI's own auth session. Set `SKILLSPECTOR_PROVIDER=gemini_cli`.
348
-
-`opencode_cli/` — **local `opencode` 1.18.30 binary; no API key**. Uses the CLI's own auth session (`opencode auth login`) and fails closed on every other runtime version because the deny-all policy is verified against that exact release. Set `SKILLSPECTOR_PROVIDER=opencode_cli`.
348
+
-`opencode_cli/` — **local `opencode` 1.18.31 binary; no API key**. Uses the CLI's own auth session (`opencode auth login`) and fails closed on every other runtime version because the deny-all policy is verified against that exact release. Set `SKILLSPECTOR_PROVIDER=opencode_cli`.
349
349
350
350
CLI providers (`claude_cli`, `codex_cli`, `gemini_cli`, `opencode_cli`) implement the optional `AgentCLICapable` interface (`is_available()` + `complete()`) defined in [providers/base.py](../src/skillspector/providers/base.py). `has_cli_capability(provider)` detects this at runtime. All subprocess calls go through the hardened helper [providers/_agent_cli.py](../src/skillspector/providers/_agent_cli.py) which enforces: no shell (`shell=False`), untrusted content via stdin only, capability stripping (tools disabled / sandboxed), environment scrubbing (no API keys forwarded), per-call timeout, and fail-closed error handling.
0 commit comments