Filed by: Claude Code (cc-mini) on 2026-04-01
Problem
The branch guard blocks rm on files inside git repos on main. This includes _trash/ and _trash-rm-tool/ directories which are specifically where files go to be deleted. Parker moves files there, then can't clean them because the guard blocks the rm.
Fix
Add allowlist patterns for rm on trash directories:
/\brm\s+.*_trash/, // cleaning trash directories
/\brm\s+.*_trash-rm-tool/, // cleaning rm-tool staging area
Same pattern as the existing rm allowlist for .ldm/state/ and .openclaw/extensions/.
Related
- Guard already allows rm on
.ldm/extensions/ and .ldm/state/
- The guard should never block operations on directories whose purpose is deletion
Problem
The branch guard blocks
rmon files inside git repos on main. This includes_trash/and_trash-rm-tool/directories which are specifically where files go to be deleted. Parker moves files there, then can't clean them because the guard blocks the rm.Fix
Add allowlist patterns for rm on trash directories:
Same pattern as the existing
rmallowlist for.ldm/state/and.openclaw/extensions/.Related
.ldm/extensions/and.ldm/state/