Repository navigation
refactor(plugins): remove unused web runtime facades - #135274
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed September 1, 2026, 10:52 AM ET / 14:52 UTC. ClawSweeper reviewWhat this changesThe PR removes unused private web-channel runtime facades while preserving the package-root monitoring export and its lazy plugin runtime loading. Merge readinessKeep open. The focused cleanup preserves the only core consumer’s lazy monitoring path, retains its runtime-boundary tests, and current main still contains the removed private wrappers; the maintainer label also prevents automatic cleanup closure. Priority: P3 Review scores
Verification
How this fits togetherThe package-root library exposes selected OpenClaw capabilities to embedding applications. Its web-channel monitor call lazily resolves the activated channel plugin’s runtime API and starts the channel monitor. flowchart LR
A[Embedding application] --> B[Package-root library]
B --> C[Lazy web-channel bridge]
C --> D[Activated plugin runtime]
D --> E[WhatsApp channel monitor]
Before merge
Agent review detailsSecurityNone. PR surfaceSource -175, Tests -26, Other 0. Total -201 across 3 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Land the deletion once the exact-head required checks complete, keeping the package-root monitor bridge as the sole core-facing web-channel runtime path. Do we have a high-confidence way to reproduce the issue? Not applicable: this is a behavior-neutral cleanup rather than a bug report; source tracing identifies the retained monitor path and targeted coverage for it. Is this the best way to solve the issue? Yes: removing uncalled private forwarding wrappers while preserving the one library monitor boundary is the narrowest maintainable solution. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against b754503dacc7. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Maintainer review is complete for The original/candidate eight-case characterization, full 30-check configured gate, ordinary full build and three actual built-package synthetic scenarios are complete, along with the precommit and separate exact-head Codex P0 reviews described in the PR body. Native The completed ClawSweeper review has no actionable findings. Its remaining maintainer-review step is satisfied by this source and evidence review. The native captured-main comparison preserves all 28 selected source contexts. The shrink-only assertion-baseline change must retain every unrelated main row. Proof limits remain unchanged: synthetic built output is not clean-install or authenticated live-channel proof; no independent remote installed-file inventory was captured; the earlier fixture/coordinator and reviewer-observer limitations remain documented in the body. Normal merge admission and actual-parent tree/cleanup verification are still required. |
|
Merged via squash.
|
What Problem This Solves
The private web-channel runtime facade still carried unused light-runtime, login, inbox, and media wrappers even though the package-root library only needs its monitor entry point. Those unused entry points duplicated loading paths and kept tests and assertion-baseline entries alive without production callers.
Why This Change Was Made
Remove those unused private facade exports and keep
monitorWebChannelon its existing runtime boundary. The plugin discriminator still requires both light and heavy runtime artifacts; lazy asynchronous failure, method receiver and argument forwarding, native loading, and module-cache invalidation keep their existing owners.Production changes are 175 lines removed with no replacement production lines. Tests decrease by 26 lines; the assertion baseline updates the remaining cast count from three to one. No public SDK, configuration, schema, protocol, dependency, or authorization contract changes.
User Impact
No intentional user-visible behavior change. The package-root monitor export remains available; operators do not need to change their configuration.
Evidence
00a356e8801d5cc8987d150faa107e8053447b7deach completed two Codex passes with no actionable P0 findings. These are scoped P0 reviews, not all-priority certification. The exact-head review's single live observer raced removal of an ephemeral workspace, so effective reviewer-engine flags were not attested by that observation.