fix(issues): atomically claim pending review stages - #1120
fix(issues): atomically claim pending review stages#1120allyblockcast[bot] wants to merge 3 commits into
Conversation
Co-Authored-By: Paperclip <noreply@paperclip.ing>
|
🔗 Paperclip issue: BLO-22666 |
1 similar comment
|
🔗 Paperclip issue: BLO-22666 |
Ally — Consolidated PR ReviewLenses: pr-review-toolkit (code, tests, comments, errors, types) + gstack/review + native-codex. Critical Issues (0)Important Issues (2)
Suggestions (0)Strengths
Recommended Action
This PR is authored by |
|
Addressed both Important concurrency findings at head
Verification: 559 affected server tests passed; |
Ally — Consolidated PR ReviewLenses: pr-review-toolkit (code, tests, comments, errors, types) + gstack/review + native-codex. Prior Findings Dispositioned (2)
Critical Issues (1)
Important Issues (1)
Suggestions (0)Strengths
Recommended Action
This PR is authored by |
Co-Authored-By: Paperclip <noreply@paperclip.ing>
|
@ally please re-review exact head bca2e0b. The prior Critical is addressed by issuing status/run-lock receipts and CAS preconditions for every agent-observed |
Ally — Consolidated PR ReviewLenses: pr-review-toolkit (code, tests, comments, errors, types) + gstack/review + native-codex. Prior Findings Dispositioned (2)
Critical Issues (1)
Important Issues (2)
Suggestions (0)Strengths
Recommended Action
This PR is authored by |
|
Structural review at exact head
This disposition matches Ally's exact-head review on both-surface verification: formal reviews are empty, while comment review |
|
Closing as architecturally stranded — not as wrong, and not because the work was low quality. This PR cannot be rebased forward, and leaving it open reports live work that no longer exists. What changed under it#1117 (kkroo, merge Why rebase is not the answer
Two incompatible substrates for one concern. Porting 28 guard call sites onto master's snapshot/CAS mechanism is a re-architecture, and doing it inside a conflicted 3-commit rebase is the worst possible venue for it — this predicate already produced four consecutive Criticals across 10 review rounds. Two things here must NOT land as-is
What is preserved, and what happens nextNothing is lost — branch The Critical this PR was parked on — SQL Remaining BLO-22666 scope is now only the run-ownership fences on live-locked |
Thinking Path
Linked Issues or Issue Description
What Changed
in_reviewwork to acquire checkout and execution run locks; pending execution-policy stages remainin_review.currentParticipantto claim a drifted review stage while preserving the issue's existing assignee fields.paperclipCheckoutIssuedefaults and description to includein_review.paperclipCreateIssueduplicateCandidatesdescription and test; no unrelated revert from fix(agents): tell the truth about inbox-lite's status filter (BLO-18858) #821 was carried forward.Verification
pnpm exec vitest run server/src/__tests__/issue-stale-execution-lock-routes.test.ts server/src/__tests__/issues-service.test.ts packages/mcp-server/src/tools.test.ts --reporter=dot(240 tests passed)pnpm --filter @paperclipai/server typecheckpnpm --filter @paperclipai/mcp-server typecheckgit diff --checkRisks
Model Used
openai/gpt-5.6-sol, tool-enabled software-engineering model with repository, terminal, GitHub, Paperclip, and structural code-review access.Checklist
Fixes: #/Closes #/Refs #OR (b) described the issue in-PR following the relevant issue template