Repository navigation
refactor(plugins): deslop feature plugin helpers - #162992
Conversation
Reuse existing numeric, timestamp, collection and URL owners while preserving plugin descriptors, admission policy and persisted formats. Remove redundant forwarding and normalization steps across feature plugins. Fix Copilot attempts retaining caller abort listeners when authentication preflight or BYOK proxy setup fails; keep registration inside the existing cleanup scope and preserve setup cancellation.
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review blockedAutomated review did not run, so no review verdict was produced. Reason: The input-safety check rejected material in this revision. No detected value, path, or scanner output is reproduced here. Automatic review is on hold, including after source changes. Request a fresh re-review after resolving the failure; maintainers can also release the hold through an intentional scanner-policy update. Next step: If this is a genuine credential, remove and rotate it. If it is an intentional test fixture, a maintainer must review and qualify it. |
|
@clawsweeper re-review The exact synthetic fixture qualification has merged in openclaw/clawsweeper#1739. The current body records final passing remote proof and the independently attributed UI CI failure. Please rescan the current input and review this unchanged head. |
|
🦞👀 Re-review progress:
|
|
Codex review: needs maintainer review before merge. Reviewed October 1, 2026, 7:43 PM ET / 23:43 UTC (Revision 2). ClawSweeper reviewWhat this changesThe branch simplifies bundled plugin helpers using existing utilities and prevents Copilot setup failures from retaining caller abort listeners. Merge readiness✅ Ready for maintainer review The prior compatibility blocker is resolved by the new existing-state evidence and source inspection. No actionable introduced defect remains, and current main still needs the Copilot cleanup repair. Priority: P3 Review scores
Verification
How this fits togetherBundled plugins translate tool requests, configuration, stored memory, and service events into plugin operations. Their shared helpers handle input normalization, URL admission, asynchronous coordination, and cleanup. flowchart TD
A[Tool requests and configuration] --> C[Bundled plugin helpers]
B[Existing memory and service events] --> C
C --> D[Shared normalization and URL checks]
D --> E[Plugin operations]
E --> F[Results and stored updates]
E --> G[Cancellation and cleanup]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource -293, Tests +86, Other -3. Total -210 across 71 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Keep one existing owner for each helper contract while preserving stored bytes, URL admission, and cancellation cleanup. Do we have a high-confidence way to reproduce the issue? Yes, by source: current main installs the Copilot abort listener before authentication and proxy setup paths that can exit without cleanup. This review did not execute the failure. Is this the best way to solve the issue? Yes. Reusing existing helpers and placing listener registration inside its cleanup scope addresses the concrete defects without adding parallel policy or changing persistence contracts. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against aa9fcc5cea6d. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
@clawsweeper re-review The body now explicitly records completed stored-data/upgrade compatibility proof: identical real diary reads/writes and persisted bytes across baseline/candidate, 51 persisted timestamp rows, numeric/REM differentials, and full sibling suites. There is no data-model or migration change. Please evaluate this evidence for the automated compatibility requirement; the source head is unchanged and the code review found no actionable defects. |
|
🦞👀 Re-review progress:
|
Reuse existing normalization, URL, catalog and lifecycle helpers across feature plugins. Fix retained Copilot abort listeners when pre-session auth or proxy setup fails. Preserve tool descriptors, plugin manifests, persisted state and URL admission policy. Remote changed checks, non-Browser sibling suites, focused Browser tests, plugin contracts, SDK checks and both zero-cycle gates pass. The independently attributed partial-refresh UI failure is documented in the PR evidence.
What Problem This Solves
Feature plugins still repeat small validation, parsing, promise, and projection flows after the earlier sibling-duplication sweep. This maintainer-directed continuation removes 293 net production lines by using existing owners and simplifying redundant steps.
User Impact
Plugin tool names, descriptions and schemas, manifests, config keys, persisted formats, URL admission, and rendered UI remain unchanged. Copilot now releases its caller's abort listener when authentication preflight or BYOK proxy startup fails.
Why This Change Was Made
Cold Google Meet audio construction and larger lifecycle lookalikes remain separate because their import, authority, timeout, and cleanup contracts differ. No new framework, SDK subpath, dependency, config option, schema, or protocol is introduced. The assertion-debt baseline only shrinks.
Fixes found along the way
Copilot installed an abort listener before setup, but auth/proxy failures could exit before reaching its cleanup. Registration now begins inside the existing cleanup scope and preserves cancellation raised during setup. Two real-entrypoint regression rows fail on the base with an extra
abortActiveSessionlistener and pass after the repair; a gated sandbox-preparation control proves cancellation is retained.Evidence
pnpm test ... --maxWorkers=1in 36 seconds wall; Copilot's complete 85-case file took 10.94 seconds of Vitest wall time. The regression reuses existing fixtures and adds no timers, sleeps, process boots, or production seams.Known baseline failure: the full Browser suite on clean base
4f0541eb469had 14 failures inchrome-mcp.ownership.test.tsandserver-context.list-profiles.test.ts, from missing mock-facade exports (resetChromeMcpSessionsForTest/ensureChromeMcpAvailable); 3,485 tests passed. The focused changed paths pass. This is recorded as unresolved broad-suite evidence, not a claimed repair or a hosted-CI waiver. Related ownership context is recorded in #162646.The final candidate passes
check-changed, both cycle checks, the full FaceTime suite, the Copilot attempt suite, and all 1,132 plugin contracts. The SDK API comparison reports no API changes. Two type-only corrections fixed the initial test inference and unbound-method lint failures.Current-head CI run 36928889380 has one failing non-aggregate job:
checks-ui-e2e-real-gateway (1/2)/model-catalog-partial-refresh.real-gateway.e2e.test.ts:241, expectingaria-disabled=falsebut observingtrue. The identical test/line/assertion fails on unrelated current PR #162844 at head128189c2ecaaf2126d51cdc8f47a615a8831520f, run 36924844797 / job 110580129447. That PR changes only MCP HTTP transport; the failing test and effort-control renderers are byte-identical. These helper changes do not supply that control state.The synthetic catalog-icon URI fixture is now qualified by openclaw/clawsweeper#1739 (merged). The exact source-line and native detector identities are bound; altered credentials, source lines and paths remain refused, and native scanning and verification remain enabled.
Stored-data and upgrade compatibility proof
This is a behavior-preserving cutover; existing persisted data is accepted without migration. There is no schema, schema-version, vector/embedding record, field-name, state-path, transaction, retention, recovery, or serialization change. The broad path-based data-model warning is acknowledged; the following completed compatibility proof covers the changed memory normalization owners.
On Linux, exact baseline copies of the changed owners and the candidate ran the same real storage operations in isolated workspaces. For six existing DREAMS.md fixtures (including duplicate entries, whitespace, Unicode, headings and comments), both versions ran
dedupeDreamDiaryEntries,writeBackfillDiaryEntries(preserveExisting: true), andreadRecentDreamDiaryEntries. Results, deduped bytes, final persisted bytes, and readback context were deeply equal. The fixtures exercise pre-existing data flowing through candidate reads and writes; fingerprints and duplicate decisions are unchanged. No migration or rebuilt state is required.The same successful run compared 51 actually persisted timestamp rows through staged-key selection; 756 numeric/coercion/fallback cases; 336 narrative-boundary cases; and 72 complete REM results/renderings. Promotion coercion and CLI output are preserved. Full Memory Core, Memory Wiki and Workboard suites also passed, including their existing persistence and lifecycle coverage. The successful final differential receipt is AWS run
run_3456208bcd2a645459b21fd65aac7b36; earlier fixture-only failures are excluded from this claim. This is compatibility evidence, not a claim of testing a released updater binary, because no install, migration or updater behavior changes.