Repository navigation
refactor(channels): deslop small channel and access plugins - #158441
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: blocked before merge. Reviewed September 26, 2026, 6:58 AM ET / 10:58 UTC (Revision 14). ClawSweeper reviewWhat this changesThe branch simplifies bundled channel and meeting plugins by removing forwarding code and duplicate types, and corrects Microsoft Teams setup text about live captions. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readiness⛔ Blocked before merge - 5 items remain The branch contains useful cleanup that is still absent from main. One previously identified QA catalog failure remains: the PR removes a file that two live scenarios still reference. Priority: P3 Review scores
Verification
How this fits togetherBundled plugins turn channel and meeting inputs into replies and setup status using shared Plugin SDK contracts. QA Lab reads scenario references to validate its catalog before running scenarios. flowchart LR
A[Channel and meeting inputs] --> B[Bundled plugins]
C[Shared Plugin SDK] --> B
B --> D[Replies and setup status]
E[QA scenario references] --> F[Catalog integrity check]
B --> F
F --> G[CI result]
Before merge
Findings
Agent review detailsSecurityNone. PR surfacePR surface statistics unavailable: the file list is incomplete. Review metricsNone. Stored data modelPersistent data-model change detected: Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Copy recommended automerge instructionTechnical reviewBest possible solution: Keep the SDK-backed simplifications, point both QA scenarios at the surviving protocol owner, and confirm catalog integrity on the repaired head. Do we have a high-confidence way to reproduce the issue? Yes, by source inspection: the verified merge removes a file named by two scenarios, and the catalog test requires those paths to exist. This read-only review did not execute the test. Is this the best way to solve the issue? The SDK-backed cleanup is a maintainable direction, but its QA catalog cutover is incomplete until both references follow the surviving protocol file. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 2442c3026935. LabelsLabel changes: No label changes. Label justifications:
EvidenceAcceptance criteria:
What I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (13 earlier review cycles; latest 8 shown)
|
804a7eb to
8cc20f5
Compare
2895178 to
d87b270
Compare
Consolidate repeated transport and webhook flows, reuse documented SDK owners, and remove redundant private forwarding layers while preserving authorization, credential, formatting, protocol, and state contracts. Correct Teams setup diagnostics to reflect its existing live-caption support.
d87b270 to
a5303e7
Compare
…#158441) * refactor(channels): deslop small channel and access plugins Consolidate repeated transport and webhook flows, reuse documented SDK owners, and remove redundant private forwarding layers while preserving authorization, credential, formatting, protocol, and state contracts. Correct Teams setup diagnostics to reflect its existing live-caption support. * fix(nextcloud-talk): retain typed outbound context projection * fix(zalo): retain inbound media kind normalization * refactor(channels): resolve SDK import and setup lint findings * refactor(imap): retain SDK authentication strength exhaustiveness
Closes #158398
What Problem This Solves
Maintainer-requested cleanup of repeated transport flows, copied types, and private forwarding layers in the smaller channel and access plugins.
User Impact
Authorization and verification order, credential precedence and diagnostics, outbound formatting/media, protocol parsing, config/tool schemas, and persisted state remain unchanged. Teams setup now correctly reports its existing live-caption support. No migration or operator action is required.
Why This Change Was Made
The sweep removes 1,139 net production lines across ten plugins without expanding the SDK. All scoped production files were read largest-first. Radius and Visitor Access were also fully read; their remaining protocol, authority, expiry, and reconciliation paths enforce distinct contracts and were retained.
The assertion allowance ledger shrinks by exactly 15 casts in seven touched files. Tests/support grow by 25 lines. No SDK exports, manifests, config keys, or persistence formats change.
Fixes found along the way
Teams setup claimed caption scraping was disabled although the adapter enables captions and the existing generated-DOM test proves capture. The new setup regression failed on the original wording (1 failed / 3 passed), then passed all four cases after the diagnostic correction. No meeting permission or capture behavior changes.
Evidence
Blacksmith Testbox via the repository Crabbox wrapper, Linux / Node 24.19.0 / pnpm 12.4.2. The wrapper verified each source tree, and the final payload independently checked hashes for every changed file. Both proof leases are stopped.
pnpm test:extensions:batch <plugin>selections passed: Nextcloud Talk 223 tests, IRC 184, Zalo 494, Twitch 265, QA Channel 137, Teams Meetings 186, Zoom Meetings 98, IMAP 53, Webhooks 42, Session Share 40, and Raft 17. Final corrected QA, Nextcloud, and Zalo batches were repeated successfully.node scripts/check-changed.mjs --base e06986400ce6412953908596886245cb3a4b08f7 --timedpassed in 494 seconds, including production/test types, ratchets, extension/script lint, dead exports, runtime cycles, storage and plugin boundaries.pnpm tsgo:extensions:testpassed in 110 seconds;pnpm test:extensions:package-boundary:compilepassed in 188 seconds.pnpm buildpassed in 487 seconds, including declarations, assets, and the CLI bootstrap import guard. Hosted CI also verifies the rebased build.The first proof/CI passes caught over-aggressive cleanup at three boundaries: absent QA delivery metadata still defaults to
final; Nextcloud retains its explicit callback-context projection; Zalo retains null-to-undefined media-kind normalization. These were restored without weakening tests. Duplicate-import and shadowed-parameter lint findings were corrected.An inherited main failure from #157543 was repaired by #158520. This PR was rebased onto that fix. Rebase comparison showed identical production bytes in all eleven touched plugins; upstream differences within those trees were README updates and three Twitch test updates. The final IMAP restoration only reinstates an erased type predicate and its explanatory comment, so the runtime proof remains applicable.
Pre-rebase head
289517882d7da5c14193ef99f2f7cbd829788b1apassed exact-head CI, includingopenclaw/ci-gate. The preceding rebased head also passed 110 jobs; the final change only restores the IMAP compile-time guard. Landing rebase round 2 is pushed. All affected Testbox gates passed; exact-head CI is running on the published head.Test costs and lease evidence
Standalone wall times use
pnpm test <file> --maxWorkers=1and include cold imports/startup. CI test seconds sum the verbose reporter's case durations on the green rebased head and exclude imports/setup. The entire changed-extension CI job passed in 252 seconds.teams-meetings/src/runtime-setup.test.ts(4 cases)webhooks/src/http.test.ts(31 cases)twitch/src/actions.test.ts(9 cases)Other test changes only redirect imports to canonical owners. No new timers, retries, serial configurations, or per-test Gateway boots were added.
tbx_01m3d7jhec79nj3fqbazp2b9eg(workflow). Its later retry expired during local source staging and executed no command.tbx_01m3dnazqr0yv8rvsnh745w661(workflow). Verified source804a7eb5f2a7c3f0739f57cb6e22b881f435b587, treefa2f537d847ba4eb227767fd9d547a9d5d20581b; every selected command exited zero.tbx_01m3df35veq93r4p5zmj8x5cfj,tbx_01m3dh4emsabbj1mdxqv8m5e8t, andtbx_01m3dhdw3mqpnhrcbc4hmfnw9rwere stopped before tests executed. The last proof lease used a 90-minute idle window to accommodate the measured source-staging delay.No live provider or native meeting-call claim is made; transport-boundary and generated-browser-script tests cover the preserved contracts.
Landing rebase
Rebased onto main
67adcce7e3043601354eacea4444d3361ee729c4after native merge admission reported conflicts. Main retired the Webhooks plugin in #158225; all seven overlapping Webhooks hunks, including its test changes, were dropped. Its five removed assertion allowances are already absent on main. Kept all simplifications in the ten remaining plugins unchanged. The assertion-ledger conflict combines this PR's IRC reduction (31 to 25) with main's adjacent Kilocode reduction (4 to 3). No main tests were modified; the updated Nextcloud replay tests are inherited unchanged. Published rebased head:d87b270406dd2259753a6c0263e60e24d8f5e400. Freshnode scripts/check-changed.mjs --base origin/main --timedpassed, andpnpm test:extensions:batch nextcloud-talkpassed all 222 tests on Blacksmith Testboxtbx_01m3eawxywdj8egyzsvy0hz56p(workflow). The wrapper verified the source SHA and the payload checked all 90 changed-file hashes plus seven deletions. The subsequent build lost its Testbox connection (exit 255) without a compiler failure; that lease is stopped. The replacement build leasetbx_01m3ed5k5m2t7fdehsb1mzt6zmwas stopped during source staging after exact-head CI established the landing blocker; no build success is claimed for this rebased head.Previous landing blocker (owner fix now merged)
Exact-head CI run 36229788755 failed
checks-node-compact-small-23and thereforeopenclaw/ci-gate. The failure issrc/infra/fs-safe-import-boundary.test.ts:317, testkeeps plugin filesystem imports within their reviewed dependency surface. It flagsextensions/codex/src/app-server/computer-use-marketplace.ts,computer-use-service-path.ts, anddesktop-generation-fingerprint.ts. These files and the guard are unchanged between this PR, its clean base, and the fresh main inspected during landing. The relevant source owner is the Codex filesystem-helper cutover in #158613, against the import-boundary owner from #158313. At that time, no merged owner fix was available; round 2 below incorporates the subsequently landed fix. No clean-base Testbox A/B was completed, so this is not claimed as a reproduced baseline test failure.Stopped under the coordinator's explicit no-owner-fix rule. No CI rerun or bypass was attempted. This lane sent no merge request and native admission recorded no merge outcome. The final remote read showed an external auto-merge request enabled at 2026-09-26T08:27:55Z; it was left untouched. The PR remains open behind the failed required CI gate. Rebase round 1 is published and the native review worktree is retained for recovery. Both landing Testbox leases are stopped.
Landing rebase round 2
The coordinator supplied main fix
f2532a051f7(fix(codex): use public SDK error helpers), which removes the three flagged direct fs-safe imports. Rebased onto fresh main1dbbf6ce6380b8c562bb8a6f27e04083f3b7648a, which contains that fix.git range-diffreports all five commits patch-identical to the preceding PR head: every remaining simplification is kept, no additional hunk is dropped, and no main test is modified. Published head:a5303e7230c5980cf43876e455e2240879c8506d.The coordinator-armed auto-merge request was explicitly retired before replacing the head, as authorized. Re-arming is reserved to the coordinator's watcher. Fresh Blacksmith Testbox proof passed on
tbx_01m3ejw9ng035n884p92462ne5(workflow):pnpm test src/infra/fs-safe-import-boundary.test.ts --maxWorkers=1passed all 23 tests;node scripts/check-changed.mjs --base origin/main --timedpassed;pnpm buildpassed in 8m 4s, including declarations, SDK exports, UI budgets, and CLI bootstrap checks. The wrapper verified sourcea5303e7230c5980cf43876e455e2240879c8506d; the payload checked all 90 changed-file hashes and seven deletions. The command completed with exit 0, and the lease is stopped. The preceding cold source staging took about 19 minutes; a portal visibility-sync warning did not affect the completed remote command.GitHub confirms CI run 36236980361 is running on exact published head
a5303e7230c5980cf43876e455e2240879c8506d. Auto-merge was not re-armed by this lane; the coordinator watcher owns that step after the new head's required CI gate succeeds.