Repository navigation
refactor(plugins): narrow private inputs and results - #180700
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
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. |
4e37e35 to
bd060b9
Compare
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Codex review: needs maintainer review before merge. What this changesThis PR removes unused private plugin inputs and unread result fields while retaining existing production defaults. Example: A stopped Telegram poller still holds its bot-token lease.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open as useful, maintainer-directed cleanup; the reviewed diff introduces no actionable correctness finding, and exact-head CI is still pending. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherBundled plugin adapters translate channel events and runtime configuration into provider calls, message delivery, and state-owner operations. flowchart LR
A[Channel events] --> C[Private plugin helpers]
B[Runtime configuration] --> C
C --> D[Existing authority and state owners]
D --> E[Provider and channel transports]
D --> F[Persisted plugin state]
Technical reviewBest possible solution: Retain the private-interface reductions with existing production defaults, storage owners, and authority checks. Do we have a high-confidence way to reproduce the issue? This is a behavior-preserving refactor rather than a reported runtime bug; source inspection verifies the relevant serving defaults and caller cutovers. Is this the best way to solve the issue? Removing unserved private controls at their existing owners is a proportionate simplification, and the diff adds no competing owner or unnecessary production machinery. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 74ca496bf40e. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -83, Tests -10. Total -93 across 58 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, 10:54 AM ET / 14:54 UTC. |
|
Coordinator landing evidence for exact head
Merging with the exact-head SHA guard (squash). This works around a misfiring gate publisher; it does not bypass any failing check. |
|
Merged via squash auto-merge.
|
* refactor(plugins): remove unused private arguments and projections * style(mattermost): format the rebased preview cap
Conflicts: - queue/recent-message-ids.ts was folded into queue/enqueue.ts upstream (openclaw#181498). Its recent-source release now goes through releaseBeforeTurnAdoptionRetry there, so a cancelled queued turn also forgets its recent message id, as on this branch. - dispatch-from-config.prepare-context.ts imports: keep releaseBeforeTurnAdoptionRetry; waitForReplyDispatcherIdle is no longer used after upstream's openclaw#181105. Semantic: upstream dropped createTwitchIngress's pollIntervalMs option (openclaw#180700), so the aged-cancelled Twitch test stops passing it. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01PiKbtQbHKKfq82arnmwBYp
What Problem This Solves
Private plugin helpers carry optional inputs and result fields that no production caller uses.
User Impact
No user-visible change. Config keys, CLI flags, Plugin SDK exports, protocol messages, persisted formats, and live security checks are unchanged.
Why This Change Was Made
Use the serving defaults directly, call the existing dependency owners, and stop returning unread projections. Tests use module spies or the actual production limits instead of adding production-only fixture controls.
This is the extensions-area slice of a wider private-argument cleanup. The collector exceeded 80 files, so it is split by area under the campaign's explicit wide-family exception: 58 files; 83 net production lines and 10 net test/support lines removed. Core and UI edits are not included.
Best-effort tradeoffs accepted
Evidence
src,ui/src,extensions,packages, and scripts; targeted type graph includes serving consumers, aliases, and changed tests.ReferenceErrors from retired assertion helpers in Twitch's outbound test. A serial exact-baseline replay reproduced all nine. The direct-assertion repair landed separately on main as271329fd32df; all 33 outbound cases then passed with this slice reapplied. No assertion repair is hidden in this PR.--noEmiton the changed extension graph and actual consumers), typed lint and format pass. Runtime cycles: 0; static cycles: 0; both plugin import-boundary checks pass.src/cron/store/job-mutations.ts,src/transcripts/library.query-budget.test-support.ts, andui/src/pages/sessions/view.tsx; those files and the guard are identical to main. No suppression or allowlist changes.Conflict-only rebase: main independently inlined Mattermost's two local helpers. The resolution preserves main's trim precheck and published-offset loop and applies only the unserved preview-cap input removal. Refreshed conflict proof: 30 cases across three files, targeted native graph, typed lint, format, runtime cycles0, static cycles0, and whitespace pass. The suppression guard retains the same inherited103-versus100 failure. Other unchanged-input local proof is reused; prior-head CI is not presented as rebased-head CI. Net production savings fell from91 to83 because main already owns the overlapping simplification.