Repository navigation
fix(release): reject incompatible routes before qualification - #196878
Conversation
Co-authored-by: RomneyDa <[email protected]>
|
🦞👀 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 maintainer review before merge. What this changesThis PR checks publication route/version compatibility before fresh or resumed qualification and warns early about retired maintenance lines. Example: Qualify version 2026.8.1 with route extended-stable and npmDistTag extended-stable.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it addresses a concrete release-operator failure still present on main, preserves existing publication policy, and has no actionable introduced defect. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe exact-SHA release CLI accepts candidate identity and publication intent, obtains trusted admission, and dispatches candidate-owned qualification; separate publisher checks authorize publication. flowchart TD
A[Release operator] --> B[Exact SHA CLI]
B --> C[Shared route policy]
C --> D[Trusted admission]
D --> E[Candidate qualification]
E --> F[Publisher authority checks]
C --> G[Early refusal or advisory]
Technical reviewBest possible solution: Use the shared compatibility validator before qualification effects while retaining advisory retirement checks and independent publisher authorization. Do we have a high-confidence way to reproduce the issue? Current-main source allows qualification to proceed before the route/version check in source admission; supplied CLI regressions cover the path, but this read-only review ran no reproduction. Is this the best way to solve the issue? The patch uses the existing policy owner, removes the duplicate implementation, and covers both fresh and prepared requests without changing reconciliation or publication authority. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 9b7dcdc7a66d. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +112, Other +53. Total +165 across 6 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. 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 Reviewed November 10, 2026, 4:56 PM ET / 21:56 UTC. |
…aw#196878) Co-authored-by: RomneyDa <[email protected]>
Release adaptation: retain the release branch transport-resume tests; add only the incompatible retained-selector regression from the source. Preserve Q=C, intended-workflow resume guards, and explicit stable qualification of beta. Proof: 30 candidate tests pass; scripts typecheck and focused lint pass. Fresh independent review: no actionable findings. (cherry picked from commit 759eda2) Co-authored-by: RomneyDa <[email protected]>
…aw#196878) Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit 759eda2) Stable adaptation: preserve the existing pre-Q resume lifecycle guard; use stable test fixture interfaces and explicit selection fields instead of future-main test helpers. (cherry picked from commit 5ac146bf522d43a3ce6f75a35bce5ed32a3b7f42)
What Problem This Solves
An incompatible publication route could consume full release qualification before source admission rejected it; retired-line problems also appeared too late.
User Impact
Release operators get route/version errors before qualification, including when resuming an accepted pre-qualification request. Retired-line warnings appear early without replacing publisher approval.
Why This Change Was Made
Move the existing committed-version policy into the shared publication contract and use it from both qualification preflight and source admission. Reuse one preflight helper for fresh and prepared requests. Already-attempted requests retain read-only reconciliation; publisher authority and final checks remain unchanged.
Evidence