Repository navigation
fix(pr): keep workflow handoffs stable during concurrent fetches - #205904
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: passed. What this changesThis PR preserves captured workflow selections across concurrent fetches and restores execution environments when reusing test fixtures. Example: During current-workflow admission for PR 123, origin/main advances to an equal-tree descendant after selection is captured.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it repairs a source-visible workflow handoff failure still present on main, and this review found no discrete code defect. Reviewed head: Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe native PR wrapper carries selected tooling through supervision, then authenticates its complete source under the operation lock before admitting preparation, recovery, or landing work. flowchart TD
A[Maintainer command] --> B[Capture workflow selection]
B --> C[Held descriptor]
C --> D[Supervised reader]
D --> E[Operation lock]
E --> F[Authenticate fresh main]
F --> G[Verify source and request identities]
G --> H[Execute admitted operation]
Technical reviewBest possible solution: Keep the captured descriptor checkpoint stable and let the existing locked qualification owner authenticate fresh main and enforce exact successor identities. Do we have a high-confidence way to reproduce the issue? Current main compares a captured workflow source with mutable origin/main during descriptor reentry, so a concurrent advancement rejects unchanged selected code before fresh locked qualification; this review executed no target code. Is this the best way to solve the issue? The patch fixes the comparison at its existing owner, updates all three affected readers, and preserves fresh source authentication and exact successor checks without adding persisted state or a competing admission path. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 88b3ba0fd4e6. Provenance checked
TestingProof path: none. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +164, Other +9. Total +173 across 4 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. Review metrics
LabelsLabel changes: No label 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 HistoryReview history (1 earlier review cycle)
Reviewed November 26, 2026, 6:11 AM ET / 11:11 UTC (Revision 2). |
|
@clawsweeper re-review Please review current head |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
…nclaw#205904) * fix(pr): preserve captured workflow selection across handoff * test(pr): restore complete workflow fixture state
…5904) * fix(pr): preserve captured workflow selection across handoff * test(pr): restore complete workflow fixture state (cherry picked from commit d62da75) Companion audit: Apply ordered eaeea67 before d62da75. 83fc727, 0f27d5e, b5023a7, f75bd91 and 712db11 cover independent tooling refresh, cleanup, and reset-fork fixtures; 0dc0187 is separately selected as row 57. Release adaptation: Restore the approved proof handoff and make its existing cache restore execution state alongside files, without importing unrelated maintenance fixture APIs. Co-authored-by: RomneyDa <[email protected]>
What Problem This Solves
A concurrent fetch can advance
origin/mainafter native PR tooling captures its workflow selection. The supervised child then rejects the unchanged selected code before locked qualification, interrupting correction preparation and recovery.User Impact
Maintainers can continue a captured workflow across normal shared fetches. Fresh official-main authentication, the complete executing-source comparison, and exact successor and review identities remain enforced. This changes maintainer tooling only.
Why This Change Was Made
The descriptor reader uses its held source as the checkpoint for admission, recovery and successor validation. It still requires direct, readable canonical tracking and selected-source ancestry. The existing operation-lock owner still fetches and authenticates fresh main, verifies the complete executing closure and selects its producer.
The CI repair also restores completed test fixtures as one unit: files plus their execution environment. Reused setups previously retained hooks pointing to deleted fixture directories. First-admission setup now creates its binding through the native owner before consumers read it.
Related: #199006 addresses broader baseline-proof equivalence; it does not replace this repair across all three descriptor readers.
Production delta: +14/-5 (net +9), for the shared canonical-ref validator and captured checkpoint. Tests: +176/-12. The CI follow-up changes tests only.
Evidence
baac12330086d42d2155fd49bb1a2bdd12638028; frozen base:d4cdcfc70cf5165142c233f2e501a91d523e89f3.baac12330086d42d2155fd49bb1a2bdd12638028: all 60 jobs settled without failures; requiredopenclaw/ci-gatepassed. Direct Bun results: current-workflow recovery 38/38, workflow successor 77/77, auto-replacement 58/58, prior-CI recovery 21/21, main-drift 66/66, auto-recovery 35/35, and source closure 1/1. Wrapper tests: 131 passed/3 skipped. All four new handoff cases explicitly passed.Rank-up move dispositions
The production owner changes only descriptor consumption of captured authority. Fresh official-main ancestry and full executing-closure authentication, exact successor/review identities, lease/custody checks and failure visibility remain unchanged. The fixture follow-up restores its authoritative completed state at the lifecycle owner; no production workaround was added.