Repository navigation
fix(cleanup): preserve batch and installation failures - #597
Merged
Merged
Conversation
stamp-build Bot
added a commit
that referenced
this pull request
Nov 2, 2026
…598) <!-- 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_b069ca578f942ea2eea7df444945aa16"><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 --> Weekly maintenance pass 2026-11-02, design and root README. Scope: 150 commits since the 2026-10-19 pass (0.68.1 to 0.83.0 plus unreleased #590 to #597 and #509). - `roadmap.md`: the shipped list adds placement (`Runtime.execution`, Pi RPC subprocess, `withPlacement`, no native runtime admitted to sharing), interrupt delivery, `userConfiguration: "exclude"` and login/logout/status environments. - `liveness.md`: the release record is shipped; links the record contract. - `system.md`: rule 1 now carries the observed OpenCode plugin and Grok stdio MCP child-environment counterexamples; rule 5 no longer lists per-runtime admission status (design pages hold positions; the evidence index and runtime pages hold status). - Root `README.md`: install, login, status and logout lists match the runtime registry (checked through the source registry); adds the login `env`/`userShellEnvironment()` note, interrupt delivery, `userConfiguration` (Claude, Cursor) and `oar orient`. Docs only. `CI=1 pnpm run check` on the combined pass branch: typecheck and lint pass; the only failures are the 10 `tests/grok/shared-session.test.ts` cases that fail on Linux arm64 on main as well (candidate platform gate; tracked separately as task #150). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Cindy <[email protected]>
Merged
stamp-build Bot
added a commit
that referenced
this pull request
Nov 2, 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_1fb2c3e99ea3c8907bcc12da1ca1dd98"><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 --> Minor release: Cursor's optional peer moves to `@cursor/sdk` 1.2.0 and Cursor sessions now report native compaction. A cancellation no longer waits behind a queued process-table read nobody is waiting for (all platforms; most visible on Windows, where reads are slow). ## Behavior changes for hosts ### Cursor SDK 1.2.0 and native compaction (#509) - The optional peer is now exactly `@cursor/sdk` 1.2.0 (was 1.1.0), and `@botiverse/oar-cli` depends on 1.2.0. A host that hands the SDK to `createCursorRuntime({ sdk: () => import("@cursor/sdk") })` must install 1.2.0. Hosts that do not use Cursor are unaffected. - Cursor sessions emit the existing `compaction_started` and `compaction_ended` events from the SDK's `run.stream()` summary status: `running` starts, `completed` ends `completed`, `error` ends `failed`. Cursor reports no trigger or reason. A run aborted without a final summary records no compaction end, and a summary error does not change the turn's outcome. No new event type or manual compaction control. - Every `run.stream()` message is also recorded verbatim as a `cursor/stream/<type>` frame. Only summary statuses add events, so text, tools and usage are still counted once. - The exported `CursorSdk` type's run now has `stream()`. A host that passes its own SDK object or test double typed as `CursorSdk` must implement it. - After `run.wait()` settles, the stream gets two seconds to drain. If it stays open, OAR records a `cursor/stream_unclosed` frame, stops reading it and ends the turn normally; late values cannot enter a later turn. A stream failure is recorded as `cursor/stream_failed` with the message redacted like Cursor login diagnostics. ### Process-table reads for expired callers (#596, #597) - A queued process-table read whose callers have all reached their deadline is skipped instead of run. The batcher serves every platform: the one-second cancellation observation has a deadline everywhere, and on Windows so do the five-second capture, revalidation and background preparation reads. Before, an abandoned read could hold the queue, so a second cancellation shortly after the first could spend its one-second observation budget waiting and leave its tool cleanup unverified. A read already started still completes, and a late result still never counts as identity evidence for a caller that timed out. A request without a deadline always runs. Windows background preparation's existing five-second budget now also covers time spent queued: if it expires before the read starts, the read is skipped and preparation records a timeout. - A failure while starting a queued read no longer leaves the read in the queue. ### Grok explicit shared placement (#585) - The refusal message for an explicit `shared` request on `grokRuntime` changed; it is still `UnsupportedOptionError` with `option: "placement"` on every version and platform. Match on `option`, not on the text. The experimental Grok shared adapter added here is internal and unreachable from `grokRuntime` (`auto` stays isolated); only the composition under `experiments/sharing`, where its evidence lives, enables it. ## Docs - Weekly maintenance pass (#598, #599, #600, #601): spec tables, the package README and runtime pages now cover Qwen, Qoder and CodeBuddy where they were missing, and statements that had drifted from the code are corrected (steer, `withdraw`, `resources()`, login and status coverage, Claude and Codex details, Kimi status and login floor). All pages state that no native runtime is admitted to shared placement. - Qwen's runtime page documents how Qwen renames reused tool-call ids and suppresses identical replays (#590, #592). ## Tests and CI - CodeBuddy CI pin 2.179.1 and Qwen 0.26.5 verification (#590); Qwen tool-call id regressions (#592); interrupt tests separated from forced-exit timing (#591); the cancellation-queue regression waits out its expired read before the next control (#595); CodeBuddy installation smoke keeps its result when temporary-directory cleanup fails (#597); pnpm `autoInstallPeers` set in `pnpm-workspace.yaml` and the stale `.npmrc` removed (#594); Grok shared-adapter tests respect the candidate's platforms (#602). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Cindy <[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.
Batch startup exceptions could leave a failed entry in the process-table queue, preventing subsequent callers from obtaining a fresh read. Put startup and caller filtering inside the existing failure conversion and cleanup block, and document that the raw deadline only gates query start; the bounded observer still rejects late results.
The CodeBuddy installation smoke could replace the original installation result with a temporary-directory deletion error, as the Windows check on #596 demonstrated. Retry deletion a bounded number of times and emit a separate cleanup diagnostic if it still fails, preserving the installation result or original exception.
Regression coverage exercises startup failure recovery, failed or rejected predecessors with expired and live callers, independent query sources, and the actual Windows preparation/cleanup budget path. The Windows mock now forwards request options. Three tests import the smoke entry and verify that cleanup failure preserves success, a failed installation result, and a thrown installer error.
Validation:
CI=1 pnpm run check: 2,972 tests and 18 mock behaviors passed.CI=1 pnpm run build: passed.pnpm tsx sea-trial/all.ts: all 14 backends passed with CI-pinned binaries and bounded concurrency.8144c92d, including Linux/macOS/Windows check jobs with the real installation smoke and unit failure controls.Follow-up to #596, Raft task 149. Public APIs, process identity checks, and observation/installation deadlines are unchanged.