Repository navigation
refactor(extensions): deslop mid-size plugins - #159364
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: blocked before merge. Reviewed September 27, 2026, 2:24 AM ET / 06:24 UTC (Revision 9). ClawSweeper reviewWhat this changesThe branch consolidates helpers and removes unused state across nine bundled plugins, updates focused tests, and shrinks the assertion allowance. Merge readiness⛔ Blocked before merge - 4 items remain Keep open. Current main still contains the code this PR consolidates, and I found no concrete patch defect. Repository policy still requires update and macOS platform proof for the touched paths. Priority: P3 Review scores
Verification
How this fits togetherBundled plugins receive OpenClaw configuration, agent requests, and channel events. They turn those inputs into provider calls, channel delivery, setup reports, and policy results. flowchart LR
A[Configuration and events] --> B[Bundled plugins]
B --> C[Plugin helpers]
C --> D{Requested capability}
D --> E[Provider or channel API]
D --> F[Setup and policy results]
Before merge
Agent review detailsSecurityNone. PR surfaceSource -1185, Tests +44, Other -2. Total -1143 across 72 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the plugin simplification once an installed-updater run with existing state and a real Mac setup and call trace confirm the operator outcomes. Do we have a high-confidence way to reproduce the issue? Not applicable: this cleanup PR claims no pre-existing defect to reproduce. Source comparison and the reported plugin tests address behavior preservation. Is this the best way to solve the issue? Yes, the branch generally consolidates behavior within existing plugin owners; the update and native-platform outcomes still need the required boundary proof. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 168ebc5b6708. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (8 earlier review cycles)
|
* refactor(extensions): deslop mid-size plugins * refactor(copilot): use the persisted user message type * chore: shrink assertion allowances after plugin cleanup * refactor(extensions): retain efficient metadata projections * refactor(zalouser): project allowlists into one owned config copy
What Problem This Solves
Mid-size bundled plugins still contained duplicate projections, forwarding layers, unused state, and implementation narration after the earlier deslop sweeps.
User Impact
No intended user-visible change. Provider wire formats and authentication flows, policy evaluation and attestation bytes, channel transport behavior, plugin manifests, and configuration keys stay unchanged.
Why This Change Was Made
This maintainer-requested sweep removes 1,185 net production lines across nine plugins (868 added / 2,053 removed; assertion baseline only shrinks); tests add 44 net lines. Recent deslop changes were inspected first, and the remaining production files were read in size order.
Google, Crabbox, Buzz, Team Reports, and File Transfer were reviewed and left unchanged. No bug or flake fix is claimed.
Evidence
node scripts/check-changed.mjs --base origin/mainpassed completely, including typechecks, all lint shards, dead exports, ratchets, and architecture guards.pnpm build,pnpm plugin-sdk:check-exports,pnpm plugin-sdk:surface:check, and four import-boundary shards passed remotely.undefinedreadonly flags and member order. No SDK/core/compiler input changed in this PR. This renderer issue is separate from the plugin cleanup and is not being hidden by a baseline or acknowledgement override.9447cc6685d6bdb29af523e13bb6113d4732e555, retaining main's new Tlon admission flow. Exact-head CI run 36297124861 passed at0a4b431017b0c5e2153d1e2d0e8dd4d4c0f47a8a, includingopenclaw/ci-gate; no failed or pending checks remain.tbx_01m3gjq4gmny4dsd0wn4z7xpnc(stopped after proof); earlier source-bound leases were stopped or confirmed completed after expiry. Source-capsule verification pinned the selected tree before commands.Changed-test cost
Measured on Linux Testbox with
pnpm test <file> --maxWorkers=1(wrapper wall / Vitest duration):extensions/tlon/src/urbit/story.test.tsextensions/tlon/src/settings.test.tsextensions/facetime/tests/call-lifecycle.test.tsextensions/google-meet/index.test.tsextensions/google-meet/src/request-timeouts.test.tsextensions/google-meet/src/response-body-boundary.test.tsThe Meet files change imports only; the existing index suite boots its shared meeting/runtime fixture and paid cold declaration/worker preparation in this measurement. No tests, sleeps, polling, retries, or fixtures were added there. The live test's import-only move retains its credential gate. New Tlon parser cases use pure conversion without timers. Hosted CI extension rows completed in 136 s (bundle 1, including FaceTime lifecycle), 178 s (config 2, including Meet timeout/body tests), and 307 s (bundle 3, including Tlon story/settings). These are grouped job wall times, not isolated file timings.
Gate corrections
The assertion ratchet first rejected two moved legacy casts; the matcher now uses the canonical persisted-user type without casts. Its allowance file then shrank by the measured removed assertions. Lint rejected extra allocation in projection maps and repeated Zalo accumulator copying; those projections retain their original direct assignments or use one owned config copy. No gate, assertion, timeout, or test coverage was weakened.
The plugin proof command was
pnpm test:extensions:batch policy,copilot,google-meet,tlon,zalouser,facetime,clickclack,xai,ollama. Boundary proof explicitly includedsrc/infra/fs-safe-import-boundary.test.ts,test/plugin-extension-import-boundary.test.ts,test/test-helper-extension-import-boundary.test.ts, andsrc/plugins/contracts/core-extension-facade-boundary.test.ts.The native TypeScript inference anomaly is a separate maintainer decision: this PR changes no compiler dependency and does not weaken readonly comparison or add compensating public return types. The remote compiler package was verified as
[email protected], gitHead5c2f7abf1733c9148100c5c6c7dd284745120d6b. Its missing-property symbol cache keys only by name while copying readonly flags and declaration identity from the first source symbol. That accounts for the observed mutability/order drift; the dependency-level repair requires separately approved scope. No compiler follow-up PR was opened.Remote lease closeout
Provider:
blacksmith-testbox.tbx_01m3g7e0rtz4cgawaara8kwpenexpired before proof;tbx_01m3gaqqp3tb5zrvn6f30aya5fpassed the first nine-plugin batch and was stopped before rebase proof;tbx_01m3gcavwvbwgp7hynendrhz0zran rebased plugin/build/SDK/API/boundary/cost checks and was confirmed completed after expiry;tbx_01m3gjq4gmny4dsd0wn4z7xpncpassed the final full plugin batch/build/boundaries plus final changed gate/Zalo correction and was explicitly stopped. No active lease remains. Previous-lane.localrecovery and protected staging directories were preserved.