Skip to content

chore: release v0.55.0 - #350

Merged
xxchan merged 1 commit into
mainfrom
chore/release-0.55.0
Oct 11, 2026
Merged

xxchan merged 1 commit into
mainfrom
chore/release-0.55.0

Conversation

@xxchan

@xxchan xxchan commented Oct 11, 2026

Copy link
Copy Markdown
Member

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)

  • Extra workspace directories beside cwd, resolved relative to cwd, through each runtime's own setting: claude --add-dir, codex runtimeWorkspaceRoots (with cwd first; OAR refuses the open when codex's answer does not confirm them), cursor local.dirs, and the ACP additionalDirectories session parameter where the runtime declares it (kimi, OpenCode v2).
  • kimi applies them only when creating a session: a non-empty list on resume is refused, because kimi ignores it there. OpenCode v1, grok, antigravity, pi and pi-durable refuse the option (UnsupportedOptionError).
  • Give the list again on resume. Without it, claude drops the earlier directories and codex restores its saved ones.
  • It neither changes the sandbox mode nor isolates anything. Whether project rules or instruction files in the extra directories load is the runtime's own behavior and not guaranteed (claude loads their CLAUDE.md only with CLAUDE_CODE_ADDITIONAL_DIRECTORIES_CLAUDE_MD=1).

Added: SessionOptions.outputSchema and TurnOutcome.structuredOutput (#337, #349)

  • A JSON Schema for the session's final output, passed through unchanged. OAR never validates the schema or the output.
  • claude applies it at launch to every turn, including turns it starts on its own, and a completed turn carries claude's validated value as structuredOutput. A completed claude turn can still lack the field when the model never supplies a value: check for the field, not only kind. When the model keeps producing invalid output, the turn fails (error_max_structured_output_retries).
  • grok carries it on every prompt, queued input and steer, and returns its validated value; a value or schema error (structuredOutputError) is a failed turn.
  • codex sends it on every turn OAR starts and returns text only: the provider enforces the schema and the host parses the text. Steered input keeps the current turn's schema. queue is 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.
  • Other runtimes refuse the option.

Behavior changes

  • RefusableSessionOption gains "additionalDirectories" and "outputSchema"; hosts with an exhaustive switch need the new cases.
  • TurnOutcome's completed variant gains the optional structuredOutput.
  • On codex, queue is rejected unsupported in a session opened with outputSchema.

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.md and experiments/structured-output-2026-10-11.md. After this PR passes CI and merges, tag its exact squash commit as v0.55.0 to trigger npm trusted publishing.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@xxchan
xxchan merged commit d6558f3 into main Oct 11, 2026
17 checks passed
@xxchan
xxchan deleted the chore/release-0.55.0 branch October 11, 2026 07:42
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]>
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.

1 participant