Fix Gemini provider write guard: --allowed-tools was deprecated and ineffective
The Gemini CLI deprecated --allowed-tools — it only controlled auto-approval,
not tool availability. Combined with --yolo, non-write agents had unrestricted
access to write_file, edit_file, replace, etc. This was the root cause of
agents self-modifying their own prompts, overwriting sol/identity.md, creating
scripts, and mutating test fixtures.
Replace with --approval-mode: "plan" (read-only) for non-write agents, "yolo"
(full access) for write-enabled agents only.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>