Repository navigation
refactor(plugins): deslop tool, search and media plugins - #160552
Merged
Merged
Conversation
Reuse existing Plugin SDK coercion, queue, concurrency, result and error owners, remove redundant forwarding APIs and unreachable fal network policy branches, and consolidate CLI speech and Bonjour lifecycle code. Preserve registered tool text/schemas, requests, manifests and storage. Fix IMAP malformed passwords being treated as unresolved secret references. Fix OC Path Markdown writes rejecting ordinal/positional item addresses and selecting the wrong duplicate key; keep source positions for later writes. Validation: all 29 touched-plugin batches pass on Blacksmith Testbox (281 executed files, 3934 tests passed, 2 skipped), both regressions failed before the fixes, and the full build passes. Required assertion-baseline shrink and remaining API/boundary/descriptor gates are tracked for closeout. Independent Codex review has no accepted actionable findings.
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
steipete
added a commit
that referenced
this pull request
Sep 29, 2026
#160552 moved the secret-ref resolver onto openclaw/plugin-sdk/secret-file-runtime but left @openclaw/fs-safe declared in the extension manifest, so the extension-runtime-dependencies contract test fails on main whenever a PR's changed-files plan includes the plugin contracts shard.
steipete
added a commit
that referenced
this pull request
Sep 29, 2026
#160552 removed extensions/diffs/runtime-api.ts and extensions/lobster/runtime-api.ts but left both plugin ids in the unguarded runtime-api inventory, so the plugin SDK runtime-api guardrails contract test fails on main whenever a PR's changed-files plan includes the plugin contracts shard.
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Sep 29, 2026
…0552) * refactor(plugins): deslop tool, search and media plugins Reuse existing Plugin SDK coercion, queue, concurrency, result and error owners, remove redundant forwarding APIs and unreachable fal network policy branches, and consolidate CLI speech and Bonjour lifecycle code. Preserve registered tool text/schemas, requests, manifests and storage. Fix IMAP malformed passwords being treated as unresolved secret references. Fix OC Path Markdown writes rejecting ordinal/positional item addresses and selecting the wrong duplicate key; keep source positions for later writes. Validation: all 29 touched-plugin batches pass on Blacksmith Testbox (281 executed files, 3934 tests passed, 2 skipped), both regressions failed before the fixes, and the full build passes. Required assertion-baseline shrink and remaining API/boundary/descriptor gates are tracked for closeout. Independent Codex review has no accepted actionable findings. * chore(plugins): shrink assertion allowances after deslop * refactor(oc-path): keep quoted segment guard internal * fix(openshell): keep resolver-side managed remote path guard
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Sep 29, 2026
openclaw#160552 moved the secret-ref resolver onto openclaw/plugin-sdk/secret-file-runtime but left @openclaw/fs-safe declared in the extension manifest, so the extension-runtime-dependencies contract test fails on main whenever a PR's changed-files plan includes the plugin contracts shard.
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Sep 29, 2026
openclaw#160552 removed extensions/diffs/runtime-api.ts and extensions/lobster/runtime-api.ts but left both plugin ids in the unguarded runtime-api inventory, so the plugin SDK runtime-api guardrails contract test fails on main whenever a PR's changed-files plan includes the plugin contracts shard.
This was referenced Sep 29, 2026
steipete
added a commit
that referenced
this pull request
Sep 29, 2026
* refactor(plugins): deslop feature plugins fourth pass Consolidate policy registration, audit context, request projections and private helpers through their existing plugin and SDK owners. Remove dead forwarders, exports and state without changing registered descriptors or persisted contracts. Retain legacy empty-automation cleanup and cover its SQLite update path. Verified scoped plugin suites, import boundaries, byte-identical registered descriptors, changed checks, build and independent review on Testbox. Related: #160362, #160552 * fix(workboard): preserve session states and refresh generated assets
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Sep 30, 2026
* refactor(plugins): deslop feature plugins fourth pass Consolidate policy registration, audit context, request projections and private helpers through their existing plugin and SDK owners. Remove dead forwarders, exports and state without changing registered descriptors or persisted contracts. Retain legacy empty-automation cleanup and cover its SQLite update path. Verified scoped plugin suites, import boundaries, byte-identical registered descriptors, changed checks, build and independent review on Testbox. Related: openclaw#160362, openclaw#160552 * fix(workboard): preserve session states and refresh generated assets
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
Small tool, search, media, diagnostic, and migration plugins still duplicate existing Plugin SDK utilities and carry forwarding layers or unreachable branches after earlier owner migrations.
User Impact
The cleanup preserves tool names, descriptions and JSON schemas, external requests/endpoints, network and credential policy, manifests/config keys, migration outputs, and persisted schemas. It also restores intended IMAP credential errors and ordinal/positional Markdown edits in OC Path.
Why This Change Was Made
Reuse the existing owners instead of maintaining local copies. This follows the recent plugin sweeps, including #158437 and #158532, without repeating their completed changes. The production diff removes 575 net lines (661 added, 1,236 removed); tests/support add 76 net lines and documentation adds 3. The complete 187-file coverage log below records all production files over 200 lines and why retained code needs its existing owner.
allowPrivateNetworkto false; reuse SDK record guards and remove an unused base-URL forwarding option.KeyedAsyncQueue; reuse canonical record/string readers without changing authority checks or opaque references.Fixes found along the way
asNonArrayRecordalways returns an object, so malformed or absent passwords were silently deferred as unresolved secret references.asOptionalRecordrestores the intended error while retaining deferred handling for unresolved object references. The regression failed before the repair.findaccepted#N,$first, and$last, but writes repeated slug-only lookup and replaced the first matching key. Writes now use the read resolver and selected source position, including duplicate keys and subsequent multiline/insertion edits. All three addressing regression cases failed before the repair.Evidence
Validation ran on Blacksmith Testbox lease
tbx_01m3m1wj99bmnezmkwvxdve0m3, hosted by https://github.com/openclaw/openclaw/actions/runs/36426070933. Commands usednode scripts/crabbox-wrapper.mjs run --provider blacksmith-testbox --id <lease> --timing-json -- OPENCLAW_TESTBOX=1 OPENCLAW_TESTBOX_REMOTE_RUN=1 ...with frozen-lockfile installation. No tests, lint, typechecks, or builds ran on the Mac.pnpm test:extensions:batch acpx,bonjour,brave,crabbox,cua-computer,diagnostics-otel,diffs,document-extract,elevenlabs,exa,fal,file-transfer,firecrawl,fish-audio-speech,geolocation,imap,llm-task,lobster,logbook,memory-lancedb,migrate-claude,migrate-hermes,oc-path,onepassword,openshell,searxng,tavily,team-reports,tts-local-cli: 281 executed files; 3,934 passed, 2 skipped, 792 seconds.pnpm build: passed, 581 seconds, including SDK declarations/exports and Control UI.pnpm plugin-sdk:api:diff --base 465fdd5adba67a2b8cef72fcc8c7fd688b7c9967 --head HEAD: passed, no public API changes, 260 seconds.pnpm plugin-sdk:check-exports: passed.src/infra/fs-safe-import-boundary.test.ts,src/plugins/contracts/core-extension-facade-boundary.test.ts,src/plugins/contracts/model-catalog-core-imports.test.ts,test/scripts/extension-import-boundary-checker.test.ts, andtest/scripts/check-extension-package-tsc-boundary.test.ts: 59 tests passed, 35 seconds.996e08779abf2772326d8900bf3edf05d27b83cf4f3e834d26e65bf6840e17ae.pnpm test <file> --maxWorkers=1: OC Pathedit.test.ts19 tests, 3.25 seconds wrapper wall initially (1.98 seconds Vitest); final replay 4.17 seconds wrapper wall (2.41 seconds Vitest); IMAPconfig.test.ts2 tests, 3.11 seconds wrapper wall (1.80 seconds Vitest). Other test edits only migrate imports/mocks to their retained owner. CI timings are pending the first published run.isQuotedSegexport finding was fixed; the final script, production, and full-tree dead-export scans are clean, the 19-test OC Path replay passes, and targeted parser lint reports zero warnings/errors.Known inherited guard failure: the normal changed-check runner stops at
max-lines suppression ratchetbecause its environment-variable census finds 484 names against budget 483. The actual environment guard also fails identically in a separate clean checkout of freshly fetched main6b9da9dc02879a2e27abac0318d65bd9b25b0f4bon replacement Testboxtbx_01m3m98em0wvp3cac6awyde4ak(https://github.com/openclaw/openclaw/actions/runs/36441973066). This lane adds no environment-variable names; its only changedOPENCLAW_*expression moves the existing Bonjour flag read. The budget and its checker remain unchanged. Every native planned command was executed with failures retained, so this is an attributed red guard, not a claimed green aggregate. The main-CI coordinator owns that repair.Both conflict-free rebases preserved the three reviewed patches; the final parent is
bc4a18ac08d694bf1f6ad72860240b67dee1676c. The final rebase changed none of this PR's production files or the SDK helper sources. The native changed-check plan and focused File Transfer replay cover the refreshed base, with the inherited aggregate failure recorded above. No CI workflow was manually dispatched or rerun for proof.Complete production coverage: 187 files over 200 lines, sorted by original size
Lane l144 coverage
Base:
465fdd5adba67a2b8cef72fcc8c7fd688b7c9967. Production files over 200 lines, sorted by original size. All listed files and smaller production owners were read. Excluded model providers and channels: apple-fm, radius, a2a, buzz, clickclack, raft; other user exclusions remain untouched.187 files covered.
extensions/acpx/src/runtime.tsextensions/openshell/src/backend.tsextensions/acpx/src/codex-auth-bridge.tsextensions/comfy/workflow-runtime.tsextensions/fal/image-generation-provider.tsextensions/diagnostics-prometheus/src/service.tsextensions/oc-path/src/oc-path/universal.tsextensions/oc-path/src/oc-path/oc-path.tsextensions/oc-path/src/oc-path/find.tsextensions/agentsapi/agentsapi-session.tsextensions/device-pair/index.tsextensions/logbook/src/service.tsextensions/code-mode-quickjs/src/code-mode.worker.tsextensions/firecrawl/src/firecrawl-client.tsextensions/logbook/src/store.worker.tsextensions/diffs/src/render.tsextensions/diagnostics-otel/src/service.tsextensions/agentsapi/agentsapi-messages.tsextensions/cua-computer/src/driver-result.tsextensions/team-reports/src/store.worker.tsextensions/crabbox/src/crabbox-worker-warm-image.tsextensions/memory-lancedb/index.tsextensions/crabbox/src/crabbox-worker-provider.tsextensions/fal/video-generation-provider.tsextensions/agentsapi/agentsapi-client.tsextensions/agentsapi/agentsapi-attempt.tsextensions/beam/src/mirror.tsextensions/agentsapi/agentsapi-tools.tsextensions/crabbox/src/crabbox-worker-warm-image-store.tsextensions/team-reports/src/render/styles.tsextensions/cua-computer/src/commands.tsextensions/canvas/src/host/a2ui-app/bootstrap.jsextensions/diffs/src/browser.runtime.tsextensions/memory-lancedb/embeddings.tsextensions/onepassword/src/broker.tsextensions/acpx/src/session-owner-migration.tsextensions/openshell/src/fs-bridge.tsextensions/oc-path/src/cli.tsextensions/file-transfer/src/shared/policy.tsextensions/acpx/src/pi-session-store.tsextensions/agentsapi/agentsapi-native-tool-projection.tsextensions/file-transfer/src/shared/node-invoke-policy-preflight.tsextensions/exa/src/exa-web-search-provider.runtime.tsextensions/brave/src/brave-web-search-provider.runtime.tsextensions/github/src/github-api.tsextensions/diffs/src/tool.tsextensions/team-reports/src/aggregate.tsextensions/github/src/detail.tsextensions/elevenlabs/speech-provider-factory.tsextensions/migrate-hermes/auth.tsextensions/device-pair/notify.tsextensions/team-reports/src/sources/github/index.tsextensions/pixverse/video-generation-provider.tsextensions/acpx/src/process-reaper.tsextensions/cua-computer/src/driver-client.tsextensions/migrate-hermes/config-provider-contract.tsextensions/acpx/src/service.tsextensions/crabbox/src/crabbox-worker-profile.tsextensions/cua-computer/src/mcp-driver-client.tsextensions/team-reports/openclaw.plugin.jsonextensions/diffs/src/store.tsextensions/cua-computer/src/window-actions.tsextensions/team-reports/src/summaries.tsextensions/session-share/src/session-catalog.tsextensions/acpx/src/harness-attempt.tsextensions/bonjour/src/advertiser.tsextensions/diagnostics-otel/src/service-recorders-operations.tsextensions/crabbox/src/crabbox-managed-binary.tsextensions/tts-local-cli/speech-provider.tsextensions/diagnostics-otel/src/service-traces.tsextensions/crabbox/src/crabbox-worker-desktop-windows.tsextensions/tavily/src/tavily-client.tsextensions/cua-computer/src/frame.tsextensions/diagnostics-otel/src/service-genai-content.tsextensions/diagnostics-otel/src/service-recorders-tools.tsextensions/memory-lancedb/memory-capture-sanitization.tsextensions/migrate-hermes/model.tsextensions/diagnostics-otel/src/service-recorders-usage.tsextensions/crabbox/src/crabbox-worker-warm-image-capture.tsextensions/migrate-hermes/config-mcp.tsextensions/file-transfer/src/node-host/file-write.tsextensions/imap/src/watcher.tsextensions/logbook/src/analyze.tsextensions/migrate-hermes/secrets.tsextensions/mxc/src/mxc-container-config.tsextensions/crabbox/src/crabbox-worker-node-enrollment.tsextensions/github/src/preview.tsextensions/deepgram/realtime-transcription-provider-factory.tsextensions/team-reports/src/scheduler.tsextensions/runway/video-generation-provider.tsextensions/diffs/src/config.tsextensions/fish-audio-speech/speech-provider.tsextensions/acpx/src/runtime-session-store.tsextensions/diffs/src/viewer-client.tsextensions/mxc/src/mxc-backend.tsextensions/team-reports/src/http.tsextensions/crabbox/src/crabbox-worker-provision-commands.tsextensions/comfy/openclaw.plugin.jsonextensions/deepgram/audio-flux.tsextensions/migrate-claude/source.tsextensions/searxng/src/searxng-client.tsextensions/file-transfer/src/workspace-bridge.tsextensions/diagnostics-otel/src/service-metrics.tsextensions/team-reports/src/render/people.tsextensions/file-transfer/src/shared/node-invoke-policy.tsextensions/migrate-hermes/config-providers.tsextensions/teams-meetings/src/transports/teams-meetings-status-prejoin-source.tsextensions/parallel/src/parallel-mcp-search.runtime.tsextensions/agentsapi/agentsapi-transcript.tsextensions/memory-lancedb/memory-policy.tsextensions/azure-speech/speech-provider.tsextensions/elevenlabs/realtime-transcription-provider-factory.tsextensions/parallel/src/parallel-search-normalize.tsextensions/mxc/src/fs-bridge.tsextensions/onnx/src/worker-client.tsextensions/acpx/src/codex-trust-config.tsextensions/mxc/src/sandbox-policy-loader.tsextensions/crabbox/doctor-contract-api.tsextensions/diagnostics-otel/src/service-attributes.tsextensions/file-transfer/src/node-host/file-fetch.tsextensions/memory-lancedb/doctor-contract-api.tsextensions/file-transfer/src/node-host/dir-fetch.tsextensions/lobster/src/lobster-runner.tsextensions/admin-http-rpc/src/handler.tsextensions/talk-voice/index.tsextensions/crabbox/src/crabbox-sandbox-backend.tsextensions/onepassword/src/op-client.tsextensions/memory-lancedb/lancedb-store.tsextensions/canvas/src/cli.tsextensions/diagnostics-otel/src/service-logs.tsextensions/diffs/src/http.tsextensions/inworld/tts.tsextensions/acpx/src/pi-session-catalog-runtime.tsextensions/acpx/src/harness.tsextensions/logbook/index.tsextensions/onepassword/onepassword-secret-ref-resolver.jsextensions/acpx/register.runtime.tsextensions/migrate-hermes/source.tsextensions/team-reports/src/sources/discord/index.tsextensions/diagnostics-otel/src/service-recorders-harness.tsextensions/migrate-claude/memory.tsextensions/team-reports/src/render/report.tsextensions/file-transfer/src/tools/dir-fetch-tool.tsextensions/acpx/src/pi-session-catalog.tsextensions/crabbox/src/crabbox-worker-node-process.tsextensions/onnx/src/artifacts.tsextensions/diagnostics-otel/src/service-content-normalization.tsextensions/llm-task/src/llm-task-tool.tsextensions/memory-lancedb/memory-cli.tsextensions/cua-computer/src/driver-artifact-verification.tsextensions/team-reports/src/config.tsextensions/acpx/doctor-contract-api.tsextensions/cua-computer/src/browser-actions.tsextensions/diagnostics-otel/src/service-genai-attributes.tsextensions/cua-computer/src/recording-actions.tsextensions/diagnostics-otel/src/service-exporter.tsextensions/acpx/openclaw.plugin.jsonextensions/diffs/openclaw.plugin.jsonextensions/team-reports/src/sources/github/client.tsextensions/logbook/src/store.tsextensions/crabbox/src/crabbox-worker-desktop-setup.tsextensions/acpx/src/config.tsextensions/onnx/scripts/export-gliclass-instruct.pyextensions/cua-computer/src/execution-resources.tsextensions/file-transfer/src/node-host/workspace-memory.tsextensions/fish-audio-speech/tts.tsextensions/inworld/speech-provider.tsextensions/canvas/scripts/bundle-a2ui.mjsextensions/memory-lancedb/config.tsextensions/imap/src/sender-gate.tsextensions/agentsapi/agentsapi-harness.tsextensions/azure-speech/tts.tsextensions/migrate-hermes/apply.tsextensions/crabbox/src/crabbox-tool.tsextensions/file-transfer/src/node-host/file-create.tsextensions/code-mode-quickjs/src/executor.tsextensions/migrate-hermes/plan.tsextensions/duckduckgo/src/ddg-client.tsextensions/onepassword/src/secret-ref-cli.tsextensions/acpx/src/runtime-generations.tsextensions/diagnostics-otel/src/service-exporter-health.tsextensions/logbook/src/prompts.tsextensions/agentsapi/agentsapi-files.tsextensions/session-share/src/node-commands.tsextensions/parallel/src/parallel-web-search-provider.runtime.tsextensions/document-extract/document-extractor.runtime.tsextensions/memory-lancedb/openclaw.plugin.jsonFixes and measured scope
Final production diff before the mechanical assertion ratchet update: 661 lines added, 1,236 removed, 575 net removed across 103 production files in 29 touched plugins. Tests/support add 76 net lines; IMAP documentation adds 3 lines. The threshold was not reached after the complete source pass; the file-by-file READ log above records why remaining provider-specific, authentication, lifecycle, storage, migration and presentation code was retained.
The cleanup also fixes IMAP invalid-password classification and OC Path ordinal/positional Markdown writes. Both regressions failed on Testbox before the repairs, then passed afterward. OC Path now uses the existing read resolver and maintains source positions across rendering/insertion for subsequent writes. This adds no persisted AST fields or schema.