Skip to content

agy: operator-installed plugin hooks run inside read-only lanes (unscheduled) #197

Closed as not planned

Description

@ericlitman

Outcome

Record an accepted review finding against the Antigravity (agy) runner provider from PR #196. Unscheduled: per AGENTS.md, build this only after the failure is seen in real use.

Finding (PR #196, Unfret, heads dd27230 and 680fc2e)

Critical, "Ambient agy hooks bypass the read-only boundary" (plugins/pstack/skills/poteto-mode/scripts/runner/providers/agy.ts). An agy lane keeps the real HOME, because agy's login lives in the keychain under it. agy loads the operator's own plugin hooks from ~/.gemini/antigravity-cli/plugins/*/hooks.json in every lane, and no agy flag or config turns them off; the run-owned agent limits only the model's tools to view_file. A host hook that writes in $PWD runs with the lane's cwd, so it could change the checkout while the receipt says read-only and complete.

Why it was accepted

Eric, 2026-10-16: hooks the operator installs in their own agy are trusted operator configuration, as Codex lanes already run with the operator's own Codex configuration. The catalog's agy notes disclose that host plugin hooks still load. The only hook on the measured Mac is Vibe Island's status bridge (vibe-island-bridge --source antigravity --event ...), which reports agent state and writes nothing into the cwd. Repository-controlled hooks stay refused: the runner refuses agy lanes in repositories holding .agents/, .agent/, _agents/ or _agent/.

Build condition

Build only if an operator-installed agy hook is seen changing a checkout during a read-only lane. The smallest fix then is to refuse an agy lane while any host agy plugin hook is enabled, and say so in the catalog notes.

Activity

  1. ericlitman commented on Oct 16, 2026

    @ericlitman
    OwnerAuthor

    Closed by Eric's rule in #203 (REVIEW.md, merged in #205): a read-only lane means the read-only settings pstack passes to the CLI, and configuration the operator installed, such as agy plugin hooks, applies as they set it up. The refusal this issue planned as its build condition is out of scope; the agy catalog notes disclose the hooks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions