oliver-zehentleitner / maity

runner/cli: a leftover git worktree in a placement's clone blocks maity report, and the agent can't remove it

Sign in to report

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 report refuses to run git in the clone while the extra worktree exists, so three cards show a report mismatch;
  • inside the placement, git worktree remove and rm of 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 a maity runner workspace … op the agent may call, or a cleanup on placement start);
  • or maity report treats 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).