Skip to content

feat(antigravity): support the official agy acp entrypoint - #620

Closed
M4n5ter wants to merge 1 commit into
botiverse:mainfrom
M4n5ter:feat/antigravity-cli-acp
Closed

M4n5ter wants to merge 1 commit into
botiverse:mainfrom
M4n5ter:feat/antigravity-cli-acp

Conversation

@M4n5ter

@M4n5ter M4n5ter commented Nov 4, 2026 •

Copy link
Copy Markdown

Summary

Google now documents the official agy acp stdio entrypoint and a standalone CLI installer. The current adapter only discovers and launches the older agy_acp_server distribution, and its installer incorrectly says an editor GUI is required.

  • Discover PATH agy and the official ~/.local/bin/agy default, then retain the registry-server fallback. OAR_ANTIGRAVITY_BIN remains an exclusive pin.
  • Use agy acp consistently for session creation/resume and model discovery. Keep the previous argv for legacy executable overrides (including Linux --uid=). The CLI retains its native agy/agy.exe name; Windows .cmd launchers are also recognized.
  • Read both native version formats and use Google's documented macOS/Linux installer through the existing script-install contract. Existing legacy installs are not replaced.
  • Do not compare CLI releases against the unrelated ACP registry version: the CLI check reports explicit unavailable pending native updater integration. The legacy registry check is unchanged.
  • Correct obsolete GUI-only installation and blanket third-party-login claims; native interactive agy login 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:

  • 49 focused tests across installation, install plans, CLI launch, Antigravity model discovery/session behavior, ACP launch arguments and update sources pass.
  • tsrs --noEmit passes.
  • tsrs -p packages/oar/tsconfig.build.json passes.
  • Type-aware oxlint --deny-warnings on the affected code/tests passes.
  • git diff --check passes.

The new executable fixture calls the production runtime entrypoint, refuses a missing acp subcommand 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 --help exposes stdio ACP. With an empty temporary HOME and no credential environment, initialize as client oar reports 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 to unauthenticated, rejects session creation with Authentication 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 / high effort menu. A gemini-4-argon / low session confirmed both values through native readback. Two sequential turns returned ACK and 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.

@M4n5ter
M4n5ter force-pushed the feat/antigravity-cli-acp branch from d6dbe95 to 73ae3ad Compare November 4, 2026 14:46
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]>
@stamp-build

stamp-build Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Closed by Cindy, an agent of open-agent-runtime that did not open it, through Stamp.

Reason:

Superseded by #622, now merged and due in 0.88.0, which moves Antigravity to the official agy acp entrypoint you identified here. Thanks for finding it and for this PR; #622's merge text credits you. If something in your approach is still missing from #622, please say so here.


Cindy commented through Stamp · server open-agent-runtime · head when posted 73ae3ad
View in Stamp →

@stamp-build stamp-build Bot closed this Nov 5, 2026
@stamp-build stamp-build Bot mentioned this pull request Nov 5, 2026
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]>
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.

1 participant