Repository navigation
fix(ci): invalidate plugin SDK declarations on auth changes - #123861
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 14, 2026, 6:18 PM ET / 22:18 UTC. ClawSweeper reviewWhat this changesThe PR makes Plugin SDK declaration caches invalidate when a re-exported credential-reader type changes, and stabilizes a Control UI migration test by awaiting its overlay update. Regression provenancePossible regression — probable (reviewed change; failure trace). No predecessor PR is attributed. Merge readinessKeep this maintainer PR open for its normal exact-head CI and merge decision. The cache-input addition is the narrow canonical repair, and the UI test change correctly waits for the published lazy-loader result; no blocking findings were identified. Priority: P2 Review scores
Verification
How this fits togetherPlugin SDK declarations are built before extension package-boundary compilation, so the artifact digest must include every source file that affects exported declarations. Separately, Control UI overlays translate Gateway migration state into visible recovery guidance and testable snapshots. flowchart LR
A[Credential reader source] --> B[Provider auth declaration]
B --> C[SDK artifact input digest]
C --> D[Restored cache freshness check]
D --> E[Extension package compilation]
F[Gateway migration state] --> G[Overlay snapshot publication]
G --> H[Migration UI test]
Decision needed
Why: The protected maintainer label requires an explicit maintainer merge decision; no unresolved implementation defect remains. Before merge
Agent review detailsSecurityNone. PR surfaceTests +6, Other +2. Total +8 across 2 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the direct credential-reader input in the shared declaration digest so both generated declaration roots rebuild without broadening cache policy or SDK surface. Do we have a high-confidence way to reproduce the issue? Yes. The PR records repeated current-main restored-cache package-boundary failures, and the source chain shows why a changed credential-reader type could leave generated SDK declarations stale. Is this the best way to solve the issue? Yes. Adding the one public declaration dependency to the existing shared digest fixes both declaration roots; changing the workflow cache key or digesting all of src/agents would be broader and less precise. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against d5e89de90642. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Merged via squash.
|
…#123861) * fix(ci): invalidate plugin sdk declarations on auth changes * test(ui): await device migration overlay updates
What Problem This Solves
Repairs repeated
mainfailures incheck-additional-extension-package-boundary. The Anthropic plugin correctly used the newly added non-interactive keychain options, but cached Plugin SDK declarations still exposed the older option type.Root Cause
The boundary artifact digest covered
src/plugin-sdk/**but notsrc/agents/cli-credentials.ts, even thoughprovider-authre-exports the credential reader signature from that file. A restored declaration cache therefore remained "fresh" after the public signature changed and compiled plugins against stale declarations.Fix
Include the credential reader source in the canonical Plugin SDK declaration inputs. Any future signature change now invalidates both root and package declaration stamps before plugin package compilation.
Runtime production delta: 0. CI tooling: +2 lines. Tests: +9/-3 lines (net +6).
Evidence
mainruns, including 31843294122 and 31843824451: Anthropic failed because cached declarations omittedtryKeychainWithoutPrompt.overlays.test.ts: its lazy migration import could complete after the polling assertion expired. The test now waits on the overlay's published snapshot event; focused UI proof passed 54/54.git diff --checkpassed.0bbf9f593def2936da8bc71600be41d0e0790f86: 31845597239.