Skip to content

refactor(plugin-sdk)!: retire deprecated compatibility facades - #162333

Merged
steipete merged 5 commits into
mainfrom
deslop/l254-sdk-facades-20260930
Oct 1, 2026
Merged

steipete merged 5 commits into
mainfrom
deslop/l254-sdk-facades-20260930

Conversation

@steipete

@steipete steipete commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Completes the SDK owner's approved September 30 retirement of five deprecated compatibility facades, so plugins use the focused contracts that own each operation.

User Impact

Breaking SDK change: openclaw/plugin-sdk/channel-lifecycle, channel-message, channel-reply-pipeline, config-runtime, and infra-runtime are removed. Update affected plugins before upgrading; this decision does not claim that every external plugin has migrated.

Use channel-outbound / channel-inbound for channel operations, config-contracts / runtime-config-snapshot / config-mutation for configuration, and focused infrastructure subpaths or the injected runtime API. system-event-runtime now provides the typed public snapshot/consume contract; lifecycle, reply, and config types retain their implementations on their focused entrypoints. The migration guide documents renamed helpers and operations without a drop-in replacement.

Why This Change Was Made

The September 30 maintainer decision supersedes these facades' October 1 and external-migration retention gates. Package exports, entrypoint inventories, workspace facades, compatibility tombstones, docs, and all in-repository callers move together. The registry's subpath records now live in plugin-sdk-subpath-records.ts, consumed by registry-records.ts.

Also removes the now-unreachable draft-preview compatibility wrapper, reply-pipeline forwarding barrel, and scaffolding-sanitizer re-export. The live-message owner retains the preview lifecycle assertions. Event reset helpers stay on the test-only fixture surface.

Release-note context: remove the five public compatibility subpaths and migrate plugins to the replacements above. No changelog edit, version bump, config/schema migration, or publication is included.

Evidence

Final candidate: e6f657afbda47c97651a2f9f352fc5b903b653b2, rebased onto b3e5991d4a6dcaf06b0c3fa959258581d4795248. Net removal: 1,320 production lines (excluding test fixtures), 29 tooling lines, 119 test/support lines, and 35 configuration lines; docs grow by 11 lines (1,492 lines overall).

The retired facades exposed unused forwarding exports. Those exports are removed, and tests now exercise the retained owners. Repeated repository-wide unused-export/file/dependency scans pass with zero entries. The caller selection covers core owners, agents, Gateway, extensions, tooling, the full plugin-contract directory, Gateway network E2E (7 tests), and the real Anthropic exec-approval live test (1 test). The final Gateway/tooling repair passed four shards in 259.68s; the subsequent contract/rebase pass passed three shards in 103.43s, including 48 contract files / 1,129 tests.

Blacksmith Testbox leases:

  • tbx_01m3tyznznn2j69krpmcm4w6r1 (run): broad caller, deadcode, E2E/live, and initial API proof; later repaired focused tests passed. Its later full check disconnected at the lease cutoff during typechecking and is not counted as a full pass.

  • tbx_01m3v68x2kyysrjfnn6wpcxmxf (run): zero cycles in both checks; all three deadcode commands passed; contract/rebase tests passed. Full node scripts/check-changed.mjs passed every stage except lint, including all core, extension, script, and root-test typechecks (1,618.08s), SDK export/budget checks, import boundaries, architecture guards, and dead-export scan. Its four migration lint errors are fixed in the final candidate.

  • tbx_01m3vafgc5kk5d7vkn8chkmykg (run): final API comparison passes, both cycle checks report zero, pnpm deadcode:dependencies passes, and the final focused selection passes five shards in 192.62s (including all plugin contracts). Scoped check-changed for the five final test repairs passed: four TypeScript graphs, dead-export scan, all boundary/architecture guards, and lint (0 warnings/errors). The complete invocation passed in 16m14.8s.

  • tbx_01m3vc3svsvmxmh9v3d0b97hzg (run): final rebased-head API comparison passes with the same intended surface delta; both cycles are zero; surface-budget test and all 48 plugin-contract files / 1,132 contract tests pass (two shards, 65.92s). The scoped budget-script check passed typechecking and surface guards, then identified one export newly orphaned by main's CLI alias removal. resolveLegacyOutboundSendDepKeys is now private; its implementation and same-module caller are unchanged. Final Knip dependency/export checks pass; the refreshed API comparison and both zero-cycle checks pass; outbound/surface/contract tests pass four shards in 84.65s. Final scoped check-changed for src/infra/outbound/send-deps.ts and scripts/plugin-sdk-surface-report.mts passed, including core production and every core-test type graph, scripts, dead exports, lint, boundary/security guards, and runtime cycles. The complete final invocation passed in 34m20.2s.

The remaining full-lint finding is pre-existing: src/infra/update-candidate-canary.test.ts has 1,006 counted lines against a 1,000-line limit. The file is untouched by this PR and has the identical Git blob 44459da05a81c0f9ca7c8fa860a9b61938773155 on the tested branch and main. Scheduled main CI 36831897385 reports successful lint shards; that run is not claimed as hosted-red evidence. No lint rule, baseline, or assertion was weakened.

API proof uses the repository's canonical plugin-sdk:api:diff. The former api:gen and checked-in SDK baseline were deliberately retired in d2afbd0. Final refreshed comparison confirms exactly the five approved removed entrypoints, 869 removed export paths, 35 focused additions (18 on channel-outbound, 4 on config-contracts, and 13 on system-event-runtime), and zero retained-export signature changes. Acknowledgement digest: b3d35dc3. The only non-export-only named reachable declaration change is the required compatibility-registry tombstone metadata. Crabbox exports a synthetic snapshot commit, so final proof asserts the transferred tree matches the local candidate and compares its snapshot HEAD with the pinned base. Passing the local commit ID remotely fails revision lookup; a local low-priority fallback hit the managed-process wrapper and produced no API verdict.

Earlier pnpm build passed, including SDK declarations and all 154 public subpath checks; it predates the dead-export repair. Full typechecking covers that repair. Exact-head hosted CI attached; its sole independent failure is the pre-existing catalog expectation documented below. Owner-test cost: 79 system-event tests and 22 live-message lifecycle tests passed with one worker in 19.58s and 1.20s shard wall time. No retries, timeout increases, assertion weakening, or test skips were added.

Independent Codex review of the final branch: no actionable P0–P2 findings. The requested subtree coverage is below.

Hosted CI exception

Exact-head CI evidence for the coordinator-approved pre-existing-failure exception, pinned to e6f657afbda47c97651a2f9f352fc5b903b653b2.

The sole independent failure in CI 36850329173 is checks-node-changed-10: test/cli-json-stdout.models.e2e.test.ts / “preserves model catalog refresh success payloads and persisted rows.” It expects “A running Gateway applies the updated catalog after its next restart.” but receives “A running Gateway applies the update on its next catalog check, without restarting.” Seven sibling cases pass. The remaining 111 CI jobs were cancelled by fail-fast; those are not reported as passing. The aggregate CI gate reflects this failure; no other independent failed or pending check remains.

The identical assertion is independently reported by unrelated PR #160442's current-head CI, checks-node-changed-7, head 553cdb2337657cd70a8a1ae157f2c6996c2fc093. Its check-run annotation identifies the same test, line 173, and exact expected/received strings.

Main commit 504d2905d69 changed the CLI's catalog-refresh message and unit test but left this E2E expectation stale. This PR changes none of the formatter, its unit test, or the failing E2E file. Shared infrastructure imports overlap through export-only retirements; they do not produce or change this literal output. The coordinator already repaired the expectation in 9413ff9a063, verified as an ancestor of current main. No duplicate fix is included here.

Fixes found along the way

The Gateway permissions fixture now awaits the canonical locked compare-and-swap approvals restore and asserts success. Type-only imports use top-level qualifiers so they do not preserve runtime side effects; duplicate config imports are consolidated. Rebase resolutions retain main's SDK budget correction and consolidated allow-always tests, migrating their three remaining obsolete-wrapper calls to the surviving entry owner. The final budget also includes main's four newly approved storage transport types: 3,757 exports, 2,186 callable exports, 154 entrypoints, 269 deprecated exports, and zero wildcard exports.

SDK coverage: every production file over 200 lines

l254 SDK facade retirement coverage

All 78 production TypeScript files over 200 lines in src/plugin-sdk/ were READ in full, largest first within independent file groups. This covers 31,871 pre-retirement lines. Counts below preserve the initial survey snapshot; approved source deletions and edits can change the final sizes. Test files and test-helpers/ are excluded from production counts. A separate 382-line channel contract helper was also read.

This is the requested coverage deliverable, not runtime proof. The coverage workers made no source edits and ran no tests, builds, or checks. Additional deprecated APIs were retained where the accepted decision only covers the named five facades. The coherent structural reduction remains retirement of those facades with focused replacements, caller migration, and regenerated API evidence.

Lines Production file Coverage and disposition
788 src/plugin-sdk/core.ts READ — Retain: canonical public channel composition, metadata, threading recovery, and registration-mode wiring; its broad exports are not among the approved five facades.
773 src/plugin-sdk/approval-native-helpers.ts READ — Retain: canonical account-aware forwarding eligibility, origin normalization, and duplicate-prompt suppression used by Slack, Google Chat, Teams, and shared delivery routing; these are real transport adapters and current public contracts.
731 src/plugin-sdk/approval-reaction-runtime.ts READ — Retain: canonical decision bindings, prompt rendering, terminal settlement, and bounded/persisted reaction targets used by iMessage; no facade-only implementation to retire.
711 src/plugin-sdk/provider-stream-shared.ts READ — Retain: provider stream normalization, terminal promotion restrictions, payload policy, and iterator lifecycle have distinct contracts; deprecated provider helpers are public and outside the five approved facade removals.
692 src/plugin-sdk/qa-runner-runtime.ts READ — Retain: manifest/runtime registration validation and lazy QA loading own distinct boundaries; the runtime-api fallback has an explicit shipped v2026.6.9 contract outside the five approved retirements.
679 src/plugin-sdk/provider-auth-login-flow-runtime.ts READ — Retain: chat login reservation, cancellation, model-access authority, UI handoff, and result admission share one flow owner; repeated authority checks straddle awaited or persistent effects.
661 src/plugin-sdk/agent-harness-runtime.ts READ — Retain: public harness exports and lazy MCP/image boundaries are active contracts; optional-capability attempt V1 remains explicitly supported through 2026-10-12.
653 src/plugin-sdk/provider-onboard.ts READ — Retain: existing preset appliers already centralize model/provider merging while preserving alias precedence, credential removal, connection-only behavior, and replace-mode seeding; single-model public wrappers are named contracts.
651 src/plugin-sdk/session-transcript-runtime.ts READ — Retain: storage-neutral identity, scoped transcript reads/writes, redaction, lifecycle/rebinding checks, and delivery-mirror correlation own observable SDK behavior.
641 src/plugin-sdk/session-store-runtime.ts READ — Retain: projects private store state and mediates writes; deprecated whole-store/file helpers have an explicit shipped beta.5 contract through 2026-10-12, outside the five approved facade removals.
635 src/plugin-sdk/api-baseline-declaration-closure.ts READ — Retain: compiler-owned declaration reachability, cycle-aware caching, ambient effects, and conservative dependency recall protect the API-diff contract.
628 src/plugin-sdk/channel-entry-contract.ts READ — Retain: guarded companion-module loading, instance-captured graph validation, source/built resolution, and registration-mode selection are one canonical bundled-entry owner; setup migration compatibility has a separate 2027.1 window.
618 src/plugin-sdk/outbound-media.ts READ — Small sound cleanup available: remove the redundant private deletingEntries set and its try/finally; deferredDeletes already covers every asynchronous deletion interval and failed cleanup.
616 src/plugin-sdk/persistent-dedupe.ts READ — Retain: queued durable writes, generation fencing, and claim settlement are separate invariants; public JSON import and claim wrappers are not covered by the facade retirement approval.
593 src/plugin-sdk/reply-payload.ts READ — Small sound cleanup available: isNumericTargetId can directly test /^\d{3,}$/ against raw.trim() because the regex already rejects empty input; public sending wrappers preserve distinct caption/fallback/result contracts.
568 src/plugin-sdk/provider-entry.ts READ — Retain: one entry factory already centralizes manifest-derived auth, static/live catalogs, and registration; narrowing/loading behavior and tolerant unreadable auth rows prevent safe wholesale collapsing.
526 src/plugin-sdk/channel-config-helpers.ts READ — Retain: shared CRUD/account normalization and light inspection accessors already consolidate scoped, top-level, and hybrid channel adapters; resolveChannelConfigWrites narrows the public config type relative to its internal owner.
516 src/plugin-sdk/provider-tools.ts READ — Retain: schema normalization and diagnostics share helpers; DeepSeek union flattening preserves literal, nullable, undeclared-property, and required-key semantics that cannot be removed as repetition.
513 src/plugin-sdk/runtime-doctor-migrations.ts READ — Retain: one cold-loadable owner already serves config-key moves and durable legacy JSON imports, with retention verification before source archival.
504 src/plugin-sdk/provider-catalog-live-runtime.ts READ — Retain: acquisition/projection are already separate owners; static fallback, strict empty catalogs, anonymous retry, and scope filtering are intentionally different supported outcomes.
495 src/plugin-sdk/api-baseline.ts READ — Retain: canonical source/declaration generation, immutable input checks, public export discovery, and section deduplication are required for exact retirement evidence.
486 src/plugin-sdk/api-diff.ts READ — Retain: parses subprocess artifacts, compares entrypoints/signatures/reachable declarations, and bounds human reports; duplicate tiny lexical comparators do not justify a new owner.
485 src/plugin-sdk/status-helpers.ts READ — Retain: public status projection deliberately distinguishes missing/null state and account lifecycle classification; matching passive helper implementations have different generic API bounds.
484 src/plugin-sdk/provider-catalog-live-normalize.internal.ts READ — Candidate: remove internal readLiveModelCatalogRecord forwarding function and use canonical asOptionalRecord directly in this file and acquisition sibling; model admission and upstream origin checks remain substantive policy.
482 src/plugin-sdk/memory-host-core.ts READ — Retain: inode-bound artifact ownership, ordered durability, crash recovery, and public discovery are distinct responsibilities; no supported deletion follows from the five facade retirements.
479 src/plugin-sdk/migration-runtime.ts READ — Retain: generic copy and protected memory-file copy differ in source revision checks, symlink/hardlink restrictions, backup journaling, and recovery semantics.
469 src/plugin-sdk/approval-delivery-helpers.ts READ — Retain: combines common auth, delivery, and native routing policy while preserving distinct flat and forwarding-backed public capability inputs; key projection is observable and not an identity wrapper.
459 src/plugin-sdk/qa-runtime.ts READ — Retain: Docker health/command helpers, QA-only transcript inspection, and private runtime loading have concrete independent contracts; availability detection differs intentionally from the runner helper.
456 src/plugin-sdk/allowlist-config-edit.ts READ — Retain: this is already the canonical account-scoped editor; normalized matching, inheritance materialization, legacy-path cleanup, and write-target authority must remain distinct.
439 src/plugin-sdk/provider-catalog-live-acquisition.internal.ts READ — Candidate: consume canonical asOptionalRecord directly with the normalization sibling; retain bounded reads, pagination completion, redirect credential scrubbing, and auth-scoped cache keys.
427 src/plugin-sdk/windows-spawn.ts READ — Retain: wrapper discovery, explicit shell policy, and argv materialization separate platform facts from authority; known-shape checks preserve batch setup semantics.
420 src/plugin-sdk/provider-model-shared.ts READ — Retain: family hooks centralize replay policy and self-hosted setup already uses lazy owner methods; exported provider-specific shortcuts remain public contracts outside this approval.
419 src/plugin-sdk/channel-policy.ts READ — Retain: shared policy warnings, access-group-aware mutable-name detection, and scoped security adapters; deprecated policy evaluators are public contracts not included in this retirement approval.
418 src/plugin-sdk/infra-runtime.ts READ — Approved removal: deprecated broad facade and old error-kind classifier; migrate snapshot/consumption capabilities to focused system-event-runtime before deletion.
409 src/plugin-sdk/migration.ts READ — Retain: patch validation, atomic conflict recheck, and secret redaction serve public migration providers; reusing generic merge/redact helpers would change their semantics.
409 src/plugin-sdk/secret-ref-runtime.ts READ — Retain: one setup/status adapter owns plugin SecretRef CLI behavior, trusted plan paths, platform quoting, and exclusive secret-plan creation.
398 src/plugin-sdk/session-visibility.ts READ — Retain: compiles bounded wildcard policy and binds/revalidates host-scoped grants; SDK wrappers translate richer private decisions while preserving public error behavior.
397 src/plugin-sdk/qa-channel-protocol.ts READ — Retain: public QA bus types, shipped target grammar, and bounded string-redacting tool-call snapshots are focused contracts.
395 src/plugin-sdk/webhook-request-guards.ts READ — Retain: common HTTP method/body/rate/in-flight admission, rejection completion, and detached-work ownership; sync/async body paths differ in parse/error behavior.
384 src/plugin-sdk/provider-auth.ts READ — Retain: Copilot exchange owns tenant routing, expiration validation, token cache identity, timeout reporting, and fallback endpoint selection; deprecated public exports are separately scoped.
374 src/plugin-sdk/session-visibility-internal.ts READ — Retain: canonical owner of session visibility decisions, denial reason records, and failure-aware spawned-session lookup; callers in agent session tools use its richer result.
357 src/plugin-sdk/channel-ingress-runtime.ts READ — Retain: released resolver adapters bind instance authority, raw-event monitor fixes admission policy, and lifecycle fan-in preserves claim ordering/terminal settlement.
354 src/plugin-sdk/discord.ts READ — Retain: separate deprecated public Discord API with lazy plugin-instance-aware loading; five-facade approval does not retire this contract.
351 src/plugin-sdk/provider-auth-claude-compat.ts READ — Retain: explicit shipped compatibility contract runs through v2026.10; secure-storage/config separation, Keychain service identity, bounded reads, and cache fingerprints cannot be removed under the five-facade approval.
336 src/plugin-sdk/provider-catalog-shared.ts READ — Retain: shared-load consumer cancellation, TTL-at-completion, abandoned-load rejection, config row projection, and streaming usage policy are separate observable behaviors.
329 src/plugin-sdk/provider-auth-runtime.ts READ — Retain: narrow loopback SDK contract intentionally hides lower-level listener options; auth module resolution serves source/built layouts and callback parsing retains distinct manual-input behavior.
322 src/plugin-sdk/api-baseline-declaration-print.ts READ — Retain: native-compiler AST printing removes implementations while preserving inferred returns, class contracts, generics, and tuple-literal union order.
322 src/plugin-sdk/channel-inbound.ts READ — Retain public vocabulary and compatibility adapters. Small candidate: alias-re-export dispatchAssembledChannelTurn as dispatchChannelInboundReply instead of its pure async forwarding wrapper, only if generated API diff stays equivalent; no broad removal is justified.
310 src/plugin-sdk/webhook-targets.ts READ — Retain: caller-owned target registration/teardown, canonical route resolution, ambiguous-auth rejection, and guard cleanup are distinct invariants; synchronous and asynchronous matching preserve different call contracts.
302 src/plugin-sdk/facade-loader.ts READ — Retain: canonical guarded module loading and generation-aware proxy reflection implement active plugin authority and JavaScript proxy invariants.
302 src/plugin-sdk/file-lock.ts READ — Retain: shipped fs-safe adapter adds process-start ownership, fail-closed stale recovery, pinned release guards, and aggregate failure behavior.
288 src/plugin-sdk/channel-outbound.ts READ — Retain: modern replacement owner with lazy runtime imports, stale-install non-dispatch classification, and explicit shipped Slack compatibility; media-selection wrapper narrows ReplyPayload to omit core-only trustedLocalMedia and must not become a raw internal re-export.
283 src/plugin-sdk/control-ui.ts READ — Retain: browser-only typed extension contract has no host implementations and deliberately exposes lifecycle, navigation, and action ownership.
279 src/plugin-sdk/provider-oauth-runtime.ts READ — Retain: SDK OAuth callback/types are public, abort handling normalizes its documented cancellation result, and apparent token/PKCE wrappers preserve public signatures.
278 src/plugin-sdk/channel-replay-guard.ts READ — Retain: shared dedupe composition owns per-claim authority, namespace binding, settlement, and release; used by persistent-dedupe and live channel callers including Telegram, Slack, Matrix, and Feishu.
276 src/plugin-sdk/command-auth.ts READ — Retain: independently deprecated public command-auth compatibility surface; DM pairing-store and group allowlist semantics are not covered by this retirement.
274 src/plugin-sdk/feature-plugin.ts READ — Retain: one validated operation owner already serves tools, commands, and session actions; transport-specific result/error projection and service-scoped event authority are substantive.
273 src/plugin-sdk/pair-loop-guard-runtime.ts READ — Retain: shared pair identity, retry dedupe, backwards-clock handling, cooldown and bounded pruning carry independent behavioral contracts.
265 src/plugin-sdk/extension-shared.ts READ — Retain: named public helpers adapt passive lifecycles, runtime fallback, config errors, package layouts, and proxy setup; apparent status duplicates have different public generic bounds.
265 src/plugin-sdk/facade-resolution-shared.ts READ — Retain: runtime ownership wins over metadata, ambiguity rejects, and source/dist/registry precedence are intentional; arbitrary environment lookups remain separate.
262 src/plugin-sdk/tool-plugin.ts READ — Retain: canonical tool factory projects static metadata and distinct execute/factory registrations; public TypeBox inference and result wrapping are real contracts.
261 src/plugin-sdk/plugin-entry.ts READ — Retain: canonical lightweight registration factory and public types; runtime kind fallback and nondeprecated type alias retain explicit contracts.
259 src/plugin-sdk/provider-selection-runtime.ts READ — Retain: explicit and automatic selection intentionally differ in fallback/availability behavior; shared candidate resolution already centralizes config admission and precedence.
257 src/plugin-sdk/channel-config-ui-hints.ts READ — Retain: descriptor-driven shared UI copy already consolidates repeated channel schema hints; option-dependent ordering and help text are user-visible contracts.
255 src/plugin-sdk/channel-route.ts READ — Retain: public normalization plus exact/conversation equality and dedupe/compact keys intentionally differ; core outbound/session/approval routing also consumes this canonical owner.
251 src/plugin-sdk/realtime-voice.ts READ — Retain: production-private supported owner seam for official voice plugins; focused types and stateful runtime owners cannot be removed with public compatibility facades.
245 src/plugin-sdk/webhook-memory-guards.ts READ — Retain: shared bounded timed map already unifies rate-limiter and anomaly counter storage while preserving expiry, recency, and sampled logging semantics.
243 src/plugin-sdk/agent-harness-completion.ts READ — Retain: completion custody, requester revision validation, persistent-delivery reconciliation, and post-await admission are authority/lifecycle invariants.
240 src/plugin-sdk/memory-host-event-export.ts READ — Retain: pinned-inode publication and marker/content verification preserve ownership through crash recovery and concurrent workspace writes.
230 src/plugin-sdk/session-catalog-paging.ts READ — Retain: canonical strict parameter/cursor validation, UTF-8 byte-bound paging, and host publication lifetime shared by catalog providers; safety limits are not redundant normalization.
229 src/plugin-sdk/provider-stream.ts READ — Retain: family descriptors compose distinct provider policy with observable wrapper order; public deprecated hook objects cannot be included in the approved five-facade retirement.
222 src/plugin-sdk/ssrf-policy.ts READ — Retain: public host allowlist and private-network adapters preserve shipped aliases and explicit cleartext/private-DNS policy; no additional retirement approval.
220 src/plugin-sdk/access-groups.ts READ — Retain: one membership owner already handles static/custom groups and reason records; expansion wrappers adapt public resolver and legacy sender contracts.
219 src/plugin-sdk/facade-runtime.ts READ — Retain: cached sync/async activation loading, instance wrapping, and custom-environment isolation serve active public-surface lifecycle requirements.
213 src/plugin-sdk/facade-activation-check.runtime.ts READ — Retain: cold activation owner honors current instance state before config fallback; metadata, registry, and source config resolution are distinct ownership facts.
209 src/plugin-sdk/approval-client-helpers.ts READ — Retain: shared account/profile enablement, approver/target authorization, request filters, and local-prompt suppression used by channel approval clients.
208 src/plugin-sdk/channel-lifecycle.core.ts READ — Retain: surviving owner behind the retired lifecycle facade; per-key queue accounting, abort cleanup, and server-close sequencing contain lifecycle invariants used by Discord and passive channels.
201 src/plugin-sdk/approval-auth-helpers.ts READ — Retain: explicit-versus-implicit same-chat authorization marker and shared approver normalization are security-relevant contract behavior, not removable forwarding.

Additional small-file sweep: 346 production files of at most 200 lines / 14,392 lines READ. Whole-subtree total: 424 files / 46,263 lines inspected. No additional public retirements are included.

@clawsweeper

clawsweeper Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation channel: discord Channel integration: discord channel: imessage Channel integration: imessage channel: matrix Channel integration: matrix channel: msteams Channel integration: msteams channel: signal Channel integration: signal channel: slack Channel integration: slack channel: telegram Channel integration: telegram extensions: memory-core Extension: memory-core scripts Repository scripts plugin: file-transfer extensions: xai size: XL labels Oct 1, 2026
@steipete
steipete enabled auto-merge (squash) October 1, 2026 03:14
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. 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 Oct 1, 2026
@clawsweeper

clawsweeper Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed October 1, 2026, 6:45 AM ET / 10:45 UTC (Revision 3).

ClawSweeper review

What this changes

Removes five deprecated plugin SDK import paths, moves retained contracts and tests to focused entrypoints, and documents migration for affected plugins.

Merge readiness

⛔ Blocked before merge - 2 items remain

Keep open: the retirement remains absent from current main, and the prior unpublished-cleanup blocker is resolved. No blocking introduced defect was identified; the breaking compatibility tradeoff is explicitly accepted.

Priority: P2
Reviewed head: e6f657afbda47c97651a2f9f352fc5b903b653b2

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A coherent, approved retirement with documented migration, published cleanup, and useful validation; no blocking patch defect was identified.
Proof confidence 🌊 off-meta tidepool Not applicable: The maintainer-authored retirement is exempt from the external-contributor proof gate. Recorded API and contract validation covers the focused SDK replacements; no material authority change or stored-data contract change was identified.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The maintainer-authored retirement is exempt from the external-contributor proof gate. Recorded API and contract validation covers the focused SDK replacements; no material authority change or stored-data contract change was identified.
Evidence reviewed 8 items Pinned introduced changes: Reviewed the merge-base-to-head delta, rather than endpoint drift. Package exports, inventories, facade deletions, retained entrypoints, caller migrations, and compatibility tombstones implement the stated retirement.
Accepted compatibility tradeoff: The maintainer-authored body explicitly approves retiring these five facades despite incomplete external-plugin migration and warns that affected plugins must update before upgrading. The current-head security guard verifies steipete’s repository admin role. The migration timeline records the same scope and superseded retention gate.
Still necessary on main and latest release: Current main d1dc3cd and latest release v2026.9.7 retain all five package export paths. The retirement is neither already implemented on main nor shipped in that release.
Findings None None.
Security None None.

How this fits together

The plugin SDK connects bundled and third-party plugins to OpenClaw’s channel, configuration, and infrastructure owners. Its package exports determine which contracts plugins can import when the host loads them.

flowchart TD
  A[Plugin imports] --> B[SDK package exports]
  B --> C{Supported import path}
  C -->|Focused path| D[Channel and configuration contracts]
  C -->|Removed facade| E[Plugin migration required]
  D --> F[Existing runtime owners]
  F --> G[Messages and host operations]
Loading

Before merge

  • Review config compatibility - Confirm compatibility and upgrade impact for the changed config or default surface before merge.
  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.
Agent review details

Security

None.

PR surface

PR surface statistics unavailable: the file list is incomplete.

Review metrics

Metric Value Why it matters
Public import retirement 5 SDK import paths removed The accepted breaking change requires external plugins using these paths to migrate before host upgrade.

Stored data model

Persistent data-model change detected: migration/backfill/repair: src/plugins/compat/plugin-sdk-subpath-records.ts, unknown-truncated-pull-files. Confirm migration or upgrade compatibility proof before merge.

Technical review

Best possible solution:

Use the focused SDK contracts and documented caller adaptations while preserving the retained runtime owners and their behavior.

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

Not applicable: this is an approved API retirement rather than a reported runtime bug; the removed paths and replacements are directly inspectable.

Is this the best way to solve the issue?

Yes: removing the forwarding facades and moving retained contracts to existing focused owners follows the accepted SDK direction without adding a competing implementation.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against d1dc3cd51104.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This is an approved SDK maintenance change with bounded scope and documented plugin migration.
  • merge-risk: 🚨 compatibility: Plugins importing the five removed paths will stop loading; the maintainer explicitly accepts that tradeoff without claiming universal external migration.
  • 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: The maintainer-authored retirement is exempt from the external-contributor proof gate. Recorded API and contract validation covers the focused SDK replacements; no material authority change or stored-data contract change was identified.

Evidence

What I checked:

  • Pinned introduced changes: Reviewed the merge-base-to-head delta, rather than endpoint drift. Package exports, inventories, facade deletions, retained entrypoints, caller migrations, and compatibility tombstones implement the stated retirement. (package.json:601, e6f657afbda4)
  • Accepted compatibility tradeoff: The maintainer-authored body explicitly approves retiring these five facades despite incomplete external-plugin migration and warns that affected plugins must update before upgrading. The current-head security guard verifies steipete’s repository admin role. The migration timeline records the same scope and superseded retention gate. Public docs: docs/plugins/sdk-migration/removal-timeline.md. (docs/plugins/sdk-migration/removal-timeline.md:48, e6f657afbda4)
  • Still necessary on main and latest release: Current main d1dc3cd and latest release v2026.9.7 retain all five package export paths. The retirement is neither already implemented on main nor shipped in that release. (package.json, c074824a27c9)
  • Retained runtime and authority owners: System-event exports reuse the existing SDK routing wrappers without changing their implementation. Security-sensitive approval hunks remove unused forwarding APIs and test seams; retained authorization and locked persistence operations remain. Live-preview promotion and fallback assertions move to the surviving adapter boundary. (src/plugin-sdk/system-event-runtime.ts:2, e6f657afbda4)
  • Prior review follow-up resolved: The requested dead-export cleanup is now published, including the final private send-key helper. The complete body matches captured SHA-256 5f03532249c4240b01c9ca7708600ee33562dd54b844d973e68315f89abd6bc3 and records refreshed API comparison, zero retained-export signature changes, passing dependency checks, focused contracts, and scoped type/lint validation. These are contributor-recorded results; this review executed no target tests. (src/infra/outbound/send-deps.ts:11, e6f657afbda4)
  • Inherited CLI assertion failure: Current-head checks-node-changed-10 fails because the model-refresh CLI test expects restart wording while production prints catalog-check wording. The test is untouched by this delta and its blob 364a81cb6da8ec2597943507c59be07bd8bdbc9e matches current main; main’s production command also prints the newer wording. This is not an introduced SDK finding. (test/cli-json-stdout.models.e2e.test.ts:173, e6f657afbda4)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • obviyus: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

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 (2 earlier review cycles)
  • reviewed 2026-10-01T03:14:04.222Z sha 7ed9b74 :: blocked before merge. :: none
  • reviewed 2026-10-01T05:00:40.382Z sha 7ed9b74 :: blocked before merge. :: none

@steipete
steipete disabled auto-merge October 1, 2026 04:10
Retire the five public SDK facades approved for removal on September 30.
Move remaining callers and useful exports to their focused owners, publish
the system-event snapshot contract, and retain migration tombstones.
Remove the now-unreachable draft-preview and reply-pipeline forwarding layers.

BREAKING CHANGE: remove channel-lifecycle, channel-message,
channel-reply-pipeline, config-runtime, and infra-runtime SDK imports.
Use channel-outbound/channel-inbound, focused configuration subpaths,
system-event-runtime, and the documented infrastructure/runtime replacements.
Remove compatibility-only export layers exposed by the facade retirement. Keep retained behavior at canonical owners and move tests to those entrypoints. Validation of this local follow-up remains pending; do not land until deadcode, focused tests, type checks, cycles, and API proof pass.
@steipete
steipete force-pushed the deslop/l254-sdk-facades-20260930 branch from 7ed9b74 to e6f657a Compare October 1, 2026 10:37
@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime commands Command implementations agents Agent runtime and tooling labels Oct 1, 2026
@github-actions

github-actions Bot commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

⚠️ Security sensitive changes

This maintainer PR changes sensitive security components. This comment is informational because the PR author has repository Maintain or Admin access.

  • Current SHA: e6f657afbda47c97651a2f9f352fc5b903b653b2
  • Maintainer: @steipete
  • Repository role: admin

These security sensitive changes were made:

  • src/infra/exec-approvals-allow-always.ts: Controls sandbox containment or tool execution authority. Check filesystem and network isolation, approval scope, and command allowlists.
  • src/infra/exec-approvals-allowlist.ts: Controls sandbox containment or tool execution authority. Check filesystem and network isolation, approval scope, and command allowlists.
  • src/infra/exec-approvals-analysis.ts: Controls sandbox containment or tool execution authority. Check filesystem and network isolation, approval scope, and command allowlists.
  • src/infra/exec-approvals-authorization.ts: Controls sandbox containment or tool execution authority. Check filesystem and network isolation, approval scope, and command allowlists.
  • src/infra/exec-approvals-config.ts: Controls sandbox containment or tool execution authority. Check filesystem and network isolation, approval scope, and command allowlists.
  • src/infra/exec-approvals-core.ts: Controls sandbox containment or tool execution authority. Check filesystem and network isolation, approval scope, and command allowlists.
  • src/infra/exec-approvals-policy.ts: Controls sandbox containment or tool execution authority. Check filesystem and network isolation, approval scope, and command allowlists.
  • src/infra/exec-approvals-socket.ts: Controls sandbox containment or tool execution authority. Check filesystem and network isolation, approval scope, and command allowlists.
  • src/infra/exec-approvals-store.ts: Controls sandbox containment or tool execution authority. Check filesystem and network isolation, approval scope, and command allowlists.
  • src/infra/exec-approvals.ts: Controls sandbox containment or tool execution authority. Check filesystem and network isolation, approval scope, and command allowlists.

Carefully review these changes before merging.

@steipete

steipete commented Oct 1, 2026

Copy link
Copy Markdown
Contributor Author

Exact-head CI evidence for the coordinator-approved pre-existing-failure exception, pinned to e6f657afbda47c97651a2f9f352fc5b903b653b2.

The sole independent failure in CI 36850329173 is checks-node-changed-10: test/cli-json-stdout.models.e2e.test.ts / “preserves model catalog refresh success payloads and persisted rows.” It expects “A running Gateway applies the updated catalog after its next restart.” but receives “A running Gateway applies the update on its next catalog check, without restarting.” Seven sibling cases pass. The remaining 111 CI jobs were cancelled by fail-fast; those are not reported as passing. The aggregate CI gate reflects this failure; no other independent failed or pending check remains.

The identical assertion is independently reported by unrelated PR #160442's current-head CI, checks-node-changed-7, head 553cdb2337657cd70a8a1ae157f2c6996c2fc093. Its check-run annotation identifies the same test, line 173, and exact expected/received strings.

Main commit 504d2905d69 changed the CLI's catalog-refresh message and unit test but left this E2E expectation stale. This PR changes none of the formatter, its unit test, or the failing E2E file. Shared infrastructure imports overlap through export-only retirements; they do not produce or change this literal output. The coordinator already repaired the expectation in 9413ff9a063, verified as an ancestor of current main. No duplicate fix is included here.

The final Testbox candidate passes Knip, caller/outbound and plugin-contract tests, scoped changed checks including core production and all core-test type graphs plus scripts/lint, both cycle checks (0), and the canonical SDK API comparison: exactly five removed entrypoints / 869 removed export paths, 35 focused additions, no retained-export signature changes (digest b3d35dc3). The PR body records the detailed proof, the unrelated full-lint canary line-cap finding, migration guidance, and coverage log.

Landing uses the explicitly authorized REST squash route with the exact reviewed and tested head pinned.

@steipete
steipete merged commit e649be3 into main Oct 1, 2026
138 of 253 checks passed
@steipete
steipete deleted the deslop/l254-sdk-facades-20260930 branch October 1, 2026 11:12
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 2, 2026
…law#162333)

Retire the five SDK compatibility facades under the approved September 30 owner decision, and migrate in-repository callers onto their focused contracts. Keep implementations with their canonical owners and remove forwarding exports that become unused after the cutover.

BREAKING CHANGE: remove openclaw/plugin-sdk/channel-lifecycle, channel-message, channel-reply-pipeline, config-runtime, and infra-runtime. Use channel-outbound/channel-inbound, config-contracts and focused configuration/infra entrypoints. The new system-event-runtime entrypoint supplies public snapshot inspection and consumption. Update affected external plugins before upgrading the host; this retirement does not certify universal external migration.

Package exports, SDK entry inventories, compatibility tombstones, migration docs, and surface budgets move together. Canonical API comparison confirms exactly five removed entrypoints, 869 removed export paths, 35 focused additions, and no retained-export signature changes. Net production reduction: 1,320 lines.
shakkernerd added a commit to openclaw/Kova that referenced this pull request Oct 13, 2026
…ce 2026.8.1

The preflight imported eight contract helpers from plugin-sdk/channel-message.
OpenClaw stopped exporting seven of them in 2026.8.1 and later removed the
channel-message subpath (openclaw/openclaw#162333), so the scenario that opens
the smoke profile failed every row on current releases and builds.

Use the verifiers plugin-sdk/channel-outbound has exported since 2026.5.27:
verifyDurableFinalCapabilityProofs and the adapter-shaped live, live finalizer
and receive ack verifiers. They walk the runtime's own capability lists and
mark each entry verified or not_declared, so the verified entries are the
declared list the removed listDeclared helpers returned, and the comparison
with Kova's catalog is the same.

Add a self-check that runs the preflight against a package exposing only
channel-outbound, and move the transport boundary fixture to that subpath.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling channel: discord Channel integration: discord channel: imessage Channel integration: imessage channel: matrix Channel integration: matrix channel: msteams Channel integration: msteams channel: signal Channel integration: signal channel: slack Channel integration: slack channel: telegram Channel integration: telegram commands Command implementations docs Improvements or additions to documentation extensions: memory-core Extension: memory-core extensions: xai gateway Gateway runtime merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. plugin: file-transfer rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts security-sensitive-changed size: XL 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