Repository navigation
refactor(plugins): trust existing private owners and validated facts - #179748
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review in progressClawSweeper is reviewing this revision. This supersedes any previous blocked status. |
steipete
marked this pull request as ready for review
October 21, 2026 17:24
Contributor
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. |
Contributor
Author
|
Merged via squash auto-merge.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Oct 22, 2026
…penclaw#179748) * refactor(plugins): reuse validated media and digest facts * refactor(plugins): reuse private cleanup and collection owners * refactor(browser): own fixed download capture policy * refactor(qa): trust typed MCP stderr stream * refactor(plugins): remove redundant private work * refactor(plugins): reuse existing value and metadata owners * refactor(plugins): trust private collection and display owners * refactor(plugins): remove redundant private validation and results * refactor(discord): keep private bounds and cleanup with owners * refactor(plugins): trust process clocks and private operation owners * fix(qa): preserve explicit gateway setup option
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
Replaces #179727, which the PR CI Sweeper closed to recover a dropped CI run but could not reopen. The branch's authorized conflict-only rebase was pushed while that PR was closed; the normal manual reopen was also refused. This replacement uses the reviewed rebased head and requires its own exact-head CI; no prior green result is substituted.
Plugin-private paths repeat work their existing owners already perform: receive budgets, fixed download policies, validated media bounds, digest primitives, cleanup, and internal argument construction.
User Impact
No intended user-visible change. Public SDK/configuration/CLI/protocol/persisted shapes, authorization, external-input validation, ordinary concurrency, and write-capable shutdown settlement remain intact. Phase E standalone session memory and its factory, registry, expiry, federation, and tests are untouched.
Why This Change Was Made
Use existing SDK digest/collection/number helpers; let Discord's audio worker own its existing end-to-end packet budget; keep Browser's unchanged download policy in its capture owner; remove duplicate private bookkeeping, argument copies, empty registration, and checks already implied by retained boundaries. Slack's process-owned membership cache no longer validates its own clocks as external dates.
Production delta against the merge base: 158 net lines removed (+111/-269), 43 production paths across 16 plugins. This is the lane's combined residue, not a LARGE PR. Three test files adapt private download-policy inputs or remove only two synthetic invalid-clock cases; kept behavior assertions remain.
Best-effort tradeoffs accepted
8e90a1cad96a89c2fd4934f3397ceb96d8877e10): the sole production caller usesDate.now(), not injected NaN or year-275760 dates. Those synthetic inputs may now cause unnecessary lookups or a best-effort stale projection. Five-minute expiry, client/team/subteam scope, expired-entry removal, and failed-lookup rejection remain.finally. Unsupported repeated direct calls no longer share one Promise; real request drainage and its 30-second deadline remain.finallynow clears directly. Initialization serialization, crypto custody, recovery, and key durability remain.Response.urlcompatibility catch (transport introductionf62be0ddcf7c27): supported native Response instances permit this own property; no caller can freeze the fresh instance between synchronous statements. An unsupported replacement implementation now fails visibly instead of silently dropping URL metadata.81c1892c9adcf): the maintained SDK returns a Stream or null. A future unsupported non-stream value fails visibly; nullable handling and bounded stderr diagnostics remain.The media post-decode checks duplicate the retained preallocation size estimate and canonical base64 validation, whose accepted decoded lengths are identical. Malformed/oversized input, SSRF, credential/approval authority, FIFO, recording receipts, and physical finalization remain protected. No schema, dependency, or configuration change.
Evidence
Every incremental packet received independent P0–P2 review and focused owner/consumer proof, targeted types, lint/format, line/assertion ratchets, scoped zero-runtime/no-new-static cycles, and the suppression audit. Passing evidence was retained for unchanged source rather than repeated for green.
Initial exact-head CI39643522215 exposed our CLI argument-presence regression in
mantis/slack-desktop-smoke.runtime.test.ts:769(job119373771740; downstreamchecks-node-changed). The proposed removal of explicitgatewaySetup: undefinedwas fully withdrawn; the test is unchanged. All 11 owner cases now pass locally, along with targeted types, lint/format, ratchets, 472-module zero-runtime/no-new-static cycles, and all 14 suppression tests. Fresh independent P0–P2 review found no actionable issue in that repair. This failure is ours, not inherited; the repaired head requires its own CI.Latest increments: Discord's 11-file batch had 132 passing cases and one own-field-presence failure from a proposed receipt simplification. That entire hunk was restored; the unchanged 51-case send suite passed. Final Discord types/statics/cycles and all 14 suppression tests passed. QA's six-file/48-case batch passed; targeted types then rejected two proposed shorter forms, which were completely restored rather than cast. Final retained QA/Slack types/statics, three Slack cases, 708-module scoped cycles, and all 14 suppression cases passed. Fresh independent final reviews found no actionable P0–P2 issue.
Earlier unchanged packets retain focused Browser/Codex, Matrix startup/transport/IndexedDB, Feishu lifecycle/reaction, Signal/Google Chat, speech/media, wiki, and Teams/Doctor proof. Browser's download tests now use the actual fixed production policy while retaining late-download, ownership, and security assertions. No timeout, retry, skip, suppression, or kept baseline was relaxed.
Local proof used isolated state, serial focused wrappers with one worker, and targeted types only. No broad build, live vendor/channel/Gateway, device/visual, or measured performance claim. Exact-head PR CI is the broad gate.