Repository navigation
fix(release): revalidate plugin recovery before npm token exchange - #191641
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: needs real behavior proof before merge. What this changesRechecks source eligibility and protected tooling after GitHub token acquisition, before each npm credential exchange. Example: The extended-stable/2026.8.33 branch advances while recovery acquires its GitHub OIDC token.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 2 items remain Keep open: this maintainer-authored PR addresses a real credential-admission gap, but its policy extraction breaks existing lifecycle tests. Priority: P2 Before merge
Findings
Tests
Agent review detailsHow this fits togetherThe plugin release workflow takes a pinned source, protected tooling identity, and selected package roster, then verifies npm authentication without publishing packages. flowchart TD
A[Recovery dispatch] --> B[Preview admission and selection]
B --> C[Separate source and tooling checkouts]
C --> D[GitHub OIDC token acquisition]
D --> E[Refresh source and tooling authority]
E --> F[npm package credential exchange]
E --> G[Reject stale recovery]
Technical reviewBest possible solution: Retain one shared admission policy and the existing tooling verifier, complete the lifecycle-fixture cutover, and establish credential-boundary behavior. Do we have a high-confidence way to reproduce the issue? Current-main source shows an awaited GitHub token request followed by npm exchange without refreshed admission; the PR supplies invalidation regressions, but this review ran no target code. Is this the best way to solve the issue? Reusing the existing admission policy and tooling verifier is the smallest coherent repair; the extraction must also migrate the existing lifecycle-test consumer. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 52dded4cb015. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +126, Docs +5, Config -190, Other +230. Total +171 across 8 files. Added test files: 0. View PR surface stats
LabelsLabel 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 Reviewed November 2, 2026, 10:57 PM ET / November 3, 2026, 03:57 UTC. |
…in-oidc-current-authority
|
Merged via squash.
|
…penclaw#191641) * fix(release): revalidate plugin recovery before npm token exchange * test(release): stage admission policy in Git lifecycle fixtures * fix(release): retain recommended prompt import in tooling closure * test(release): replace source scans with boundary proof
Adapt merged #191641 (5e6d9a2) to the release branch. Reuse the existing source admission policy and revalidate live tooling authority after OIDC acquisition, before each npm credential exchange. Exclude upstream-only recommended-prompts closure entries. Focused boundary tests: 98 passing; scripts/tooling typechecks, targeted lint and formatting pass. Workflow lint runtime unavailable locally. Additional producer suite blocked by exhausted /tmp inodes; neither gap is claimed green. Co-authored-by: RomneyDa <[email protected]>
What Problem This Solves
Plugin trusted-publisher recovery could exchange package-scoped npm credentials after its source or protected tooling changed while the job waited or acquired a GitHub token.
Verified release plan production also rejected the current package contract because its retained tooling inventory omitted the newly imported recommended-prompts module.
Related: #190034
User Impact
Stale recovery attempts now stop before npm credential exchange. This changes no published package, release version, or approval scope.
Why This Change Was Made
The exchange reuses the preview's source-admission policy and the existing tooling-identity verifier after GitHub token acquisition, immediately before each npm exchange. Source and trusted tooling remain separate checkouts, with shared admission inputs. The extracted Python policy is byte-equivalent to its previous inline form; authority and prepared-worker inventories include its new path. Lifecycle fixtures stage that actual policy at the workflow checkout path. Both existing release-plan tooling inventories now retain the package contract's recommended-prompts dependency.
Evidence
git diff --checkpassed.