Skip to content

Conversation

@max-sixty
Copy link
Owner

Summary

  • Replace branch_ahead_behind: HashMap + skip_expensive_threshold with stale_branches: HashSet
  • Move ahead/behind counts to Repository cache (populated by batch_ahead_behind())
  • Threshold now applied at construction time, not during task execution
  • Remove unused tx parameter from work_items_for_branch()

This separates concerns: the HashSet indicates which branches should skip expensive tasks, while the actual counts come from the Repository cache.

Test plan

  • All unit tests pass (414)
  • All integration tests pass (770)
  • Pre-commit lints pass
  • Codex review completed

🤖 Generated with Claude Code

Replace `branch_ahead_behind: HashMap` + `skip_expensive_threshold` with
`stale_branches: HashSet`. The threshold is now applied at construction
time, and ahead/behind counts are cached in Repository for task lookup.

This separates concerns: the HashSet indicates which branches skip
expensive tasks, while counts come from the Repository cache.

Co-Authored-By: Claude <[email protected]>
@max-sixty max-sixty merged commit f372620 into main Jan 10, 2026
19 checks passed
@max-sixty max-sixty deleted the collection-options branch January 10, 2026 03:59
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.

2 participants