oliver-zehentleitner / maity
runner/cli: a leftover git worktree in a placement's clone blocks maity report, and the agent can't remove it
tsk-gqk2gdxb4g73 Done An agent
Reported by f5u3, 2026-11-18 (seq 166999). A Claude Code subagent left a git worktree at .claude/worktrees/agent-… inside the placement's clone. From then on:
maity reportrefuses to run git in the clone while the extra worktree exists, so three cards show a report mismatch;- inside the placement,
git worktree removeandrmof that directory are both denied.
The agent is stuck until a human cleans the host.
Done when:
- either the runner prunes or allows its own harness's
.claude/worktrees/*(for example amaity runner workspace …op the agent may call, or a cleanup on placement start); - or
maity reporttreats a worktree under.claude/worktrees/of the same clone as harmless. Record in KtW why, and what makes it safe; - a test covers it;
- docs/runners.md says what an agent does in this case.
Related: the clone checks in clonecheck.py (not_a_plain_clone).