Repository navigation
feat(antigravity): sign in with agy's own login and read its status - #720
Conversation
9b2b831 to
999162f
Compare
A person may paste the whole landing URL; agy can echo just its code parameter, which redacting the whole URL missed (Otter, #720 review). The code value, raw and decoded, is now a secret too. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Review of
Please also remove the contradictory statement in The exit-0 confirmation policy is consistent with the existing contract: a positive logged-out answer fails, while an unavailable confirmation retains the runtime's success without account data. The current vendor FAQ supports retaining the third-party-use warning and API-key alternative; wrapping the native CLI does not establish vendor authorization. Full authenticated sign-in through OAR is still unverified and should remain stated as such until the planned human validation. Native controls used only an isolated empty HOME, a blank answer, and harmless opener sentinels. No credential was created or read. Selected results and runnable reproduction are supplied in the review thread.
|
…ask again on a blank answer Otter's review on real agy 1.5.5 (#720): - agy ignores BROWSER and runs xdg-open from PATH, whose GNOME branch calls gio open. For openBrowser: false the login child's PATH now starts with a directory holding a launcher that does nothing (xdg-open, macOS open, or rundll32.exe from hostname.exe on Windows), as Kimi's login does; where it cannot be set up the login is unsupported (browser_suppression_unavailable) before anything runs. Live control: agy ran the PATH-first launcher and neither the system xdg-open nor gio. - agy keeps waiting on a blank line, so OAR asks again instead of sending one; the fixture now models that and cancels only on closed input. - The status read after a success is bounded at 20 s, as the login spec says; capabilities.md loses its old "deliberately absent" sentence. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The evidence no longer depends on a review attachment: probe.py reruns both controls and regenerated path-launcher-selected.json (Otter, #720 review). Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
[P1] The Windows PATH launcher does not suppress agy's browser ( I checked Google's official Windows x64 agy 1.5.5 binary against its release manifest SHA-512. Its Please return The Linux change is verified: all 23 targeted checks passed, and real agy through OAR re-prompts after a blank answer, cancels cleanly, leaves login status unchanged, and never reaches the later Windows evidence: official manifest
|
agy 1.5.5 on Windows runs %SYSTEMROOT%\System32\rundll32.exe by absolute path (Otter, #720 review), which no PATH launcher replaces, and changing SYSTEMROOT would affect far more than the browser. openBrowser: false there is browser_suppression_unavailable before anything runs. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Reviewed 7c24695 against fa9c90c. The blocking findings are addressed: extracted authorization-code values are redacted, blank answers cause another host prompt, Linux browser launch is intercepted, and Windows refuses openBrowser:false before starting agy. The status confirmation limit and capabilities documentation are corrected, and the public probe is committed. Independent validation: 23 focused checks passed (one Windows-only case skipped here). Additional cases cover temporary-launcher cleanup after success, rejection and cancellation, and preservation of the host PATH. Real Linux agy 1.5.5 through OAR reaches two prompts after a blank answer, then cancels cleanly, stays logged out, and never calls the later xdg-open/gio sentinels. Both committed direct-probe variants reproduce the documented results. The official Windows binary statically uses an absolute SYSTEMROOT/System32/rundll32.exe path, supporting the new refusal. The SHA-512-verified official macOS x64 1.5.5 binary instead calls os/exec.Command("open", url), supporting the PATH helper. This is static macOS/Windows evidence, not native execution on those platforms. macOS reference: open.Start at 0x10293e7a0, command string "open" at 0x103f61d29, exec.Command at 0x1008ef2e0; official manifest https://antigravity-cli-auto-updater-974169037036.us-central1.run.app/manifests/darwin_amd64.json. A complete authenticated sign-in through OAR remains unverified and is still owned by Cindy before release. The vendor terms warning and API-key alternative remain explicit. CI and merge remain with the author; please also keep the PR description's browser paragraph explicit about the Windows refusal.
|
A person may paste the whole landing URL; agy can echo just its code parameter, which redacting the whole URL missed (Otter, #720 review). The code value, raw and decoded, is now a secret too. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ask again on a blank answer Otter's review on real agy 1.5.5 (#720): - agy ignores BROWSER and runs xdg-open from PATH, whose GNOME branch calls gio open. For openBrowser: false the login child's PATH now starts with a directory holding a launcher that does nothing (xdg-open, macOS open, or rundll32.exe from hostname.exe on Windows), as Kimi's login does; where it cannot be set up the login is unsupported (browser_suppression_unavailable) before anything runs. Live control: agy ran the PATH-first launcher and neither the system xdg-open nor gio. - agy keeps waiting on a blank line, so OAR asks again instead of sending one; the fixture now models that and cancels only on closed input. - The status read after a success is bounded at 20 s, as the login spec says; capabilities.md loses its old "deliberately absent" sentence. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The evidence no longer depends on a review attachment: probe.py reruns both controls and regenerated path-launcher-selected.json (Otter, #720 review). Co-Authored-By: Claude Opus 5.5 <[email protected]>
agy 1.5.5 on Windows runs %SYSTEMROOT%\System32\rundll32.exe by absolute path (Otter, #720 review), which no PATH launcher replaces, and changing SYSTEMROOT would affect far more than the browser. openBrowser: false there is browser_suppression_unavailable before anything runs. Co-Authored-By: Claude Opus 5.5 <[email protected]>
7c24695 to
7f29326
Compare
OAR had no Antigravity login by policy: the vendor warns that third-party access with a consumer login may break its terms. The project owner reversed that for Raft (2026-11-10): OAR runs the CLI's own login and ACP server and never uses the credential, so the terms question is the host's and the user's. Recorded in decisions.md with what would reopen it. - login: `agy acp --login`, relaying its Google URL as auth_url and asking the host for the code (manual_code), written only to agy's stdin; exit 0 is confirmed by `agy models`. - authStatus: `agy models` (exit 0 logged in; exit 1 "Please sign in" logged out; otherwise unknown). - No logout: the CLI refuses /logout outside its interactive UI. Verified on agy 1.5.5 up to the code prompt and the logged-out status; a fake agy pins the flow, cancellation, refusal redaction and a false exit 0. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A person may paste the whole landing URL; agy can echo just its code parameter, which redacting the whole URL missed (Otter, #720 review). The code value, raw and decoded, is now a secret too. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ask again on a blank answer Otter's review on real agy 1.5.5 (#720): - agy ignores BROWSER and runs xdg-open from PATH, whose GNOME branch calls gio open. For openBrowser: false the login child's PATH now starts with a directory holding a launcher that does nothing (xdg-open, macOS open, or rundll32.exe from hostname.exe on Windows), as Kimi's login does; where it cannot be set up the login is unsupported (browser_suppression_unavailable) before anything runs. Live control: agy ran the PATH-first launcher and neither the system xdg-open nor gio. - agy keeps waiting on a blank line, so OAR asks again instead of sending one; the fixture now models that and cancels only on closed input. - The status read after a success is bounded at 20 s, as the login spec says; capabilities.md loses its old "deliberately absent" sentence. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The evidence no longer depends on a review attachment: probe.py reruns both controls and regenerated path-launcher-selected.json (Otter, #720 review). Co-Authored-By: Claude Opus 5.5 <[email protected]>
agy 1.5.5 on Windows runs %SYSTEMROOT%\System32\rundll32.exe by absolute path (Otter, #720 review), which no PATH launcher replaces, and changing SYSTEMROOT would affect far more than the browser. openBrowser: false there is browser_suppression_unavailable before anything runs. Co-Authored-By: Claude Opus 5.5 <[email protected]>
7f29326 to
d82589d
Compare
<!-- 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_b4346693e3c47eae60e940c1fb2d21c3"><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: Codex refusals are typed (an outdated Codex, an unreadable config.toml, and refused turns); Antigravity gets sign-in and status through agy's own login; Cursor moves to SDK 1.3.1. ## Upgrade notes - **Cursor hosts must install `@cursor/[email protected]`.** The optional peer is an exact version and moves from 1.2.0 to 1.3.1 (#725). - **`RejectionCode` gains `session_not_found`.** An exhaustive TypeScript switch over it must handle the new value. ## Codex refusals (#726) - **An outdated Codex fails the open as `RuntimeFailureError` with `code: "runtime_outdated"`** (`failure: "invalid_request"`). The message names the running version (from `initialize`'s `userAgent`, else the installation's probed version, else "version unreported") and the first release that has what OAR sent. That covers `serviceTier: "default"` or `"priority"` before 0.129.0 and `thread/settings/update` (setting a resumed thread's effort) before 0.133.0. - **An unreadable `config.toml` fails the open with `code: "runtime_config_invalid"`.** The message keeps Codex's words, including the file, line and column. Codex starts on its defaults and refuses only at `thread/start` / `thread/resume`. - **Refused `turn/start`, `turn/steer` and `thread/queue/add` keep Codex's JSON-RPC error as `native` and are classified by its code.** - `thread not found` is the new rejection code `session_not_found`. This process no longer has the thread, so open a new Session with `resume`. - Input over Codex's limit is `runtime_refused` with `failure: "input_too_large"`. - A full request queue is `runtime_refused` with `failure: "overloaded"`. - A configuration that does not load, or a model provider the thread cannot use, is `runtime_refused` with `failure: "invalid_request"`. - Anything else stays `runtime_refused` without a class. - **`failure` is new on the rejected response body, on `ControlOutcome`, and on rejected `DeliverResult` and `SteerOrQueueResult`.** `RuntimeFailureCode` is exported. - Evidence: nine npm releases between 0.118.0 and 0.135.0, and 0.154.0, over raw app-server stdio ([probe](https://github.com/botiverse/oar/blob/main/experiments/codex-old-releases/README.md)), plus the 0.167.0 source for the turn/start paths. `docs/runtimes/codex.md` also notes that the Codex Desktop CLI can be older than the `codex` on PATH. ## Antigravity sign-in and status (#720) - **`login`** runs `agy acp --login`. It relays agy's Google URL as `auth_url`, then asks the host with a `manual_code` prompt for the authorization code or the landing URL. OAR writes the answer only to agy's stdin, never reads or writes the credential, and asks again on a blank answer. With `openBrowser: false`, a do-nothing launcher keeps the browser closed on Linux (checked live) and macOS (from reading agy's binary, not run); on Windows, agy starts its browser launcher by absolute path, so the login returns `browser_suppression_unavailable` before anything runs. - **`authStatus`** runs `agy models`. It reports `logged_in`, or `logged_out` on agy's "Please sign in", and `unknown` otherwise. - **No `logout`**: agy refuses `/logout` outside its interactive UI, and OAR does not delete the token itself. - This reverses OAR's earlier no-login stance for Antigravity, at the project owner's decision (`docs/design/decisions.md`). Google warns that third-party access with an Antigravity login breaks its terms; its [Antigravity terms](https://antigravity.google/terms) (section 6) name it as grounds for suspending the Antigravity and/or Gemini CLI accounts. Whether a host offers this is the host's and the user's call. - Live status: the URL and prompt shape come from agy 1.5.5. A full successful sign-in through OAR has not been run yet; the first one will happen in Raft. ## Other - Grok's Windows vendor test now runs a real slow command (#722). - November 10 and 11 native runtime checks and OpenCode cleanup notes (#724, #725). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Cindy <[email protected]>
<!-- 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_a3fe0032283a2422fd954daec290c88c"><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 gets `logout`, through agy's own ACP `logout`. In #720 I wrote that agy has no logout, because print mode refuses `/logout`. That was incomplete: `agy acp` declares `agentCapabilities.auth.logout` in `initialize`. ## Evidence `experiments/antigravity-login/logout-probe.py`, agy 1.5.5 on Linux, 2026-11-11. It ran in an empty temporary HOME holding only a placeholder `antigravity-oauth-token` (not a credential). No Google account was involved. ```text auth capability: {"logout": {}} sign-in methods: ['oauth-personal', 'oauth-business', 'gemini-api-key', 'agent-platform'] logout answer: {"jsonrpc": "2.0", "result": {}, "id": 2} placeholder token file still there: False ``` ## Change - `antigravityRuntime.logout` sends ACP `initialize` then `logout` on a fresh `agy acp`, and `agy models` decides the result, the same as Kimi's logout: - If the build doesn't declare the capability, the result is `unsupported` / `version_unsupported` and nothing is sent. - If agy still reports a sign-in afterwards, the result is `still_logged_in`. - OAR never touches the token file. - The ACP auth call moves from `kimi/auth-status.ts` to `shared/acp/auth-query.ts`, and both runtimes use it. Kimi's behavior and tests are unchanged. - Docs: `antigravity.md` (login section, plus the stale "no login integration" sentence at the top), `spec/login.md` logout table, `design/capabilities.md`, `design/decisions.md`. - Not observed: logout with a keyring-stored sign-in, and whether agy revokes the grant at Google. The docs say so. Tests: the fake agy now speaks enough ACP for logout. Three new cases cover success, a sign-in that stays, and no capability. `pnpm run check` is green. Raft's Otter will add a Sign Out button to the Antigravity card once this ships (#oar-raft:e71d0cf8). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Cindy <[email protected]>
Adds Antigravity
loginandauthStatus(nologout), as decided by the project owner for Raft on 2026-11-10 (#oar-rafte9798673). OAR previously had none by policy, because the vendor warns that third-party access with a consumer login may break its terms; the reversal and what would reopen it are recorded indocs/design/decisions.md. OAR runs the CLI's own login and ACP server and never reads or writes the credential.agy acp --loginover pipes. It prints a Google URL (relayed asauth_url) and then asks for the authorization code or landing URL; OAR asks the host with amanual_codeprompt and writes the answer only to agy's stdin. A blank answer is never sent (agy would keep waiting), so OAR asks again. Exit 0 is confirmed by the status read (bounded at 20 s). agy ignoresBROWSERand starts its own launcher. On Linux it findsxdg-openon PATH (live control) and on macOSopen(static reading of the official binary, not run), soopenBrowser: falseputs a do-nothing launcher first on the child's PATH, as Kimi's login does. On Windows it runs%SYSTEMROOT%\System32\rundll32.exeby absolute path, soopenBrowser: falsethere returnsbrowser_suppression_unavailablebefore anything runs.agy models: exit 0 islogged_in; exit 1 withPlease sign inislogged_out; anything else isunknown. A remote call, so notlocalOnly./logoutin print mode ("it clears stored credentials"); OAR does not delete the token itself.Evidence: agy 1.5.5 on Linux in an isolated home, up to the code prompt and the logged-out
agy modelsrefusal; launcher and blank-input controls inexperiments/antigravity-login(agy ran the PATH-first launcher, not the systemxdg-openorgio; a blank line waits, closed input cancels); a person's real sign-in through the CLI's interactive UI on another machine produced a 0600 token file under$GEMINI_HOME/antigravity-cli/. Not yet verified: a completeagy acp --loginsign-in through OAR (needs a person; I will ask for one before the release) and keyring storage on desktops. A fake agy pins the flow, an empty answer, a refused code (not echoed), a false exit 0, cancellation, a pasted landing URL whose code alone is echoed, the PATH launcher and the three status answers. Review: Otter found the landing-URL code leak, the launcher on Linux and Windows, and the blank-answer wait; all fixed with regressions.🤖 Generated with Claude Code