Skip to content

refactor: remove accidental Claude auth type exports - #129383

Merged
shakkernerd merged 1 commit into
mainfrom
refactor/claude-auth-sdk-surface
Aug 25, 2026
Merged

shakkernerd merged 1 commit into
mainfrom
refactor/claude-auth-sdk-surface

Conversation

@shakkernerd

Copy link
Copy Markdown
Contributor

Summary

Restore the intentional plugin SDK public-export budget by removing two accidental, unshipped named type exports.

Root Cause

#129052 introduced ProviderAuthClaudeCompatRuntime and ProviderAuthClaudeCompatPlugin as named exports while adding internal Claude compatibility typing.

Neither type is part of the intended public provider-auth contract, and no external or internal caller consumes the named exports. Their addition increased the SDK surface from the maintained 4340 budget to 4342.

Changes

  • keep both compatibility types internal to their owning modules
  • remove their named re-export from the provider-auth SDK surface
  • preserve runtime behavior and existing public provider-auth exports

Compatibility

The exports were introduced on current main and have not shipped in a stable release, so no public deprecation or compatibility alias is required.

Verification

  • 73 focused tests locally and on Testbox
  • SDK surface report returned to 4340
  • export checks
  • core and extension typechecks
  • formatting
  • dead-export scan
  • autoreview

Refs #129052

@clawsweeper

clawsweeper Bot commented Aug 25, 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 size: XS maintainer Maintainer-authored PR labels Aug 25, 2026
@shakkernerd
shakkernerd force-pushed the refactor/claude-auth-sdk-surface branch from 48d9fb9 to ad3a8ca Compare August 25, 2026 15:04
@clawsweeper clawsweeper Bot added merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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 25, 2026
@clawsweeper

clawsweeper Bot commented Aug 25, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 25, 2026, 11:24 AM ET / 15:24 UTC.

ClawSweeper review

What this changes

The PR makes two Claude credential helper types private and removes their named re-exports from the provider-auth plugin SDK entrypoint.

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

Keep open for maintainer handling: the patch correctly removes two unshipped SDK type exports while retaining the null-only compatibility function, but exact-head CI must be refreshed before merge.

Priority: P3
Reviewed head: ad3a8cabc3e00e9792c11a9cd544b73bd2a1db5e

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The focused patch matches the SDK boundary and unshipped-release evidence; exact-head CI refresh remains required before merge.
Proof confidence 🌊 off-meta tidepool Not applicable: This MEMBER-authored declaration-only cleanup is exempt from the external contributor real-behavior-proof gate.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This MEMBER-authored declaration-only cleanup is exempt from the external contributor real-behavior-proof gate.
Evidence reviewed 5 items Current main surface: Current main still publicly re-exports both Claude types alongside the credential reader, so the PR has a concrete SDK-surface effect.
Branch behavior: The branch keeps the exported reader and makes its supporting credential types local; the reader still returns null without reading credentials.
Caller and test check: Repository-wide symbol search found no consumer of either removed type; the focused test exercises the retained reader and verifies its null-only behavior.
Findings None None.
Security None None.

Live Verification

Command: pnpm plugin-sdk:surface:check

Result: PASS (completed)

pnpm plugin-sdk:surface:check
runner@runnervm76f27:/tmp/clawsweeper-live-proof-129383-xuv1dQ/target$ pnpm plugin-sdk:surface:check
$ node --max-old-space-size=8192 --import tsx scripts/plugin-sdk-surface-report.mts --check
pnpm plugin-sdk:surface:check
all SDK entrypoints:
  entrypoints: 336
  exports: 7300
  callable exports: 4385
  deprecated exports: 1260
  deprecated callable exports: 774
  unique entrypoint-qualified exports: 7300
public package SDK entrypoints:
  entrypoints: 147
  exports: 4340
  callable exports: 2581
  deprecated exports: 1134
  deprecated callable exports: 683
  unique entrypoint-qualified exports: 4340
local-only SDK entrypoints:
  entrypoints: 189
  exports: 2960
  callable exports: 1804
  deprecated exports: 126
  deprecated callable exports: 91
  unique entrypoint-qualified exports: 2960
deprecated public subpaths: 10
deprecated barrel subpaths: 2
public wildcard reexports: 50
package-exported forbidden subpaths: 0






















Assertions:

  • PASS expect_output: public package SDK entrypoints

How this fits together

The provider-auth SDK is the public authentication helper surface consumed by plugins. It forwards the deprecated Claude credential reader while this change narrows which TypeScript names plugin authors can import.

flowchart LR
  A[Plugin code] --> B[Provider-auth SDK]
  B --> C[Claude compatibility helper]
  C --> D[Null-only credential reader]
  B --> E[Public type export surface]
Loading

Before merge

  • Resolve merge risk (P1) - A plugin compiled against unreleased main could import either removed type; no repository consumer exists and the exports postdate the latest stable release.
  • Resolve merge risk (P1) - The supplied exact-head check rollup reports two compact check failures and a failing CI gate; merge should wait for an exact-head green refresh.
  • Complete next step (P2) - No mechanical repair is indicated; await maintainer review and exact-head green validation.
Agent review details

Security

None.

PR surface

Source -4. Total -4 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 2 3 7 -4
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 3 7 -4

Review metrics

Metric Value Why it matters
Production/test LOC delta production -4, tests 0 The patch reduces the SDK declaration surface without adding runtime or test code.

Merge-risk options

Maintainer options:

  1. Refresh exact-head validation (recommended)
    Rebase onto current main and require the SDK surface check and required CI to pass on the resulting head before merge.
  2. Retain the two type exports
    Keep the exports only if maintainers decide compatibility for plugins built against unreleased main outweighs the documented SDK export budget.

Technical review

Best possible solution:

Land the narrower SDK surface after rebasing and confirming the surface check and required CI are green on the exact merge head.

Do we have a high-confidence way to reproduce the issue?

Not applicable: this is a declaration-surface cleanup, and source inspection establishes the preserved runtime reader behavior.

Is this the best way to solve the issue?

Yes: keeping the reader while localizing unused, unshipped supporting types is the narrowest approach consistent with the SDK’s export-budget contract.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against d53ea9cf4d45.

Labels

Label justifications:

  • P3: This is a small unshipped SDK-surface cleanup with no runtime behavior change.
  • merge-risk: 🚨 compatibility: Removing names from a public plugin SDK entrypoint can break plugins built against the unreleased current-main declaration.
  • 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 MEMBER-authored declaration-only cleanup is exempt from the external contributor real-behavior-proof gate.

Evidence

What I checked:

Likely related people:

  • obviyus: The merged Claude native-auth PR introduced the compatibility reader and the two now-removed public type exports. (role: introduced the adjacent Claude-auth implementation; confidence: high; commits: 750a64e7cd4a; files: src/plugin-sdk/provider-auth-claude-compat.ts, src/plugin-sdk/provider-auth.ts)

Rank-up moves

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

  • Rebase onto current main and obtain a green exact-head SDK surface check and required CI.

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-25T15:08:34.431Z sha ad3a8cabc3e00e9792c11a9cd544b73bd2a1db5e :: needs maintainer review before merge. :: none

@shakkernerd shakkernerd self-assigned this Aug 25, 2026
@shakkernerd
shakkernerd force-pushed the refactor/claude-auth-sdk-surface branch from ad3a8ca to 44ba4f4 Compare August 25, 2026 16:45
@shakkernerd
shakkernerd merged commit c94b0bd into main Aug 25, 2026
217 of 226 checks passed
@shakkernerd
shakkernerd deleted the refactor/claude-auth-sdk-surface branch August 25, 2026 16:53
@shakkernerd

Copy link
Copy Markdown
Contributor Author

Fixed: The provider-auth Plugin SDK surface now keeps unused Claude compatibility types private while preserving the credential reader.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. 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