mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-04-30 21:09:29 +00:00
fix: Prevent duplicate work, add graceful shutdown, and enforce team lifecycle (#86)
- Change trigger-server MAX_CONCURRENT default from 3 to 1 to prevent overlapping cycles that duplicate GitHub issue comments - Add SIGTERM/SIGINT handling to trigger-server so running scripts finish gracefully on service restart instead of being killed mid-flight - Add cleanup trap to refactor.sh for worktree/tempfile cleanup on exit - Add pre-cycle cleanup of stale worktrees, merged branches, and abandoned PRs from previously interrupted cycles - Add mandatory Lifecycle Management section to team lead prompt requiring shutdown_request to all teammates before exiting - Add dedup checks to community-coordinator: check existing comments before posting to prevent duplicate acknowledgments/resolutions - Pass issue number in workflow trigger reason for better logging Co-authored-by: A <6723574+louisgv@users.noreply.github.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
89ed02fe55
commit
ab343d26a2
3 changed files with 170 additions and 25 deletions
2
.github/workflows/refactor.yml
vendored
2
.github/workflows/refactor.yml
vendored
|
|
@ -20,5 +20,5 @@ jobs:
|
|||
SPRITE_URL: ${{ secrets.REFACTOR_SPRITE_URL }}
|
||||
TRIGGER_SECRET: ${{ secrets.REFACTOR_TRIGGER_SECRET }}
|
||||
run: |
|
||||
curl -sf -X POST "${SPRITE_URL}/trigger?reason=${{ github.event_name }}" \
|
||||
curl -sf -X POST "${SPRITE_URL}/trigger?reason=${{ github.event_name }}&issue=${{ github.event.issue.number || '' }}" \
|
||||
-H "Authorization: Bearer ${TRIGGER_SECRET}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue