Skip to content

refactor(plugins): remove redundant private paths - #178399

Merged
steipete merged 2 commits into
mainfrom
deslop/z41-12-plugin-owner-residue-20261015
Oct 20, 2026
Merged

steipete merged 2 commits into
mainfrom
deslop/z41-12-plugin-owner-residue-20261015

Conversation

@steipete

@steipete steipete commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Several plugins still perform private bookkeeping, duplicate work, or maintain an alternate implementation after their production owner already supplies the result.

User Impact

No channel feature, public SDK export, configuration, protocol, or persisted-data shape changes. Matrix QA now targets the SQLite state used by current and latest-stable candidates, not pre-June JSON-only fixtures. Product Matrix migration remains unchanged.

Why This Change Was Made

Use Discord's existing webhook index, trust the FaceTime installer's own verification, drop iMessage's unread version probe and Policy's unread selector details, and reuse the existing SDK HTML escaper. Remove Matrix QA's retired JSON discovery/rewrite fork. Retire Reef's test-only outbound composer after its production caller moved to worker composition in #171633; preserve the security contracts at the actual worker-backed send boundary.

Net production LOC: 280 removed (+45/−325 across nine production files), excluding tests/support and the one-entry assertion-baseline shrink. This is a residue, not a LARGE cleanup claim. There are 22 changed files overall.

Best-effort tradeoffs accepted

Evidence

  • Focused Discord owner/sibling tests passed, followed by 15 creation tests covering fresh/restored webhook reuse and other-account isolation. Initial new fixture runs exposed durable account-row pollution; cleanup now unbinds both fixture accounts through the public manager API. No existing assertion, timeout, retry or skip was weakened.
  • FaceTime: 3 focused tests; Policy: 28; iMessage/Canvas: 28 across three files. Matrix cursor/destructive-state proof passed, including separate user/device isolation cases. These are isolated harness proofs, not live channel, browser, or native installation claims.
  • Reef plus affected consumers and lint suppressions: 75 distinct tests across seven files passed in 243.59s wrapper wall time. The new worker security cases cover deterministic denial, invalid model/policy/decision, post-approval admission and recipient-bound durable review. Inbound replay/security and historical receipt audit assertions remain.
  • Scoped cycle analysis: 1,222 production files across seven plugins, zero runtime cycles and zero new static components against the branch base. Canonical assertion counts have no increase. Focused syntax lint, formatting, staged line caps and whitespace checks passed.
  • Independent review: no actionable P0–P2 findings. The later Policy formatter change is whitespace/import layout only.
  • Targeted typecheck could not resolve the checkout's generated openclaw/plugin-sdk/time-runtime declarations; it is not claimed passing. No broad local build/typecheck was run. Exact repaired-head CI 39425278846 passed in 652 seconds, supplying broad/type-aware proof.
  • The first hosted run caught our test assigning a readonly adapter property. The repair constructs the same mock adapter with its chosen model instead; production is unchanged. All 16 worker-bound security cases and 14 suppression tests passed again in 116.22s, and incremental independent review found no actionable P0–P2 issue. Exact-head CI on the repair passed. All 124 check runs were enumerated: 66 success, 55 skipped, one neutral CodeQL and two superseded metadata cancellations, each replaced by a successful run. The aggregate CI gate and applicable security checks passed; no failure exception or CI rerun was used.

@clawsweeper

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

@openclaw-barnacle openclaw-barnacle Bot added channel: discord Channel integration: discord channel: imessage Channel integration: imessage extensions: qa-lab extensions: policy channel: reef Channel integration: reef plugin: facetime FaceTime plugin extensions: canvas size: L labels Oct 20, 2026
@steipete
steipete marked this pull request as ready for review October 20, 2026 12:19
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-20T12:22:34.203488Z c91a5ae Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@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: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 20, 2026
@clawsweeper

clawsweeper Bot commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR removes redundant plugin bookkeeping, obsolete Matrix QA JSON paths, and Reef’s unused outbound composer.

Example: FaceTime installs a missing audio driver successfully.

  • Before: The installer verifies the driver, then OpenClaw launches another status check.
  • After: OpenClaw accepts the installer’s verified success without the duplicate check.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful cleanup with supported ownership and no actionable code finding; supplied harness evidence supports it, but failed type-aware validation prevents a ready-to-merge assessment.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored refactor is outside the ordinary contributor proof gate; supplied evidence describes isolated owner tests, with no claim of live channel, browser, or native installation proof.
Patch quality 🦐 gold shrimp (3/6) No actionable review findings were identified.

Product

Kind: Refactor · Worth it: Yes · Fix scope: Complete
User problem: Redundant private implementations increase maintenance work and perform unnecessary setup checks.
Reason: The maintainer-authored direction explicitly accepts the bounded tradeoffs, and the diff consolidates responsibility without changing public configuration or SDK contracts.

Merge readiness

⛔ Needs changes before merge - 1 item remains

Keep open: this is useful, maintainer-approved cleanup with no concrete correctness or security finding, but the required test-typecheck failure remains unattributed.

Priority: P3
Reviewed head: c91a5ae799465171e9b1a7370a3fd5acee99aaa4

Before merge

  • Complete next step - Inspect check-test-types on the reviewed head and establish whether its diagnostic requires a focused PR repair or documented inherited-failure handling.

Findings

None.

Agent review details

How this fits together

Plugin setup, rendering, messaging, and QA adapters consume results from existing installers, indexes, SDK helpers, SQLite stores, and Reef worker operations.

flowchart TD
  A[Plugin entry points] --> B[Existing production owners]
  B --> C[Installer and webhook index]
  B --> D[SDK HTML escaper]
  B --> E[Reef worker composition]
  F[Matrix QA scenarios] --> G[Account SQLite state]
Loading

Technical review

Best possible solution:

Retain this focused cleanup using the existing production owners and resolve the required typecheck’s attribution before merging.

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

This is a refactor rather than a reported runtime bug; source inspection confirms the duplicate work and retired paths, and no target code was executed.

Is this the best way to solve the issue?

The patch uses owners already present, removes the replaced paths, and preserves distinct worker security and account-isolation coverage without adding production machinery.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 42a73b62bb18.

Provenance checked

  • Discord webhook reuse changes intended behavior with a stated reason (feat: thread-bound subagents on Discord #21805: Thread bindings retained reusable channel webhooks; current creation and restoration maintain the canonical account/channel index.)
  • FaceTime post-install inspection changes intended behavior with a stated reason (88c56ec: The experimental feature verified installed-driver readiness; the shell installer already performs the authoritative final verification.)
  • Matrix QA legacy state support changes intended behavior with a stated reason (e8348c0: The SQLite conversion retained JSON compatibility during migration; this PR explicitly limits QA to current and latest-stable SQLite candidates while preserving product migration.)
  • Reef outbound composer keeps the original intent (882b2fe: The bundled protocol originally composed guarded outbound envelopes; the merged worker cutover now owns production composition and final send authority.)
  • Private iMessage and Policy details and Canvas escaping keeps the original intent (improve(imessage): manage imsg setup and plugin skill ownership #101407: Setup recorded an optional version, Policy retained selector details, and Canvas escaped quoted attributes locally; consumers need no removed payload, selector keys remain, and the SDK escaper preserves safe attribute encoding.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 0d9e310 adds extensions/facetime/src/driver-setup.ts:39 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 0d9e310d9fe7; files: extensions/facetime/src/driver-setup.ts)
  • Omar Shahine: Raw commit 88c56ec adds extensions/facetime/src/driver-setup.ts:29 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 88c56ec432a8; files: extensions/facetime/src/driver-setup.ts)

PR surface

Source -280, Tests -44, Other -1. Total -325 across 22 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 9 45 325 -280
Tests 12 255 299 -44
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 0 1 -1
Total 22 300 625 -325

Review metrics

Metric Value Why it matters
Production versus test/support LOC Production +45/-325; tests/support +255/-299 The production reduction removes redundant implementations; test changes move distinct security and isolation checks to retained owners.

Labels

Label changes:

  • add P3: This is internal cleanup with no established urgent user-facing defect.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦐 gold shrimp.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P3: This is internal cleanup with no established urgent user-facing defect.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 20, 2026, 8:37 AM ET / 12:37 UTC.

@steipete
steipete merged commit aac3cd0 into main Oct 20, 2026
134 of 136 checks passed
@steipete
steipete deleted the deslop/z41-12-plugin-owner-residue-20261015 branch October 20, 2026 13:18
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

steipete added a commit that referenced this pull request Oct 20, 2026
Remove orphaned context-engine assertions and the already-current convergence table after #178340 and #178341. Keep webhook, MCP authority, and JSON-target helpers local after #178399, #172026, and #178407; replace the test-only skill-authoring reset seam with module isolation.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 21, 2026
* refactor(plugins): remove redundant private paths

* test(reef): initialize readonly guard model in fixture
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 21, 2026
Remove orphaned context-engine assertions and the already-current convergence table after openclaw#178340 and openclaw#178341. Keep webhook, MCP authority, and JSON-target helpers local after openclaw#178399, openclaw#172026, and openclaw#178407; replace the test-only skill-authoring reset seam with module isolation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: discord Channel integration: discord channel: imessage Channel integration: imessage channel: reef Channel integration: reef extensions: canvas extensions: policy extensions: qa-lab P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. plugin: facetime FaceTime plugin rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: L status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant