Repository navigation
refactor(channels): consolidate private transport paths - #173128
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 changes before merge. What this changesThis PR consolidates private transport plumbing across four channel plugins and preserves Discord modal role IDs when resolved names are missing. Example: A Discord modal selects roles 111 and 222, but resolved metadata names only role 111 as Maintainers.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep this maintainer-authored PR open: the consolidation is justified, but an incomplete Discord provider fixture causes a verified CI failure. Priority: P2 Before merge
Findings
Tests
Agent review detailsHow this fits togetherChannel plugins translate native events into shared SDK routing, session, and delivery operations, then send replies through their transport clients. flowchart LR
A[Channel events] --> B[Native transport clients]
B --> C[Plugin handlers]
C --> D[Shared SDK owners]
D --> E[Agent and session processing]
E --> F[Channel replies]
Technical reviewBest possible solution: Keep the consolidation and modal-role fix, and complete the Discord provider fixture migration to the native REST contract. Do we have a high-confidence way to reproduce the issue? Source establishes the missing-role-name rendering defect on fetched main, and exact-head CI independently records the introduced provider-fixture failure; no target code was executed during this review. Is this the best way to solve the issue? The existing native transport and SDK owners support the consolidation, and the modal fallback fixes the observed empty-name case without adding configuration or competing policy. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against b53ba16c63a6. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfacePR surface statistics unavailable: the file list is incomplete. 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 15, 2026, 8:51 AM ET / 12:51 UTC. |
a9b0221 to
7917254
Compare
|
Merged via squash auto-merge.
|
…3343) ## What Problem This Solves Channel hot paths repeatedly reconstruct or validate facts their internal owner has already prepared. Several adapters also maintain parallel bookkeeping for the same delivery, preference, or pending-message state. ## User Impact No intended user-visible feature or configuration change. Channel adapters consume prepared internal facts once; security checks, accepted delivery and ordinary restart behavior remain owned by their existing boundary. No operator action is required. ## Why This Change Was Made - Discord uses its existing target resolver directly, carries one prepared channel/role projection, and trusts native Message and schema-validated configuration facts. Voice retains session-instance identity rather than a duplicate realtime counter; receive frames no longer get copied again after MessagePort cloning. - Slack verifies its renderer's existing HMAC before consuming the signed typed plan, rather than rebuilding that plan. Send options and compiled message facts come from their existing owner instead of mirrored declarations and forwarding blocks. - Matrix consumes SDK-hydrated events once, serializes owned delivery/sync facts without preliminary deep copies, and trusts binding snapshots captured inside its serialized persistence queue. - iMessage shares accepted-send bookkeeping and content echo-cache entries. Signal tracks pending inbound entries in one map and consumes validated configuration facts. WhatsApp consumes its mandatory typed admission fact; redundant send-error log/rethrow wrappers are gone. Authorization/effect checks, external-input parsing, FIFO, common restart durability, accepted-work settlement, cache bounds, public schemas/config keys/SDK exports and protocol shapes remain. Telegram is excluded and parked separately pending the required Test Server proof. The standalone Phase E memory backend is untouched. ## Best-effort tradeoffs accepted - An internal consumer mutating a handed-off delivery plan, frame, speaker context, presentation array, or error snapshot can affect its other readers; inspected production consumers only read these owner-held values. Immediate serialization still detaches durable bytes, and shared borrowed cache freezes remain. - A fake native Discord Message with divergent `channelId`, `channel_id`, or raw payload aliases no longer recovers through alternate layouts. The native constructor owns the canonical field; #173128 retired the old transport adapters. External channel payload projection still validates primitive fields. - A fake gateway missing a required typed voice-cache method now fails instead of silently returning no roster. The native gateway contract supplies the method; absence of the gateway itself is still supported. - Duplicate voice states supplied outside GatewayVoiceStateCache's one-state-per-user contract are not deduplicated by a second roster reconstruction. Normal roster ordering and both resource caps remain; the removed second pass came from #166974, not a cited human incident. - A caller passing invalid numeric/config enum types directly into internal typed send/config helpers may fail rather than use a fallback. User config remains schema-validated once; numeric limits, defaults and all valid configuration choices are unchanged. - A process clock rollback/restart can temporarily rank a future-dated model preference ahead of a new choice. Preference ordering is best effort; persisted input validation remains. #169405 and the inspected refactor history do not identify a human incident requiring the removed process-clock defenses. - A JavaScript process at the Date representability limit no longer disables an internal short pairing cache. The existing 30-second TTL and cooldown remain; contemporary clocks behave identically. - An unsupported foreign writer updating Matrix binding storage concurrently is not merged into an already-serialized owner's snapshot. #168485 describes an implementation hazard, not a linked human report; current snapshots are captured after earlier queued touches settle, and that ordering proof remains. - A metadata class with inherited `toJSON` receives normal JSON serialization semantics instead of first being spread into a plain object. The metadata boundary still JSON-normalizes, detaches and strips undefined values; plain record behavior is unchanged. - Discord request and WhatsApp send failures propagate their original error instead of an extra logging/rewrapping layer. No retry, approval, or accepted-receipt behavior is removed. ## Size **519 net production lines removed** (638 added / 1,157 deleted), excluding tests, fixtures, support, generated files, declarations and nonproduction ratchet metadata. Signed repair head: 7abd83c. ## Evidence - Completed initial Discord selection: 9 files, 161 tests passed. - Completed iMessage echo-cache contracts: 1 file, 38 tests passed. - Final focused lint-suppression contracts: 1 file, 3 tests passed. - Matrix focused proof: 3 files, 44 tests passed. Initial Slack proof: 98 passed and one stale internal forwarding assertion failed; the assertion now checks forwarded config, while the existing real downloader contract verifies actual credential use. Corrected Slack replay: 2 files, 50 tests passed, plus lint-suppression contracts passed again (1 file, 3 tests). - Production extension typecheck passed after correcting the Matrix caller's readonly annotation and retaining null-to-undefined conversion at Discord's raw snapshot boundary. - Runtime import cycles: 0. Full Madge import cycles: 0. Formatting and diff whitespace passed. Only shrink-only assertion/max-lines baseline updates are included. - Independent P2 review completed. Two findings proposed restoring shape checks in Slack's typed portable builders; both were declined after tracing raw presentation parsing in normalizeMessagePresentation/normalizeTableBlock/normalizeChartBlock and all production callers. Raw Block Kit parsing and platform semantic limits remain unchanged. - The lint wrapper timed out during SDK boundary declaration preparation at its existing 300-second limit, before producing lint diagnostics. No timeout was raised. The older broad local focused attempts were stopped to release the checkout for corrections; unfinished shards are not reported as passes. Exact-head PR CI remains the broad proof. - The required check-changed invocation initially found stale shrink-only baselines; those entries were pruned. Its later SQLite worker scan made no progress for over 50 minutes and was stopped; targeted types and cycle checks above finished. The committed SDK API comparison was stopped without a verdict after roughly an hour under severe host load; its helper worktrees were cleaned up. No SDK source, entrypoint metadata or dependency surface is changed. This is a local API-check gap, not a passing result. ### CI repair attribution The original exact-head run38780915649 on b2dbcaf exposed owned fixture/options failures, not inherited main failures. The repair preserves every behavior assertion: the shared fake Discord client now supplies the required native Gateway roster contract through the real voice-state cache, including null for an unknown roster, and Slack no longer forwards positional text or an absent media-roots key as send options. Fresh independent P2 review of this two-file repair was scoped-clean; formatting and whitespace passed. Slack reply replay:29 tests passed, plus three suppression contracts. The redundant local voice build was stopped during prerequisite preparation after the current-head hosted voice/transcript jobs passed; local exit2 is not a passing replay. Current-head jobs116608971711,116608971178,116608970950,116608970910 and116608970865 passed, including the repaired native fixture and Slack reply families. Exact-head required CI gate passed in run38788900607/job116613171952 and the aggregate status passed in run38790431500. No old CI jobs were rerun and no timeout was changed. | Exact-head failed job | Attribution / repair | | --- | --- | |116581625877 checks-node-compact-small-2-2|Owned shared Gateway fixture; transcript audio family.| |116581625782 checks-node-changed-compact-large-21|Owned shared Gateway fixture; transcript lifecycle family.| |116581625694 checks-node-changed-extensions-bundle-1-4|Owned shared Gateway fixture; voice receive/session/recording families.| |116581625172 checks-node-changed-extensions-bundle-1-3|Owned shared Gateway fixture; realtime/consult/transcript families.| |116581625548 checks-node-changed|Owned shared Gateway fixture; targeted voice-runtime E2E.| |116581625674 checks-node-changed-extensions-bundle-2-1|Owned Slack send-options projection; existing strict assertion retained.| |116599822613 openclaw/ci-gate|Aggregate rejection for the six owned suite failures above; no inherited-only exception claimed.| An earlier PR-context failure116574789633 was repaired by the authored problem/evidence headings; its subsequent context run passed. Superseded auto-response/context cancellations are advisory, not missing suite proof. The repair head has its own completed hosted CI; prior-head green jobs are not represented as current-head evidence. - A proposed Telegram storage-sanitizer deletion exposed undefined-field encoding failures and was fully reverted before parking. It is not part of this PR. Local proof is isolated from operator state. Hosted CI on the exact submitted head is the broad gate. No live channel or platform claim is made.
…nclaw#173343) ## What Problem This Solves Channel hot paths repeatedly reconstruct or validate facts their internal owner has already prepared. Several adapters also maintain parallel bookkeeping for the same delivery, preference, or pending-message state. ## User Impact No intended user-visible feature or configuration change. Channel adapters consume prepared internal facts once; security checks, accepted delivery and ordinary restart behavior remain owned by their existing boundary. No operator action is required. ## Why This Change Was Made - Discord uses its existing target resolver directly, carries one prepared channel/role projection, and trusts native Message and schema-validated configuration facts. Voice retains session-instance identity rather than a duplicate realtime counter; receive frames no longer get copied again after MessagePort cloning. - Slack verifies its renderer's existing HMAC before consuming the signed typed plan, rather than rebuilding that plan. Send options and compiled message facts come from their existing owner instead of mirrored declarations and forwarding blocks. - Matrix consumes SDK-hydrated events once, serializes owned delivery/sync facts without preliminary deep copies, and trusts binding snapshots captured inside its serialized persistence queue. - iMessage shares accepted-send bookkeeping and content echo-cache entries. Signal tracks pending inbound entries in one map and consumes validated configuration facts. WhatsApp consumes its mandatory typed admission fact; redundant send-error log/rethrow wrappers are gone. Authorization/effect checks, external-input parsing, FIFO, common restart durability, accepted-work settlement, cache bounds, public schemas/config keys/SDK exports and protocol shapes remain. Telegram is excluded and parked separately pending the required Test Server proof. The standalone Phase E memory backend is untouched. ## Best-effort tradeoffs accepted - An internal consumer mutating a handed-off delivery plan, frame, speaker context, presentation array, or error snapshot can affect its other readers; inspected production consumers only read these owner-held values. Immediate serialization still detaches durable bytes, and shared borrowed cache freezes remain. - A fake native Discord Message with divergent `channelId`, `channel_id`, or raw payload aliases no longer recovers through alternate layouts. The native constructor owns the canonical field; openclaw#173128 retired the old transport adapters. External channel payload projection still validates primitive fields. - A fake gateway missing a required typed voice-cache method now fails instead of silently returning no roster. The native gateway contract supplies the method; absence of the gateway itself is still supported. - Duplicate voice states supplied outside GatewayVoiceStateCache's one-state-per-user contract are not deduplicated by a second roster reconstruction. Normal roster ordering and both resource caps remain; the removed second pass came from openclaw#166974, not a cited human incident. - A caller passing invalid numeric/config enum types directly into internal typed send/config helpers may fail rather than use a fallback. User config remains schema-validated once; numeric limits, defaults and all valid configuration choices are unchanged. - A process clock rollback/restart can temporarily rank a future-dated model preference ahead of a new choice. Preference ordering is best effort; persisted input validation remains. openclaw#169405 and the inspected refactor history do not identify a human incident requiring the removed process-clock defenses. - A JavaScript process at the Date representability limit no longer disables an internal short pairing cache. The existing 30-second TTL and cooldown remain; contemporary clocks behave identically. - An unsupported foreign writer updating Matrix binding storage concurrently is not merged into an already-serialized owner's snapshot. openclaw#168485 describes an implementation hazard, not a linked human report; current snapshots are captured after earlier queued touches settle, and that ordering proof remains. - A metadata class with inherited `toJSON` receives normal JSON serialization semantics instead of first being spread into a plain object. The metadata boundary still JSON-normalizes, detaches and strips undefined values; plain record behavior is unchanged. - Discord request and WhatsApp send failures propagate their original error instead of an extra logging/rewrapping layer. No retry, approval, or accepted-receipt behavior is removed. ## Size **519 net production lines removed** (638 added / 1,157 deleted), excluding tests, fixtures, support, generated files, declarations and nonproduction ratchet metadata. Signed repair head: 7abd83c. ## Evidence - Completed initial Discord selection: 9 files, 161 tests passed. - Completed iMessage echo-cache contracts: 1 file, 38 tests passed. - Final focused lint-suppression contracts: 1 file, 3 tests passed. - Matrix focused proof: 3 files, 44 tests passed. Initial Slack proof: 98 passed and one stale internal forwarding assertion failed; the assertion now checks forwarded config, while the existing real downloader contract verifies actual credential use. Corrected Slack replay: 2 files, 50 tests passed, plus lint-suppression contracts passed again (1 file, 3 tests). - Production extension typecheck passed after correcting the Matrix caller's readonly annotation and retaining null-to-undefined conversion at Discord's raw snapshot boundary. - Runtime import cycles: 0. Full Madge import cycles: 0. Formatting and diff whitespace passed. Only shrink-only assertion/max-lines baseline updates are included. - Independent P2 review completed. Two findings proposed restoring shape checks in Slack's typed portable builders; both were declined after tracing raw presentation parsing in normalizeMessagePresentation/normalizeTableBlock/normalizeChartBlock and all production callers. Raw Block Kit parsing and platform semantic limits remain unchanged. - The lint wrapper timed out during SDK boundary declaration preparation at its existing 300-second limit, before producing lint diagnostics. No timeout was raised. The older broad local focused attempts were stopped to release the checkout for corrections; unfinished shards are not reported as passes. Exact-head PR CI remains the broad proof. - The required check-changed invocation initially found stale shrink-only baselines; those entries were pruned. Its later SQLite worker scan made no progress for over 50 minutes and was stopped; targeted types and cycle checks above finished. The committed SDK API comparison was stopped without a verdict after roughly an hour under severe host load; its helper worktrees were cleaned up. No SDK source, entrypoint metadata or dependency surface is changed. This is a local API-check gap, not a passing result. ### CI repair attribution The original exact-head run38780915649 on b2dbcaf exposed owned fixture/options failures, not inherited main failures. The repair preserves every behavior assertion: the shared fake Discord client now supplies the required native Gateway roster contract through the real voice-state cache, including null for an unknown roster, and Slack no longer forwards positional text or an absent media-roots key as send options. Fresh independent P2 review of this two-file repair was scoped-clean; formatting and whitespace passed. Slack reply replay:29 tests passed, plus three suppression contracts. The redundant local voice build was stopped during prerequisite preparation after the current-head hosted voice/transcript jobs passed; local exit2 is not a passing replay. Current-head jobs116608971711,116608971178,116608970950,116608970910 and116608970865 passed, including the repaired native fixture and Slack reply families. Exact-head required CI gate passed in run38788900607/job116613171952 and the aggregate status passed in run38790431500. No old CI jobs were rerun and no timeout was changed. | Exact-head failed job | Attribution / repair | | --- | --- | |116581625877 checks-node-compact-small-2-2|Owned shared Gateway fixture; transcript audio family.| |116581625782 checks-node-changed-compact-large-21|Owned shared Gateway fixture; transcript lifecycle family.| |116581625694 checks-node-changed-extensions-bundle-1-4|Owned shared Gateway fixture; voice receive/session/recording families.| |116581625172 checks-node-changed-extensions-bundle-1-3|Owned shared Gateway fixture; realtime/consult/transcript families.| |116581625548 checks-node-changed|Owned shared Gateway fixture; targeted voice-runtime E2E.| |116581625674 checks-node-changed-extensions-bundle-2-1|Owned Slack send-options projection; existing strict assertion retained.| |116599822613 openclaw/ci-gate|Aggregate rejection for the six owned suite failures above; no inherited-only exception claimed.| An earlier PR-context failure116574789633 was repaired by the authored problem/evidence headings; its subsequent context run passed. Superseded auto-response/context cancellations are advisory, not missing suite proof. The repair head has its own completed hosted CI; prior-head green jobs are not represented as current-head evidence. - A proposed Telegram storage-sanitizer deletion exposed undefined-field encoding failures and was fully reverted before parking. It is not part of this PR. Local proof is isolated from operator state. Hosted CI on the exact submitted head is the broad gate. No live channel or platform claim is made.
Remove the adoption initializer and old-shape simulation added for the prior review: PR openclaw#173128 deliberately requires a restart when replacing historic source modules across registry shapes. The factory keeps its runtimeByManager initialization, and the retained-owner refusal fix plus its real plugin-instance proof are unchanged.
What Problem This Solves
Consolidates private channel transport paths and removes obsolete defensive machinery in Discord, Telegram, Slack, and Matrix.
User Impact
Discord modal role selections retain their selected role IDs when Discord omits some or all resolved role metadata, rather than rendering blank values. No feature removal, configuration, protocol, or persisted-format changes. Authorization at effects, normal shutdown write settlement, conversation continuity, transport recovery, and bounded-resource protections remain. Rare recoverable projection or malformed-private-caller failures are explicitly best effort below. Standalone session memory Phase E is untouched.
Why This Change Was Made
Use the existing transport and SDK owners rather than maintaining parallel adapters: native Discord message/interaction facts, complete private Telegram dependencies, native Slack socket clients, straight-line slash registration, and shared Matrix boundary coercion/CLI execution.
Net production LOC: 532 removed in the reviewed candidate; tests, fixtures, test-support, generated files, and declarations excluded. Only exact shrink-only assertion/environment/max-lines inventory updates are included outside the four channel plugins.
Best-effort tradeoffs accepted
f59a0352b31/ feat(discord): route online presence arrivals to agents #107451 used synthetic overlapping-listener proof, not a human seed-race incident. A coincident reset can briefly leave a stale in-memory baseline; later events repair it. Current policy/guild/stopped/reconnect checks still gate the visible effect.1c6aca2ada8/ fix(discord): avoid blocking presence event handling #149576 synthetic delayed claims. Retain one FIFO chain per user and drain its latest promise at shutdown; later work may wait for earlier work across reconnect instead of bypassing it. No admitted write is abandoned.4de1606f4c6cites no human incident and predates native transport ownership (refactor(discord): internalize Discord client #74329). Old sockets may finish closing alongside replacements within ws's existing close bound; current Gateway callback identity checks remain.7e5cef29a03,cae8e8d6e8b, synthetic getter regressionf97c6f8a049, fix: tolerate partial discord channel metadata #68953) is unreachable through current plain/native producers. Malformed private getters may now throw; absent real parent metadata still uses the existing fetch path.1e6844b71aa/ fix(discord): cache unavailable thread starters #128653 added it with caching/coalescing; linked [Bug]: Discord thread-starter cache never caches misses - deleted or inaccessible starters cause one REST GET per inbound thread message #128532 is a source/mock reproduction, not an actual-use stale-map report. The private map has no replacement or invalidation writer, so hypothetical external mutation is unsupported; negative caching, normal coalescing, and route/account isolation stay.b310493c092/ refactor(discord): keep thread-binding storage off the gateway event loop #156627 explicitly describes a synthetic old-shape source-reload control. Replacing a historic source module across that shape requires restart, as compiled upgrades already do; normal shared startup/FIFO/drain stays.f0adbd48e8binternalization). Malformed private fake clients fail clearly rather than silently omitting timeout metadata.getRoleSelectalready callsgetStringSelect. The old adapter (005b25e9d42, internalizationf0adbd48e8b) cites no malformed-native-object incident. Malformed private instances fail normally; optional IDs and outer field-error reporting stay.5915d7cb6b1,6bcd9a801ab,cf3ae2612b1, and1337be30636introduced test/import-cost seams alongside complete production defaults, not partial-production incidents. Private callers must provide complete typed dependencies. Whole-object lazy loading, narrow native dependencies, and lazy login/send binders stay; the production login binder is explicitly carried at its producer.06a7e1e8ce4/ Telegram: threaded conversation support #1597 added diagnostic convenience, not a cyclic-update incident. Network JSON cannot contain cycles; a custom cyclic injector may fail diagnostic formatting, which the existing caller catches before continuing processing. Redaction and output bounds stay.71bb516084f/ refactor(telegram): persist topic bindings through SQLite workers #156688 describes historic source-reload carry, not a human missing-map incident. Such an old-shape source replacement requires restart; live authority, atomic mutation, persistence acknowledgement, and shutdown settlement stay.341ae21d038/ feat(slack): handle global and message shortcuts #94881 accompanied a feature, not missing-method incident; older probes predate refactor: move Slack channel implementation to extensions/ #45621. Malformed private test doubles now fail clearly. The real external-options fallback from human [Bug]: Slack Socket Mode provider crash-loops on startup with "Cannot read properties of undefined (reading 'listeners')" #21715 / fix(slack): guard Socket Mode listeners access during startup #28702 stays.1d9530cc4b0/ [AI-assisted] fix(slack): enable native socket reconnect #78158 supplied speculative SDK-shape compatibility; native construction always creates a fresh required client and both SDK callbacks are async. Unsupported monkeypatches may fail directly. Real reconnect fixes for human Slack socket mode connection does not recover after transient DNS failure (same root cause as #13506) #27077 and shutdown protection Slack socket-mode: orphaned ping intervals leak file descriptors and spam error log #56508 remain.a968d15f638/ feat(slack): enable Enterprise Grid identity, DMs, routing, actions, approvals, and presence #121373 added alternate private injection paths; the only runtime producer already supplies the workspace-aware resolver. Malformed callers fail types/directly; Enterprise Grid selection remains.9317aadaa2f/ feat(slack): add opt-in scoped presence events #108510 checks eligibility at its sole producer. Trust that prepared fact and publish one fresh target while retaining participants; no valid-input behavior tradeoff.3afef2d504eadded it with reaction tools, later moved in refactor: move Slack channel implementation to extensions/ #45621. The unchanged empty Promise.all and result projection already return [] without transport calls; this structural deletion accepts no new edge case.a91553c7cf6was test consolidation, later build: fix ineffective dynamic imports with lazy boundaries #33690/fix(plugins): native commands execute the selected plugin #121544 preserved the local guard without a missing-runtime human incident. Early mode returns make absence impossible on the native path; lazy single mode and opaque selected-plugin identity stay.94693f7ff036already supplied the required method; no missing-method human incident. Malformed private clients fail through existing lookup-error handling.Evidence
Reviewed signed head:
7917254ea517771a4f53c1775562adc3cd4c2267(conflict-only rebase of the reviewed repair).Final exact-head CI 38739640719 is green. Complete census: 126 check runs, 69 successes, 1 neutral CodeQL, 55 skips, zero failures, and 1 cancelled superseded context/evidence run whose actual check and cleanup steps all succeeded; its replacement also succeeded. The required
openclaw/ci-gatepassed. No CI rerun or admin exception.Production and test extension type graphs pass; runtime-value and static/madge cycle checks both report zero cycles. Exact inventories pass: assertions 2692 files / 6274 grandfathered assertions, max-lines 532, environment references 453/453. Formatting and whitespace checks pass; the scoped changed-check plan was inspected (not a full local check-changed pass). Final focused channel configs passed: Discord 13 files / 166 tests, database-worker 10 / 194, Telegram 3 / 30, Matrix 1 / 4, Slack 3 / 64. This includes both new native modal-role regressions and the corrected Slack presence fixture.
Fresh independent P0-P2 review of the additional 133-net-line structural delta and adjacent modal fix completed scoped-clean. The modal defect was reproduced through native interaction construction and text formatting with valid omitted/incomplete resolved-role metadata. The new regression exercises that native boundary, without a live Discord/API claim.
The reviewed 399-line first commit has passing focused Discord 17 files / 253 tests, database-worker 12 / 209, Telegram 7 / 74, and Matrix 2 / 33. Slack initially had 324 passes and one fixture-migration failure: constructing a fresh sequential mock per client resolution prevented an away-to-active transition. That fixture now preserves the same mock across polls, with assertions unchanged, and its corrected final-source replay passed. A required APIUser fixture field found by the test type graph was also corrected; the graph then passed. The first commit's independent review completed with two findings declined against actual ownership/control flow; it was not reported as a clean verdict.
Initial exact-head CI run 38735556376, attempt 1, failed on four underlying jobs plus the aggregate gate. Each failure was investigated rather than retried:
options.timeout, stopping command deployment before four existing assertions. Supply the normalized 15-second fact to both fakes; assertions unchanged.The repair is test-only, leaving net production removal unchanged. Its extension test types, formatting, and mock-export ratchet pass. Fresh independent P0-P2 repair review completed scoped-clean. Focused repair replay passed Discord 2 files / 32 tests, Telegram database-worker 1 / 19, and Matrix 3 / 67 (including CLI and retained privacy boundary). Required suppression replay still reports only the documented inherited oc-path mismatch. No CI rerun was requested.
GitHub reported CONFLICTING on the repaired head, so rebased onto
ad95e29cdac09d711f5fd1ff3be44a13b4055a5e. Only conflict was Matrix's retired preview test versus main's updated non-content assertion; main's version is retained byte-for-byte. Range-diff also drops an already-landed baseline shrink, with no production delta. Conflict proof passes: Matrix 2 files / 66 tests, suppression 3/3, extension test types, runtime cycles zero, static/madge cycles zero, formatting and whitespace.Known gaps/failures: the earlier inherited oc-path suppression mismatch passes after the conflict-only rebase onto main. Local typed lint declaration preparation exceeded its existing deadline. A same-provider remote attempt failed in its local command-group supervisor before payload execution and its exact lease was confirmed completed. No remote lint proof is claimed. An earlier untouched bot.test settlement timeout remains unclassified; do not treat later passing cases as a repair. No retries, skips, timeout increases, or CI reruns were added.
Coverage and retained boundaries
Discovery started with three-day additions, then fourteen-day history, then largest-file-first passes. The task-local y14 ledger records file/line, mechanism, introducing commit/PR, human-versus-synthetic evidence, and each KEEP/removal decision.
Keep examples include human Discord session/history reports #16333/#16979, live policy report #140550, archived-thread recovery #111148, Slack CJS interop #45950/#45953, Slack external-menu startup #21715/#28702, Matrix recovery-key verification #70213/#70401, actual transport quiet windows, ambiguous-send receipts/idempotency, crypto ownership, and normal write settlement. No recent dormant feature foundation was removed. Matrix's two object-reader consolidations retain all external shape/relation/string checks, including existing array acceptance.