Repository navigation
fix(release): gate integrated branch pushes - #178202
Conversation
Validate a captured release SHA from an immutable detached checkout, then push that exact SHA only after static, type, dead-code, and changed-test gates pass. Co-authored-by: RomneyDa <[email protected]>
|
@clawsweeper review |
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
🦞👀 Re-review progress:
|
|
Codex review: needs maintainer review before merge. What this changesThis PR validates a captured release commit in a detached checkout before pushing that exact SHA. Example: Create release/2026.10.6 from a confirmed cut equal to origin/main.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR resolves both prior findings and adds a useful release push gate; no new blocking defect was found, while exact-head CI remains pending. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherRelease tooling takes a confirmed commit and canonical release branch, invokes existing validation owners in a detached worktree, and sends the validated commit to Git. flowchart TD
A[Release operator] --> B[Stable orchestrator]
B --> C[Release push gate]
C --> D[Detached checkout]
D --> E[Existing check and test planners]
E --> F[Exact SHA Git push]
Technical reviewBest possible solution: Keep one exact-commit validation-and-push owner and route release branch creation and recovery through it. Do we have a high-confidence way to reproduce the issue? Current-main source shows the direct stable-cut push bypassing integrated checks; this read-only review executed no target code. Is this the best way to solve the issue? The focused wrapper preserves existing validation ownership and binds success to the exact pushed commit; both previously reported failures are corrected. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 692a4d02d3ce. Provenance checked
TestingProof path: unit tests only. SecurityNone. EvidenceWhat I checked:
PR surfaceTests +221, Docs +19, Config +2, Other +298. Total +540 across 7 files. Added test files: 1. 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:
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 (2 earlier review cycles)
Reviewed October 20, 2026, 3:59 AM ET / 07:59 UTC (Revision 3). |
Co-authored-by: RomneyDa <[email protected]>
|
@clawsweeper re-review Addressed the default stable-release bypass in
Validation: 27 focused tests pass, |
|
🦞👀 Re-review progress:
|
Co-authored-by: RomneyDa <[email protected]>
|
@clawsweeper re-review Addressed both concrete findings in
Proof includes the exact executable argv shape ( |
|
🦞👀 Re-review progress:
|
Co-authored-by: RomneyDa <[email protected]>
* fix(release): gate integrated branch pushes Validate a captured release SHA from an immutable detached checkout, then push that exact SHA only after static, type, dead-code, and changed-test gates pass. Co-authored-by: RomneyDa <[email protected]> * fix(release): gate stable branch pushes Co-authored-by: RomneyDa <[email protected]> * fix(release): accept orchestrated stable push shape Co-authored-by: RomneyDa <[email protected]> --------- Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: RomneyDa <[email protected]>
* fix(release): retain postpublish failure causes (#178147) Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit f47d5d7) * fix(release): make FRV no-op commands succeed (#178149) Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit 29587f5) * fix(release): retry unstarted FRV reruns after 5xx (#178160) Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit fadee60) * fix(release): show readable SDK acknowledgement diff (#178158) Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit f6c0066) * fix(release): report FRV plan sealing state (#178172) * fix(release): report FRV plan sealing state Co-authored-by: RomneyDa <[email protected]> * fix(release): declare FRV plan lifecycle APIs Declare the plan lifecycle helpers consumed by the TypeScript tests so NodeNext resolution checks the new exports. Co-authored-by: RomneyDa <[email protected]> --------- Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit 4b065f5) * fix(release): gate integrated branch pushes (#178202) * fix(release): gate integrated branch pushes Validate a captured release SHA from an immutable detached checkout, then push that exact SHA only after static, type, dead-code, and changed-test gates pass. Co-authored-by: RomneyDa <[email protected]> * fix(release): gate stable branch pushes Co-authored-by: RomneyDa <[email protected]> * fix(release): accept orchestrated stable push shape Co-authored-by: RomneyDa <[email protected]> --------- Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit 2afc8db) * fix(release): audit backport companion closure (#178188) * fix(release): audit backport companion closure Add a bounded, evidence-only audit for later same-path commits, PR companions, neighbor tests, reference candidates, and candidate file/content differences. Co-authored-by: RomneyDa <[email protected]> * fix(release): satisfy companion scanner lint Co-authored-by: RomneyDa <[email protected]> * fix(release): accept backport companion separator Co-authored-by: RomneyDa <[email protected]> --------- Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit 0f2b5e9) * ci(release): retain live failure diagnostics (#179097) * ci(release): retain live failure diagnostics Co-authored-by: RomneyDa <[email protected]> * test(release): isolate live cache shell replay Co-authored-by: RomneyDa <[email protected]> --------- Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit 89ee777) * feat(release): add fast backport conflict probe (#179104) * feat(release): add fast backport conflict probe Co-authored-by: RomneyDa <[email protected]> * fix(release): parse backport probe separator Co-authored-by: RomneyDa <[email protected]> --------- Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit 3c1d486) * fix(release): print release note verifier errors (#179077) Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit 2219999) * fix(release): verify extended stable notes context (#179083) Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit 7de3a4b) * feat(release): fetch compatibility inputs from registry (#179093) * feat(release): fetch compatibility inputs from registry Co-authored-by: RomneyDa <[email protected]> * docs(release): clarify offline inventory checks Co-authored-by: RomneyDa <[email protected]> --------- Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit a819d2b) * fix(release): close extended-stable FRV retry helper Co-authored-by: RomneyDa <[email protected]> --------- Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: RomneyDa <[email protected]>
Summary
Fixes RRI-107.
Testing
pnpm exec vitest run test/scripts/release-prepush.test.ts(5 tests)node scripts/run-oxlint.mjs scripts/release-prepush.mts test/scripts/release-prepush.test.tsOPENCLAW_LOCAL_CHECK=0 node scripts/run-tsgo-core-test-shards.mjs --root-stripe 2/4pnpm release:prepush -- --helpgit diff --checkReview