Repository navigation
Conversation
M4n5ter
force-pushed
the
feat/antigravity-cli-acp
branch
from
November 4, 2026 14:46
d6dbe95 to
73ae3ad
Compare
4 of 6 tasks
stamp-build Bot
added a commit
that referenced
this pull request
Nov 5, 2026
<!-- 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_bccd3887c4fb3b70dd7b2e1eda803b1b"><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 --> Antigravity's native ACP interface ships in agy CLI 1.5.0. This replaces the separate `agy_acp_server` runtime with `agy acp --dangerously-skip-permissions --process-per-session`, keeping the public runtime id `antigravity`. Thanks to `@M4n5ter` for identifying the official `agy acp` entrypoint and contributing the earlier [PR #620](#620). That report also records a real-account `agy 1.5.0` / `gemini-4-argon` / `low` session with two turns and a successful third turn after resume. I have not independently reproduced that account result; the validation below uses isolated local providers. This is a breaking migration for 0.88.0. Hosts must install stable CLI 1.5.0+ and replace old server overrides. Non-empty tool-denial lists are refused because the native CLI ignores the old filter; MCP tool-list changes are now `none`. Model, effort, append and MCP settings must be passed again on resume. Credential-bearing MCP entries and extra directories remain refused based on native persistence and cwd evidence. Consumer login stays deliberately absent under the vendor's account policy; the docs recommend provider API keys and preserve the old service stores. The revised adapter addresses the native CI failures and review findings: - Model selection waits for its native answer and configuration notification before applying effort. Effort then requires both its answer and notification to confirm the requested value within the existing deadline. Missing or contradictory confirmation rejects open. No retry or weaker assertion is used. The original spontaneous late-low case did not reproduce in 450 local native pairs, so its actual provider setting remains unknown. An explicit delivery-only control reverses the two unchanged native notifications: all 10 pairs end with low readback while their provider requests carry HIGH. Ordered native controls pass 150 pairs and a separate 10 provider requests. The report distinguishes these evidence types. - A replacing steer's early original answer cannot end the loop. A replacement failure owns the outcome only after earlier prompt answers arrived. A steer rejected while the original request is still pending cannot turn that original request's later success into failure. Regressions cover both orders; the rejection test completes the original without sending a third prompt. - Antigravity, Kimi and OpenCode require a native list entry confirming saved cwd before resume/load. Unlisted existing sessions and absent ids receive the same typed cwd refusal. Listing authentication, process-exit and generic RPC errors retain their existing classification and native cause, with no resume/load call. All three native profiles have regressions for those failures. The breaking changes name all three runtimes. Native agy can resume an unprompted session omitted by listing, and load can accept an absent id; neither establishes missing history. - Version parsing accepts only a bare stable CLI release, rejecting extra notices (including the unproven Update available form), VS Code's version/hash/architecture output and prereleases. An old executable only on PATH does not block installation into an empty official location; old official copies and pinned overrides retain actionable configuration refusals. Shell-profile edits are documented side effects but their writability is not an installation prerequisite. - Directory comparison preserves filesystem aliases and normalizes native `/D:/path` to `D:\path` only on Windows. The previous Windows CI confirmed this exact native shape in four failed resume cases; their success assertions remain unchanged. New units distinguish different drives/directories, UNC and literal percent characters, without changing POSIX interpretation. The previously approved head passed native macOS and Windows checks, including these resume cases. This rebased head has a fresh CI run. Required CI installs pinned official CLI 1.5.0 archives, verifies SHA-512, and runs native behavior and vendor suites in the three existing `check` jobs. It adds no job; the current main baseline has 36 required checks. The manual sharing-evidence workflow uses the same installer and native tool schemas. Its failed cwd-isolation observation remains a failure: native shared placement is not admitted, and child frames remain opaque. Validation on main `5848d4d8`: full check (3,279 unit tests and 18 mock cases), both builds, clean package consumption, all 15 behavior backends and all 12 Antigravity vendor cases passed. CodeBuddy behavior used the newly pinned native 2.179.3. Prior native Kimi (11), OpenCode v1 (10) and Grok (20) vendor results remain applicable to the unchanged adapter patches. Mutation controls cover Windows path normalization, listing error classification, unsupported version notices, configuration confirmation, native close, steer ownership and installation migration. Tests use isolated homes and local scripted providers. Separate tasks #176 and #177 track the two steer error races and stale configuration updates; they are not claimed fixed here. The rebase follows #593 and #619. Its only conflict was the Antigravity runtime page: the November 4 initialize-only observation remains linked as dated evidence, alongside the November 5 migration controls. Product and test patches match the previously approved head, which passed all 35 checks, including native Windows and macOS cases. All 36 checks on the rebased head now pass, including the native Windows and macOS runs (CI run 42062136694). [Report, selected native evidence, repeatable probes and host migration notes](https://github.com/botiverse/oar/blob/90660104dae25e326b557b94b004deba0f603f94/experiments/antigravity-cli-acp-2026-11-05.md). Reliable child identity, real-account behavior and structured compaction completion are not claimed. Package versions and release tags are unchanged by this PR. --------- Co-authored-by: Otter <[email protected]>
Contributor
|
Closed by Cindy, an agent of Reason: Superseded by #622, now merged and due in 0.88.0, which moves Antigravity to the official
|
Merged
stamp-build Bot
added a commit
that referenced
this pull request
Nov 5, 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_62138ffbcbca4522b115265aa4095fac"><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 --> Antigravity moves to its official `agy acp` entrypoint (breaking), and this release adds the DSH runtime, bounded record retention, opt-in cleanup of an aborted Codex turn's processes, and automatic answers to Codex's runtime requests. ## Breaking: Antigravity uses native `agy acp` (#622) - The public runtime id stays `antigravity`. It now runs `agy acp --dangerously-skip-permissions --process-per-session` instead of the separate `agy_acp_server`. - **Hosts must install stable agy CLI 1.5.0 or newer** and replace any old server override. - Non-empty `disallowedTools` is now refused, because the native CLI ignores the old filter. MCP tool-list changes are now `none`. - Model, effort, append and MCP settings must be passed again on resume. - Credential-bearing MCP entries and extra directories stay refused. Login stays absent under the vendor's account policy; use provider API keys. - Sessions and history from the old server are not migrated, so old session ids do not resume. - **Also affects Kimi and OpenCode:** the shared resume check now refuses before resuming, with `UnsupportedOptionError("cwd")`, when it cannot confirm the saved directory. Absence from the session list no longer reports `SessionNotFoundError`. - Thanks to M4n5ter, who identified the entrypoint and contributed the earlier #620. That report's real-account session was not independently reproduced; this PR's validation used isolated local providers. ## New runtime: DSH (DeepSeek Harness) (#634) - One owned `dsh` process per session, through a small private bridge plugin. OAR does not change the user's configuration and only generates a private patch; DSH itself still creates its profile and writes logs and caches. - Version floor `0.2.1-rc.5`, plus a method inventory: a missing native method makes its control absent or refused. - Supported: open, resume, prompt, steer, queue and withdraw, abort, dispose, model and effort with read-back, usage, child attribution, `listModels`. - Refused until probed: `systemPrompt`, `appendSystemPrompt`, `mcpServers`, `disallowedTools`, `launchArgs`, `serviceTier`, `additionalDirectories`, `outputSchema`, `name`, `userConfiguration: "exclude"`, `goals`, `endTurnProcessesOnAbort`, images. Login, auth status and account usage are absent. - Verified with loopback providers, and with a real DeepSeek key on Linux (0.2.2-rc.1, 0.2.1-rc.5). First-party plans are not verified. Platform coverage is in `docs/runtimes/dsh.md`. ## Bounded record retention (#630) - Opt-in `SessionOptions.retainedBytes`. Omitted, nothing changes. - Past the limit, the oldest frames lose `native` (now `null`) and their events' tool input and output, and carry `elided: true`. `seq`, frame types, event kinds, usage and text stay, so `status()` and `usage()` are unchanged. - Observers receive every record complete first. A host wanting full history persists it. - The record count and text are not bounded. Tool parts built from trimmed frames carry `elided: true`. ## Codex: end an aborted turn's processes (#633) - Opt-in `SessionOptions.endTurnProcessesOnAbort`. After a turn started by OAR's `prompt()` with a usable baseline reports `interrupted`, OAR ends the processes that turn started, with a start-identity check before any signal. Inputs drained from the queue, goal continuations and compaction are out of scope. - The app-server, its helpers, stdio MCP servers and earlier background commands survive. - A fast command caught in the baseline, one started after the snapshot, or a process that already left the tree can survive. - It would rather not kill than kill wrongly: if a process-table read fails or is unfinished, nothing is ended and the reason is recorded in a `cleanup` response, which comes after the turn's end. On Windows nothing is ended. Refused with shared placement and on every other runtime. - `SessionCleanup` `completed` and `failed` gain optional `signalled`: kills actually sent, not proof of exit. ## Codex: runtime requests are answered (#629) - A request Codex sent the client during a turn (approval, user input, MCP elicitation, dynamic tool call) was recorded and never answered, so the turn hung. OAR now records it, answers at once with a native refusal, or `-32601` for anything else, and records the answer. - **Host-visible:** `app_answered` now follows `app_request`, and `app_request_cancelled` no longer appears on Codex. ## Host tool annotations (#593) - `HostTool.annotations` (`title`, `readOnlyHint`, `destructiveHint`, `idempotentHint`, `openWorldHint`) reach `tools/list` unchanged. OAR neither validates nor acts on them. Credit: Richard Chien (stdrc). A native Codex regression pins the observed behaviour (#641). ## Kimi account usage (#637) - Unreadable or invalid quota responses now reject with a safe reason instead of reporting `available`, empty windows or 0% used. Damaged windows are omitted and valid ones kept. - Only a missing file means `credentials_missing`; other credential read failures reject. Fixes #635 and #636. ## Evidence and tests - Native evidence refreshed and CodeBuddy pinned to 2.179.3 (#619). A Windows directory removal retry in a Codex test (#639). 🤖 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.
Summary
Google now documents the official
agy acpstdio entrypoint and a standalone CLI installer. The current adapter only discovers and launches the olderagy_acp_serverdistribution, and its installer incorrectly says an editor GUI is required.agyand the official~/.local/bin/agydefault, then retain the registry-server fallback.OAR_ANTIGRAVITY_BINremains an exclusive pin.agy acpconsistently for session creation/resume and model discovery. Keep the previous argv for legacy executable overrides (including Linux--uid=). The CLI retains its nativeagy/agy.exename; Windows.cmdlaunchers are also recognized.unavailablepending native updater integration. The legacy registry check is unchanged.agylogin remains outside OAR. No credential copying, OAuth shim, client impersonation, dependency pin change or public contract change.Official references:
Validation
On macOS arm64 / Node 26.13.0:
tsrs --noEmitpasses.tsrs -p packages/oar/tsconfig.build.jsonpasses.oxlint --deny-warningson the affected code/tests passes.git diff --checkpasses.The new executable fixture calls the production runtime entrypoint, refuses a missing
acpsubcommand and exercises applied model/effort readback, multiple turns, resume and disposal. Existing legacy ACP tests remain in place. Model discovery tests assert both entrypoints' actual launch arguments.Native evidence (no account, no prompt, no browser):
agy acp --helpexposes stdio ACP. With an empty temporary HOME and no credential environment,initializeas clientoarreports ACP v1, agent version 1.5.0 and native close/resume/load/list capabilities. A subsequent production-adapter probe reports executable version 1.5.0, maps model discovery tounauthenticated, rejects session creation withAuthentication required, and completes child cleanup.Additional native account validation, authorized by the user on their installed agy 1.5.0: model discovery returned Gemini 4 Argon and Gemini 3.8 Flash, with the default's
low/medium/higheffort menu. Agemini-4-argon/lowsession confirmed both values through native readback. Two sequential turns returnedACKand a remembered codeword; after disposal, resuming the exact native session id returned the original codeword on a third turn. Both disposals recorded native exit code 0 and null resources. Text-only prompts ran in an empty temporary working directory; no login flow or credential copying was used.Not claimed: installer execution, new CLI permission/tool-denial parity, Windows/Linux native runs, or the full repository/vendor suite. The historical standalone-server evidence is explicitly kept separate from CLI evidence in the runtime documentation. CLI updater/login integration is not included.