Skip to content

Gemini repository review can expand to user-home root and fail permission check #165

Description

@sumitake

Summary

A direct, read-only Gemini plan review can fail before returning a verdict because agy attempts to read the user-home root instead of remaining inside the supplied project working directory.

Observed environment

  • installed public plugin: agent-collab 6.2.3
  • carrier: agy 1.1.19
  • working directory: a clean agent-collab-workspace worktree
  • invocation class: agy --mode plan --sandbox --effort high --print ...
  • requested authority: read-only plan review; no edits and no external services

Result

The process exited nonzero before a verdict:

permission check failed for read_file "/Users/josumi": user denied permission for read_file(/Users/josumi)

No provider verdict was consumed, and the invocation was not replayed.

Expected

The review should stay inside the explicit current project, or return a typed missing-criterion response identifying the path it actually needs. A parent/home-root read should not be invented for a repository-local plan review.

Follow-up scope

Audit the Gemini/direct-CLI workspace-root derivation and ensure repository-local review prompts cannot expand to the user-home root. Preserve fail-closed permission behavior; correct the requested path rather than broadly granting home access.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions