5-Step Architecture Graph • Persistent Git Worktree Pipeline (dev → qa → prod) • 1:1 ~/.gemini/config/ Sync
dev → qa → prod
~/.gemini/config/
worktrees/dev
worktrees/prod
Select a target Git commit SHA on prod. Rollback executes under _sync_lock and atomically restores ~/.gemini/config/ via os.replace.
prod
_sync_lock
os.replace