Skip to content

BOB-193: reap --worktrees treats scratch folders as clean; hourly launchd timer - #42

Merged
ccevans merged 2 commits into
mainfrom
bobby/bob-193-reap-scratch-timer
Nov 10, 2026
Merged

ccevans merged 2 commits into
mainfrom
bobby/bob-193-reap-scratch-timer

Conversation

@ccevans

@ccevans ccevans commented Nov 10, 2026

Copy link
Copy Markdown
Owner

Disk hit 27 GB free with 235 worktrees; reap kept 15 done-ticket worktrees whose only changes were rspec coverage/ and tmp/**/.keep deletions.

  • New required reaper.worktree_scratch_paths (init: coverage/, tmp/, log/): changes confined to those folders no longer keep a done ticket's worktree. A move counts both paths; any real change still keeps it and the row names the files. [] keeps the old rule.
  • Output ends with Done tickets kept for real changes: N (one row per worktree) for the Conductor to relay, and starts with a timestamp line for the timer log.
  • reap --worktrees --print-plist prints a launchd job running reap --worktrees --apply every worktree_timer.interval_minutes (init: 60), logging to worktree_timer.log_file. Node comes from PATH (survives brew upgrade); missing git/claude/sysctl/node or log folder is an error. Printing changes nothing.
  • Breaking for existing conductor.yml: both keys are required (no defaults).
  • Tests: conductor suites 353 pass, full suite 2428 pass. Review (Sonnet) approved; two notes fixed.

🤖 Generated with Claude Code

https://claude.ai/code/session_01CYbcv4uMBkZT8H2W7Z9vzk

ccevans and others added 2 commits November 10, 2026 13:49
…ist for an hourly timer

reaper.worktree_scratch_paths (required; init: coverage/, tmp/, log/) lists folders whose
changes do not keep a done ticket's worktree. Real diffs keep it and are listed in a short
'Done tickets kept for real changes' section. --print-plist prints a launchd job running
reap --worktrees --apply every worktree_timer.interval_minutes (required; init: 60).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CYbcv4uMBkZT8H2W7Z9vzk
… must exist)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CYbcv4uMBkZT8H2W7Z9vzk
@ccevans
ccevans merged commit bb63e2b into main Nov 10, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant