Repository navigation
refactor(plugins): deslop non-channel tools and packages - #166333
Conversation
Reuse normalization and lifecycle owners, inline single-use forwarding and projection layers, and remove narrating comments. Keep protocol, tool, CLI and error output contracts intact. Retire the pre-July .clawdbot default-directory fallback in the 1Password resolver.
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review blockedAutomated review did not run, so no review verdict was produced. Reason: The input-safety check rejected material in this revision. No detected value, path, or scanner output is reproduced here. Automatic review is on hold, including after source changes. Request a fresh re-review after resolving the failure; maintainers can also release the hold through an intentional scanner-policy update. Next step: If this is a genuine credential, remove and rotate it. If it is an intentional test fixture, a maintainer must review and qualify it. |
|
|
Reviewed the ClawSweeper input-safety diagnostic for this head. Its first refusal is an unverified URI-detector match in the pre-existing security comment in The entire diff for that file removes only its narrating module header. The security comment and executable code are unchanged from the base. The comment is intentionally retained because it explains a redaction boundary. ClawSweeper did not produce a review verdict, and its input-safety policy/hold has not been changed. Independent autoreview and the recorded Testbox validation completed separately. Qualifying this documented example in ClawSweeper remains a scanner-owner follow-up, rather than a reason to weaken the source comment or scanner policy here. |
Evidence — completed hosted CI and inherited failuresExact PR head: All 346 check runs were enumerated with the paginated commit API: 209 successful, 85 skipped, one neutral, five failed, and 46 cancelled historical Every failed job is accounted for separately:
The independent runs belong to PR #164265, current head Attribution: main commit The UI spacing issue has since been fixed on main by The scoped Testbox proof recorded above passed. ClawSweeper's separate automatic review remains unavailable because of the documented pre-existing placeholder URI; its scanner policy and hold remain unchanged, and independent autoreview completed. This evidence qualifies the maintainer-authorized inherited-failure squash merge pinned to the exact head above; it does not describe hosted CI as green. |
…6333) Use the existing normalization, AST, and carrier HTTP owners directly across non-channel plugins. Remove duplicate projections, unused private parameters, forwarding layers, and comments that restate code across plugins and shared packages. Preserve configuration, stored data, protocol and tool shapes, error messages, cleanup, security checks, and legacy state-directory autodetection. Remove 1,113 net production lines; shrink the assertion baseline without adding suppressions. Validation: zero import cycles; production and test typechecks, changed-file lint and guards, unused-export scans, 2,595 focused tests, 1,140 plugin contract cases, and 3 suppression cases passed on Testbox. Existing platform skips remain unchanged.
Resolve extensions/mxc/src/mxc-backend-factory.ts: keep the roster-aware factory options and signature; accept the removal of the factory doc comment from openclaw#166333.
What Problem This Solves
Non-channel plugins and shared packages contain forwarding layers, repeated normalization, and comments that restate the code, making their actual contracts harder to follow.
User Impact
No user-visible behavior, configuration, persisted data, protocol, tool description, or UI changes. Existing failure messages, cleanup, security checks, and legacy state-directory autodetection remain intact.
Why This Change Was Made
The assertion-safety baseline only shrinks. There are no dependency changes or new lint suppressions.
Evidence
Net production reduction: 1,113 lines across 263 production files. Tests, the copy script, and the assertion baseline are excluded from that count.
Pre-push proof against the final source tree on Blacksmith Testbox:
node scripts/run-vitest.mjs: 2,595 passed, 61 existing skips, 122 passing files plus 2 skipped files; 252.80 seconds wall time.node scripts/run-vitest.mjs src/plugins/contracts test/scripts/lint-suppressions.test.ts: 1,140 contract cases and 3 suppression cases passed; 109.34 seconds wall time.Changed-test cost: Plivo retains its 8 existing cases. The recorded
pnpm test extensions/voice-call/src/providers/plivo.test.ts --maxWorkers=1run took 24.90 seconds wall time before the conflict-free rebase, with the same test body. The refreshed Testbox voice-call group ran 14 cases in 11.05 seconds. No new test cases, timers, retries, or skips were added.Testbox allocation runs: initial proof, completed recovery proof. Hosted PR CI is the final exact-head gate.
Inherited hosted CI failures
Exact PR head:
b3ab0c0fea4511722be2503057558eaf1d22d9cc. CI run 37544137606 tested merge63fff5ab24540781c477db878d06c19f6866e277, combining that head with main15bdb49009fc111049ed8ea38a49367c92bf5bd4.All 346 check runs were enumerated with the paginated commit API: 209 successful, 85 skipped, one neutral, five failed, and 46 cancelled historical
Auto responsemetadata runs. Those cancellations came from label-event concurrency; newer same-head auto-response runs succeeded. The workflow only posts metadata/comments. No validation job is pending or cancelled. The CI gate confirms all selected groups completed; unselected groups are explicitly skipped.Every failed job is accounted for separately:
chat-pull-requests.e2e.test.tscases at lines 228/397: PR chips and desktop/mobile Publish rows measure 12px, exceeding the existing 8px bound.node-worker-launch-wire.e2e.test.ts: gateway-push workspace dispatch fails at line 184 with the worker update-required error.native-worker-slot.e2e.test.ts: the one-slot native A/delete/B case receives the worker update-required error.checks-ui-e2eandchecks-node-core-test-nondist-shard.The independent runs belong to PR #164265, current head
0a62246409c436fe64582a63eff0201e4503e88a, and PR #166108, current headd0a218e7d7ec42349aa4e96ff06d7dd5608c791a. The latter tested merge44b7fa07fe9daaa5b83c7a684273a0deac57c5f4against main45b18e215b548d55624905cbc7febbec479f9d19. These are actual completed failing tests, not cancelled or zero-step jobs.Attribution: main commit
9a558f07d18152b372b11d7c143792a52abd0adcadded required workerpromptContextnegotiation, while the shared paired-node fixture does not advertise that field. The relevant inventory guard, wire fixtures, worker-admission schema, and Gateway client are byte-identical between this run's main parent and tested merge. This PR does not change their failure path; its QA provider/origin normalization does not construct node inventory. The UI templates, tests, and CSS are also outside this diff.The UI spacing issue has since been fixed on main by
7ac5dbaddcdd949c604ac0465120772c19abcf0f(PR #166347). A clean merge preview against current main0288eb1f3692a1d56f8c50f6bd3a33c44f02dc94preserves that UI fix and still removes 1,113 net production lines. The worker fixture repair remains a coordinator follow-up.The scoped Testbox proof recorded above passed. ClawSweeper's separate automatic review remains unavailable because of the documented pre-existing placeholder URI; its scanner policy and hold remain unchanged, and independent autoreview completed. This evidence qualifies the maintainer-authorized inherited-failure squash merge pinned to the exact head above; it does not describe hosted CI as green.