Skip to content

refactor(channels): trust canonical private plugin facts - #179835

Merged
steipete merged 2 commits into
mainfrom
deslop/z41-49-channel-owner-residue-20261015
Oct 21, 2026
Merged

steipete merged 2 commits into
mainfrom
deslop/z41-49-channel-owner-residue-20261015

Conversation

@steipete

@steipete steipete commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Removes redundant private bookkeeping and repeated validation from bundled channel and collaboration plugins.

User Impact

No intended user-visible, configuration, protocol, storage, or public SDK change. Authentication, authorization at effects, retry deduplication, FIFO, and write settlement remain with their existing owners.

Why This Change Was Made

Consumers can use facts their owners already established instead of reconstructing them. This removes private forwarding fields, copies, repeated sorts, duplicate defaults, unreachable branches, and an unread sweep counter. The change is the channel area of one 116-file cleanup family, split by area to keep CI attribution narrow. This area removes 105 net production lines across 46 production paths; no new suppression or timeout/retry/skip is introduced.

Best-effort tradeoffs accepted

  • A2A's private store now requires the peer and message identity supplied by all real callers; ownership equality and retry deduplication always apply. Only incomplete synthetic calls lose their former bypass.
  • Buzz duplicate notifications may cause another bounded, coalesced read-only room discovery. Polling already retries discovery; parser-owned room-ID validation and relay authentication remain. The original setup in #113419, commit 3e858a2a6f377, is feature/setup machinery, not a human-filed incident requiring an event-ID set around these reads.
  • ClickClack consumes its HTTP client's real error class instead of accepting arbitrary structural status objects. Existing 401/403/404 diagnostics remain; fixtures now use the actual error contract. Dense private progress queues, a synchronous runtime reference, and singleton account selection no longer have duplicate branches. All effect-time checks remain.
  • FaceTime no longer forwards a literal owner boolean through private layers: authenticated-owner admission remains, and the SDK receives the same literal true. The helper writer retains its final live session check; only the synchronous duplicate precheck disappears. Exact-key validation no longer sorts copies, with identical missing/extra-key rejection. These are simplifications of the original bridge in feat(plugins): add experimental FaceTime realtime voice bridge #119291, not removal of a reported security fix.
  • Slack trusts the existing normalized history limit and concrete lookup's resolved failure category. It retains boundary validation, failure diagnostics, thread routing, per-call aborts, and shutdown ordering. Reader cache misses no longer allocate an empty owner map; writers retain the same bounded scoped cache.
  • Teams trusts its parsed team IDs, removes a no-information QA map write, sorts a fresh local snapshot in place, omits a copy immediately before JSON serialization, and uses the existing SDK SHA helper with identical namespace bytes. No schema, retention, token, or permission contract changes.
  • Feishu counts the same selected roots directly and publishes the same private outbound adapter rather than a shallow copy. Visitor listing sorts the same snapshot once; current access checks remain. Nostr returns the same startup promise directly; IMAP loses only an unread debug sweep count, not outcomes or cursor durability.
  • IRC and Twitch consume their owner's normalized targets/names. Device pairing preserves key bytes and approval results while dropping forwarding. Zalo drops unread private normalized projections and reuses synchronously ensured QR state; credential and owner callbacks remain.
  • X removes an unused client-factory signal; actual per-call aborts, deadlines, effect authorization, billing settlement, and shutdown remain. Solid handlers use their typed native currentTarget; markup, style, state, and requests are unchanged. GitHub keeps the untrusted-input commit rejection and same-resource check, removing only the later duplicate kind check.
  • Google Meet callers only consume the private success discriminator, so unused error storage disappears. The OAuth diagnostic takes one filesystem observation for both fields; missing-file behavior is unchanged.

Evidence

The original frozen packet passed 83 focused files in 14 serial shards. The expanded packet passed targeted types and 776 cases, with four fixture failures investigated: Firecrawl's colliding source cut was completely withdrawn; ClickClack's partial mock now retains the real error class; an OpenShell case-sensitive fixture failed identically on the exact base and was repaired in the other area.

The final repair packet passed 235 cases across 13 files, ordinary targeted types, focused lint/format, line/assertion ratchets, and scoped cycle checks (1,644 modules; zero runtime cycles and no new static component). Independent P0-P2 reviews of the original, expanded, and final follow-up packets found no actionable finding. One obsolete assertion allowance is removed, never widened.

The mandatory suppression audit remains 13 passed / 1 failed on an unchanged inherited entry: src/gateway/server/ws-transport.ts|no-underscore-dangle|1 (98 actual versus 97 expected). The same failure was reproduced serially on the clean exact base; no Gateway source or suppression allowance is changed. This is not a passing audit claim.

No live vendor/channel/device, deployed Gateway, stable-upgrade, measured performance, or broad local-build claim. Exact-head PR CI is the broad gate. The protected standalone session-memory backend and all its machinery/tests are untouched.

After applying this patch-identical area to fresh main, dependency installation, targeted ordinary types, focused lint/format, line/assertion ratchets, whitespace, and 994-module scoped cycles passed. The mandatory suppression audit reproduced the same inherited Gateway signature. All selected channel source files were unchanged between the original proof base and the fresh integration base; completed focused behavior proof is retained rather than rerun for green.

First-head CI found two issues belonging to this change: the typed consistent-return rule requires the original explicit undefined return after ClickClack's exhaustive diagnostic switch, and the repaired partial mock leaves one obsolete mock-factory allowance. Both are repaired together; the allowance only shrinks. The repair passed 16 focused cases across the two setup suites, targeted types, format, cycles, whitespace, and the 7,600-factory mock ratchet. Incremental independent P0-P2 review is scoped-clean. Local typed lint refused a retained unknown-owner artifact lock; it was not bypassed or cleared, and the new exact-head CI owns that gate. The suppression audit remains the same inherited failure.

The separate CLI message-authority failure is inherited: serial replay of the same Discord pin case fails identically on actual CI base be3bdd50e9999 and PR head 8361b1b4e7c28. Main's #117464 changed the Discord endpoint to /messages/pins/..., while this untouched integration fixture still serves /pins/.... Discord's actual action/request owners and this fixture are not changed here. This is causal/base-replay evidence, not a claim that the fixture's whole import graph excludes Slack.

@clawsweeper

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

@steipete
steipete marked this pull request as ready for review October 21, 2026 19:39
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 21, 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-21T19:42:10.938918Z 8361b1b 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.

@steipete

Copy link
Copy Markdown
Contributor Author

Exact-head inherited-failure landing evidence for 4bc5a53d6311d458be8d01cf77256e9443cd9abe.

CI39665983824, attempt1 remains failed. Every planned job completed; there is one failing leaf and its derived gate. No CI rerun, rebase, suppression, timeout increase, retry, skip, or security waiver.

Failing job Attribution and proof
checks-node-changed-compact-small-3 /119452113495 Seven cases in test/cli-message-authority.integration.test.ts fail because its Discord fixture still serves /channels/:id/pins/:message, while main's #117464 correctly uses /channels/:id/messages/pins/:message. Errors are unexpected PUT/DELETE requests followed by socket-reset assertions. Serial replay of the same implicit-pin case fails identically on actual main base be3bdd50e9999 and reviewed head 8361b1b4e7c28; the current head's actual CI has the same failure.
openclaw/ci-gate /119456538710 Downstream of that sole failing leaf; no additional failure is attributed to the aggregate.

The actual CI checkout is 568cb8f91dc63cef9ceff54dd191672423453bd4, with exactly ordered parents main d84c03e3f52ece844b6fbc991f0a50fddeea63b9 and PR head 4bc5a53d6311d458be8d01cf77256e9443cd9abe. Its full core source, Discord tree, root test tree, and package/lock inputs are identical to that actual main parent. The fixture, Discord request owners, and dependency lock also match the replayed base. Between locally replayed head8361 and current4bc, all those paths plus Slack are identical. This is causal-source equality and serial replay, not a claim that the whole fixture import graph excludes Slack: the failed request demonstrably follows Discord's unchanged pin route.

The coordinator flake index and six completed scheduled runs were checked (39654415683,39644558400,39635924183,39626840495,39617857340,39608923095). The pin migration landed after the latest completed scheduled source anchor, so this is not presented as a matching listed flake. The exact-base reproduction supplies the baseline proof.

Complete exact-head check census:136 completed checks,68 success,63 skipped,1 neutral,2 cancelled metadata predecessors,2 failures including the aggregate. Cancelled context119451013197 and dispatch119451012776 have same-head successful successors119454808421 and119454805593. No cancelled runtime suite is claimed as passing. Neutral CodeQL is disclosed, not a completed full scan.

The first-head PR-caused typed return and stale mock allowance are repaired. Current typed lint119454085219 and baseline ratchets119452111774 passed. Current security-fast119452110812 and Opengrep OSS119451487974 passed; no security exception is selected.

Focused owner/sibling tests, ordinary targeted types, syntax lint/format, ratchets and zero-runtime/no-new-static cycle checks passed for the retained area and its repair. Independent P0-P2 reviews are scoped-clean. The local mandatory suppression audit remains13 pass/1 inherited Gateway allowlist mismatch, independently reproduced on the clean exact base; no allowance is widened. Ordinary local typed lint refused an existing unknown-owner artifact lock, which remains untouched; exact-head hosted typed lint subsequently passed.

Standing scoped landing authority covers this individually attributed inherited CI failure. Failed CI remains failed; this evidence does not claim live vendor/channel/device, deployed Gateway, stable-upgrade, broad local build, or measured performance proof. The protected standalone session-memory backend and its machinery/tests are untouched.

@steipete
steipete merged commit 14fd660 into main Oct 21, 2026
134 of 139 checks passed
@steipete
steipete deleted the deslop/z41-49-channel-owner-residue-20261015 branch October 21, 2026 20:28
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 22, 2026
…9835)

* refactor(channels): trust canonical private plugin facts

* refactor(clickclack): retain lint-supported diagnostic return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant