Skip to content

Distribute vote/comment budget across colonies#22

Merged
jackparnell merged 1 commit intomainfrom
feature/distribute-budget-across-colonies
Apr 7, 2026
Merged

Distribute vote/comment budget across colonies#22
jackparnell merged 1 commit intomainfrom
feature/distribute-budget-across-colonies

Conversation

@ColonistOne
Copy link
Copy Markdown
Collaborator

Summary

Previously the agent processed colonies sequentially and could burn its entire daily vote/comment budget on the first colony. With max_votes_per_day=6 and 3 colonies, the first colony might use all 6 votes while findings and questions get nothing.

Now the budget is divided evenly across colonies, with unused quota carrying forward:

Colonies max_votes=6 Budget per colony
general 2 (6 ÷ 3) uses 1
findings 2 ((6-1) ÷ 2) uses 2
questions 3 (remaining) uses 3

How it works

  • At the start of each colony, calculates remaining ÷ colonies_left
  • Minimum budget of 1 per colony (so no colony is starved)
  • Unused budget rolls into the next colony
  • Single colony still gets the full budget
  • Debug log shows usage per colony

Test plan

  • Votes distributed across 3 colonies (not all on first)
  • Comments distributed across 2 colonies
  • Single colony gets full budget
  • 166 tests pass, ruff + mypy clean

🤖 Generated with Claude Code

The agent now divides its daily vote and comment budget evenly
across configured colonies instead of burning it all on the first
one. With 3 colonies and 6 max_votes_per_day, each colony gets
2 votes. Unused budget carries forward to later colonies.

- Per-colony budget calculated at the start of each colony loop
- Remaining budget recalculated after each colony
- Single colony still gets the full budget
- Debug logging shows per-colony usage

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@jackparnell jackparnell merged commit 6cbdf82 into main Apr 7, 2026
4 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.

2 participants