Skip to content

refactor(extensions): deslop non-channel tool extensions - #164582

Merged
steipete merged 2 commits into
mainfrom
deslop/l356-big-tool-extensions-20261003
Oct 3, 2026
Merged

steipete merged 2 commits into
mainfrom
deslop/l356-big-tool-extensions-20261003

Conversation

@steipete

@steipete steipete commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

What Problem This Solves

Large non-channel tool extensions carry private factories, forwarding modules, duplicate projections, and configuration branches that their actual callers do not need.

User Impact

No user-visible change. Configuration keys, persisted data, protocol shapes, CLI output, model-facing descriptions, and UI behavior remain the same. No public SDK changes or migrations.

Why This Change Was Made

This batch removes 1,026 net production TypeScript lines, excluding tests and test support, while keeping each responsibility with its existing owner.

  • Browser: remove unused CDP session arguments; simplify iframe line expansion and action dispatch; inline one-use Chrome diagnostics, MCP predicates, target mapping, snapshot-delta factories, enumeration projections, and CLI/route forwarding. Cancellation, frame identity, reconnect classification, and error text stay with their current owners.
  • Codex: remove unused clock injection and notification forwarding, Computer Use helper chains, repeated diagnostic target resolution, catalog adapters, and redundant media bookkeeping. Reuse the existing approval-policy parser and simplify private cache/configuration projections without changing authority or lifecycle fences.
  • Memory: remove redundant whole-state decoding shells while retaining persisted-row validation; consolidate hybrid candidate construction; inline one-use embedding, CLI, backfill, and wiki mutation adapters; rely on the existing transactional SQL selection for standing-intent eligibility; remove a dead wiki write normalizer and LanceDB error-formatting wrappers.
  • Diagnostics: share ordinary/security log construction and transport emission, preserving trust checks, redaction, trace flags, failure reporting, and stdout delivery after OTLP failure.
  • Policy: replace an injected Doctor check factory with direct registration; share evaluation setup; carry resolved ingress values and their provenance once; remove intermediate approval-entry projections and redundant secret-input checks.
  • Voice: remove tunnel and response-body forwarding layers, duplicate status DTOs, and unreachable admitted-config branches; share credential errors and CLI call actions; reuse prepared Twilio URLs and one sorted latency sample.
  • Workboard: remove unused subscription-update options, private CLI/slash adapters, and the one-use workspace-check mode; keep canonical label and record normalization at their existing owners.
  • OpenAI realtime: delete an unused audio callback/decoder from the delegation controller. Neither production constructor provides it; media workers and WebRTC continue to own audio.

Evidence

Remote Linux proof on the reviewed candidate used Node 24.21.0 and pnpm 12.5.1. The exact Git commit and changed-file hashes were verified before execution; lint repairs and the final scope withdrawal were tested separately.

  • Focused owner and sibling tests: 2,646 passed across 128 files (476 seconds).
  • Both import-cycle checks: 0 cycles. Line-cap ratchet: passed.
  • Plugin contracts: 1,131 passed; one inherited failure in extension-package-project-boundaries.test.ts reports packages/memory-host-sdk/src/host/config-utils.ts as an extra core bridge. Neither the package directory nor that test is changed here. The earlier .test-api dependency-scanner failure was resolved by rebasing onto the existing main fix in fix(ci): repair full release validation blockers #164483.
  • New Doctor check test: 2 cases, 56 ms test execution; pnpm test extensions/policy/src/doctor/checks.test.ts --maxWorkers=1 took 24 seconds including test-worker preparation. The CI file adds two cases and replaces the old factory suite.

check-changed passed both extension typechecks, all static ratchets, and all dead-export scans. Its lint findings were repaired and the affected extension lint and tests passed. No lint rules or tests were weakened. The generated assertion baseline shrinks only seven affected entries.

Independent autoreview completed. Its six concerns were rejected after inspecting the retained secret-key suffix predicates, inherited-setting selection, early media-ID registration, shared approval parser, canonical label normalizer, and final app-ID sort. None of those findings is actionable against the owning code. A fresh review of the lint follow-up reported no P0–P2 findings.

The current open-deslop census has no overlapping production files. The shared assertion baseline is regenerated only for seven entries owned by this batch; the other open lanes modify different entries. Codex protocol and dependency contracts were inspected directly in the sibling source checkout before edits.

Remove private forwarding layers, duplicate projections, unused options, and repeated normalization while preserving existing lifecycle, authority, and data owners. User-facing configuration, protocol shapes, model instructions, and CLI output stay unchanged.
Retain existing projection and startup-error construction, build optional Doctor repairs directly, and document the moved protocol assertions. Regenerate only the affected assertion debt entries and exclude the runtime file owned by the cache lane.
@clawsweeper

clawsweeper Bot commented Oct 3, 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.

@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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 3, 2026
@clawsweeper

clawsweeper Bot commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed October 3, 2026, 6:23 PM ET / 22:23 UTC.

ClawSweeper review

What this changes

This PR simplifies private browser, Codex, memory, diagnostics, policy, voice-call, and Workboard helpers while preserving their existing user-facing contracts.

Merge readiness

⛔ Blocked before merge - 3 items remain

The refactor remains useful and is member-authored. No concrete blocking regression was found in the introduced changes; available validation supports normal PR review.

Priority: P3
Reviewed head: d24fb31a0499726c176f73370ba7b70c3d712ff4

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A useful, net-negative refactor with reported broad validation and no concrete blocking finding from this static review.
Proof confidence 🌊 off-meta tidepool Not applicable: The member-authored cleanup is exempt from external-contributor runtime proof. Reported focused tests are supplemental; inspection found no material authority transfer or stored-data contract change requiring a separate proof gate.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The member-authored cleanup is exempt from external-contributor runtime proof. Reported focused tests are supplemental; inspection found no material authority transfer or stored-data contract change requiring a separate proof gate.
Evidence reviewed 9 items Pinned introduction and clean checkout: The complete local file list and introduced hunks were inspected from the pinned merge base to the original PR head, including Workboard paths omitted from the prompt's bounded list. Repository ownership was verified from origin; final git status remained clean.
Current-main necessity: Current main still contains the redundant approval-alias branch removed by this PR. The related merged CI repair addresses test-support classification and database cleanup, rather than superseding this refactor. No verified merged replacement establishes an implemented-on-main close.
Approval compatibility and dependency signal: The changed requirements parser consumes Codex-managed approval policy and delegates alias normalization to the existing resolveApprovalPolicy owner, which still maps on-failure to on-request. Existing requirements tests cover that alias. This establishes the affirmative Codex dependency signal.
Findings None None.
Security None None.

How this fits together

These bundled plugins receive agent requests, CLI commands, provider events, and stored state. Their existing owners perform browser actions, manage sessions and memory, export diagnostics, enforce policy, and handle calls or work items.

flowchart TD
  A[Agent requests and CLI commands] --> C[Bundled plugin owners]
  B[Provider events and stored state] --> C
  C --> D[Existing validation and authority checks]
  D --> E[Browser and provider operations]
  D --> F[Memory and work item updates]
  D --> G[Diagnostics and command results]
Loading

Before merge

  • Resolve review confidence - ClawSweeper must reach high confidence before merge readiness is known.
  • 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
Production versus test footprint production -1,026 lines; tests -54 lines The measured TypeScript reduction matches the stated private-helper cleanup and does not add production surface to support tests.

Stored data model

Persistent data-model change detected: migration/backfill/repair: extensions/memory-lancedb/lancedb-runtime.ts, migration/backfill/repair: extensions/policy/src/doctor/check-factory.ts, migration/backfill/repair: extensions/policy/src/doctor/checks.ts, migration/backfill/repair: extensions/policy/src/doctor/evaluation.ts, serialized state: extensions/memory-wiki/src/chatgpt-import.ts, serialized state: extensions/memory-wiki/src/ingest.ts, and 22 more. Confirm migration or upgrade compatibility proof before merge.

Technical review

Best possible solution:

Keep the existing plugin owners and simplify their private adapters while preserving current validation, lifecycle, and stored-state contracts.

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

Not applicable: this PR proposes behavior-preserving cleanup rather than a reported bug, and no failing runtime scenario was established.

Is this the best way to solve the issue?

Yes: consolidating private forwarding and normalization into existing owners is a maintainable approach; inspection found no concrete introduced defect.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P3: This is internal cleanup with no identified user-facing defect or new capability.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The member-authored cleanup is exempt from external-contributor runtime proof. Reported focused tests are supplemental; inspection found no material authority transfer or stored-data contract change requiring a separate proof gate.

Label justifications:

  • P3: This is internal cleanup with no identified user-facing defect or new capability.
  • 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 member-authored cleanup is exempt from external-contributor runtime proof. Reported focused tests are supplemental; inspection found no material authority transfer or stored-data contract change requiring a separate proof gate.

Evidence

What I checked:

  • Pinned introduction and clean checkout: The complete local file list and introduced hunks were inspected from the pinned merge base to the original PR head, including Workboard paths omitted from the prompt's bounded list. Repository ownership was verified from origin; final git status remained clean. (d24fb31a0499)
  • Current-main necessity: Current main still contains the redundant approval-alias branch removed by this PR. The related merged CI repair addresses test-support classification and database cleanup, rather than superseding this refactor. No verified merged replacement establishes an implemented-on-main close. (extensions/codex/src/app-server/config-requirements.ts:149, 695fdbfc5e9c)
  • Approval compatibility and dependency signal: The changed requirements parser consumes Codex-managed approval policy and delegates alias normalization to the existing resolveApprovalPolicy owner, which still maps on-failure to on-request. Existing requirements tests cover that alias. This establishes the affirmative Codex dependency signal. (extensions/codex/src/app-server/config-exec-policy.ts:55, d24fb31a0499)
  • Direct Codex contract inspection: The sibling checkout at a956835d020762cb2b570053af06f643a11c0ecc was inspected directly: AskForApproval retains the on-failure serde alias for OnRequest, and its legacy-deserialization test asserts that mapping. The checkout's origin is a local cache, so repository ownership is left unknown rather than inferred from its directory or README links. (codex-rs/protocol/src/protocol.rs:994, a956835d020762cb2b570053af06f643a11c0ecc)
  • Standing-intent transaction boundary: Removed duplicate eligibility predicates remain enforced by the candidate SQL query. Production matching still runs inside the existing immediate transaction with admission checks at transaction and commit; cooldown and creator validation remain before firing. (extensions/memory-core/src/standing-intents.worker.ts:21, d24fb31a0499)
  • Stored-state compatibility: Memory ingestion and phase-signal readers retain per-row normalization. Wiki source-sync reads retain persisted-row validation, while its removed whole-state write normalizer was redundant for the typed producer path. No schema, namespace, serialized field, or migration contract changes were identified. (extensions/memory-wiki/src/source-sync-state.ts:80, d24fb31a0499)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Vincent Koc: 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.

@steipete
steipete enabled auto-merge (squash) October 3, 2026 22:25
@steipete
steipete merged commit ec43e91 into main Oct 3, 2026
159 of 168 checks passed
@steipete
steipete deleted the deslop/l356-big-tool-extensions-20261003 branch October 3, 2026 22:33
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 4, 2026
…4582)

## What Problem This Solves

Large non-channel tool extensions carry private factories, forwarding modules, duplicate projections, and configuration branches that their actual callers do not need.

## User Impact

No user-visible change. Configuration keys, persisted data, protocol shapes, CLI output, model-facing descriptions, and UI behavior remain the same. No public SDK changes or migrations.

## Why This Change Was Made

This batch removes 1,026 net production TypeScript lines, excluding tests and test support, while keeping each responsibility with its existing owner.

- Browser: remove unused CDP session arguments; simplify iframe line expansion and action dispatch; inline one-use Chrome diagnostics, MCP predicates, target mapping, snapshot-delta factories, enumeration projections, and CLI/route forwarding. Cancellation, frame identity, reconnect classification, and error text stay with their current owners.
- Codex: remove unused clock injection and notification forwarding, Computer Use helper chains, repeated diagnostic target resolution, catalog adapters, and redundant media bookkeeping. Reuse the existing approval-policy parser and simplify private cache/configuration projections without changing authority or lifecycle fences.
- Memory: remove redundant whole-state decoding shells while retaining persisted-row validation; consolidate hybrid candidate construction; inline one-use embedding, CLI, backfill, and wiki mutation adapters; rely on the existing transactional SQL selection for standing-intent eligibility; remove a dead wiki write normalizer and LanceDB error-formatting wrappers.
- Diagnostics: share ordinary/security log construction and transport emission, preserving trust checks, redaction, trace flags, failure reporting, and stdout delivery after OTLP failure.
- Policy: replace an injected Doctor check factory with direct registration; share evaluation setup; carry resolved ingress values and their provenance once; remove intermediate approval-entry projections and redundant secret-input checks.
- Voice: remove tunnel and response-body forwarding layers, duplicate status DTOs, and unreachable admitted-config branches; share credential errors and CLI call actions; reuse prepared Twilio URLs and one sorted latency sample.
- Workboard: remove unused subscription-update options, private CLI/slash adapters, and the one-use workspace-check mode; keep canonical label and record normalization at their existing owners.
- OpenAI realtime: delete an unused audio callback/decoder from the delegation controller. Neither production constructor provides it; media workers and WebRTC continue to own audio.

## Evidence

Remote Linux proof on the reviewed candidate used Node 24.21.0 and pnpm 12.5.1. The exact Git commit and changed-file hashes were verified before execution; lint repairs and the final scope withdrawal were tested separately.

- Focused owner and sibling tests: 2,646 passed across 128 files (476 seconds).
- Both import-cycle checks: 0 cycles. Line-cap ratchet: passed.
- Plugin contracts: 1,131 passed; one inherited failure in `extension-package-project-boundaries.test.ts` reports `packages/memory-host-sdk/src/host/config-utils.ts` as an extra core bridge. Neither the package directory nor that test is changed here. The earlier `.test-api` dependency-scanner failure was resolved by rebasing onto the existing main fix in openclaw#164483.
- New Doctor check test: 2 cases, 56 ms test execution; `pnpm test extensions/policy/src/doctor/checks.test.ts --maxWorkers=1` took 24 seconds including test-worker preparation. The CI file adds two cases and replaces the old factory suite.

`check-changed` passed both extension typechecks, all static ratchets, and all dead-export scans. Its lint findings were repaired and the affected extension lint and tests passed. No lint rules or tests were weakened. The generated assertion baseline shrinks only seven affected entries.

Independent autoreview completed. Its six concerns were rejected after inspecting the retained secret-key suffix predicates, inherited-setting selection, early media-ID registration, shared approval parser, canonical label normalizer, and final app-ID sort. None of those findings is actionable against the owning code. A fresh review of the lint follow-up reported no P0–P2 findings.

The current open-deslop census has no overlapping production files. The shared assertion baseline is regenerated only for seven entries owned by this batch; the other open lanes modify different entries. Codex protocol and dependency contracts were inspected directly in the sibling source checkout before edits.
mnowrot added a commit to mnowrot/openclaw that referenced this pull request Oct 4, 2026
Resolve the command-service.ts conflict with openclaw#164582: keep the registration-authority fencing and runtime selectors, adopt main's removal of the VoiceCallStatus alias and its inferred toVoiceCallStatus return type.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: voice-call Channel integration: voice-call extensions: browser extensions: codex extensions: diagnostics-otel Extension: diagnostics-otel extensions: memory-core Extension: memory-core extensions: memory-lancedb Extension: memory-lancedb extensions: memory-wiki extensions: openai extensions: policy P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. plugin: workboard rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. 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