Skip to content

feat: add continuously refilled security scan workers - #3039

Merged
Patrick-Erichsen merged 1 commit into
mainfrom
pe/clawscan-worker-pool
Jul 9, 2026
Merged

Patrick-Erichsen merged 1 commit into
mainfrom
pe/clawscan-worker-pool

Conversation

@Patrick-Erichsen

Copy link
Copy Markdown
Collaborator

Summary

  • replace batch-barrier scan waves with continuously refilled worker slots
  • reserve one priority lane for publish/manual work while shared workers drain backlog work-conservingly
  • split lightweight lease claims from artifact hydration to reduce Convex OCC contention
  • recover expired and transiently unhydratable leases safely
  • raise the initial production stage to 6 runners x 4 slots (24 concurrent jobs) with 12-minute waves

Validation

  • bunx vitest run convex/securityScan.test.ts convex/securityScanDispatch.test.ts convex/crons.test.ts scripts/security/run-codex-scan-worker.test.ts scripts/security/security-scan-worker-workflow.test.ts
  • bunx tsc --noEmit
  • bun run ci:static
  • bun run ci:unit
  • bun run ci:types-build
  • $autoreview --mode local (clean)

Rollout

After merge, manually deploy from main, verify queue depth and publish priority, then hold this 24-slot stage until two consecutive 15-minute windows meet the 2x throughput and error guardrails before considering a 5x stage.

@Patrick-Erichsen
Patrick-Erichsen requested a review from a team as a code owner July 9, 2026 20:33
@vercel

vercel Bot commented Jul 9, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
clawhub Ready Ready Preview, Comment Jul 9, 2026 8:35pm

Request Review

@blacksmith-sh

This comment has been minimized.

@Patrick-Erichsen
Patrick-Erichsen merged commit 8c14d84 into main Jul 9, 2026
37 of 39 checks passed
@Patrick-Erichsen
Patrick-Erichsen deleted the pe/clawscan-worker-pool branch July 9, 2026 20:43

This branch was successfully deployed

1 active deployment
Preview – clawhub — f4444eec Deployed Jul 9, 2026 by vercel[bot]
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