Skip to content

refactor(plugins): deduplicate install security scan contracts - #129272

Merged
steipete merged 1 commit into
mainfrom
codex/cleanup20k-plugin-security-facade-runtime-20260825
Aug 25, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/cleanup20k-plugin-security-facade-runtime-20260825

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

The shipped plugin-install security scanner repeated the same private scan contracts across its lazy public-facing facade and runtime owner. Those duplicated structural types and wrapper annotations added maintenance surface without affecting any security decision or emitted JavaScript.

Why This Change Was Made

The existing install-security runtime and facade now share their canonical private contract while preserving both named facade types, all seven lazy asynchronous wrappers, the existing legacy alias, and every runtime policy. Type-only references erase completely; independently transpiling both changed owners produces byte-for-byte identical JavaScript before and after the cleanup.

User Impact

Plugin installation, security scanning, lifecycle hooks, approval policy, and all existing exported facade signatures behave exactly as before. No private runtime type leaks into the published Plugin SDK.

Evidence

  • Existing install, plugin security, skills, and postbuild suites passed 302 meaningful tests, and the import-cycle guard reported zero cycles.
  • Independent baseline/candidate transpilation proves identical emitted JavaScript for both production owners; AST inspection verifies all seven async wrappers, both named facade types, the original dynamic import, and the existing scan alias.
  • The declaration generator emitted both changed scanner declarations and 462 public Plugin SDK declaration files; no public SDK declaration references the private scanner runtime.
  • Targeted formatting, diff checks, two independent complete security/owner reviews, and full structured precommit review passed.
  • Full local build/declaration commands also encounter 11 unrelated existing errors because the shared canonical dependencies are stale: installed pi-tui 0.82.1 versus locked 0.84.2, markdown-it 14 versus locked 15, and existing Google provider declarations. No edited scanner file has a diagnostic. Exact-head hosted clean-environment build, SDK declarations, and native isolated Testbox validation are mandatory before merge.
  • Genuine shipped production delta: 37 added, 131 removed, net -94. No tests, documentation, configuration, generated files, public SDK exports, or SQLite schemas changed.

@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: S maintainer Maintainer-authored PR labels Aug 25, 2026
@steipete
steipete marked this pull request as ready for review August 25, 2026 11:24
@steipete
steipete merged commit 2e54fe7 into main Aug 25, 2026
296 checks passed
@steipete
steipete deleted the codex/cleanup20k-plugin-security-facade-runtime-20260825 branch August 25, 2026 11:52
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

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

Labels

maintainer Maintainer-authored PR size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant