Repository navigation
fix(tooling): release completed PR operations with exited loaders - #152209
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. |
|
@clawsweeper re-review The exact-head review workflow 35402192241 has completed. Its retained review for 8dd0535 explicitly reports no actionable introduced defect, but the public comment remains at “review started” and has no completed-review marker. Please publish a completed review for this unchanged head. All 48 focused local cases and selected checks pass; CI is still running. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: needs maintainer review before merge. Reviewed September 18, 2026, 6:49 PM ET / 22:49 UTC. ClawSweeper reviewWhat this changesThe PR lets completed maintainer PR commands release their operation locks when only exited Linux loader processes remain, and adds regression coverage through real worktree provisioning. Merge readiness✅ Ready for maintainer review This remains a useful, focused fix: fetched main and the latest release retain the faulty process-group probe. Codex review found no actionable introduced defect. Priority: P2 Review scores
Verification
How this fits togetherThe PR command supervisor tracks child processes and holds an operation lock while repository work runs. Process completion, notification metadata, and lock ownership determine whether it releases the lock or retains it for recovery. flowchart TD
A[Maintainer PR command] --> B[Process supervisor]
B --> C[Worktree operation]
C --> D[Exit and completion metadata]
D --> E[Shared process inspection]
E --> F{Safe completion?}
F -->|Yes| G[Release exact operation lock]
F -->|No| H[Retain lock for recovery]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +21, Other -3. Total +18 across 5 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep process classification in the shared owner while preserving completion-marker checks, exact-owner lock release, and conservative external recovery. Do we have a high-confidence way to reproduce the issue? Yes, from source: holding exited Linux loader descendants unreaped makes the current supervisor's signal-zero probe report a live group. The PR provides a focused provisioning regression; this review did not execute it. Is this the best way to solve the issue? Yes. Reusing the existing all-thread process classifier removes the incorrect duplicate probe without changing lock acquisition, recovery, or persisted formats. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against ce616b641779. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
…pr-149099-main-20260918 * commit '795e460278d4f8f41545dc8b4a66da1d12defd90': (1902 commits) refactor(slack): share Markdown preparation (#149129) fix(tooling): release completed PR operations with exited loaders (#152209) fix(release): allow stable npm bootstrap under an operator soak waiver (#152206) fix(daemon): avoid false restart timeouts during slow startup (#151387) feat: read agent documents from a host-owned workspace (#150584) improve(startup): skip redundant single-agent directory checks (#152192) test(ui): await board widget readiness before size reports (#152198) perf(browser): move dashboard event discovery to SQLite worker (#151952) improve(auth): reduce pauses during concurrent credential reads (#152140) improve(ui): load older chat history in smaller pages (#152093) fix(release): reject incomplete legacy npm install trees (#152186) refactor: share current-conversation binding row serialization (#152134) test(tooling): preserve Node and terminal fixture ownership under Bun (#152187) fix(sqlite): service worker admission through retained path aliases (#152190) improve: reduce CPU work for long CLI reasoning streams (#152191) chore(ui): refresh control ui locales (#152196) test(subagents): align lifecycle retries with durable completion owners (#152184) perf(gateway): defer participant maps for owned sessions (#152097) refactor(stream): share auxiliary queue overflow handling (#149282) fix(test): execute CLI fixture preloads on Node and Bun (#152076) ...
What Problem This Solves
Fixes completed native PR commands failing and retaining their operation lock when exited loader descendants are still waiting to be reaped on Linux.
User Impact
This is an internal maintainer-tooling correction. It changes no product behavior or configuration. Live descendants, uncertain process state, incomplete operations, and failures after side effects still retain the lock.
Why This Change Was Made
The supervisor used a process-group existence probe after its wrapper exited. That probe also reports groups containing only zombies. The supervisor now consumes the existing managed-child owner's all-thread classification for the child whose exit it directly observed. Lock acquisition and recovery retain their conservative treatment of externally observed zombie groups.
Evidence
A controlled original-source run retained two successfully exited loader children and reproduced the native provisioning failure; promptly reaping those children let the unchanged fixture pass. The existing genuinely live-child rejection control also passed. This is consistent with the failure in CI run 35398131748, but that historical log lacks process states and does not prove this was its sole cause.
The maintained regression fails on the original supervisor and passes with the repair. All 48 selected cases pass: five real provisioning-state cases, both live-child and externally observed zombie lock controls, eleven archived-wrapper closure cases, and thirty shared process-owner cases. All selected tooling/root-test type, lint, formatting, and repository guards pass. Independent review of the candidate found no actionable P0–P2 issues.