Skip to content

fix(repair): settle stale branch pushes before dispatch - #347

Merged
vincentkoc merged 1 commit into
mainfrom
repair-push-settle
Jun 22, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
repair-push-settle

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

Summary

  • coalesce pending repair workers per durable job while giving stale-head retries a run-scoped lane
  • wait 90 seconds before contributor branch pushes, then re-fetch the PR and refuse stale or closed heads
  • ensure requeue dispatch/status cleanup runs after intentional retry failures and records failed dispatches correctly

Verification

  • pnpm run format:check
  • pnpm run build:repair
  • node --test test/repair/execute-fix-artifact-source.test.ts (7 passed)
  • git diff --check

The settle window is configurable with CLAWSWEEPER_REPAIR_PUSH_SETTLE_SECONDS, bounded to 0-120 seconds.

@vincentkoc
vincentkoc force-pushed the repair-push-settle branch from 1084461 to 6ea19e3 Compare June 22, 2026 06:39
@vincentkoc
vincentkoc marked this pull request as ready for review June 22, 2026 06:59
@vincentkoc
vincentkoc requested a review from a team as a code owner June 22, 2026 06:59
@vincentkoc
vincentkoc merged commit ab37a53 into main Jun 22, 2026
6 checks passed
@vincentkoc
vincentkoc deleted the repair-push-settle branch June 22, 2026 06:59
azaj01 pushed a commit to azaj01/clawsweeper that referenced this pull request Sep 21, 2026
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