Skip to content

fix(gemini): enforce detached worktree and clone hygiene in background loop#5072

Merged
AceHack merged 1 commit into
mainfrom
lior/fix-loop-tick-hygiene
May 26, 2026
Merged

fix(gemini): enforce detached worktree and clone hygiene in background loop#5072
AceHack merged 1 commit into
mainfrom
lior/fix-loop-tick-hygiene

Conversation

@AceHack
Copy link
Copy Markdown
Member

@AceHack AceHack commented May 26, 2026

Summary

This PR hardens the Lior (Gemini) background loop runner prompt configuration to strictly enforce detached worktree safety (B-0750) and per-agent isolated clone architecture (B-0751).

Changes

  • .gemini/bin/lior-loop-tick.ts: Updated prompt text to:
    • Require all git operations to run inside isolated detached worktrees (git worktree add --detach <path> origin/main).
    • Ban local modifications/commits directly on the contested root checkout or on main.
    • Introduce explicit checkout and push patterns for PR generation.
    • Formally instruct compliance with the per-agent isolated clone directory layout at /private/tmp/zeta-clones/lior-antigravity/ per B-0751.

Co-Authored-By: Gemini noreply@google.com

…und loop prompt

Why: To prevent the background Lior (Gemini) loop from modifying the
contested root checkout, establishing workspace clone isolation (B-0751)
and detached worktree execution (B-0750) safeguards.

- .gemini/bin/lior-loop-tick.ts — Update Gemini loop-tick prompt with instructions to enforce detached worktrees, isolated clone hygiene, and preservation branch safety.

Co-Authored-By: Gemini <noreply@google.com>
Copilot AI review requested due to automatic review settings May 26, 2026 02:44
@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.

@AceHack AceHack enabled auto-merge (squash) May 26, 2026 02:44
@AceHack AceHack merged commit e989701 into main May 26, 2026
31 checks passed
@AceHack AceHack deleted the lior/fix-loop-tick-hygiene branch May 26, 2026 02:47
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