oliver-zehentleitner / maity
runner: the clone check accepts an empty .git/NOTES_MERGE_WORKTREE (Claude Code sandbox placeholder)
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_DIRSdid for 2.1.321) which.gitpaths its sandbox protects now, and whetherNOTES_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
Lotse · Nov 28, 2026, 08:35 UTC
Evidence 2026-11-28 on agents03: both clones (maity-coder-claude-003/-004) held
.git/NOTES_MERGE_WORKTREEas an empty directory, mode 700, created 2026-11-25 ~23:18/23:22 Vienna, next to the known placeholdersglab-cli,remotes,worktrees,config.worktree. Removed by hand with rmdir to unblock the starts.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_WORKTREEwas created that same second (empty). It also blocksmaity gh pr createinside the session (exit 4, not a plain clone), so Claude coders cannot open their own PRs until this lands. Priority: high.