Skip to content

feat(agy): verify Antigravity CLI as crewmate/scout harness - #4086

Closed
jlucaso1 wants to merge 10 commits into
kunchenguid:mainfrom
jlucaso1:fm/fm-agy-verify
Closed

jlucaso1 wants to merge 10 commits into
kunchenguid:mainfrom
jlucaso1:fm/fm-agy-verify

Conversation

@jlucaso1

@jlucaso1 jlucaso1 commented Sep 9, 2026

Copy link
Copy Markdown

Verifies the Antigravity CLI (agy) as a worker runtime for crewmate and scout launches, so workers can run Gemini 3.8 Flash models inside agy's own CLI. Verified on agy 1.1.28.

What the adapter covers:

  • Launch with --prompt-interactive carrying the brief. agy rejects positional prompts outright. --dangerously-skip-permissions covers unattended tool runs. --model and --effort low|medium|high pass through natively.
  • Workspace trust pre-registered through bin/fm-agy-trust.sh. Neither approval flag covers the trust dialog.
  • Busy state through the worktree .agents/hooks.json. PreInvocation opens the turn, PostInvocation and Stop close it, and Stop keeps the turn-end touch. Install refuses tracked files and merges into untracked ones, restoring byte-exact at teardown.
  • Detection by anchored agy process ancestry. Single-Escape interrupt closes through the control plane's own idle record. /exit exits. Secondmate stays refused.

Evidence:

  • tests/fm-agy-harness.test.sh, 15 portable cases. Launch shape, hooks lifecycle, merge and restore, trust including 8-way concurrent writers, refusals, detection, control table.
  • tests/fm-agy-signals-live-e2e.test.sh, opt-in live guard, 4/4 green on agy 1.1.28. Busy token, interrupt, hooks triple, exit.
  • Supervised end-to-end ship plus interrupt and relaunch, refusal and cleanup, and concurrent-worker scenarios driven live. All green.

Out of scope: agy as primary or secondmate. No supervision protocol exists for it, so both stay refused.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 9, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-09-09T16:53:51.359828Z 04e066b PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@greptile-apps

greptile-apps Bot commented Sep 9, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 4/5

The PR is not yet safe to merge because the outstanding non-atomic stale-lock deletion can remove a concurrent helper’s live replacement lock and abort a valid agy launch.

Comment thread bin/fm-agy-trust.sh Resolved
Comment thread bin/fm-bootstrap.sh Resolved
Comment thread bin/fm-agy-trust.sh Resolved
Comment thread bin/fm-agy-trust.sh Resolved
Comment thread bin/fm-agy-trust.sh Resolved
Comment thread bin/fm-agy-trust.sh Resolved
Comment thread bin/fm-agy-trust.sh Resolved
@kunchenguid

Copy link
Copy Markdown
Owner

Speaking as Kun's firstmate: triage on fork PR #4086 (jlucaso1).

Head 78262e1aba36ce85dfd5286793069af436bc1737 (moved; older Greptile comments target prior tips). MERGEABLE / UNSTABLE. Author not blocked. No .github/**. Verifies Antigravity CLI (agy) as crewmate/scout harness (not primary/secondmate). Security skim: no workflow RCE; trust helper scopes to linked task worktrees only (mirrors claude-trust); --dangerously-skip-permissions is the unattended crewmate launch shape. Tip trust lock path revalidates before break and proves ownership at publish/release. Older Greptile P1s on trust-lock races appear addressed across tip history (ca2df53…78262e1a). Security FYI: residual concurrency edge cases around ownerless locks remain worth watching in tip CI, not a merge gate by themselves.

Attestation: MISSING (no no-mistakes-pipeline-attestation / Pipeline head_sha on tip body — NM verify fails). Contract-class: opt-in (new verified harness; unconfigured homes stay unchanged until crew-harness / spawn selects agy).

VISION.md per-rule

  • One captain, one interface — aligns (adapter stays below deck; captain still talks to firstmate).
  • Authority is explicit and never inferred — aligns (harness chosen via config/spawn; secondmate/primary refused).
  • Scripts own the mechanics, agents own the judgment — aligns (trust/hooks/spawn are scripts).
  • A restart is a non-event — aligns (hooks restore byte-exact at teardown; trust store merge is atomic).
  • Delegation with a spine — aligns (verified crewmate/scout contract with tests + live guard).
  • The fleet outlives any vendor — aligns (another verified harness adapter; primary/secondmate stay refused without supervision protocol).
  • Scope — aligns (distro harness surface, not a new workshop).

CI/NM: Tip CI 34388205786 in_progress (attempt 2; already past action_required before this pass). Tip NM 34388205625 FAIL (attestation verify). Workflow approvals this pass: none (tip not action_required). Outcome waiting-author to rebind no-mistakes attestation to tip 78262e1a… (CI can finish in parallel). Merge-eligible N. Do not merge this pass.

@jlucaso1

Copy link
Copy Markdown
Author

@kunchenguid can you review again?

@kunchenguid

Copy link
Copy Markdown
Owner

Speaking as Kun's firstmate: closing as leftover after overlapping agy adapter #4200 landed (squash 35761484). Thank you @jlucaso1 — really appreciate you taking the time on this.

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.

2 participants