Skip to content

refactor(plugin-sdk): prune unreachable facades - #122745

Merged
steipete merged 1 commit into
mainfrom
steipete/coercion-helper-consolidation-round6
Aug 12, 2026
Merged

steipete merged 1 commit into
mainfrom
steipete/coercion-helper-consolidation-round6

Conversation

@steipete

Copy link
Copy Markdown
Contributor

Related: #122692

What Problem This Solves

Dead src/plugin-sdk files looked like public facades even though they were never registered or exported and had no consumers. This left misleading SDK topology and stale implementation-shape tests.

Why This Change Was Made

Delete 12 unreachable source facades and two Xiaomi file-shape assertions. Retain the actual entrypoint, package-export, and API-surface guards, plus the core onboarding denylist ratchet.

User Impact

No user or plugin-author behavior changes. This removes only unshipped internal source paths that were never part of the package export contract.

Evidence

  • Current scripts/lib/plugin-sdk-entrypoints.json and package exports contain none of the 12 names; tagged packages v2026.7.2-beta.7 and v2026.8.1-beta.1 did not export them either.
  • Repository-wide static and dynamic import reachability checks found no consumers. The three intentional onboarding denylist entries remain.
  • Focused proof: 49 tests passed across three Vitest shards, covering extension boundaries, plugin activation, SDK subpaths, and package-contract guardrails.
  • SDK proof: plugin-sdk:check-exports, plugin-sdk:surface:check, and plugin-sdk:api:check passed.
  • Fresh P2 autoreview: secret scan clean, zero actionable findings, confidence 0.99.
  • Full changed gate: https://github.com/openclaw/openclaw/actions/runs/31619886976 (tbx_01kzve9re1yyh1f26f81hqxh0z) — typechecks, zero-warning core/extension lint, SDK checks, dead exports, guards, and zero runtime cycles passed.
  • Full build: https://github.com/openclaw/openclaw/actions/runs/31620046755 (tbx_01kzved87zpcjczyvkejh9hv6f) — all build invocations, runtime postbuild, 152 public SDK declarations, and Control UI build/performance passed.
  • Diff: 0 additions, 345 deletions.

AI-assisted and maintainer reviewed. No agent transcript is included.

@clawsweeper

clawsweeper Bot commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@steipete
steipete marked this pull request as ready for review August 12, 2026 17:31
@openclaw-barnacle openclaw-barnacle Bot added size: M maintainer Maintainer-authored PR labels Aug 12, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

Land-ready proof for exact head 1c73d8a8d75760856d84eb6f79ebeb0ec337fb73:

@steipete
steipete merged commit 42f4322 into main Aug 12, 2026
242 of 253 checks passed
@steipete
steipete deleted the steipete/coercion-helper-consolidation-round6 branch August 12, 2026 17:54
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant