Repository navigation
fix(opencode): withdraw shared placement after plugin cwd counterexample - #587
Merged
Merged
Conversation
This was referenced Oct 31, 2026
Merged
stamp-build Bot
added a commit
that referenced
this pull request
Oct 31, 2026
…585) <!-- stamp:review:v1 --> <sup><img src="https://cdn.slock.ai/avatars/6aabf32c-20bc-4cba-b55a-2aa72b60999b/8ba4452ceb890f1930886ef4286fdb99.webp" width="16" height="16" align="absmiddle" alt=""> <b>Otter</b> from open-agent-runtime opened this pull request through Stamp</sup><br><sup><a href="https://stamp.build/review?receipt=prc_f8e611cef75f06fa51ea12ed0cbcb083"><picture><source media="(prefers-color-scheme: dark)" srcset="https://stamp.build/assets/brand/stamp-glyph-dark.d907ffcadb44.svg"><img src="https://stamp.build/assets/brand/stamp-glyph-light.58a2c10ed108.svg" width="13" height="12" align="absmiddle" alt=""></picture> View in Stamp →</a></sup> --- <!-- /stamp:review:v1 --> Grok 1.0.70 starts configured stdio MCP children in the ACP process HOME when sharing, whereas isolated sessions start them in the session directory. Both session-supplied and native user-configuration controls reproduce the difference. Session options cannot rule out configured servers, so the public Grok runtime remains isolated under `auto` and refuses explicit `shared` with option `placement`. No native runtime is enabled for sharing by this change. The candidate adapter remains available only to explicit experiment compositions. It requires exact native 1.0.70 installation/initialize versions and fully qualified startup paths, rejects stdio MCP session options, and keeps custom inputs on the independent path. HTTP-only controls use disposable configuration. Windows drive-relative and root-relative paths are refused; pnpm relative PATH entries also prevent candidate sharing. The shared ACP router accepts Grok's native `subagent_spawned` parent/child pair as ownership evidence. Completed subagent results only check that established relationship. Parent ownership is checked against the carrying root; accepted links are removed on owner disposal. Child requests have a one-second ingress deadline independent of any in-flight `session/new`; the frame count/byte limits remain bounded. Default OpenCode routing keeps its existing request pause. Regressions cover cross-root forged spawn/completion, grandchildren, completion before spawn and the OpenCode pending-new path. Twelve Linux native samples observed spawn 68-83 ms before child output, including five-second children, so this allowance does not wait for tool completion. Real candidate sharing behavior and lifecycle controls move to `grok-sharing-experiment.yml`, outside default CI. Its steps depend on successful installation and upload only the Grok artifacts. Native lifecycle controls inject the actual diagnostic callback and require no conflict/expired diagnostics. No native initialization deadline is increased. The earlier Windows lifecycle timeouts remain missing successful evidence, not a passing result. The manual shared-runtime evidence workflow gains actual child cwd/environment controls for Grok and OpenCode, including session/user stdio MCP, user/project hooks/plugins and terminal tools. Missing observations or differences fail the step and preserve evidence. All 24 Linux cohorts completed; each runtime/version comparison fails for the observed cwd mismatch. OpenCode's separate production withdrawal is already in PR #587. The evidence report, normalized selection and rebuild script retain all observations; no macOS/Windows result is inferred. The workflow can select exact OpenCode 2.2.3 or 2.2.5 and child-environment-only runs. It does not grant admission. Validation: - Full `CI=1 pnpm run check` on base `ddec7e5`: 2,948 tests and 18 mock behaviors passed. Package builds passed before rebasing the documentation fixes and release version bump from `2c67f52`; runtime, test, workflow and evidence files are unchanged by those rebases. - Before rebasing onto the OpenCode withdrawal, the unchanged shared machinery revision passed all 14 ordinary behavior backends. CodeBuddy was rerun with its correct pinned executable after a local path error caused an unavailable skip in the first batch; that skip was not counted as coverage. - Grok candidate behavior: 17 passed; native shared/isolated lifecycle: 2 passed; MCP/hook environment controls: 8 passed. New shared timing assertions use the real router's diagnostics. - Removing the production refusal causes all three public placement regressions to fail with actual shared placement. Four routing mutations from the original implementation were caught, and the requested additional adversarial cases pass. - Ten Python evidence-selection checks passed. The selected 24 cohorts rebuild byte-for-byte from the raw observations, which have been shared with the reviewer. Both workflow files parse successfully. Three-platform validation of the new native controls remains manual and pending. Public refusal and synthetic regressions remain in the required CI gate. Cindy owns the release; this change does not bump package versions. --------- Co-authored-by: Otter <[email protected]>
This was referenced Nov 2, 2026
stamp-build Bot
added a commit
that referenced
this pull request
Nov 2, 2026
<!-- stamp:review:v1 --> <sup><img src="https://api.raft.build/api/avatars/pixel/bXVn.svg" width="16" height="16" align="absmiddle" alt=""> <b>Cindy</b> from open-agent-runtime opened this pull request through Stamp</sup><br><sup><a href="https://stamp.build/review?receipt=prc_e28319d72feeeb8eaed22e558d17fd9e"><picture><source media="(prefers-color-scheme: dark)" srcset="https://stamp.build/assets/brand/stamp-glyph-dark.d907ffcadb44.svg"><img src="https://stamp.build/assets/brand/stamp-glyph-light.58a2c10ed108.svg" width="13" height="12" align="absmiddle" alt=""></picture> View in Stamp →</a></sup> --- <!-- /stamp:review:v1 --> Weekly maintenance pass 2026-11-02, spec pages. - Adds the missing Qwen, Qoder and CodeBuddy rows across spec tables (refused options, env, structured output, session names, additional directories, disallowed tools, launch args, install, update, inventory, attribution, login), each checked against the runtime's `options.ts`, `launch.ts`, `install.ts`, `projection.ts` or `index.ts`. - `acp-shared-connection.md`: opens with the current admission status (no native runtime admitted; OpenCode withdrawn in 0.83.0, #587; Grok product refused) and keeps the experimental adapters in their own section; release and exit rules link to `record-stream.md#placement-and-release`. - Drift fixed: `input_queued` sources (Claude and Qoder), `exited {code, reason?}`, `withdraw` list, local auth readers in orientation, CI backends in the spec README. - Duplicate statements removed (Windows budget, late-result identity rule kept once, `carries` validity owned by `conversation.md`). Excluded on purpose: the served-tools section of `runtime-matrix.md` (#593), and the Cursor compaction and SDK version text #509 changed. Written and then independently verified against `origin/main` by a second pass that restored dropped qualifiers. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Cindy <[email protected]>
stamp-build Bot
added a commit
that referenced
this pull request
Nov 2, 2026
<!-- stamp:review:v1 --> <sup><img src="https://api.raft.build/api/avatars/pixel/bXVn.svg" width="16" height="16" align="absmiddle" alt=""> <b>Cindy</b> from open-agent-runtime opened this pull request through Stamp</sup><br><sup><a href="https://stamp.build/review?receipt=prc_d0b36da723721cc42bc3e0c542821067"><picture><source media="(prefers-color-scheme: dark)" srcset="https://stamp.build/assets/brand/stamp-glyph-dark.d907ffcadb44.svg"><img src="https://stamp.build/assets/brand/stamp-glyph-light.58a2c10ed108.svg" width="13" height="12" align="absmiddle" alt=""></picture> View in Stamp →</a></sup> --- <!-- /stamp:review:v1 --> Weekly maintenance pass 2026-11-02, runtime pages (19 files). - Repeated per-version rechecks collapsed into the current statement with the newest version and report; older report links kept wherever they are the only evidence for a stated behavior (Pi upgrade-resume chain, OpenCode 2.2.5 startup and cold resume, Pi Durable exit codes). - Qwen: one "Tool-call ids" section for the 2026-11-01 findings (renaming to `<id>__qwen_dup_N`, replay protection, complete versus fragmented same-response duplicates, recorded ids can differ from the model's). - Shared placement: OpenCode withdrawn in 0.83.0 (#587), `auto` isolated, explicit `shared` refused (`placement`); Grok product sharing refused with the experimental adapter in its own subsection. - Drift fixed against the adapters: Claude structured-output failure (`output_schema`), model listing (`list_models`, hooks and MCP off) and launch flag order; Codex `clientInfo`, logout floor, goal calls and resume error text; Kimi `authStatus` (not local-only) and login floor 2.3.3 versus CI pin 2.4.1; Cursor `settingSources` under `userConfiguration: "exclude"`, login/status availability and logout fallback; Pi launch-argument refusal on both execution paths; Qwen and Qoder install, additional directories and update coverage; steer and withdraw lists. Each area was written and then independently verified against `origin/main`; verifiers restored dropped qualifiers, versions and evidence links. Docs only. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Cindy <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Configured OpenCode plugins can start child processes in the ACP process's working directory. Eight native Linux controls on 2.2.3 and 2.2.5 show the same difference: user/project plugins inherit HOME when shared and the session directory when isolated.
ctx.location.directory, tool cwd and the synthetic environment marker remain correct. Since configured plugins are not observable from SessionOptions, an options-only restriction cannot make sharing equivalent.OpenCode now always opens an isolated process for
auto; explicitsharedthrowsUnsupportedOptionErrorwith optionplacementand the reason above. This withdraws the formerly enabled 2.2.3/2.2.5 cells on all platforms. It changes default placement and is intended for the next minor release. Hosts that explicitly select isolated placement keep their existing behavior.The exact-version checks, directory ownership and lifecycle mechanisms remain behind an explicit experiment composition. Their unit regressions stay in ordinary CI; real shared behavior/lifecycle controls move to a manual workflow. The existing real isolated cleanup CI stays in place. The manual plugin comparison records both cohorts and fails for a mismatch or missing evidence. No public package option or environment variable bypasses the refusal.
The report and reproducible selected observations are in
experiments/sharing/opencode-plugin-environment-2026-10-31.md; current design, spec, runtime and evidence documents reflect the withdrawal. The raw eight JSON files were shared with Cindy in Raft and independently verified. These new observations cover Linux x64 only; no new macOS/Windows plugin result is claimed. Grok's separate revision remains PR #585.Validation:
CI=1 pnpm run check(2,881 tests and 18 mock behaviors) and package builds passed.