Repository navigation
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs real behavior proof before merge. What this changesRegistered-project source acquisition consumes the existing shared workspace contention budget instead of a separate 30-second limit. Example: A registered project's checkout remains busy for 31 seconds while workspace creation still has contention budget available.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 2 items remain Keep this PR open: it addresses a current-main failure documented by a maintainer, and the focused implementation preserves immediate reservation and source-authority checks. Priority: P2 Before merge
Findings
Tests
Agent review detailsHow this fits togetherGateway session creation supplies registered-project source access to the managed-worktree service, which reserves capacity, prepares a Git checkout, and publishes the workspace record. flowchart TD
A[Session creation] --> B[Managed worktree service]
B --> C[Immediate reservation attempt]
C --> D[Release allocation and wait]
D --> E[Shared contention budget]
E --> C
C --> F[Checkout and setup]
F --> G[Publish workspace]
Technical reviewBest possible solution: Retain the shared-budget implementation and align its regression coverage and documented waiting contract. Do we have a high-confidence way to reproduce the issue? Current-main source establishes the shorter deadline, and the linked maintainer issue reports its failure through real registry, Git, SQLite, and workspace-service owners; this review executed no target code. Is this the best way to solve the issue? The patch uses the existing accounting owner, stops charging before protected work, preserves zero-wait reservation, and removes the competing source counter without unnecessary machinery. Full review comments:
Overall correctness: patch is correct AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against bb3df792e23f. Provenance checked
TestingProof path: unit tests only. SecurityNone. EvidenceAcceptance criteria:
What I checked:
PR surfaceSource +9. Total +9 across 1 file. Added test files: 0. View PR surface stats
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 26, 2026, 2:56 AM ET / 06:56 UTC. |
|
The source-wait budget change is being handled in #184672, including the Gateway preparation path and regression coverage for contention, continuation, and cancellation. We'll keep the implementation and validation together there. Thanks for the contribution. |
Closes #184272
What Problem This Solves
Workspace creation fails after 30 seconds when its registered project is busy, even though the shared workspace contention budget still has time remaining.
User Impact
The same request can wait for its registered source within the existing workspace budget. Later source acquisition uses that remaining budget too, so waiting during checkout, provisioning, setup admission, or publication does not require replaying completed preparation.
Why This Change Was Made
Reuse the existing
startWorktreeWaitaccounting owner instead of maintaining a separate 30-second source counter. Stop accounting as soon as source access is acquired, before protected work runs. Immediate reservation admission remainswaitMs: 0; cancellation, source checks, and native acquisition errors retain their existing paths. This removes the separate source-wait state without introducing another timer, retry loop, or configuration option.Related work checked: #184138 is merged and deliberately retained the shorter source deadline; #184121 concerns shared-fetch cancellation; #184253 is merged and concerns duplicate repository discovery. Their complete discussions and diffs were reviewed.
Evidence
withWorktreeSourceandstartWorktreeWaitfunctions. With a shared 100,000 ms budget, two simulated 31,000 ms acquisitions receive 100,000 then 69,000 ms and leave 38,000 ms; 900,000 ms spent inside the protected callback is not deducted. The base passes no acquisition budget and leaves the shared budget unchanged.Documentation verification: The managed-worktrees guide now describes the shared 30-minute contention budget and retained cancellation, matching the implementation. Changed Markdown formatting and whitespace checks passed; runtime-proof limitations above remain.