Skip to content

refactor(extensions): deslop mid-size plugins - #159364

Merged
steipete merged 5 commits into
mainfrom
deslop/l107-ext-mid
Sep 27, 2026
Merged

steipete merged 5 commits into
mainfrom
deslop/l107-ext-mid

Conversation

@steipete

@steipete steipete commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

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.

  • Copilot shares prepared-user identity matching, consumes the canonical sanitized image type, and removes redundant replay/auth/bootstrap narration and forwarding.
  • Policy reuses its canonical evidence types and hashing path, shares tool-metadata finding projection, and removes validation already guaranteed by preceding guards.
  • Google Meet shares attendance and document rendering, calls the existing probe-timeout owner, and removes API forwarding and unused participation methods.
  • Tlon shares inline Markdown rule advancement and firehose registration, reuses history projection, and removes unused settings bookkeeping. Tests cover nested formatting and observe settings through load/change delivery.
  • Zalo User shares allowlist projection and the canonical delivery-event type.
  • FaceTime derives setup actions from one catalog and removes unused call/response state and forwarding.
  • ClickClack shares setup-code normalization and consumes typed reply payloads directly.
  • xAI removes redundant result/config/model projections and forwarding; Ollama reuses cloud setup parameters and updates its owned model accumulator directly.

Google, Crabbox, Buzz, Team Reports, and File Transfer were reviewed and left unchanged. No bug or flake fix is claimed.

Evidence

  • Independent Codex autoreview passed through P2 for the complete sweep, the fresh-main rebase, and each correction. The one policy-default finding was rejected after verifying the unchanged enclosing guard in the complete source.
  • Linux Blacksmith Testbox ran the full batch for all nine touched plugins: 4,486 passing test cases across 300 file executions, plus the existing 10 skipped cases in two files. Copilot, FaceTime, and Zalo were rerun after their corrections; the final Zalo batch passed all 316 tests in 32 files.
  • node scripts/check-changed.mjs --base origin/main passed 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.
  • The SDK API comparison completed. Inspection of its JSON showed only native declaration-rendering drift in unchanged core inputs: synthesized optional undefined readonly 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.
  • Rebased onto 9447cc6685d6bdb29af523e13bb6113d4732e555, retaining main's new Tlon admission flow. Exact-head CI run 36297124861 passed at 0a4b431017b0c5e2153d1e2d0e8dd4d4c0f47a8a, including openclaw/ci-gate; no failed or pending checks remain.
  • All computation ran on Blacksmith Testbox. Final lease: 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.
  • No live provider credentials or macOS calling were exercised; this refactor uses the existing executable plugin boundaries.

Changed-test cost

Measured on Linux Testbox with pnpm test <file> --maxWorkers=1 (wrapper wall / Vitest duration):

File Tests Wall Vitest
extensions/tlon/src/urbit/story.test.ts 47 2 s 627 ms
extensions/tlon/src/settings.test.ts 2 1 s 611 ms
extensions/facetime/tests/call-lifecycle.test.ts 2 2 s 698 ms
extensions/google-meet/index.test.ts 160 42 s 40.51 s
extensions/google-meet/src/request-timeouts.test.ts 4 16 s 13.68 s
extensions/google-meet/src/response-body-boundary.test.ts 1 1 s 792 ms

The 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 included src/infra/fs-safe-import-boundary.test.ts, test/plugin-extension-import-boundary.test.ts, test/test-helper-extension-import-boundary.test.ts, and src/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], gitHead 5c2f7abf1733c9148100c5c6c7dd284745120d6b. 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_01m3g7e0rtz4cgawaara8kwpen expired before proof; tbx_01m3gaqqp3tb5zrvn6f30aya5f passed the first nine-plugin batch and was stopped before rebase proof; tbx_01m3gcavwvbwgp7hynendrhz0z ran rebased plugin/build/SDK/API/boundary/cost checks and was confirmed completed after expiry; tbx_01m3gjq4gmny4dsd0wn4z7xpnc passed the final full plugin batch/build/boundaries plus final changed gate/Zalo correction and was explicitly stopped. No active lease remains. Previous-lane .local recovery and protected staging directories were preserved.

@clawsweeper

clawsweeper Bot commented Sep 27, 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: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 27, 2026
@clawsweeper

clawsweeper Bot commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 27, 2026, 2:24 AM ET / 06:24 UTC (Revision 9).

ClawSweeper review

What this changes

The 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
Reviewed head: 0a4b431017b0c5e2153d1e2d0e8dd4d4c0f47a8a

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The cleanup is coherent and passes exact-head CI, with update and native-platform evidence still needed for merge.
Proof confidence 🌊 off-meta tidepool Not applicable: The maintainer-authored PR is exempt from the external contributor proof gate. Its tests and exact-head CI support the refactor, but they do not supply the separately required installed-update or macOS call evidence; no stored-data contract change was identified.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The maintainer-authored PR is exempt from the external contributor proof gate. Its tests and exact-head CI support the refactor, but they do not supply the separately required installed-update or macOS call evidence; no stored-data contract change was identified.
Evidence reviewed 10 items Current main still differs: The central cleanup remains absent from fetched main in representative Tlon, FaceTime, policy, and Google Meet paths.
Stored settings shape: Tlon retains the same Urbit settings desk, bucket, entry keys, load path, and write request; the change removes local manager bookkeeping.
Attestation bytes: The policy attestation still hashes the same evidence, findings, and final claim through the existing stable JSON hash function.
Findings None None.
Security None None.

How this fits together

Bundled 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]
Loading

Before merge

  • Resolve merge risk (P1) - The changed Doctor, migration-adjacent, and service-lifecycle paths have no published-updater × candidate proof using existing operator state, as required by repository policy.
  • Resolve merge risk (P1) - FaceTime setup and realtime connection were reorganized without a real macOS setup or call trace; the plugin tests and Linux CI do not establish native call behavior.
  • Complete next step (P2) - Provide published-updater × candidate proof with existing state and a real macOS FaceTime setup and call trace before merge.
  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.
Agent review details

Security

None.

PR surface

Source -1185, Tests +44, Other -2. Total -1143 across 72 files.

View PR surface stats
Area Files Added Removed Net
Source 64 865 2050 -1185
Tests 7 62 18 +44
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 6 8 -2
Total 72 933 2076 -1143

Review metrics

Metric Value Why it matters
Stored-format changes 0 identified The earlier migration concern does not establish a changed stored-data contract, although update-path proof is still required.

Stored data model

Persistent data-model change detected: migration/backfill/repair: extensions/policy/src/doctor/policy-scope.ts, migration/backfill/repair: extensions/policy/src/doctor/tool-findings.ts, unknown-data-model-change: extensions/policy/src/doctor/policy-scope.ts, unknown-data-model-change: extensions/policy/src/doctor/tool-findings.ts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Prove upgrade and native call paths (recommended)
    Capture a published-updater × candidate run with existing plugin state and a macOS FaceTime setup, call startup, and stop trace before merge.

Technical review

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

Labels

Label changes:

No label changes.

Label justifications:

  • P3: This is internal plugin cleanup with no claimed user-facing fix or urgent regression.
  • merge-risk: 🚨 compatibility: The touched Doctor and compatibility paths lack the repository-required installed-updater proof with existing state.
  • merge-risk: 🚨 availability: The reorganized FaceTime connection path lacks a real macOS call observation that would expose a startup or teardown failure.
  • 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 maintainer-authored PR is exempt from the external contributor proof gate. Its tests and exact-head CI support the refactor, but they do not supply the separately required installed-update or macOS call evidence; no stored-data contract change was identified.

Evidence

What I checked:

  • Current main still differs: The central cleanup remains absent from fetched main in representative Tlon, FaceTime, policy, and Google Meet paths. (extensions/tlon/src/settings.ts:227, 168ebc5b6708)
  • Stored settings shape: Tlon retains the same Urbit settings desk, bucket, entry keys, load path, and write request; the change removes local manager bookkeeping. (extensions/tlon/src/settings.ts:203, 0a4b431017b0)
  • Attestation bytes: The policy attestation still hashes the same evidence, findings, and final claim through the existing stable JSON hash function. (extensions/policy/src/policy-state-attestation.ts:17, 0a4b431017b0)
  • Migration behavior: Google Meet's legacy realtime migration still tests field ownership and writes the same replacement provider fields; the introduced change in this file substitutes Object.hasOwn for its forwarding helper. (extensions/google-meet/src/config-compat.ts:18, 0a4b431017b0)
  • Update proof policy: Root policy requires a published-driver × candidate proof cell for changes touching Doctor, service lifecycle, config migration, or plugin loading. The PR body reports plugin tests and CI, but no such update run. (AGENTS.md:83, 0a4b431017b0)
  • Native platform proof policy: Root policy calls for real platform evidence for native-app claims. The PR body expressly says no macOS calling was exercised. (AGENTS.md:141, 0a4b431017b0)

Likely related people:

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

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Record the installed-updater outcome with prior plugin state and the FaceTime setup and call outcome on a Mac.

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.

History

Review history (8 earlier review cycles)
  • reviewed 2026-09-27T03:12:51.637Z sha fea3bc5 :: blocked before merge. :: none
  • reviewed 2026-09-27T03:21:11.944Z sha fea3bc5 :: blocked before merge. :: none
  • reviewed 2026-09-27T03:56:09.509Z sha d613584 :: blocked before merge. :: none
  • reviewed 2026-09-27T04:17:26.640Z sha 01613db :: blocked before merge. :: none
  • reviewed 2026-09-27T04:48:48.513Z sha b3fbb27 :: blocked before merge. :: none
  • reviewed 2026-09-27T05:32:13.410Z sha 0a4b431 :: blocked before merge. :: none
  • reviewed 2026-09-27T05:43:49.922Z sha 0a4b431 :: blocked before merge. :: none
  • reviewed 2026-09-27T06:11:36.983Z sha 0a4b431 :: blocked before merge. :: none

@steipete
steipete marked this pull request as ready for review September 27, 2026 03:16
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Sep 27, 2026
@steipete
steipete merged commit a47ab0c into main Sep 27, 2026
208 checks passed
@steipete
steipete deleted the deslop/l107-ext-mid branch September 27, 2026 06:32
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 28, 2026
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: tlon Channel integration: tlon channel: zalouser Channel integration: zalouser extensions: clickclack extensions: copilot extensions: ollama extensions: policy extensions: xai merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. plugin: facetime FaceTime plugin plugin: google-meet 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