Repository navigation
refactor(plugins): deslop feature plugins third pass - #160362
Conversation
|
🦞👀 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. |
|
Codex review: needs maintainer review before merge. Reviewed September 28, 2026, 10:52 AM ET / 14:52 UTC (Revision 6). ClawSweeper reviewWhat this changesThe branch consolidates parsing, state projections, and mutation helpers across bundled plugins, removes private forwarding code, and refreshes Workboard’s generated browser asset references. Merge readiness✅ Ready for maintainer review The cleanup is distinct from the earlier merged passes and is still absent from main. The prior Workboard asset-path finding is fixed, and the published-updater evidence addresses the earlier compatibility concern. I found no remaining actionable defect. Priority: P3 Review scores
Verification
How this fits togetherBundled plugins receive Gateway and agent requests alongside saved configuration and state. They produce tool results, policy diagnostics, Workboard updates, browser views, and voice or meeting actions. flowchart LR
A[Saved settings and state] --> C[Bundled plugin handlers]
B[Gateway and agent requests] --> C
C --> D[Shared SDK helpers]
D --> E[Policy and claim decisions]
D --> F[Cards, calls, and meetings]
E --> G[Diagnostics and tool results]
F --> G
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource -803, Tests -74, Other -4. Total -881 across 77 files. View PR surface stats
Review metricsNone. Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Maintain one owner for each plugin’s normalization and mutation behavior while preserving existing public, saved-state, and transport contracts. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR reports no existing-behavior defect to reproduce. Its relevant checks are unchanged plugin behavior and the published-update rehearsal. Is this the best way to solve the issue? Yes. The branch uses existing SDK helpers and real Workboard dispatch while retaining the inspected defaults, claim check, and saved-state shapes. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against ec4e102c8720. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (5 earlier review cycles)
|
Keep the event bridge projection interface independent of the journal implementation to avoid a type import cycle through attempt parameters. The restored structural contract preserves the same five operations.
Regenerate the content-hashed entry and styles paths through the bundled plugin asset builder after the browser cleanup. Preserve every other manifest field, including plugin identity and configuration schema.
|
@clawsweeper re-review Updated head: d33dcb9. The Workboard asset owner regenerated the two content-hash paths, the freshness check passes, and independent assertions confirm every other manifest field is unchanged. The PR body now includes the published 2026.9.6 updater, preserved Voice Call logs and Google Meet settings, installed CLI consumer checks, and repeat-Doctor idempotence evidence. The Copilot type cycle is also fixed and the full architecture check passes. |
|
🦞👀 Re-review progress:
|
|
@steipete post-merge CI follow-up: this change removes PR120232's Node shard2 failed at Checked current main Concurrent canonical candidate 160526 is now open. Its one-file diff removes only the retired Voice Call guard entry and preserves the strict inventory assertion. Its existing writer owns proof and landing; the routing PR will consume the canonical correction after it lands. |
* refactor(plugins): deslop feature plugins third pass * fix(copilot): preserve acyclic transcript projection types Keep the event bridge projection interface independent of the journal implementation to avoid a type import cycle through attempt parameters. The restored structural contract preserves the same five operations. * build(workboard): refresh generated control UI asset paths Regenerate the content-hashed entry and styles paths through the bundled plugin asset builder after the browser cleanup. Preserve every other manifest field, including plugin identity and configuration schema.
* 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
* 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
What Problem This Solves
Feature plugins still carry duplicate coercion, result projection, and forwarding code after the earlier cleanup passes.
User Impact
No user-visible behavior change is intended. Policy decisions and finding order, Workboard persisted values and SQLite semantics, voice/meeting requests and audio pipelines, tool schemas/descriptions, and configuration keys and schemas are preserved.
Why This Change Was Made
The measured production reduction is below 1,000 lines after the complete third pass. The coverage log below records every allowed production file over 200 lines, sorted by its size at the fresh base, with an applied simplification or the retained contract. Earlier merged subtree work was reviewed first, including #158847, #159262 and #159364.
Evidence
Measured diff: 803 net production lines removed, plus 74 net test lines removed. Two existing Workboard cases moved intact into a focused sibling to satisfy the line-cap gate.
Current head:
d33dcb9723d287fe1d099d18613cd710bfdb41ba, verified source tree43bc5d53fc1c10e39244b794fcfce56fb857fcc6. Exact-head hosted CI passed (88 successful jobs, 23 intentionally skipped): run 36430001614, attempt 2. Attempt 1 never started a check: its Blacksmith preflight remained unassigned after the repository backend switched to GitHub-hosted runners. That obsolete queued attempt was cancelled, and attempt 2 started successfully onubuntu-24.04at the identical head.Runtime/refactor proof used head
76777bcb1bdd121c13de02f3051f7a096e82dafb, verified source tree1e0625da3067994d89de6f164ea4809846b1ca9e. The follow-up and published-updater proof used Blacksmith Testboxtbx_01m3ksawzb1qbwwydkaxwpmmz1(lease-host run); wrapper exit codes and pinned source receipts are the validation result, rather than the lease-host lifecycle conclusion.Linux proof uses the repository Crabbox wrapper with Blacksmith Testbox, Node 24.19.0 and pnpm 12.5.1. All test, typecheck, lint, and build workloads run remotely; local execution is limited to source/Git operations, formatting and isolated review orchestration.
pnpm test:extensions:batch workboard,policy,voice-call,memory-wiki,reef,google-meet,copilot,beam,github,visitor-access: passed, 4,179 passing test executions and 10 skipped, 336s.pnpm test:extensions:batch workboard: passed, 26 files / 431 tests, 57s.node scripts/run-vitest.mjs run --config test/vitest/vitest.ui.config.ts extensions/workboard/browser: passed, 22 files / 296 tests, 8s.pnpm build: passed on the corrected tree, 574s. SDK exports and surface checks passed;pnpm plugin-sdk:api:diff --base 348ffd502a3 --head HEADreports no Plugin SDK API changes.src/infra/fs-safe-import-boundary.test.ts,test/plugin-extension-import-boundary.test.ts,test/test-helper-extension-import-boundary.test.ts,test/control-ui-import-boundary.test.ts, andtest/extension-test-boundary.test.ts(5 files / 46 tests, 60s).node scripts/check-changed.mjs --base 348ffd502a3bd63c9f8f03e0dfd93d41bff5412a: passed on the committed source tree, 970s.pnpm test:extensions:batch policy,memory-wiki,reef,workboard: passed, 296s.pnpm check:architecturepassed (289s), including Madge zero cycles;pnpm test:extensions:batch copilotpassed (605 tests, 117s);node scripts/check-changed.mjs --base origin/deslop/l139-feature-plugins3passed (608s). Blacksmith Testboxtbx_01m3ksawzb1qbwwydkaxwpmmz1verified tree1e0625da3067994d89de6f164ea4809846b1ca9e.pnpm plugins:assets:buildpassed (1.5s);pnpm plugins:assets:checkpassed (1.0s), confirming generated output equals the candidate bytes. Independent assertions verified that onlycontrolUi.entryandcontrolUi.styleschanged and every other manifest field is identical.node scripts/check-changed.mjs --base origin/deslop/l139-feature-plugins3passed (632s), including extension/test types and lint of 10,523 extension files with zero warnings/errors. Blacksmith Testboxtbx_01m3m0jcswcyt8tzb8e6nfqyry(lease-host run) verified final source tree43bc5d53fc1c10e39244b794fcfce56fb857fcc6.The corrected tree was rebuilt and the canonical core tarball integrity check passed. SDK API and import-boundary proof is retained across the correction, which restores an existing local type interface without changing SDK imports or runtime code.
Published updater compatibility
The unmodified published
[email protected]updater ranopenclaw update --tag <candidate.tgz> --yes --no-restart --jsonin isolated synthetic state. Its result isstatus: ok; package install, candidate Doctor, config/plugin admission, staged Gateway startup, package swap and post-install Doctor checks all exited zero. Existing Voice Call v2 logs at a configured~/voice-survivor$&path were imported before any standalone candidate CLI, and the original archive bytes, call ordering, transcript and metadata were preserved. Saved Google Meet configuration and installedvoicecall status,voicecall latency, andgooglemeet setupresults passed independent assertions. A repeated candidate Doctor left the event/chunk rows, archive bytes and saved settings unchanged; the final idempotence assertion passed after normalizing SQLite row prototypes in the task-private fixture.The core and plugins still share version
2026.9.6, so the fixture first installed exact candidate plugin artifacts on the published host, proved the published core files remained unchanged, then seeded legacy state and invoked that original updater. Every installed Voice Call artifact file (29) and Google Meet artifact file (23) matched the candidate tarball before and after the update. Core and plugin transport commits were verified to share source tree1e0625da3067994d89de6f164ea4809846b1ca9e; the installed core payload also matched its exact tarball. This is Linux package/state proof with synthetic data; it makes no live audio or provider-call claim. Doctor's only advisories concerned disabled device pairing, loopback-only exposure, and the synthetic fixture's plaintext gateway token.Fixes found along the way
Hosted CI run
36407585814caught a type-only Copilot dependency cycle missed by the narrower changed-file gate. Restoring the independent projection interface removes the back-edge; the full architecture check and Copilot rerun above passed.The first Workboard batch caught an omitted-params regression in the cleanup; SDK record normalization restored that existing boundary and the full rerun passed. The test-file line-cap failure was resolved by moving the same two cases, preserving both fixture backends and assertions. Google Meet's existing full environment names remain literal for static discovery; the existing assertion ratchet is tightened to match removed casts, with no budget increase or new suppression.
Changed-test wall costs, each measured with
pnpm test <file> --maxWorkers=1on Testbox (whole seconds, including command startup and transform work):extensions/reef/src/flow.test.tsextensions/reef/src/state.test.tsextensions/reef/src/transport-capacity-recovery.test.tsextensions/voice-call/src/bounded-child-output.test.tsextensions/voice-call/src/runtime.test.tsextensions/voice-call/src/providers/twilio.test.tsextensions/voice-call/src/providers/twilio.media-stream.test.tsextensions/workboard/src/store.test.tsextensions/workboard/src/store.promotion.test.tsextensions/workboard/browser/lib/workboard/lifecycle.test.tsFinal committed source:
864d3cbb42afd328256844efe8f7969a8781e51d, verified tree9d0f17aa2a0fedb6c3ce1dec88d56f15fb1cd638. Provider: blacksmith-testbox. Successful proof leases:tbx_01m3k5fgwn5apphnaesp2edg9n,tbx_01m3kchxmayn5e1exc2jng7dbv, and finaltbx_01m3kmbrfqtgdba3cyfpmysr8f. Earlier source-snapshot attempts expired before execution; those were infrastructure failures and were not counted as passing proof.Hosted CI job wall times from attempt 2 include setup and sibling tests; these shared-job costs are not additive per-file timings. All four jobs passed.
extensions/reef/src/flow.test.ts,extensions/reef/src/transport-capacity-recovery.test.ts,extensions/reef/src/state.test.tsextensions/voice-call/src/providers/twilio.media-stream.test.ts,extensions/voice-call/src/providers/twilio.test.ts,extensions/voice-call/src/runtime.test.ts,extensions/voice-call/src/bounded-child-output.test.tsextensions/workboard/src/store.test.ts,extensions/workboard/src/store.promotion.test.tsextensions/workboard/browser/lib/workboard/lifecycle.test.tsComplete large-file coverage (180 entries)
Sizes are pinned to fresh lane base
348ffd502a3. Provider/auth portions excluded by lane ownership are marked explicitly. Reef audit decryption remains unchanged becauseconfig/knip.config.tsdeclares its shipped protocol barrel public. Visitor Access was read but remains unchanged.Exact-head ClawSweeper review is ready for maintainer review with no actionable findings. The PR remains open, with no auto-merge request or automation labels enabled.