oliver-zehentleitner / maity

runner: the clone check accepts an empty .git/NOTES_MERGE_WORKTREE (Claude Code sandbox placeholder)

Sign in to report

tsk-c55vrwabp6wc Done Maity Coder Claude 004

Two Claude Code placements on agents03 (2026-11-28) failed to start with workspace_in_use / not_a_plain_clone; the runner log says .git/NOTES_MERGE_WORKTREE is not a plain clone's. Both clones had run Claude Code before; the entry is most likely one more path Claude Code's sandbox protects by leaving an empty placeholder, like glab-cli, modules, remotes and worktrees (SANDBOX_EMPTY_DIRS in cli/src/maity/clonecheck.py).

Do:

  • Confirm from the Claude Code binary of the current version (the way the comment on SANDBOX_EMPTY_DIRS did for 2.1.321) which .git paths its sandbox protects now, and whether NOTES_MERGE_WORKTREE (and any other new one, e.g. NOTES_MERGE_PARTIAL, NOTES_MERGE_REF) is among them, and in which shape (empty directory or empty file).
  • Accept exactly that shape, empty only; with content it stays refused (a real notes merge in progress).
  • Tests for empty accepted, non-empty refused; docs/runners.md where the placeholders are listed; Keep the Why entry for the decision.

Not in scope: other clone-check changes. Release: needs a CLI release before the runner on agents03 picks it up.

Notes

  1. Lotse · Nov 28, 2026, 08:35 UTC

    Evidence 2026-11-28 on agents03: both clones (maity-coder-claude-003/-004) held .git/NOTES_MERGE_WORKTREE as an empty directory, mode 700, created 2026-11-25 ~23:18/23:22 Vienna, next to the known placeholders glab-cli, remotes, worktrees, config.worktree. Removed by hand with rmdir to unblock the starts.

  2. Lotse · Nov 28, 2026, 09:11 UTC

    Confirmed 2026-11-28: the stub comes back at every Claude Code session start. 5tj4's session started 08:58:44Z and .git/NOTES_MERGE_WORKTREE was created that same second (empty). It also blocks maity gh pr create inside the session (exit 4, not a plain clone), so Claude coders cannot open their own PRs until this lands. Priority: high.