Repository navigation
chore: release v0.78.0 - #536
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <[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.
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, includingresume, 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()omitsopen,openedandcleanup. Logs written by earlier versions have no opening records; folds do not invent placement or extra records for them.Custom runtimes built with
defineRuntimewithout placement options record no opening pair, reportSession.placementasnull, and refuse explicitsharedandisolated. To declare placement, passRuntimePlacementOptionsasdefineRuntime(definition, options)and record the pair withkernel.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:
open; response bodiesopened,cleanupandreleased; areleasedevent;ViewNoticegains{ cause: "released", reason }.RejectionCodegainssession_released.UnsupportedOptionError.optionwidens tokeyof SessionOptions | "placement".RuntimegainsplacementandwithPlacement();Sessiongainsplacement;defineRuntimetakes an optional second argument and its return type changed.SessionKernel(/kernel) gains a requiredopened(), andunreachable()can returnsession_released.StartSessiongains an optional thirdcontextparameter; idleAgentStatusgainsreleased?: true;SessionResourcesgainsscope?.New
Session placement (#533)
Runtime.placementis the host's request:auto(the default instances),sharedorisolated.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,isolatedorin_process.auto, Antigravity, Claude, CodeBuddy, Codex, Grok, Kimi, OpenCode, Qoder, Qwen and Pi RPC areisolated; Cursor, Pi in process and Pi Durable arein_process.autoshares only where a runtime version has passed OAR's evidence gate on that platform (design); none has yet.sharedis refused when a session opens (not whenwithPlacementis called) withUnsupportedOptionErroronplacementwhere sharing is not supported; in-process runtimes also refuse explicitisolated.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 asabortedafter that turn's accepted abort or dispose request (as an exit does), otherwise asfailed. Later controls are rejected withsession_released, ordisposedonce the host has requested dispose; an actual process exit still answersruntime_exited. Late native frames are still recorded and cannot reopen the turn. Acleanupresponse records whether per-session native cleanup completed or failed; neither result proves the work stopped. Shared dispose recordsreleased(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 withscope: "shared_process". A failed pool-backed close recordsrejected,dispose()throws, and it can be retried; built-in runtimes'disposeis 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 --jsonand--recordvoyage files now include theopenandopenedrecords first. The progress renderer can print[session released; native work may continue], which the CLI's default runtime instances cannot produce today.CI