Skip to content

Parallelize independent worktree admission - #1311

Merged
chubes4 merged 1 commit into
mainfrom
fix/1308-parallel-worktree-admission
Aug 30, 2026
Merged

Parallelize independent worktree admission#1311
chubes4 merged 1 commit into
mainfrom
fix/1308-parallel-worktree-admission

Conversation

@chubes4

@chubes4 chubes4 commented Aug 30, 2026

Copy link
Copy Markdown
Member

Summary

  • atomically reserve bounded demand during global capacity admission
  • release the global capacity lock before repository-scoped checkout
  • merge live admission and bootstrap reservations without double-counting handles
  • clean reservations on successful or failed allocation
  • prove three independent repositories begin checkout within a bounded admission spread and overlap safely

Fixes #1308.

Verification

  • php tests/worktree-parallel-multi-repo-admission.php twice
  • php tests/workspace-capacity-lock-concurrency.php
  • php tests/worktree-plan-capacity-hot-path.php
  • php tests/worktree-add-lifecycle.php
  • PHP syntax checks for modified source and new regression
  • git diff --check

AI assistance

  • Model: openai/gpt-5.6-sol
  • Tool: OpenCode
  • Used for: Investigated the global lock scope, implemented durable admission reservations, reviewed orphaned agent output, corrected the concurrency acceptance metric, and ran focused lifecycle verification.

@chubes4
chubes4 merged commit a7f6b76 into main Aug 30, 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.

Independent worktree adds serialize behind a noisy global capacity-admission lock

1 participant