Skip to content

chore: release v0.78.0 - #536

Merged
stamp-build[bot] merged 1 commit into
mainfrom
agent/cindy/release-0.78.0
Oct 29, 2026
Merged

stamp-build[bot] merged 1 commit into
mainfrom
agent/cindy/release-0.78.0

Conversation

@stamp-build

@stamp-build stamp-build Bot commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

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


Minor release: session placement and the shared runtime process core. No built-in runtime uses shared placement yet; every built-in runtime keeps one process per session or runs in process, as before. This release changes the start of the record stream and several public types.

Breaking changes

Record streams start with open / opened (#533)

For built-in runtimes (except the community Morph adapter) and scriptedRuntime, every successful open, including resume, begins the stream at seq 0 with an OAR request { kind: "open", placement } (the requested placement) and at seq 1 with its response { kind: "opened", placement } (the actual placement). These are OAR lifecycle records, not native frames; native initialization frames follow in their original order, so native frames' seq numbers shift by 2. Hosts must not assume the first record is a native frame or a prompt. events() omits open, opened and cleanup. Logs written by earlier versions have no opening records; folds do not invent placement or extra records for them.

Custom runtimes built with defineRuntime without placement options record no opening pair, report Session.placement as null, and refuse explicit shared and isolated. To declare placement, pass RuntimePlacementOptions as defineRuntime(definition, options) and record the pair with kernel.opened(context) from @botiverse/oar/kernel. Morph declares no placement (null, no opening pair) because it can reuse one Console across sessions.

TypeScript (#533)

Exhaustive switches and custom kernels need updates:

  • Request body open; response bodies opened, cleanup and released; a released event; ViewNotice gains { cause: "released", reason }.
  • RejectionCode gains session_released.
  • UnsupportedOptionError.option widens to keyof SessionOptions | "placement".
  • Runtime gains placement and withPlacement(); Session gains placement; defineRuntime takes an optional second argument and its return type changed.
  • SessionKernel (/kernel) gains a required opened(), and unreachable() can return session_released.
  • Additive: StartSession gains an optional third context parameter; idle AgentStatus gains released?: true; SessionResources gains scope?.

New

Session placement (#533)

Runtime.placement is the host's request: auto (the default instances), shared or isolated. runtime.withPlacement(request) returns a new runtime instance; shared sessions from that instance use its own process pool. Each opened session reports its actual placement: shared, isolated or in_process.

  • Under auto, Antigravity, Claude, CodeBuddy, Codex, Grok, Kimi, OpenCode, Qoder, Qwen and Pi RPC are isolated; Cursor, Pi in process and Pi Durable are in_process. auto shares only where a runtime version has passed OAR's evidence gate on that platform (design); none has yet.
  • Explicit shared is refused when a session opens (not when withPlacement is called) with UnsupportedOptionError on placement where sharing is not supported; in-process runtimes also refuse explicit isolated.
  • A pool joins sessions only when the executable, arguments, process cwd, environment (including inherited values) and home/configuration directories match. Session-level model, effort and MCP split a pool unless the runtime's protocol has been shown to isolate them.
  • New exported types from the root entry: PlacementRequest, SessionPlacement, SessionOpenContext, SessionCleanup, SessionRelease, RuntimePlacementOptions. The pool helpers are internal.

Release and cleanup records (#533)

In a shared process, OAR cannot kill a stuck turn without killing other sessions. When an accepted abort reaches its fallback, OAR records released: OAR stopped controlling the session, and the record states that the native turn and any work started after cleanup may continue. A release ends the waiting turn as aborted after that turn's accepted abort or dispose request (as an exit does), otherwise as failed. Later controls are rejected with session_released, or disposed once the host has requested dispose; an actual process exit still answers runtime_exited. Late native frames are still recorded and cannot reopen the turn. A cleanup response records whether per-session native cleanup completed or failed; neither result proves the work stopped. Shared dispose records released (or the process exit when the last session closes). A shared process exit ends every session in it, each with its own exit record; OAR never restarts a shared process silently. resources() on a shared session reports the whole process with scope: "shared_process". A failed pool-backed close records rejected, dispose() throws, and it can be retried; built-in runtimes' dispose is unchanged.

These behaviors apply only to shared placement, which no built-in runtime uses yet; OAR's internal pooled mock runtimes exercise them in both placements.

CLI (#533)

oar run --json and --record voyage files now include the open and opened records first. The progress renderer can print [session released; native work may continue], which the CLI's default runtime instances cannot produce today.

CI

  • The Windows Pi RPC vendor job records per-case start/end events, redacted Pi stderr tails and the combined Vitest output; an external monitor stops the test command after 3 minutes on one case or 10 minutes overall (exit 124). All of it is in an always-uploaded artifact (ci(pi): retain named Windows RPC timeout diagnostics #535).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@stamp-build
stamp-build Bot merged commit 570c48f into main Oct 29, 2026
36 checks passed
@stamp-build
stamp-build Bot deleted the agent/cindy/release-0.78.0 branch October 29, 2026 22:58
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