Repository navigation
refactor: consolidate single-consumer plugin surfaces - #180713
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 SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex review: needs maintainer review before merge. What this changesThis PR moves private plugin implementations and single-use helpers into their existing registration or operation owners. Example: Transcribe voice.mp3 with ElevenLabs model scribe_v2.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open for normal landing: the maintainer-directed consolidation preserves the inspected behavior, and no actionable introduced defect was found. Priority: P3 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherBundled plugins register capabilities and handle provider, channel, filesystem, and telemetry operations through existing Plugin SDK contracts. flowchart TD
A[CLI and Gateway requests] --> B[Plugin operation owners]
C[Plugin registration] --> B
B --> D[Existing Plugin SDK operations]
D --> E[Providers and local resources]
E --> F[Results and receipts]
Technical reviewBest possible solution: Land the consolidation through the existing exact-head CI and repository landing gates. Do we have a high-confidence way to reproduce the issue? This is a behavior-preserving refactor without a reported failing user scenario; review was source-only and no target code was executed. Is this the best way to solve the issue? The change uses existing owners, removes the replaced private paths, and preserves the inspected contracts without new machinery. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 89946acb08fd. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -151, Tests +62, Docs 0. Total -89 across 32 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 22, 2026, 11:19 AM ET / 15:19 UTC. |
|
Exact-head CI on
The last six completed scheduled main runs and the main-flake catalog were checked. Two main UI5 failures have different signatures; neither is being presented as matching evidence. The actual tested merge has exactly the recorded main/head parents and the reconstructed merge tree matches. The direct Actions job-log endpoint now supplies baseline-ratchet proof: all nine checks passed, followed by Native landing refused before dispatch twice, including supported freshly qualified Campaign rule 10 authorizes the exact-head REST fallback after those two infrastructure-metadata refusals. Immediately before that request, the full paginated check census still shows only the attributed UI leaf and its aggregate failed; the baseline commands are proved complete by their raw log. Dependency and security-sensitive clearance are successful; the PR is mergeable at the same reviewed head, and merging current main with it is conflict-free. The request is squash-only and guarded with the exact |
* refactor(elevenlabs): keep transcription in plugin registration * refactor(providers): register private video implementations directly * refactor(line): build send receipts at their sole production call * refactor(diagnostics): localize single-consumer telemetry constants * refactor(github): keep image reader private to lazy handlers * refactor(plugins): localize search and diff normalization frames * refactor(plugins): localize file and task response preparation * refactor(plugins): localize canvas and credential call frames * refactor(copilot): resolve private auth frames at their owner
…keyed recorders Upstream openclaw#180713 and openclaw#180488 (absorbed at jump 3) keyed the diagnostics-otel recorders by event type and dropped createDiagnosticsEventHandler's recordLogEvent parameter; service.ts prepares bridge spans with recorders["model.call.started"] and recorders["tool.execution.started"]. The fork-only continuation tracer integration harness still passed recordLogEvent and called recordModelCallStarted / recordToolExecutionStarted. That left tsgo:extensions:test with 3 errors, and the typed-tool-origin case failing at runtime ("recorders.recordToolExecutionStarted is not a function"), since jump 3: the same at 50c3d84, the carry 74065f6 and 2cdbbb0; 0 errors at 7ab6. The harness now wires the bridge the way service.ts does. No assertion changes: 3/3 green, and tsgo:extensions:test has 0 errors. Refs #1475 Co-Authored-By: Claude Opus 5.5 <[email protected]>
What Problem This Solves
Several internal plugin factories and helper modules exist only to serve one production consumer, unnecessarily widening their internal APIs.
User Impact
No user-visible change or migration. Existing plugin capabilities, request validation, authorization, model selection, credential precedence, network limits, retries, resource cleanup, and lazy loading remain. Public Plugin SDK/configuration/protocol/data contracts and Phase E session memory are untouched.
Why This Change Was Made
Register the ElevenLabs transcription and Together/Runway video implementations directly; build LINE receipts in their actual send owner; colocate private diagnostics and GitHub image helpers. Localize single-use preparation in Canvas, Matrix, DDG, diffs, LLM-task, and Copilot without adding a new shared owner or dependency seam. Tests formerly calling retired factories now exercise the existing registration/send entry points, with their assertions retained.
This is the disjoint plugin area of the 88-path family split under campaign rule 11; the core area is #180711. It removes 151 net production lines (+972/-1123) across 22 production paths (32 paths overall), excluding tests, fixtures, test support, generated files, and declarations. Moved algorithm bodies are not credited as deleted behavior. The Runway documentation link follows the removed private file to its real registration owner.
Best-effort tradeoffs accepted
No protective guard is removed. Private async-return hops disappear where the caller absorbs their body; exact microtask interleavings of those internal frames are not preserved as a contract. Real I/O waits, authorization, cancellation, credential-lineage callbacks, and cleanup remain unchanged. Copilot still snapshots all four environment candidates eagerly, preserves token whitespace/precedence, and retains the existing home-path/profile/session-compatibility rules.
Evidence
Each packet passed focused existing public-consumer suites, targeted native types, typed lint, formatting, line caps, and independent P0–P2 review. Retained examples include 40 Copilot resolver/selected harness cases, 60 Canvas/Matrix cases, 25 search/diffs cases, and the provider registration/request-policy, LINE delivery, diagnostics, GitHub-handler, and LLM-task suites. Existing tests are retained or migrated, without added timeouts, retries, or skips. Selected harness cases are not live vendor/SDK proof; the opt-in ElevenLabs live test was migrated/typechecked, not executed.
All nine commits applied patch-identically without conflicts onto fresh main
88d9566ecabf65356c12b66dce2123ff44b0f9c1; touched plugin trees and root manifests are unchanged from the original tested base. Runtime/static cycles, wrapper/eager-import closure, assertion safety, mock-export ratchet, and line caps pass. Full-area independent P0–P2 review is clean.Local baseline limitation: suppression inventory reports the same three untouched extras in cron mutation, transcript test support, and the sessions view (103 against 100). The affected files and checker/parser/enumerator are byte-identical to this branch's main base; no baseline was widened. Exact-head hosted CI is the broad gate. No local build, broad typing, E2E, live network/model/channel, or device proof is claimed.
Exact-head CI and landing
Merged as
8f7205dd807634a12c2f2011e698793298962d76; ancestry verified in freshly fetched main. CI run39800841250remains failed, not green: the offline attachment outbox browser mock timed out capturingchat.send; the aggregate failed downstream. The full browser/preview/outbox/capture execution path and determining build inputs are unchanged by this plugin-only diff. This is campaign-authorized source-disjoint attribution, not a matching known-flake or baseline reproduction claim. All other selected suites passed; the baseline-ratchet raw log proves all nine checks completed successfully despite stalein_progressAPI metadata. Security and dependency clearance succeeded.The native workflow refused twice before dispatch, including fresh current-workflow recovery, because an auxiliary auto-response suite still reported
in_progressdespite its sole check being completed/cancelled. Campaign rule10's exact-head SHA-guarded REST squash fallback was used after publishing the complete failure and infrastructure evidence. No test suite was cancelled, rerun, skipped, weakened, or made slower; the unresolved UI defect is not claimed repaired.