Repository navigation
fix(sea-trial): retain native startup failures in effort checks - #1049
Merged
Merged
Conversation
Co-authored-by: xxchan <[email protected]>
Contributor
Author
|
GO @ 29fbe8f Read the full diff against be9524e. I did not run it locally; CI is still running. What this gets right:
Non-blocking:
|
stamp-build
Bot
deleted the
agent/otter/sea-trial-startup-diagnostics
branch
November 20, 2026 04:25
This was referenced Nov 20, 2026
stamp-build Bot
added a commit
that referenced
this pull request
Nov 20, 2026
…gnostics (#1053) <!-- stamp:review:v1 --> <sup><img src="https://cdn.slock.ai/avatars/6aabf32c-20bc-4cba-b55a-2aa72b60999b/8ba4452ceb890f1930886ef4286fdb99.webp" width="16" height="16" align="absmiddle" alt=""> <b>Otter</b> from open-agent-runtime opened this pull request through Stamp</sup><br><sup><a href="https://stamp.build/review?receipt=prc_3d27daaf80ca0016670ed41743fe27bf"><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 --> An isolated session now reports the exit code or signal and its bounded, redacted stderr when an OAR-owned native process exits during a turn. Previously the ACP turn could end with only “runtime exited”, and stream-json discarded stderr after the first native frame. A clean exit with no diagnostic detail retains the existing response shape. The shared ACP process sends its redacted stderr to the process diagnostic sink. Attached sessions get the common exit code or signal. The record-stream specification documents placement and what consumers can read in each case. The independent Windows effort check is marked for removal once the underlying startup failure is diagnosed. The regression controls exercise an actual isolated ACP child exiting during a prompt, a stream-json child exiting after its first frame, and two leases attached to one shared process. They check redaction and which records receive the stderr. Existing cancellation controls check that successful cleanup preserves the ordinary exit response. This records what OAR observes at its process boundary. Antigravity can send JSON-RPC error `-32603` about an internal worker while its ACP server remains alive. That reply does not give the worker's code or signal. The Windows OpenCode 2.2.7 startup investigation remains open for the next failure captured with the diagnostics from [PR 1049](#1049). The full local check passed 5,471 unit tests and 19 mock behavior cases. Co-authored-by: Otter <[email protected]> Co-authored-by: xxchan <[email protected]>
stamp-build Bot
added a commit
that referenced
this pull request
Nov 20, 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_89b2b4088177a663c603b0e57fd3b7b0"><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 --> ## OAR 0.125.0 ### Behavior changes hosts should know - **Session MCP credentials are refused where isolation is not verified** (#1047). Pi RPC, both Cursor placements and Devin now refuse an MCP server entry with a nonempty environment or HTTP header map. Claude declares the same refusal on Windows, and on POSIX rejects the open if it cannot create the private FIFO. Credential-free entries still attach. Hosts should read the installed MCP refusal declarations before passing a managed server with a token. - **Claude refuses host `--settings` when OAR supplies a settings object** (#1041). Claude keeps only one of two settings sources, so a host value would silently replace OAR's (or the reverse). Host-only file paths and inline JSON still pass when OAR emits no settings. - **Codex and Pi keep the user's configured instructions when a host appends** (#1050, #1056). Codex keeps `developer_instructions`. `appendSystemPrompt` now appends after them instead of replacing them, on new sessions, cold resume and fork. Pi SDK and Pi RPC do the same with the user's `APPEND_SYSTEM.md`: the selected file (a trusted project's `.pi/APPEND_SYSTEM.md`, else the global one) comes first and the host text after it, and an empty append leaves it intact. - **Claude update and upgrade no longer guess a native install** (#1037). A layout OAR cannot identify reports `unmanaged_installation`, and a Linux system package (apt, dnf, apk, pacman, found by a read-only ownership query) reports `package_manager`. `upgrade` refuses both instead of running `claude update`. Windows native `%USERPROFILE%\.local\bin\claude.exe` is still recognized. - **OpenCode prompt options work with a host `OPENCODE_CONFIG_CONTENT`** (#1051). OAR edits only the fields it owns in the host's inline JSON, appends its instructions file after the host's, and refuses only when both set the same prompt field, naming it. A native `debug` check confirms the result before launch. - **Antigravity reports the account plan, and the email where it can read it safely** (#1054). `authStatus`, login and `accountUsage` now carry the plan name (for example "Google AI Ultra") from the same ACP `authenticate` reply agy's own client gets, cached for five minutes and cleared on login or logout. The account email comes from agy's plain token file only on Linux when no Secret Service keyring is present, since otherwise that file may not be the active login. OAR never writes or refreshes agy's credentials, following the new design rule on stored credentials (#1052). ### Fixes - **Qoder and other stream-json runtimes: native notification turns are admitted** (#1048). A root turn that the runtime starts itself (for example when a background tool finishes) now shows as running in `status()`, and steering is accepted during it instead of being refused with `no_active_turn`. - **Shared ACP: a lease's credential redactor is registered before initialization** (#1042), so a lease that falls back to an isolated process is covered from the first byte. - **Unexpected session process exits carry the native diagnostic** (#1053). Every runtime now reports why its process exited (exit code or signal plus a redacted stderr tail) in the session exit reason, and a planned stop is no longer reported as a failure. Shared ACP processes send stderr only to the process diagnostic, not to each lease. - **sea-trial keeps native startup failures** (#1049): a failed open records `session_open_failed` with exit code or signal and a redacted stderr tail. ### Docs - Design rule for using a runtime's stored credentials (#1052): reads are free, requests only where the native client makes the same one, never write the store, keychains decided separately, private formats only feed answers that fail closed. Model request spec for Claude and Pi (#1039), Qwen native memory caveats (#1046), Codex thread instructions across compaction and reopen (#1044), ACP shared admission experiment links (#1027). ### Harbor (repo tooling, not published) - Idle large sessions are recycled with a handoff, daily token cap per agent (#1043); QA operations, contract checks, and deliveries that survive a restart (#1045). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Cindy <[email protected]>
Contributor
Author
|
New failure in post-merge full tests: workflow Newly failing:
It could be any of PR 1037, PR 1039, PR 1046, PR 1047, PR 1048, PR 1049, PR 1050, PR 1051 and 5 more. Please fix. See logs: |
stamp-build Bot
added a commit
that referenced
this pull request
Nov 20, 2026
…ure (#1064) <!-- stamp:review:v1 --> <sup><img src="https://cdn.slock.ai/avatars/6aabf32c-20bc-4cba-b55a-2aa72b60999b/8ba4452ceb890f1930886ef4286fdb99.webp" width="16" height="16" align="absmiddle" alt=""> <b>Otter</b> from open-agent-runtime opened this pull request through Stamp</sup><br><sup><a href="https://stamp.build/review?receipt=prc_15cdb40365b79ceb51114221aa16a4b2"><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 --> One of seven parallel Windows runs of the OpenCode 2.2.7 suite failed before the effort assertion. OpenCode reported a SQLite I/O error before the ACP parent and standalone child exited with status 1. The three serial runs all passed. Two independent projects completed 36 ordinary opens sharing a database and 36 with separate databases. The specific operation that failed in the Windows run is still unknown. [Failing parallel sample](https://github.com/botiverse/oar/actions/runs/44685259195/job/136117956965), [serial control](https://github.com/botiverse/oar/actions/runs/44685259195/job/136117957146), [two-agent comparison](https://github.com/botiverse/oar/actions/runs/44687371193). At a rejected Windows fixture open, inspect the last 128 KiB of its native log. The trace can now preserve recognized database operations, SQLite codes and error categories that occurred during the open, even if ACP dropped the native stderr from the exception. A peer using the same data directory can contribute a log entry in that window. The original rejection remains visible. Verified against the default native Linux 2.2.7 log using a disposable fixture database. The healthy server started. The invalid database exited with status 1 and the collector retained “configure database” and “file is not a database”. A regression covers an ACP exception without stderr, and the filter tests cover timestamps, severity and private non-category text. Full local check passed with 5,500 unit tests and 19 mock behaviors. Refs #1049, #1053, #1058 Co-authored-by: Otter <[email protected]> Co-authored-by: xxchan <[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.
The Windows OpenCode 2.2.7 ACP executable reported that its standalone server exited before readiness on three independent heads. The negative effort case replaced that error with an assertion about the requested level. A second effort case accepted any open failure when a model listed no effort levels.
Preserve the adapter's startup error in the trace and propagate an ACP exit or deadline through effort selection. Both cases still accept a genuine refusal naming the requested effort. Four regressions start a real child, make it exit during initialize or effort selection, and check the exit code or signal and the bounded, redacted stderr tail.
A failed Windows OpenCode behavior step now also runs the effort assertion alone in a new process, with a separate trace. The original failure stays visible. These diagnostics describe the ACP executable OAR started. Its internal standalone server's exit reason is available only if OpenCode reports it.
Validation passed 5,468 unit tests and 19 mock cases. The native 2.2.7 behavior suite passed on Linux (18 cases, two capability skips), as did the effort case on its own.
Windows instances: 1041, 1045, 1048.