Skip to content

Allow discussion to start during cleanup phase#8

Merged
its-everdred merged 2 commits into
its-everdred:mainfrom
its-applekid:allow-discussion-during-cleanup
Mar 15, 2026
Merged

Allow discussion to start during cleanup phase#8
its-everdred merged 2 commits into
its-everdred:mainfrom
its-applekid:allow-discussion-during-cleanup

Conversation

@its-applekid

Copy link
Copy Markdown
Contributor

Problem

When nominations run back-to-back, the 8-day cycle (2d discussion + 5d vote + 1d cleanup) pushes past the next Monday, causing nominations to stagger to every other week instead of running weekly.

Solution

Modified hasNomineeInProgress() to exclude the CLEANUP state from blocking new discussions. Now:

  • ✅ Discussion and Vote phases still block new nominations (preserve serialization of active voting)
  • ✅ Cleanup phase no longer blocks new discussions (allows overlap)
  • ✅ Next discussion can start on Monday even if previous nominee is in cleanup

Changes

  • Updated apps/bot/src/lib/nomineeService.ts:
    • hasNomineeInProgress() now only checks for DISCUSSION and VOTE states
    • Added comment explaining CLEANUP no longer blocks new discussions

Impact

Enables weekly nomination cycles when there's a queue, preventing artificial delays caused by the cleanup phase.

- Modified hasNomineeInProgress() to only check for DISCUSSION and VOTE states
- CLEANUP state no longer blocks new discussions from starting
- Enables overlapping nomination cycles (discussion can start on Monday even if previous nominee is in cleanup)
- Prevents nominations from staggering to every other week when back-to-back
- Updated existing test to match new behavior (DISCUSSION, VOTE only)
- Added test case verifying CLEANUP doesn't block new discussions
@its-everdred its-everdred merged commit bc93bb2 into its-everdred:main Mar 15, 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.

2 participants