Skip to content

fix(ci): invalidate plugin SDK declarations on auth changes - #123861

Merged
steipete merged 2 commits into
mainfrom
codex/fix-plugin-sdk-boundary-cache-input
Aug 14, 2026
Merged

steipete merged 2 commits into
mainfrom
codex/fix-plugin-sdk-boundary-cache-input

Conversation

@steipete

@steipete steipete commented Aug 14, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Repairs repeated main failures in check-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 not src/agents/cli-credentials.ts, even though provider-auth re-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

  • Reproduced on four consecutive main runs, including 31843294122 and 31843824451: Anthropic failed because cached declarations omitted tryKeychainWithoutPrompt.
  • Focused artifact-preparation tests: 19/19 passed.
  • Exact-head restored-cache package-boundary job passed on 31844479447.
  • That run exposed an unrelated loaded-shard timing defect in 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.
  • Targeted formatting, scripts lint, and git diff --check passed.
  • Autoreview: no accepted/actionable findings.
  • Final exact-head CI passed at 0bbf9f593def2936da8bc71600be41d0e0790f86: 31845597239.

@clawsweeper

clawsweeper Bot commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: XS maintainer Maintainer-authored PR labels Aug 14, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 14, 2026
@clawsweeper

clawsweeper Bot commented Aug 14, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 14, 2026, 6:18 PM ET / 22:18 UTC.

ClawSweeper review

What this changes

The 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 provenance

Possible regression — probable (reviewed change; failure trace). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

Keep 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
Reviewed head: 0bbf9f593def2936da8bc71600be41d0e0790f86
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, source-proven repair with direct CI evidence and no actionable review defect.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored CI repair is exempt from the external contributor proof gate; its body nevertheless supplies restored-cache exact-head job evidence.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-authored CI repair is exempt from the external contributor proof gate; its body nevertheless supplies restored-cache exact-head job evidence.
Evidence reviewed 7 items Canonical invalidation owner: The shared declaration-input list now includes the credential reader; both root and workspace-package declaration stamps derive from that same list.
Public declaration dependency: The SDK provider-auth entrypoint re-exports the credential reader, the package publishes its provider-auth declaration, and Anthropic uses the newly typed non-interactive option through that public entrypoint.
Restored-cache behavior: Freshness compares the recorded hash against every declared input and regenerates stale declarations after removing incremental state; the package-boundary caller performs this preparation before compiling extensions.
Findings None None.
Security None None.

How this fits together

Plugin 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]
Loading

Decision needed

Question Recommendation
Once the exact-head checks finish green, should this maintainer-authored CI repair merge? Merge after green checks: Merge this narrow cache-owner repair once GitHub reports the current head clean.

Why: The protected maintainer label requires an explicit maintainer merge decision; no unresolved implementation defect remains.

Before merge

  • Resolve merge risk (P1) - The repair adds two tooling lines to the explicit declaration-input list; this is the required canonical dependency record, but merge should wait for the current-head CI gate to complete.
Agent review details

Security

None.

PR surface

Tests +6, Other +2. Total +8 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 9 3 +6
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 2 0 +2
Total 2 11 3 +8

Review metrics

Metric Value Why it matters
Production vs test LOC tooling +2/-0; tests +9/-3 (net +6) The small tooling growth records one missing declaration dependency; the remaining change is focused test synchronization.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Retain the direct credential-reader input in the shared declaration digest so both generated declaration roots rebuild without broadening cache policy or SDK surface.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best 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.

Labels

Label justifications:

  • P2: This repairs a bounded CI/package-compilation regression without evidence of a user-facing runtime outage.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-authored CI repair is exempt from the external contributor proof gate; its body nevertheless supplies restored-cache exact-head job evidence.

Evidence

What I checked:

  • Canonical invalidation owner: The shared declaration-input list now includes the credential reader; both root and workspace-package declaration stamps derive from that same list. (scripts/prepare-extension-package-boundary-artifacts.mts:165, cdf6d2b6b2fd)
  • Public declaration dependency: The SDK provider-auth entrypoint re-exports the credential reader, the package publishes its provider-auth declaration, and Anthropic uses the newly typed non-interactive option through that public entrypoint. (src/plugin-sdk/provider-auth.ts:73, d5e89de90642)
  • Restored-cache behavior: Freshness compares the recorded hash against every declared input and regenerates stale declarations after removing incremental state; the package-boundary caller performs this preparation before compiling extensions. (scripts/prepare-extension-package-boundary-artifacts.mts:525, d5e89de90642)
  • Exact-head CI evidence: The PR body records a passing restored-cache package-boundary job on the current head after four failing main runs; final required checks remain in progress in the supplied review context. (0bbf9f593def)
  • UI publication boundary: The test subscribes before the Gateway update; overlay state changes publish synchronously after the lazy migration loader resolves, so the promise observes the intended state rather than a polling interval. (ui/src/app/overlays.test.ts:79, 0bbf9f593def)
  • Feature history: Blame attributes the original declaration-input list and provider-auth re-export to the same current-area contributor; the PR then adds the omitted transitive declaration source. (scripts/prepare-extension-package-boundary-artifacts.mts:161, da7a2b4651ef)

Likely related people:

  • steipete: Current-main history attributes the declaration generator and SDK re-export baseline to steipete, who also authored both commits in this PR. (role: feature owner and recent area contributor; confidence: high; commits: da7a2b4651ef, cdf6d2b6b2fd, 0bbf9f593def; files: scripts/prepare-extension-package-boundary-artifacts.mts, src/plugin-sdk/provider-auth.ts, ui/src/app/overlays.test.ts)
  • Jason (Json): History identifies this contributor with the device-auth upgrade behavior exercised by the adjacent Control UI test. (role: device-auth migration feature contributor; confidence: medium; commits: 7eec1345f98e; files: ui/src/app/device-auth-migration-loader.ts, ui/src/app/device-auth-migration.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Wait for the current-head required checks to finish green before merging.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (1 earlier review cycle)
  • reviewed 2026-08-14T21:59:06.194Z sha cdf6d2b :: needs maintainer review before merge. :: none

@openclaw-barnacle openclaw-barnacle Bot added the app: web-ui App: web-ui label Aug 14, 2026
@steipete
steipete merged commit 3ef7f59 into main Aug 14, 2026
357 of 359 checks passed
@steipete
steipete deleted the codex/fix-plugin-sdk-boundary-cache-input branch August 14, 2026 22:21
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 15, 2026
…#123861)

* fix(ci): invalidate plugin sdk declarations on auth changes

* test(ui): await device migration overlay updates
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant