Skip to content

refactor(plugins): deslop non-channel tools and packages - #166333

Merged
steipete merged 3 commits into
mainfrom
deslop/l407-err-comments-ext-tools-20261005
Oct 7, 2026
Merged

steipete merged 3 commits into
mainfrom
deslop/l407-err-comments-ext-tools-20261005

Conversation

@steipete

@steipete steipete commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

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

  • Use the browser owners' normalized probe and configuration results and flatten form-field normalization.
  • Remove OC Path's duplicate AST projection and offset wrapper, and share JSONC/JSONL result projection while retaining their distinct null behavior.
  • Call the shared carrier HTTP owner directly from Plivo instead of forwarding through a private request adapter. Tests now observe the guarded HTTP boundary, including repeated-hangup 404 handling.
  • Remove redundant normalization, unused private parameters, and forwarding layers in provider, memory, policy, and QA flows.
  • Delete narrating comments and JSDoc across non-channel plugins and packages while retaining ownership, lifecycle, ordering, cleanup, platform, dependency, and security explanations.

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:

  • Both import-cycle checks: zero cycles; clean-main Madge comparison also zero.
  • Changed-file checks: core production types, all 27 core test-type shards, extension production/test types, formatting, lint, ratchets, boundary guards, and all three unused-export scans passed. An orderly Mac restart interrupted the first command; its completed checks were retained and the remaining native check plan resumed against identical source bytes.
  • Focused tests through 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.
  • Independent review completed with no accepted/actionable findings. The final state-directory restoration also passed review.

Changed-test cost: Plivo retains its 8 existing cases. The recorded pnpm test extensions/voice-call/src/providers/plivo.test.ts --maxWorkers=1 run 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 merge 63fff5ab24540781c477db878d06c19f6866e277, combining that head with main 15bdb49009fc111049ed8ea38a49367c92bf5bd4.

All 346 check runs were enumerated with the paginated commit API: 209 successful, 85 skipped, one neutral, five failed, and 46 cancelled historical Auto response metadata 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:

Failed job Observed failure Independent completed reproduction
checks-ui-e2e (5/9) Three chat-pull-requests.e2e.test.ts cases at lines 228/397: PR chips and desktop/mobile Publish rows measure 12px, exceeding the existing 8px bound. Current unrelated PR run, same three failures; also completed main run.
checks-node-changed-19 node-worker-launch-wire.e2e.test.ts: gateway-push workspace dispatch fails at line 184 with the worker update-required error. Same launch case and rejection.
checks-node-changed-18 native-worker-slot.e2e.test.ts: the one-slot native A/delete/B case receives the worker update-required error. Same native-slot case and rejection.
checks-node-changed-20 Both lifecycle-wire cases (revocation fencing and local control) and the same-version upgrade-wire recovery case fail at initial dispatch with the worker update-required error. Same lifecycle cases; same lifecycle and upgrade cases.
openclaw/ci-gate Aggregate failure from checks-ui-e2e and checks-node-core-test-nondist-shard. Gate log names only the groups containing the four independently attributed jobs above. Other selected groups succeeded.

The independent runs belong to PR #164265, current head 0a62246409c436fe64582a63eff0201e4503e88a, and PR #166108, current head d0a218e7d7ec42349aa4e96ff06d7dd5608c791a. The latter tested merge 44b7fa07fe9daaa5b83c7a684273a0deac57c5f4 against main 45b18e215b548d55624905cbc7febbec479f9d19. These are actual completed failing tests, not cancelled or zero-step jobs.

Attribution: main commit 9a558f07d18152b372b11d7c143792a52abd0adc added required worker promptContext negotiation, 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 main 0288eb1f3692a1d56f8c50f6bd3a33c44f02dc94 preserves 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.

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.
@clawsweeper

clawsweeper Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review blocked

Automated 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.

View the workflow run.

@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

⚠️ Security sensitive changes

This maintainer PR changes sensitive security components.

No secops approval is required. This comment is informational because the PR author has Maintain or Admin access.

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

These security sensitive changes were made:

  • packages/gateway-protocol/src/schema/secrets.ts: Controls credential persistence, secret resolution, or redaction. Check storage permissions, credential scope, and exposure in logs or responses.

Carefully review these changes before merging.

@steipete

steipete commented Oct 6, 2026

Copy link
Copy Markdown
Contributor Author

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 extensions/elevenlabs/shared.ts, explaining why credential-bearing URLs must not be interpolated into errors. The example uses placeholder components; it is not a credential introduced by this PR.

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.

@steipete

steipete commented Oct 7, 2026

Copy link
Copy Markdown
Contributor Author

Evidence — completed hosted CI and inherited failures

Exact PR head: b3ab0c0fea4511722be2503057558eaf1d22d9cc. CI run 37544137606 tested merge 63fff5ab24540781c477db878d06c19f6866e277, combining that head with main 15bdb49009fc111049ed8ea38a49367c92bf5bd4.

All 346 check runs were enumerated with the paginated commit API: 209 successful, 85 skipped, one neutral, five failed, and 46 cancelled historical Auto response metadata 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:

Failed job Observed failure Independent completed reproduction
checks-ui-e2e (5/9) Three chat-pull-requests.e2e.test.ts cases at lines 228/397: PR chips and desktop/mobile Publish rows measure 12px, exceeding the existing 8px bound. Current unrelated PR run, same three failures; also completed main run.
checks-node-changed-19 node-worker-launch-wire.e2e.test.ts: gateway-push workspace dispatch fails at line 184 with the worker update-required error. Same launch case and rejection.
checks-node-changed-18 native-worker-slot.e2e.test.ts: the one-slot native A/delete/B case receives the worker update-required error. Same native-slot case and rejection.
checks-node-changed-20 Both lifecycle-wire cases (revocation fencing and local control) and the same-version upgrade-wire recovery case fail at initial dispatch with the worker update-required error. Same lifecycle cases; same lifecycle and upgrade cases.
openclaw/ci-gate Aggregate failure from checks-ui-e2e and checks-node-core-test-nondist-shard. Gate log names only the groups containing the four independently attributed jobs above. Other selected groups succeeded.

The independent runs belong to PR #164265, current head 0a62246409c436fe64582a63eff0201e4503e88a, and PR #166108, current head d0a218e7d7ec42349aa4e96ff06d7dd5608c791a. The latter tested merge 44b7fa07fe9daaa5b83c7a684273a0deac57c5f4 against main 45b18e215b548d55624905cbc7febbec479f9d19. These are actual completed failing tests, not cancelled or zero-step jobs.

Attribution: main commit 9a558f07d18152b372b11d7c143792a52abd0adc added required worker promptContext negotiation, 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 main 0288eb1f3692a1d56f8c50f6bd3a33c44f02dc94 preserves 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.

@steipete
steipete merged commit 424fb49 into main Oct 7, 2026
306 of 358 checks passed
@steipete
steipete deleted the deslop/l407-err-comments-ext-tools-20261005 branch October 7, 2026 00:37
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 7, 2026
…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.
ChazGo pushed a commit to ChazGo/openclaw that referenced this pull request Oct 8, 2026
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant