Repository navigation
chore: release v0.55.0 - #350
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <[email protected]>
stamp-build Bot
added a commit
that referenced
this pull request
Nov 20, 2026
… and host checks across all runtimes (#1084) <!-- stamp:review:v1 --> <sup><img src="https://api.raft.build/api/avatars/pixel/ZXll.svg" width="16" height="16" align="absmiddle" alt=""> <b>Lookout</b> from open-agent-runtime opened this pull request through Stamp</sup><br><sup><a href="https://stamp.build/review?receipt=prc_034edea9074a1a9b63a3ab096693324b"><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 --> ## Summary Implements `#core:#350` (Phase 1 of Raft's runtime-branch inventory: items **D1**, **D2**, **H4**, **H6**): one shared `installation()` rule across all 15 runtimes so every `unsupported` snapshot carries a typed `code`, non-vendor executables are refused, per-line version floors and upper bounds work declaratively, and bundled/SDK runtimes declare host-environment constraints inside `installation()`. ## Contract & Shared Primitives - **`packages/oar/src/contracts/installation.ts`** (re-exported in `contracts/index.ts` and `index.ts`): - Every `unsupported` `InstallationSnapshot` now carries a typed `code`: - `version_unsupported` (`VersionUnsupportedInstallation`, unchanged shape; only variant admitted to `checkUpdate()` / `upgrade()`) - `unrecognized_executable` (`UnrecognizedExecutableInstallation`: `via: "executable"`, `command`, `reason`; never admitted to updaters) - `readiness_failed` (`ReadinessFailedInstallation`: `via: "executable"`, `command`, `reason`) - `unsupported_platform`, `unsupported_node_version`, `unsupported_host`, `dependency_missing` (`HostUnsupportedInstallation`) - **`packages/oar/src/shared/version-range.ts`**: - Declarative `ExecutableVersionPolicy` and `VersionLineConstraint` supporting per-major-line inclusive floors, implicit/explicit exclusive upper bounds (`major` or `maxExclusive`), and `stableOnly` gating. - **`packages/oar/src/shared/host-environment.ts`**: - Shared `checkHostEnvironment()` / `currentHostEnvironment()` checking platform-arch sets, minimum Node semver, compiled single executable (`nodeEvalExecutable() === null`), Electron (`process.versions.electron`), and on-disk module/file resolvability. - **`packages/oar/src/shared/installation.ts`**: - One candidate loop in `executableInstallation()` enforcing readiness, vendor `identity` (`help` and/or `version`), and `versionPolicy`, falling through failed candidates to a usable fallback or returning the first candidate's typed refusal. Unrecognized executables, readiness failures, and unsupported versions are never cached. ## Per-Runtime Results (All 15 Runtimes) | Runtime | `installation()` guards | Version policy | Native evidence | | --- | --- | --- | --- | | `antigravity` | `--help` identity (`Usage of` + agy flags/ACP) + `readAntigravityVersion` | Stable `>= 1.5.0` | Real `agy 1.5.13 --help` (verified `argv[0]`-independent via symlink); `experiments/old-cli-upgrade/README.md` (`1.4.9`) | | `claude` | `--version` identity (`(Claude Code)`) | None | Real `claude 2.1.292 --version`: `2.1.292 (Claude Code)` | | `codebuddy` | `--help` identity (`codebuddy\|cbc`) on direct and npm-prefix probes | None | Real `codebuddy 2.173.0 --help`: `Usage: codebuddy\|cbc ... CodeBuddy Code` | | `codex` | `app-server --help` identity (`Usage: codex app-server`) + `--version` (`codex[-cli] <semver>`) | None | Real `codex 0.170.0`: `Usage: codex app-server [OPTIONS] [COMMAND]` / `codex-cli 0.170.0` | | `cursor` | Host checks: 5 companion platforms (`darwin/linux` arm64/x64, `win32-x64`), Node `>= 22.13.0`; subprocess also forbids Node SEA / Bun standalone (`unsupported_host`) and requires resolvable `sdkModule` (`dependency_missing`) | Host Node `>= 22.13.0` | `@cursor/[email protected]/package.json` (`optionalDependencies`, `engines.node: ">=22.13"`); `shared/executable/node-script.ts:67` | | `devin` | `acp --help` readiness + `--version` identity (`^devin <semver>`) | None | `docs/runtimes/devin.md`, `tests/devin/installation.test.ts` (`devin 3000.12.57 (96542e930752)`) | | `dsh` | `--help` identity (`Usage: dsh` / `DeepSeek Harness`) | Semver `>= 0.2.1-rc.5` (prerelease-aware) | Real `dsh 0.2.1-rc.5 --help` and `experiments/old-cli-upgrade/dsh-commands.json` (`0.2.1-rc.4`) | | `factory` | `exec --help` identity (`Usage: droid exec`) | None | Real `droid 1.12.1 exec --help`: `Usage: droid exec [options] [prompt]` | | `grok` | `agent stdio --help` identity (`Usage: grok agent stdio`) + `--version` (`^grok <semver>`) | None | Real `grok 1.0.89`: `Usage: grok agent stdio [OPTIONS]` / `grok 1.0.89 (...) [stable]` | | `kimi` | `acp --help` identity (`kimi`) | None | Real `kimi 2.1.1` and `2.6.3 acp --help`: `Usage: kimi acp [options] ... kimi-code` | | `opencode` | `--help` identity (`opencode`) | `>=1.18.30 <2.0.0 \|\| >=2.0.27 <3.0.0` | Real `opencode 1.18.30` and `2.2.7 --help`; `docs/runtimes/opencode.md` baselines; `opencode/version.ts:30` | | `pi` | In-process: bundled SDK; subprocess default: non-SEA/Bun (`unsupported_host`), non-Electron (`unsupported_host`), resolvable `@earendil-works/pi-coding-agent/rpc-entry` (`dependency_missing`); subprocess with explicit `command`: locates `command` and checks `--version` | Explicit `command`: stable `>= 1.4.0` (`version_unsupported`) | `pi/rpc/launch.ts:8,21`, `pi/rpc/open.ts:109`, `pi/rpc/version.ts:24`, gating CI `pi-rpc-windows` & `pi-rpc-minimum` | | `pi-durable` | Refuses non-empty `env`, returns `available` (`via: "bundled"`) | None | Host-owned open `Harness` (`pi-durable/index.ts:33`) | | `qoder` | `--help` identity (`Usage: qodercli` / `Qoder CLI`) | Stable `>= 1.1.78` | Real `qodercli 1.1.78 --help`: `Usage: qodercli ... Qoder CLI` | | `qwen` | `--help` identity (`Usage: qwen` / `Qwen Code`) | None | Real `qwen 0.26.0 --help`: `Usage: qwen ... Qwen Code` | ### Platform Evidence Note for Raft (D2 / H6) Two host checks in Raft's older loader differ from OAR's measured native evidence and remain host policy rather than OAR refusals: 1. **Cursor platforms:** `@cursor/[email protected]/package.json` ships native companion packages for five targets (`darwin-arm64`, `darwin-x64`, `linux-arm64`, `linux-x64`, `win32-x64`), and OAR CI runs `cursor-skills.vendor.test.ts` and `tests/cursor/cursor-subprocess-lifecycle.test.ts` on Linux, macOS, and Windows. OAR therefore checks those five targets in `installation()` rather than restricting to Linux; `verifiedPlatforms` omits `cursor` because live runs are Linux-only. 2. **Pi RPC on Windows:** OAR gates `pi-rpc-windows` (`behavior` and `vendor`) on `windows-latest` and includes `win32` in `verifiedPlatforms.pi`. OAR therefore does not refuse Windows in Pi RPC `installation()`. ## Raft Rows Unblocked - **D1:** `installation()` refuses non-vendor executables across all 12 executable runtimes (`unrecognized_executable` / `readiness_failed`, verified with Devin adapter, generic ACP bridge, AiderDesk, and `node` in the Grok slot and across all 12 slots) and supports per-line floors plus upper bounds. - **H4:** `opencodeInstallation()` returns `unsupported` (`code: "version_unsupported"`, `requiredVersion: ">=1.18.30 <2.0.0 || >=2.0.27 <3.0.0"`) outside OpenCode `1.x >= 1.18.30` and `2.x >= 2.0.27 < 3`, replacing Raft's hardcoded `isOarOpencodeVersion`. - **D2 / H6:** `cursor` and `pi` (`execution: "subprocess"`) enforce host-environment availability inside `installation()` with typed `unsupported` codes (`unsupported_platform`, `unsupported_node_version`, `unsupported_host`, `dependency_missing`, and `version_unsupported` for explicit Pi `command`), replacing Raft's `piRpcAvailable` host checks (apart from Raft-only OS policy noted above). ## Caller Audit Audited every call site of `InstallationSnapshot` and `executableInstallation` across `packages/oar/src/` and `packages/cli/src/`: - **Changed:** `contracts/installation.ts`, `contracts/index.ts`, `shared/installation.ts`, `shared/version-range.ts`, `shared/host-environment.ts`, all 14 non-`pi-durable` `runtimes/*/installation.ts`, `runtimes/cursor/index.ts`, `runtimes/pi/index.ts`, `docs/spec/install.md`, `docs/runtimes/{opencode,cursor,pi}.md`. - **Verified unchanged:** `shared/update.ts`, `packages/cli/src/upgrade.ts` (admit only `available` or `code === "version_unsupported"`, never `unrecognized_executable` or host refusals), `shared/orientation/index.ts`, `packages/cli/src/{index,login,logout,models,run,usage}.ts`, `agents/helpers.ts`, `runtimes/{antigravity,devin}/install.ts`, `runtimes/claude/limit-reset/driver.ts`, `community/morph/installation.ts` (untouched). ## Verification - Real-binary probe on this host (`antigravity 1.5.13`, `claude 2.1.292`, `codex 0.170.0`, `codebuddy 2.173.0`, `grok 1.0.89`, `kimi 2.1.1`, `opencode 1.18.30`, `qoder 1.1.78`, `qwen 0.26.0`, `pi` in-process/subprocess, `cursor` in-process/subprocess) plus cross-runtime mismatch checks (`node`, `agy`, `opencode` in foreign slots). - Local `CI=1 pnpm run check` (before clean rebase onto `00e7bc5e`): `typecheck` passed, `oxlint --type-aware --deny-warnings` 0 errors / 0 warnings, `vitest run` 592 passed / 149 skipped (5589 passed / 705 skipped), mock `sea-trial` 19 passed / 1 skipped / 0 failed. Re-checked `typecheck` and `tests/installation-guards.test.ts` on rebased head `fed223da`. --------- Co-authored-by: Lookout <[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.
Release OAR and CLI 0.55.0. This PR changes only the two package version fields.
Both additions come from comparing OAR with the Claude Agent SDK and the codex SDK (#342): in common host scenarios OAR should be no worse than a runtime's own SDK, without depending on it.
Added:
SessionOptions.additionalDirectories(#338, #346)cwd, resolved relative tocwd, through each runtime's own setting: claude--add-dir, codexruntimeWorkspaceRoots(withcwdfirst; OAR refuses the open when codex's answer does not confirm them), cursorlocal.dirs, and the ACPadditionalDirectoriessession parameter where the runtime declares it (kimi, OpenCode v2).UnsupportedOptionError).CLAUDE_CODE_ADDITIONAL_DIRECTORIES_CLAUDE_MD=1).Added:
SessionOptions.outputSchemaandTurnOutcome.structuredOutput(#337, #349)structuredOutput. A completed claude turn can still lack the field when the model never supplies a value: check for the field, not onlykind. When the model keeps producing invalid output, the turn fails (error_max_structured_output_retries).structuredOutputError) is a failed turn.queueis refused while a schema is set, because a queued input cannot carry it. Turns codex starts by itself for an active goal carry no schema.Behavior changes
RefusableSessionOptiongains"additionalDirectories"and"outputSchema"; hosts with an exhaustiveswitchneed the new cases.TurnOutcome's completed variant gains the optionalstructuredOutput.queueis rejectedunsupportedin a session opened withoutputSchema.Validation: #346 and #349 each passed all 17 checks on their final heads, and each merged tree equals its CI tree. Lookout verified both with no account, against real claude 2.1.296, codex 0.162.1, kimi 2.1.1 and grok 1.0.50 with a mock provider: directories in requests and readbacks for new and resumed sessions in all three codex sandbox modes, the refusal paths, valid and invalid structured output on each runtime, queue and steer, and replay equal to live. Otter's native evidence and probes are in
experiments/additional-directories-2026-10-11.mdandexperiments/structured-output-2026-10-11.md. After this PR passes CI and merges, tag its exact squash commit asv0.55.0to trigger npm trusted publishing.🤖 Generated with Claude Code