Repository navigation
feat(runtime): implement OpenCodeRuntime - #7103
Conversation
E2E tests are runningAuthorization passed for this commit. See the E2E Tests workflow for results. |
PR Summary by QodoImplement OpenCode as an opt-in agent runtime
AI Description
Diagram
High-Level Assessment
Files changed (38)
|
1520507 to
06db3c2
Compare
Code Review by Qodo
1.
|
waynesun09
left a comment
There was a problem hiding this comment.
Automated review sweep — 4 findings below (2 HIGH, 2 MEDIUM), verified against upstream OpenCode source and cross-checked against existing bot comments on this PR for duplicates.
06db3c2 to
236d183
Compare
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
Site previewCommit: |
waynesun09
left a comment
There was a problem hiding this comment.
Automated review sweep — 7 findings (2 HIGH, 5 MEDIUM), each verified against this PR's head, the sibling runtime implementations, and upstream OpenCode source. Cross-checked against the existing threads on this PR; the two that sit near an existing thread carry an explicit note on how they differ.
Six findings are inline below. One has no line inside a diff hunk, so it is recorded here:
[MEDIUM] Two consumers this PR's own runtime-implementation checklist marks required were not updated
docs/contributing/runtime-implementation.md (checklist lines 83 and 90 — outside this PR's diff hunks, hence this body comment)
The "Consumer-completeness touchpoints" checklist that this PR itself edits lists at line 83 [ ] docs/architecture.md — update the runtime selection diagram and at line 90 [ ] docs/guides/infrastructure/layered-config-reference.md — update.
Neither file appears in this PR's changed-file list, and both still exclude opencode on the head branch:
docs/architecture.md:198renders the config node asruntime: claude | pi | codex | dummy | dummy-playbackdocs/guides/infrastructure/layered-config-reference.md:137readsValid values: claude, pi, codex, dummy, ...
The PR did update the other consumers on the list (choosing-a-runtime.md, cli/run.md, runtimes.md), so this reads as two specific misses rather than a wholesale omission. A user following layered-config-reference.md will conclude that runtime: opencode is invalid.
Suggestion: Add opencode to the docs/architecture.md:198 runtime selection diagram (and the surrounding prose at line 232) and to the valid-values list at layered-config-reference.md:137, then tick both checklist boxes.
… mechanics Address PR fullsend-ai#7103 review feedback from @waynesun09 and @qodo-code-review: Security: - Add OPENCODE_DISABLE_PROJECT_CONFIG=true to EnvExports (H1) - Re-pin runner-owned env vars after .env source, mirroring pi/codex (H6) - Migrate tools: to permission: field matching upstream schema (H3/H5) - Fix LS tool mapping from "list" to "read" (H2) - Add agent name validation in Bootstrap to prevent fallback (H7) Run mechanics: - Add clearStrayProcesses to ClearIterationArtifacts (H4) - Move rc file under output/ so it is cleaned between iterations (H8) - Make final exit conditional on prelude success (H8) - Add --print-logs --log-level DEBUG when Debug is set (H9) - Propagate stream parseErr to adjust exit code (B6) Assisted-by: claude-opus
Address PR fullsend-ai#7103 review feedback from @waynesun09 and @qodo-code-review: Docs: - Add opencode to architecture.md runtime selection diagram (H11) - Add opencode to layered-config-reference.md valid values (H11) - Tick runtime-implementation.md checklist boxes (H11) - Change "Experimental" to "Planned" callout for deferred features (B2) - Fix "opt-in per org" to "opt-in per repo" per ADR 0044 (H10) - Update tools: references to permission: in opencode.md (H3) Config: - Restore ADR 0044 deprecation guard in TestOrgConfigValidateRuntime (H10) - Add write-agent note to ValidRuntimes doc comment (B14) Image: - Add OpenCode binary to base sandbox Containerfile (B12) Assisted-by: claude-opus
d72430f to
e6f1988
Compare
… mechanics Address PR fullsend-ai#7103 review feedback from @waynesun09 and @qodo-code-review: Security: - Add OPENCODE_DISABLE_PROJECT_CONFIG=true to EnvExports (H1) - Re-pin runner-owned env vars after .env source, mirroring pi/codex (H6) - Migrate tools: to permission: field matching upstream schema (H3/H5) - Fix LS tool mapping from "list" to "read" (H2) - Add agent name validation in Bootstrap to prevent fallback (H7) Run mechanics: - Add clearStrayProcesses to ClearIterationArtifacts (H4) - Move rc file under output/ so it is cleaned between iterations (H8) - Make final exit conditional on prelude success (H8) - Add --print-logs --log-level DEBUG when Debug is set (H9) - Propagate stream parseErr to adjust exit code (B6) Assisted-by: claude-opus
Address PR fullsend-ai#7103 review feedback from @waynesun09 and @qodo-code-review: Docs: - Add opencode to architecture.md runtime selection diagram (H11) - Add opencode to layered-config-reference.md valid values (H11) - Tick runtime-implementation.md checklist boxes (H11) - Change "Experimental" to "Planned" callout for deferred features (B2) - Fix "opt-in per org" to "opt-in per repo" per ADR 0044 (H10) - Update tools: references to permission: in opencode.md (H3) Config: - Restore ADR 0044 deprecation guard in TestOrgConfigValidateRuntime (H10) - Add write-agent note to ValidRuntimes doc comment (B14) Image: - Add OpenCode binary to base sandbox Containerfile (B12) Assisted-by: claude-opus
57fd03c to
0ce83aa
Compare
… mechanics Address PR fullsend-ai#7103 review feedback from @waynesun09 and @qodo-code-review: Security: - Add OPENCODE_DISABLE_PROJECT_CONFIG=true to EnvExports (H1) - Re-pin runner-owned env vars after .env source, mirroring pi/codex (H6) - Migrate tools: to permission: field matching upstream schema (H3/H5) - Fix LS tool mapping from "list" to "read" (H2) - Add agent name validation in Bootstrap to prevent fallback (H7) Run mechanics: - Add clearStrayProcesses to ClearIterationArtifacts (H4) - Move rc file under output/ so it is cleaned between iterations (H8) - Make final exit conditional on prelude success (H8) - Add --print-logs --log-level DEBUG when Debug is set (H9) - Propagate stream parseErr to adjust exit code (B6) Assisted-by: claude-opus
Address PR fullsend-ai#7103 review feedback from @waynesun09 and @qodo-code-review: Docs: - Add opencode to architecture.md runtime selection diagram (H11) - Add opencode to layered-config-reference.md valid values (H11) - Tick runtime-implementation.md checklist boxes (H11) - Change "Experimental" to "Planned" callout for deferred features (B2) - Fix "opt-in per org" to "opt-in per repo" per ADR 0044 (H10) - Update tools: references to permission: in opencode.md (H3) Config: - Restore ADR 0044 deprecation guard in TestOrgConfigValidateRuntime (H10) - Add write-agent note to ValidRuntimes doc comment (B14) Image: - Add OpenCode binary to base sandbox Containerfile (B12) Assisted-by: claude-opus
… mechanics Address PR fullsend-ai#7103 review feedback from @waynesun09 and @qodo-code-review: Security: - Add OPENCODE_DISABLE_PROJECT_CONFIG=true to EnvExports (H1) - Re-pin runner-owned env vars after .env source, mirroring pi/codex (H6) - Migrate tools: to permission: field matching upstream schema (H3/H5) - Fix LS tool mapping from "list" to "read" (H2) - Add agent name validation in Bootstrap to prevent fallback (H7) Run mechanics: - Add clearStrayProcesses to ClearIterationArtifacts (H4) - Move rc file under output/ so it is cleaned between iterations (H8) - Make final exit conditional on prelude success (H8) - Add --print-logs --log-level DEBUG when Debug is set (H9) - Propagate stream parseErr to adjust exit code (B6) Assisted-by: claude-opus Signed-off-by: Yvonne Devlin <[email protected]>
Address PR fullsend-ai#7103 review feedback from @waynesun09 and @qodo-code-review: Docs: - Add opencode to architecture.md runtime selection diagram (H11) - Add opencode to layered-config-reference.md valid values (H11) - Tick runtime-implementation.md checklist boxes (H11) - Change "Experimental" to "Planned" callout for deferred features (B2) - Fix "opt-in per org" to "opt-in per repo" per ADR 0044 (H10) - Update tools: references to permission: in opencode.md (H3) Config: - Restore ADR 0044 deprecation guard in TestOrgConfigValidateRuntime (H10) - Add write-agent note to ValidRuntimes doc comment (B14) Image: - Add OpenCode binary to base sandbox Containerfile (B12) Assisted-by: claude-opus Signed-off-by: Yvonne Devlin <[email protected]>
0ce83aa to
034c3b3
Compare
…egress glob Addresses review council findings from PR fullsend-ai#7103. - Containerfile: replace unanchored grep version check with exact string comparison matching the codex sibling, and scope the error message to the version step only (curl/tar/chmod failures no longer mislabelled as version mismatch). - openCodeUtilityPin: check each utility individually and name the missing one in the error message instead of a generic "utility not found". - Drop **/opencode.exe from the Vertex egress profile, the runtime_binaries_test table, the scaffold_test assertion, and runtime-implementation.md. The Containerfile installs only /usr/local/bin/opencode; no install step produces opencode.exe. Signed-off-by: Yvonne Devlin <[email protected]> Assisted-by: OpenCode (google-vertex-anthropic/claude-opus-4-6@default) Signed-off-by: Yvonne Devlin <[email protected]>
Defense-in-depth: add a non-empty guard for FULLSEND_DISPATCH_SECRET in runGitLabWebhook before constructing poll.Options, consistent with how --project, CI_COMMIT_REF_NAME, and TRIGGER_PAYLOAD are validated in the same function. The downstream validation in RunWebhook already fails closed (state.go:388), so this surfaces the error earlier with a clearer message. Addresses PR fullsend-ai#7103 review feedback (self-RC finding 1). Assisted-by: claude-opus Signed-off-by: Yvonne Devlin <[email protected]>
…tion Add a code comment explaining that the %%s format verb (instead of %%w) in CreateRepoSecret error wrapping is intentional: redactSecretValues scrubs secret values from the error message before it propagates to logs, and no callers inspect the returned error with errors.Is/As. Addresses PR fullsend-ai#7103 review feedback (self-RC finding 2). Assisted-by: claude-opus Signed-off-by: Yvonne Devlin <[email protected]>
- opencode.md: change "third" to "fourth" agent runtime (codex is third) - agent.md: add opencode to agent new --runtime options list, matching agent set --runtime which already includes it Addresses PR fullsend-ai#7103 review feedback (self-RC findings 5, 8). Assisted-by: claude-opus Signed-off-by: Yvonne Devlin <[email protected]>
OpenCode uses Vertex WIF via OPENCODE_CONFIG_CONTENT, so UsesVertex() correctly returns true. Add an explicit case (instead of relying on the default branch) to document the intent and prevent accidental breakage if a non-Vertex runtime is added above the default. Add opencode to TestUsesVertex coverage. Addresses PR fullsend-ai#7103 review feedback (self-RC finding 9). Assisted-by: claude-opus Signed-off-by: Yvonne Devlin <[email protected]>
- poll: test malformed-entry drop paths in decodePendingLabels and restoreDispatchedKeys (corrupted base64, invalid JSON, empty key) - forge/github: test GetRepoSecretProtection (exists, missing, error) - forge/gitlab: test ListPullRequestCommits multi-page pagination - scm/github, scm/gitlab: test GetFileContentAtRef driver wrappers Addresses PR fullsend-ai#7103 review feedback (self-RC findings 11-15). Assisted-by: claude-opus Signed-off-by: Yvonne Devlin <[email protected]>
Add timeout=30 to subprocess.run in run_gh() to prevent indefinite hangs if the GitHub API stalls. The gh CLI has its own network timeouts, but this adds a hard upper bound at the process level. Addresses PR fullsend-ai#7103 review feedback (self-RC finding 16). Assisted-by: claude-opus Signed-off-by: Yvonne Devlin <[email protected]>
Reverts four commits that addressed self-review-council findings outside the OpenCode runtime scope. These belong in separate PRs: - 907a48e fix(cli): validate FULLSEND_DISPATCH_SECRET early - f01a654 docs(repos): document intentional %%s wrapping - 72d4bb6 test: add coverage for poll, forge, scm drivers - 3caee3d fix(skills): add subprocess timeout to adr-corner Addresses PR fullsend-ai#7103 review feedback from @waynesun09. Assisted-by: OpenCode (claude-opus-4-6@default) Signed-off-by: Yvonne Devlin <[email protected]>
… loading - Make /sandbox/opencode-config root-owned mode 0750 (Containerfile) so the agent cannot write plugins or rewrite agent definitions. - Expand openCodeDangerousEnvVars from 4 to 20 entries, covering OPENCODE_AUTH_CONTENT, OPENCODE_MODELS_*, OPENCODE_DB, OPENCODE_TEST_HOME, XDG_*, LD_PRELOAD/LIBRARY_PATH/AUDIT, NODE_OPTIONS, NODE_PATH, and BUN_OPTIONS. - Pin HOME and PATH before .env, restore after, so a hostile .env cannot redirect config loading via $HOME/.opencode. - Export OPENCODE_DISABLE_EXTERNAL_SKILLS=true to suppress skill and nested instruction discovery from the workspace and $HOME. - Add GOOGLE_CLOUD_LOCATION mapping from CLOUD_ML_REGION for Vertex region parity with pi (pi_run.go:464). Addresses PR fullsend-ai#7103 review feedback from @waynesun09 (threads 1,3,6,9,10). Assisted-by: OpenCode (claude-opus-4-6@default) Signed-off-by: Yvonne Devlin <[email protected]>
…nt fallback detection - Omit pattern-map values from parseTrustedPermissionPolicy instead of collapsing to "deny", so the global per-command rule applies. - Treat "ask" like "deny" in intersectPermissionRecord: headless runs auto-reject ask prompts, so agent "allow" must not widen past "ask". - Map fullsend effort levels to OpenCode --variant values via openCodeEffortFor; unrecognized efforts (off, minimal) are warned and --variant is omitted. - Add openCodeVerifyAgent: after uploading agent/<name>.md, run `opencode debug agent <name>` and assert mode:primary, catching silent fallback-to-default-agent scenarios. Addresses PR fullsend-ai#7103 review feedback from @waynesun09 (threads 2,7,11). Assisted-by: OpenCode (claude-opus-4-6@default) Signed-off-by: Yvonne Devlin <[email protected]>
…docs - Move openCodeRunRCFile and the tee transcript from output/ to runner-state/ so ExtractOutputFiles does not collect them as agent outputs. ClearIterationArtifacts wipes both dirs. - Update docs/runtimes/opencode.md: security.enabled:true returns a Go-level error before the sandbox command is built, not exit 97. The exit-97 guard shape is reserved for fullsend-ai#515. Addresses PR fullsend-ai#7103 review feedback from @waynesun09 (threads 4,5). Assisted-by: OpenCode (claude-opus-4-6@default) Signed-off-by: Yvonne Devlin <[email protected]>
Fix two regressions and one gap from review (fullsend-ai#7103): Containerfile: change opencode-config dir from 0750 to 0775. The root-owned 0750 mode (a656e09) blocked Bootstrap mkdir and run prelude opencode.json writes — both run as the sandbox user. 0775 restores group-write for gid sandbox while keeping root ownership. Full config-dir lockdown deferred to the hook adapter (fullsend-ai#7824). Permission intersection: parseTrustedPermissionPolicy now returns a patternMapTools set alongside the flat policy map. intersectPermissionRecord skips the wildcard fallback for tools in that set, preventing two failure modes from 89dfd5d: (a) a flat agent allow overriding the global pattern-map via findLast when no wildcard exists, and (b) a wildcard deny capping per-command allows the pattern map defines. Stream parsing: parseOpenCodeStream returns a malformedLines count (invalid JSON envelopes and per-type unmarshal failures). The exit-0 guard in opencode_run.go now also checks malformedLines > 0. sawError is set before the error-event payload unmarshal so a corrupt error line still marks the run as failed. Docs: add opencode to config-reference.md valid runtime values, update glossary.md (was 'stub'), fix runtimes.md count ('All four'), add opencode to cli-internals.md agent-new flag. Signed-off-by: Yvonne Devlin <[email protected]>
Signed-off-by: Yvonne Devlin <[email protected]>
- Fix intersectPermissionRecord to delete pattern-map tool entries from the agent frontmatter rather than leaving a flat allow in place. A flat bash: "allow" in the agent record overrides the global pattern-map via OpenCode's findLast semantics, widening bash to every command instead of just the allowed ones. - Add fable alias to openCodeModelAliases and correct haiku from @default to @20251001, matching the google-vertex-anthropic catalog. Add openCodeDocumentedAliases and a coverage test mirroring pi's. - Correct ConfigDir comment: mode is 0775 (not 0750), writes come from the run prelude (not openshell/root), lockdown deferred to fullsend-ai#7824. - Fix security feature matrix: OpenCode's context injection scan and runtime content scan cells were marked as active but both are disabled by the required security.enabled: false workaround until fullsend-ai#515 lands. - Add docs/cli/agent.md to the runtime-implementation.md checklist. - Add fullsend-ai#7824 callout to docs/runtimes/opencode.md Config discovery so the group-writable state is visible and "runner-owned" is not misread as "the agent cannot change it". Co-Authored-By: Claude Sonnet 4.6 <[email protected]> Signed-off-by: Yvonne Devlin <[email protected]>
Three bugs confirmed valid from waynesun09 review 5532929662: - intersectPermissionRecord deleted patternMapTools entries unconditionally, removing an agent's explicit bash: "deny" for agents that never asked for Bash, leaving no frontmatter rule so the global pattern-map's "gh *: allow" applied via findLast. Fix: only delete when agentAction == "allow". - The patternMapTools deletion pass ran after the len(trustedPolicy) == 0 early return, so a trusted config whose permission block consisted entirely of pattern-map rules (trustedPolicy empty after parsing) left the agent's flat bash: "allow" intact, overriding the pattern-map via findLast. Fix: move the patternMapTools pass before the early return. - openCodePermissionRecord emitted explicit denies only for the 12 known tool IDs in openCodeAllToolIDs; MCP tools, plugin tools, and tools added in later OpenCode releases defaulted to "*: allow". Fix: emit "*": "deny" as a catch-all for restricted agents. - The run prelude did not map ANTHROPIC_VERTEX_PROJECT_ID to GOOGLE_CLOUD_PROJECT; upstream google-vertex-anthropic reads GOOGLE_CLOUD_PROJECT (not ANTHROPIC_VERTEX_PROJECT_ID), so project-scoped Vertex calls would fail on the fleet. Fix: add the mapping mirroring pi_run.go:519. - The unconditional export of GOOGLE_CLOUD_LOCATION exported an empty string when both GOOGLE_CLOUD_LOCATION and CLOUD_ML_REGION were unset. Upstream JS uses ?? which does not treat "" as absent, so the "global" fallback never fired. Fix: export only when the resolved value is non-empty. Tests added for the two new intersectPermissionRecord edge cases (agent-without-Bash + pattern-map, pattern-map-only trusted policy) and updated to assert the "*": "deny" wildcard in restricted agent records. Signed-off-by: Yvonne Devlin <[email protected]> Co-Authored-By: Claude Sonnet 4.6 <[email protected]> Signed-off-by: Yvonne Devlin <[email protected]>
agent new --runtime opencode did not generate the OPENCODE_CONFIG_CONTENT env.sandbox entry. Bootstrap validates this env var on startup and fails closed when it is absent or has no permission block, so a harness produced by agent new would fail at first run without a manual edit. Add the entry in render.go alongside the Vertex credentials block. Add TestOpenCodeHarnessHasOpenCodeConfigContent to assert the entry is present and the generated harness loads cleanly. Add TestNonOpenCodeHarnessLacksOpenCodeConfigContent to guard that the entry does not appear in default, pi, or codex harnesses. Update docs/runtimes/opencode.md to note that agent new generates the env.sandbox mapping automatically; the --env-file supply step stays. Signed-off-by: Yvonne Devlin <[email protected]> Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
- Copy a trusted pattern-map rule into the agent permission record instead of deleting the agent's allow. The agent-level "*": "deny" is evaluated after the global rules, so deleting the key denied the tool outright. - Re-upload the translated agent file before every iteration and fail the iteration when OpenCode prints "Falling back to default agent". - Align the opus/sonnet/haiku aliases with the other Claude-family runtimes (5.5 catalog ids) and add a parity test. - Fix the stale GOOGLE_CLOUD_LOCATION assertion, test the empty-region case, and skip the sha256sum-pinned shell tests on hosts without it. Assisted-by: Claude Signed-off-by: Wayne Sun <[email protected]>
- Bump OpenCode to 1.19.1 (latest 1.x). Its built-in model catalog has the claude-*-5-5@default ids the opus/sonnet/haiku aliases resolve to; 1.18.30's did not, and the sandbox cannot reach models.opencode.ai. Set OPENCODE_DISABLE_MODELS_FETCH so OpenCode does not try. - Before each iteration, remove the other places OpenCode loads agent overrides from (agent/, agents/, mode/, modes/, opencode.jsonc, the user-level config dirs), re-upload the agent file and re-run `opencode debug agent`. - In debug mode, check the debug log for the fallback warning, since stderr is redirected there. Assisted-by: Claude Signed-off-by: Wayne Sun <[email protected]>
One haiku run through OpenCode Bootstrap/Run with a bash pattern-map trusted policy. Gated on the undeclared runtime-opencode capability until fullsend-sandbox:latest ships OpenCode. Assisted-by: Claude Signed-off-by: Wayne Sun <[email protected]>
Main now uploads harness skills to skills/<declared SKILL.md name> through uploadHarnessSkills (fullsend-ai#7830). Use it for OpenCode too, so nested forge skills that share a basename keep distinct destinations. Assisted-by: Claude Signed-off-by: Wayne Sun <[email protected]>
- Apply the agent definition's frontmatter model when the harness names none (EffectiveModel), as Claude Code and Codex do. - Unset an exported empty GOOGLE_CLOUD_LOCATION so OpenCode keeps its global default. - Mark a transcript with malformed lines or a read error as an error, matching the live run's verdict. - Before each iteration also clear tool/, tools/, command/, commands/, a cached models.json and auth.json, which OpenCode loads code, models or remote config from. - Behaviour smoke agent writes through $FULLSEND_OUTPUT_DIR, so the scenario's policy does not deny an external-directory mkdir. - Use the standard Planned callout in the OpenCode docs. Assisted-by: Claude (fix), Claude (review) Signed-off-by: Wayne Sun <[email protected]>
Rewrite docs/runtimes/opencode.md as a local-run walkthrough with real output, a models table, and a troubleshooting table. Move the permission-intersection and per-iteration reset detail to the runtime implementation guide. Trim duplicated OpenCode notes in the runtimes index and roughly halve the OpenCode runtime's code comments, keeping the security reasons and upstream citations. Assisted-by: Claude Signed-off-by: Wayne Sun <[email protected]>
OpenCode applies the last matching permission rule, and keys can be
globs. The intersection looked the tool up by exact key in a Go map,
so a trusted {"read":"allow","*":"deny"} still let an agent
allow read. Parse the trusted rules in order and use the last rule
whose key matches the tool.
Assisted-by: Claude
Signed-off-by: Wayne Sun <[email protected]>
The per-iteration reset ran before the run command sources the agent-writable .env, which can run any command and re-plant the removed overrides. Repeat the reset in the prelude after .env with a pinned rm, and fail with exit 98 when the agent file's SHA-256 no longer matches the verified copy. Also create the output directory, which no other OpenCode step created. Docs: add the fable alias, correct the config-error rows, show how to add the harness entry without a duplicate env key, and name plugin/ and skill/ among the paths that stay writable. Assisted-by: Claude (fix), Claude (review) Signed-off-by: Wayne Sun <[email protected]>
OpenCode matches both the tool and the argument pattern, so with
{"*":"allow","bash":{"rm *":"deny"}} it still allows ls. Copying
only the bash map let the agent's own "*": "deny" reject ls. Give a
declared tool every trusted rule that applies to it, in order.
Assisted-by: Claude
Signed-off-by: Wayne Sun <[email protected]>
… dirs Go's ordered parse and OpenCode's JSON.parse read a permission object with a repeated key differently, so the translated agent record could widen the trusted policy. Reject duplicate keys in the trusted policy. The runner installs no OpenCode plugins yet, so the per-iteration reset now also clears plugin/, plugins/ and skill/. Only skills/, which holds the runner's skills, stays writable until fullsend-ai#7824. Assisted-by: Claude Signed-off-by: Wayne Sun <[email protected]>
…gent opencode debug agent ran with the previous iteration's agent-writable opencode.json. Clear it with the other overrides; the run prelude writes the runner's copy after the reset. Assisted-by: Claude Signed-off-by: Wayne Sun <[email protected]>
|
This branch now carries the work from #8473, which is closed. Your 33 commits are kept with authorship and sign-off, rebased onto current Fixes on top:
Out of scopeThe hook adapter (#7824), credential redaction (#7320), Renovate for Test plan
|
waynesun09
left a comment
There was a problem hiding this comment.
Reviewed the fixes on top of the author's commits; CI green, all threads resolved, local OpenCode triage run passed.
Summary
Adds OpenCode as an opt-in Fullsend agent runtime while keeping Claude Code as the default.
OpenCode is currently restricted to read-only agents until the sandbox security-hook adapter tracked by unbound-force/unbound-force#515 is implemented.
Related Issue
Related to #1260.
Downstream implementation tracker: unbound-force/unbound-force#510
Changes Made
--variant.main.Security
OpenCode does not yet install sandbox tool hooks. Write-capable agents remain gated until the hook adapter lands.
Host-side scanning and sandbox egress controls continue to apply.
Testing
make lint-allinternal/runtime,internal/cli,internal/config,internal/repos, andinternal/scaffoldFull local Go testing encountered pre-existing environment-sensitive failures tracked in #7078 and #7079. The arm64 vendor-test failures do not affect amd64 CI.
make e2e-testwas not run because it requires live GitHub pool credentials.Backward Compatibility
This is additive and opt-in. Existing configurations continue to use Claude Code unless
runtime: opencodeis selected.