Skip to content

refactor(channels): deslop channels - #166106

Merged
steipete merged 6 commits into
mainfrom
deslop/l406-err-comments-channels-20261005
Oct 7, 2026
Merged

steipete merged 6 commits into
mainfrom
deslop/l406-err-comments-channels-20261005

Conversation

@steipete

@steipete steipete commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

What problem this solves

Channel plugins repeat normalization after canonical owners, carry unnecessary forwarding layers, and retain comments that restate their code. This batch removes 1,010 net production lines (tests, fixtures, support, documentation, and generated files excluded).

What changed

  • Reuse admitted targets, accounts, allowlists, sender facts, documents, and reply budgets across the channel plugins. Retain ingress validation, authorization, generation fences, lazy loading, cleanup, partial-delivery outcomes, and useful diagnostic context.
  • Put single-caller assembly and forwarding logic into its existing owner, including Zalo delivery callbacks, Twitch Markdown preparation, Signal/iMessage setup prompts, Teams file-consent and feedback writes, and the Teams QA command callback.
  • Recognize Matrix's synthetic pagination cursor by exact canonical encoding equality. Limit the account environment codec to the characters admitted by the account-ID owner, retaining canonical round-trip validation and one-pass decoding.
  • Simplify Feishu card-element collection and LINE template-limit arguments. Delete narration while retaining comments explaining ordering, ownership, platform constraints, security, and cleanup.

Config keys, persisted data, wire payloads, model-facing descriptions, error text, and visible behavior remain unchanged. No dependency or public SDK additions.

Fixes found along the way

The original head incorrectly passed absent WhatsApp media through a generic string normalizer, creating the URL "undefined". This recovery restores the canonical media resolver. The 16 existing failed cases cover the regression across ordinary sends, auto-replies, payload formatting, and delivery recovery.

Three Zalo image fixtures raced database-worker startup. They now await the next-poll completion signal, which follows settled processing, while retaining the original assertions and cleanup. The conflict-only rebase preserves those completion gates instead of adopting main's longer polling waits. Zalo delivery-helper and Twitch formatting assertions now exercise their existing monitor/send boundaries; no regression coverage was dropped. Matrix has two additional escape-shaped account-name cases.

Evidence

Fresh Blacksmith Testbox validation passed on the recovery candidate: 587 focused tests across 26 files (256.72 seconds), production and test extension typechecks, the mock-export baseline owner, the suppression check, and 1,140 plugin-contract tests across 48 files (211.88 seconds). Candidate runtime and Madge cycle checks both report zero. Clean main 3b6b191fab7e637368e7606f1c5b18723f7f4a79 also reports zero runtime and Madge cycles, so the candidate adds no cycle component. Independent review found no actionable P0–P2 findings. The full changed-file gate passed, including extension/script lint, all three Knip export scans, typechecks, ratchets, plugin boundaries, and runtime-cycle checks. The three repaired Zalo cases each passed 20 Linux executions (60 executions total; 52.68 seconds). No retries, timeout increases, or source-level skips were added. Hosted CI run 37553483673 passed on exact head dca5c00729fe770cb909748ba4d50559dabf2131, including the aggregate gate. The old head's failures were all PR-owned: WhatsApp media regression, two extension-lint stripes, the stale Teams mock-export baseline, and the aggregate gate. The recovery repairs each cause and removes the obsolete baseline row. The changed-file gate also identified two assertion-safety counts that could shrink after cast removal; both exact reductions are committed and the gate subsequently passed. The old run had no cancelled proof jobs; its cancelled jobs were comment automation.

The original coverage sweep read all 636 production files over 200 lines. Coverage: part 1, part 2, part 3.

Remote proof used Blacksmith Testbox tbx_01m49mn620eh7t2nazhv5zf1n9. Its session ended with exit 255 after the completed changed-file and repetition checks, while installing dependencies for an auxiliary clean-main comparison. A replacement lease completed before receiving that comparison; only the missing main cycle comparison uses the authorized low-priority local fallback. No failed or interrupted command is counted as a passing whole run.

Signed candidate: dca5c00729fe770cb909748ba4d50559dabf2131; its Git tree exactly matches the remote tree validated by the final changed-file gate. Both freshly fetched main and the newer local main reference merge cleanly with this candidate; no additional rebase is needed.

All task-owned Testbox leases are stopped. The isolated local main comparison completed successfully at nice -n 15 and its temporary worktree was removed.

@clawsweeper

clawsweeper Bot commented Oct 6, 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 commented Oct 6, 2026

Copy link
Copy Markdown
Contributor Author

Channel production coverage (1/3)

Baseline: 2030657. All 636 listed production files over 200 lines were read in full. Tests, support, docs, and generated files are excluded. Rows are sorted largest first across the three parts.

Lines File Status Finding
1822 extensions/feishu/src/bot.ts READ APPLIED: remove repeated broadcast-agent normalization (both callers use normalized broadcastAgents), repeated sender-ID trim (parseFeishuMessageEvent/normalizeOptionalString own normalization), normalization callback forwarders and two inline default comments. No 24h history or live open-PR overlap. Retained DM reauthorization after awaits, loop identity guards, per-agent replay claims, quote/history visibility checks and all outcome/cleanup catches.
1753 extensions/feishu/src/channel.ts READ APPLIED: remove recursive predicate forwarding closures and return direct Boolean conjunction from isSupportedFeishuDirectConversationId. Personally read all 1753 lines. Live PR121463 is MERGED as b8b6805; its only change corrects chatTypes and is untouched. No open-PR overlap. Lazy sender loading/error mapping, target/account authorization, handoff checks, attachment aliases and fallback markers retain real contracts.
1630 extensions/slack/src/monitor/message-handler/prepare.ts READ Retained admission, mention routing, history currentness and outcome catches; each owns a distinct boundary.
1587 extensions/feishu/src/reply-dispatcher.ts READ APPLIED earlier: removed redundant thread predicate, repeated block-streaming boolean mapping, Promise.resolve and callback forwarders. Remaining asynchronous catches record partial visibility, claim settlements or guarantee typing/CardKit cleanup; generations and idle passes own concurrent stream finalization. Delayed variable initialization merely relocates declarations and was not counted as simplification.
1463 extensions/imessage/src/monitor/monitor-provider.ts READ Retained: lifecycle cleanup, durable admission and approval fences explain most complexity.
1453 extensions/zalouser/src/zalo-js.ts READ Removed re-normalization in private ensureApi/invalidateApi/resetQrLogin and nested QR abort swallow duplicated by sole resetQrLogin caller catch; preserve persistence/listener cleanup catches.
1356 extensions/signal/src/monitor/event-handler.ts READ Retained: retry catches preserve abort, durable-claim settlement and ordered debouncer ownership; removable narration only at reaction-removal return.
1333 extensions/tlon/src/monitor/index.ts READ Removed stale first-thread-only claim and narrating comments; retained logged error propagation and live ingress authorization.
1255 extensions/slack/src/send.ts READ Removed private account-ID re-normalization wrapper and repeated text trim after the send entry point normalized it.
1229 extensions/slack/src/monitor/slash.ts READ Removed bound-method forwarding local at Web API response dispatch; all fallbacks and budgets retained.
1128 extensions/feishu/src/monitor.comment.ts READ APPLIED: reuse embeddedTargetReply, remove implied empty-array predicate, use replyId normalized by sole event owner, remove redundant final undefined fallback. Live PR165883 is MERGED as 90c6934; its diff derives fetchDriveCommentContext return type and preserves wire validation. No open-PR overlap. Retry/pagination cadence, failure logs, linked-document resolution, fetched response validation and all prompt output remain unchanged.
1108 extensions/telegram/src/channel.ts READ Retained asynchronous plugin adapter boundaries and token validation; owners may be supplied by compatible host runtimes.
1049 extensions/whatsapp/src/connection-controller.ts READ Lifecycle, ownership release, credential persistence, retry outcomes, and teardown catches are substantive; keep. Recent channel sweep #165718, skip further overlapping refactor.
1037 extensions/slack/src/monitor/events/interactions.block-actions.ts READ Retained actor validation, legacy persisted control handling and visible failure/cleanup outcomes.
1008 extensions/imessage/src/monitor/inbound-processing.ts READ Retained: sender authorization and echo scopes are distinct contracts.
997 extensions/discord/src/monitor/message-handler.preflight.ts READ Policy/current-generation guards follow awaits; hydration and history catches preserve recorded outcomes.
996 extensions/feishu/src/docx.ts READ No further sound reduction: API shape normalization, ordered writes, fallback conversion and per-image failures preserve provider contracts.
983 extensions/zalo/src/monitor.ts READ deliverZaloReply sole caller passes tableMode off after durable payload table conversion; remove unused table-mode knob and identity conversion, preserving partial-send and lifecycle catches.
976 extensions/slack/src/action-runtime.ts READ Retained delegated read authorization, lazy runtime owners and thread-consumption tracking.
934 extensions/imessage/src/send.ts READ Retained: catches maintain partial receipts, echo cleanup and transport fallback.
919 extensions/telegram/src/bot-message-context.session.ts READ Reply-context projections preserve authenticated quote and prompt ownership; no redundant catches.
910 extensions/telegram/src/message-cache.ts READ Retained/bounded state promotion, CAS merges, and cache normalization preserve storage and reply-context contracts; no safe simplification identified.
909 extensions/zalouser/src/monitor.ts READ Access rechecks fence dispatch and partial-send/lifecycle catches record outcomes; no further sound catch/comment removal without altering those contracts.
908 extensions/msteams/src/channel.ts READ REJECTED: null-as-never is a non-obvious fallback sentinel; the comment explains dispatch ownership, not merely the return statement.
907 extensions/telegram/src/bot/delivery.replies.ts READ Removed dead private pin field and optional checks after the canonicalizer guarantees a reply object.
891 extensions/whatsapp/src/auto-reply/monitor/inbound-dispatch.ts READ Retained: media coalescing and async delivery forwarding preserve the delivery owner; partial-delivery/finalization contracts remain substantive.
888 extensions/telegram/src/action-runtime.ts READ Removed initialize-then-destructure and null-to-undefined coercion after canonical parameter readers.
872 extensions/telegram/src/draft-stream.ts READ Catches own reply reservation, retry budgets and provider observations; preserve lifecycle.
853 extensions/mattermost/src/mattermost/slash-http.ts READ Keep token/current-registration checks and catches: each records sanitized diagnostics, bounded failure cache, fallback, or HTTP/user outcome; no sound broad reduction.
849 extensions/feishu/src/doctor.ts READ Use one optional transcript path instead of a singleton array, loops and a Set; preserve confinement, findings and artifact order.
849 extensions/slack/src/monitor/provider.ts READ Collapsed duplicate in-flight promise guard into nullish assignment and removed argument alias; lifecycle and log bytes retained.
828 extensions/discord/src/monitor/model-picker.view.ts READ Rendering branches preserve Discord row/custom-ID limits and stale runtime selection; tiny guard reductions only, no robust structural simplification.
822 extensions/feishu/src/outbound.ts READ APPLIED earlier: deleted stale Scheme A label. Remaining catches preserve acceptance receipts before fallible callbacks and prevent fallback sends after accepted media; direct-send failure markers, sticky thread/fanout behavior, document-comment fallback and voice visibility policy have distinct user-visible contracts.
809 extensions/mattermost/src/channel.ts READ Keep media trimming: SDK resolvePayloadMediaUrls returns original untrimmed media arrays; lazy runtime wrappers preserve cold imports, action checks bind authority, and no broad reduction remains.
795 extensions/slack/src/channel.ts READ Retained plugin adapter registrations, lazy entrypoints and distinct routing/identity policy owners.
790 extensions/imessage/src/actions.ts READ APPLIED: reuse the normalized CLI path already prepared for probe and runtime options.
783 extensions/telegram/src/fetch.ts READ No sound catch removal: proxy initialization, retry classification, cooldown and dispatcher cleanup are transport contracts
767 extensions/slack/src/monitor/message-handler/dispatch-progress.ts READ Retained native append ordering, failed-delivery state and per-turn cleanup; comments explain necessary semantics.
752 extensions/discord/src/voice/voice-runtime.ts READ Voice generation, capture, and queued join guards are lifecycle invariants; trivial async forwarding arrows only.
750 extensions/mattermost/src/mattermost/client.ts READ Keep request/body catches: cancellation cleanup, secret redaction, post-acceptance partial receipts, and retry Error normalization are contracts; REST wrappers own endpoint encodings.
743 extensions/matrix/src/matrix/sdk/client-base.ts READ Retained crypto authority, concurrent startup/stop settlement and snapshot durability; adjacent checks cover callbacks.
736 extensions/signal/src/client-container.ts READ Retained: catches bound untrusted response bodies and preserve websocket drain/settlement; protocol conversion comments explain external constraints.
731 extensions/discord/src/voice/realtime-speaker-session.ts READ Bridge lifecycle, capture ownership and recording cleanup require the existing catches.
723 extensions/line/src/bot-handlers.ts READ APPLIED: direct callbacks to three async owners; retain resolveAccess async boundary because getLineRuntime can throw before a Promise exists.
714 extensions/discord/src/voice/realtime-consults.ts READ Pending delivery state, provider generations, and result catches enforce consultation ownership and delivery; no safe removal.
711 extensions/telegram/src/bot-message-dispatch-delivery.ts READ Retained async callback boundaries plus receipt and prompt-context error ownership.
700 extensions/discord/src/monitor/native-command-model-picker-interaction.ts READ Retained async callback boundaries; changing return-await alone does not remove indirection or improve the typed contract.
695 extensions/discord/src/monitor/native-command.ts READ Repeated authority checks fence awaited work; command adapters retain distinct UI contracts.
694 extensions/discord/src/voice/realtime-playback.ts READ Playback clocks, retained speech, and interruption guards enforce audio lifecycle; comments explain these invariants.
689 extensions/imessage/src/monitor/sanitize-outbound.ts READ APPLIED: delete narrating blank-line-collapse comment; preserve all parser/security logic and WHY comments.
688 extensions/telegram/src/bot-message-dispatch-reply.ts READ No sound structural simplification: buffered settlement, supersede fences and final-delivery ordering require state transitions
684 extensions/team-reports/src/store.worker.ts READ SQLite worker admission, decoding, bounded aggregation and cleanup errors retain state contracts.
681 extensions/discord/src/monitor/listeners.ts READ Presence generations, cooldown claims, bounded queues, and catches preserve durable outcomes; no sound structural deletion.
680 extensions/line/src/send.ts READ No sound lens reduction beyond tiny forwarding syntax: provider catches preserve retry/partial-delivery semantics; nested identity catches cache failures and keep inbound turns alive.
680 extensions/matrix/src/matrix/client/config.ts READ Retained secret precedence, auth lineage, device repair and abort checks; failure mapping is user-visible.
680 extensions/telegram/src/bot-handlers.callback-router.ts READ Callback catches classify retryable replay versus terminal outcomes; retain exact errors.
679 extensions/discord/src/monitor/message-handler.context.ts READ Context construction is direct; repeated current checks follow awaits and enforce policy/session authority.
678 extensions/feishu/src/monitor.transport.ts READ APPLIED earlier: deleted WS-start narration. Remaining catches map HTTP/transport outcomes or clean up sockets; timestamp/signature/prototype guards protect untrusted ingress, separate pre-auth slots prevent capacity capture, and route cleanup drains pending responses without clearing a successor identity.
674 extensions/signal/src/config-compat.ts READ no safe reduction found: distinct migration validation/probe/port-allocation phases protect account precedence and pending outcomes; history is July 2026 or newer.
671 extensions/telegram/src/rich-blocks.ts READ No sound structural simplification: nested range owners and HTML/Markdown fallback preserve wire rendering; comments explain invariants
670 extensions/msteams/src/monitor.ts READ Removed private resolveAllowlistUsers empty-input guard already enforced by both callers; auth and shutdown catches remain.
669 extensions/discord/src/channel.ts READ Lazy loaders and diagnostics catches preserve boundaries and visible outcomes; only redundant optional access after a truthy parsed check.
668 extensions/feishu/src/media.ts READ RETAINED: catches implement malformed-header fallback, original-error-preserving 502 resource retry, voice transcode fallback or optional duration omission. asHeaderMap rejects the entire unsupported header shape, so dropping it changes metadata behavior; repeated size checks straddle transcoding and live send-authority gates. UTF-8 filename history explains literal provider display-name behavior and is retained.
668 extensions/nostr/src/nostr-bus.ts READ Relay metrics, cursor durability, pre-crypto checks and cleanup own recorded outcomes; retained circuit-breaker and relay-weighting explanations.
667 extensions/line/src/bot-message-context.ts READ No sound lens cleanup: normalization reads external webhook/config values; comments explain binding precedence, sticker facts, stable offsets, names and quote ownership.
664 extensions/telegram/src/bot-native-command-menu.ts READ Menu synchronization retains provider text limits, locale cleanup and durable publication intent.
662 extensions/slack/src/monitor/replies.ts READ Removed private one-use delivery-plan mirror type and reused existing suffix sum instead of reducing the same call budget twice.
662 extensions/whatsapp/src/inbound/message-delivery.ts READ Durable admission, replay preparation, receipts, and shutdown catches encode outcomes or cleanup; no safe catch removal.
660 extensions/discord/src/monitor/thread-bindings.manager.ts READ Removed impossible config truthiness guards and one-use removed-binding alias; kept live authority checks.
658 extensions/slack/src/actions.ts READ Removed two redundant attachment/metadata narrations; transport scope and accepted-send handling retained.
655 extensions/signal/src/channel.ts READ no safe broad reduction found: lazy send/probe/monitor loaders are genuine cold boundaries; target catches map to null/error outcomes and formatted text/media differ in chunk delivery.
654 extensions/discord/src/actions/runtime.messaging.shared.ts READ No sound simplification: read ancestry and fallback checks enforce channel security
652 extensions/matrix/src/onboarding.ts READ Retained setup field validation, distinct prompts and optional lookup fallback; no safe broad simplification.
650 extensions/slack/src/monitor/message-handler/dispatch.ts READ Retained delivery outcome, preview lifecycle, session settlement and failure notices; catches own cleanup.
648 extensions/clickclack/src/discussions/service.ts READ Removed redundant async callback wrappers; retained admission, reconciliation, generation and cleanup ownership.
648 extensions/whatsapp/src/auto-reply/monitor.ts READ Reconnect/setup catches record different health states and byte-sensitive logs; lazy runtime dispatcher boundaries and config snapshot serve distinct owners.
638 extensions/telegram/src/bot-handlers.callback-router-controls.ts READ Retryable wrappers, authorization, terminal rendering fallbacks, and deferred settlement all preserve callback outcomes.
635 extensions/telegram/src/bot-handlers.inbound-media.ts READ Media catches distinguish retryable failures and settle album participants; retain.
634 extensions/discord/src/voice/transcripts-source.ts READ Capture revocation/generation and two sync/async error channels are meaningful; no safe reduction found.
632 extensions/x/src/api.ts READ Errors distinguish dispatch ambiguity, budget settlement, token rotation and authority; catches are meaningful.
631 extensions/discord/src/monitor/message-handler.process.ts READ No sound simplification: provider delivery and finalization preserve partial outcomes
629 extensions/matrix/src/channel.ts READ Retained adapter/lazy boundaries; monitor import catch explicitly clears cached rejection and is necessary.
627 extensions/discord/src/voice/voice-receive.ts READ Voice catches close resources, retain audio receipts, or record failures; no sound removal.
627 extensions/matrix/src/matrix/monitor/handler.ts READ No safe removal: catches own replay settlement, tombstone notices and draft cleanup; recent 24h ownership guard.
626 extensions/slack/src/monitor/context.ts READ No sound catch removal; failures become lookup outcomes or avatar logs and comments describe policy/cache ordering.
625 extensions/matrix/src/matrix/sdk/verification-manager.ts READ No sound removal: SDK getters can throw; catches retain verification state and lifecycle outcomes.
624 extensions/telegram/src/bot/helpers.ts READ Thread helpers encode Telegram topic differences; pairing wrapper adds meaningful context.
622 extensions/synology-chat/src/outbound-media.ts READ No sound reduction found: byte caps, MIME sniffing, expiry, cleanup, and response leases enforce distinct security or lifecycle boundaries.
620 extensions/feishu/src/streaming-card.ts READ Remove module-title/cache narration; retain all transport release, provider finalization and partial visibility behavior.
619 extensions/discord/src/voice/voice-following.ts READ Reconciliation partitions real rate-limit budgets and follow-state transitions; catches distinguish transient lookup failure from absence.
618 extensions/discord/src/voice/audio-worker.ts READ Worker catches preserve retries, capture reporting, and decoder cleanup; no sound removal.
618 extensions/slack/src/progress-blocks.ts READ No safe removal: comments explain delivered-only snapshot ownership, Slack append-only fields, attention and lifecycle.
618 extensions/telegram/src/bot-message-context.ts READ No sound simplification: authorization and cached reaction fetch preserve policy and lifecycle
616 extensions/matrix/src/matrix/client/shared.ts READ No sound simplification; lease retirement catches retain cleanup, poison state, durability, and late-drain semantics.
612 extensions/clickclack/src/discussions/service-open.ts READ Catches quarantine ambiguous creates and preserve durable reservations; live authority and server skew remain necessary.
612 extensions/team-reports/src/render/styles.ts READ Vendored styling and scoped visible layout retained; comments explain provenance or layout constraints.
609 extensions/matrix/src/matrix/format.ts READ No sound removal: parsing stages protect escaping, spoiler redaction, and Matrix mention semantics.
609 extensions/telegram/src/format.ts READ HTML formatting guards preserve entity, tag and provider-size constraints; retain.
608 extensions/telegram/src/send-message.ts READ Removed duplicate follow-up truthiness condition and caption narration; kept markup and HTML rationale.
607 extensions/telegram/src/bot-message-dispatch-draft.ts READ No sound simplification: draft rotation queue preserves accepted-block and supersede ordering
602 extensions/feishu/src/drive.ts READ No further sound reduction: failures map metadata scope fallbacks and partial comment outcomes with distinct exact diagnostics.
602 extensions/telegram/src/polling-session.ts READ Transport rotation, offset acknowledgment, retry/backoff, and drain ownership require the current guards.
600 extensions/discord/src/actions/runtime.guild.ts READ Guild guards protect permissions and media/read ownership; adapter branches preserve action-specific payloads.
599 extensions/telegram/src/lane-delivery-text-deliverer.ts READ No sound simplification: preview receipt and media fallback retain distinct delivery contracts
599 extensions/telegram/src/webhook.ts READ Startup, shutdown, durable admission and authentication catches preserve intentional outcomes and cleanup; no safe reduction.
597 extensions/sms/src/twilio.ts READ Narrowed JSON parse catch; preserved malformed-payload messages, cause shape, credential fencing, and response limits.
595 extensions/matrix/src/matrix/send.ts READ No sound scoped simplification; send preparation and Matrix relation checks preserve wire and mention contracts.
595 extensions/matrix/src/matrix/thread-bindings.ts READ No safe removal: persistence and binding retirement settle captured state; recent 24h ownership guard.
594 extensions/slack/src/reply-blocks.ts READ No sound removal: lazy compilation and segment projection retain transport limits and authored text.
591 extensions/mattermost/src/mattermost/interactions.ts READ REJECTED: the synthetic-inbound comment explains why a separate agent turn follows the system event and post update; this is user-visible callback behavior.
591 extensions/msteams/src/send.ts READ APPLIED: replace singleton map/filter with direct trimmed ID while preserving raw result ID; retain parameter docs describing accepted target forms, override semantics and consent outcomes.
590 extensions/imessage/src/approval-handler.runtime.ts READ Retained: binding timing and fallback comments document real control lifecycle.
590 extensions/imessage/src/approval-polls.ts READ APPLIED: rely on normalizeIMessageHandle owner for sender/destination trimming; vote authorization unchanged.
590 extensions/telegram/src/thread-bindings.ts READ Skip recent 24h change 2fec39f (#165431); synchronous SDK compatibility explicitly documented.
586 extensions/matrix/src/cli-shared.ts READ No safe removal: CLI error conversion, config compare-before-write, terminal sanitization and recovery-key boundaries remain necessary.
586 extensions/telegram/src/bot-handlers.message-pipeline.ts READ Replay settlement holds and dedupe ownership require catches; hydration failures record outcomes.
586 extensions/tlon/src/urbit/story.ts READ Markdown list/quote/paragraph projection has protocol-visible whitespace and nesting constraints; no further safe simplification found.
584 extensions/clickclack/src/http-client.ts READ Wire parsing, bounded responses, nonce recovery and paginated root/thread history retain required contracts.
583 extensions/sms/src/media.ts READ Remaining catches own cleanup, retry classification, SSRF veto, credential abort, or HTTP outcomes; media bounds and store lifetime are required.
580 extensions/telegram/src/doctor.ts READ Rejected dedup simplification: lookupTelegramChatId accepts provider string IDs, so later trim/dedup remains necessary.
574 extensions/x/src/events.ts READ Stream charging, draining and cursor checkpoints protect paid events and recovery; no narration-only comments.
571 extensions/feishu/src/monitor.account.ts READ No further sound reduction: lifecycle task joins, inactive-account fences, event payload parsing and durable ingress wiring have separate owners.
571 extensions/telegram/src/bot-handlers.inbound-authorization.ts READ No sound simplification: event-specific authorization gates and snapshots enforce policy
570 extensions/matrix/src/approval-handler.runtime.ts READ APPLIED: removed promise-forwarding callbacks; retryAsync invokes await fn() inside try/catch (packages/retry/src/index.ts:399-402). Retry, cleanup, registration and trust contracts remain.
569 extensions/telegram/src/rich-block-model.ts READ Rich block size, nesting, and plain-text traversals enforce separate wire contracts; no redundant catch or narrating comment.
569 extensions/whatsapp/src/login-qr.ts READ QR rendering dedupe/version chasing and operation ownership guards protect concurrent login; catches map visible outcomes.
568 extensions/imessage/src/approval-reactions.ts READ APPLIED: consume reaction owner-normalized GUIDs/emoji and handle owner trimming; correct stale removed-tapback commentary.
567 extensions/buzz/src/room-membership-tracker.ts READ Refresh generations, immediate denial, roster reconciliation, EOSE ordering, and reservation cleanup enforce current membership.
565 extensions/slack/src/monitor/auth.ts READ No immediate removal: pairing-store owner already catches errors but existing adapter mocks assert fallback shapes; authorization guards retained.
563 extensions/discord/src/monitor/allow-list.ts READ Authorization normalization handles external allowlists; small forwarding projection is possible but extras need caller audit.
562 extensions/discord/src/voice/voice-session.ts READ Session startup catches map visible outcomes and release transports; current-generation checks and narrowed helper preserve lifecycle.
560 extensions/matrix/src/matrix/monitor/index.ts READ No safe removal: startup cancellation, client retirement and fatal-stop catches record outcomes or clean up.
560 extensions/tlon/src/urbit/sse-client.ts READ SSE ack watermark, reconnect identity, abort and stream-release ordering are required; catches preserve retry or recorded outcomes.
559 extensions/feishu/src/bitable.ts READ Tool schemas and API result handling already share registration; catches record optional cleanup failures and API fallback.
558 extensions/matrix/src/matrix/actions/verification.ts READ APPLIED: removed promise-forwarding callbacks; withResolvedRuntimeMatrixClient awaits run inside try/finally; withTrackedMatrixVerification awaits its callback within that lifecycle (client-bootstrap.ts:102-110, actions/verification.ts:49-64). Retry, cleanup, registration and trust contracts remain.
557 extensions/feishu/src/send.ts READ Reply fallback and message-read catches preserve recorded outcomes; optional remove Account ID narration but keep thread/platform comments.
555 extensions/matrix/src/matrix/monitor/verification-events.ts READ No sound removal: notices retain strict-DM authorization, bounded retries, and verification recovery.
555 extensions/msteams/src/resolve-allowlist.ts READ Removed normalizeQuery around the already-trimmed normalizeMSTeamsUserInput output and removed its unused test mock.
553 extensions/discord/src/monitor/provider.ts READ No sound simplification: startup cleanup and lifecycle ownership are required
552 extensions/matrix/src/tool-actions.ts READ No safe removal: account/gate validation order and normalization preserve action-specific errors and security boundaries.
552 extensions/synology-chat/src/webhook-handler.ts READ Returned auth directly after firstNonEmptyString has trimmed it; keep auth/rate-limit outcome and durable-admission handling.
551 extensions/matrix/src/matrix/sdk.ts READ Guard skip: recent deslop commit 3923174 (#165718); recovery catches and comments preserve staged key and backup outcomes.
551 extensions/telegram/src/outbound-adapter.ts READ Payload fallback merging, metadata transfer, and durable send shaping preserve distinct delivery semantics.
549 extensions/telegram/src/send-context.ts READ Transport leasing and contextual error mapping are required; HTTP logging remains observable.
544 extensions/sms/src/channel.ts READ Inlined single-use setup patch builder into account config owner; retained hosted MMS attempt identity and durable-send fencing.
544 extensions/telegram/src/bot-handlers.message-context.ts READ Cache projections and ambient context boundaries preserve identity and timeline; no redundant owner identified.
542 extensions/msteams/src/reply-dispatcher.ts READ No sound scope-lens reduction: settlement, acknowledgement, fallback and typing guards enforce ordering and partial-delivery ownership.
541 extensions/discord/src/monitor/provider.lifecycle.ts READ No sound simplification: timeout recovery and listener/socket teardown retain lifecycle contracts
539 extensions/msteams/src/reply-stream-controller.ts READ No sound scope-lens reduction: catches distinguish Stop from provider failure and preserve acknowledged prefixes; comments explain SDK ordering and fallback invariants.
537 extensions/slack/src/monitor/media.ts READ Removed narrating comments only; retained behavior and ownership, lifecycle, security and protocol explanations.
535 extensions/slack/src/format.ts READ No safe removal: mrkdwn guards account for native parser, UTF-16, entities, code fences and assistant transcript safety.
533 extensions/feishu/src/client.ts READ APPLIED: remove User-Agent/constructor narration; preserve uncached-connection and all transport authority/lifecycle explanation.
532 extensions/buzz/src/buzz-bus.ts READ Replay admission, authority checks, thread-root cache, presence failures, and teardown paths carry independent lifecycle contracts.
532 extensions/slack/src/monitor/provider-support.ts READ Guard skip: recent fix f0d34cb (#164305); SDK interoperability and reconnect guards preserve dependency/lifecycle behavior.
528 extensions/telegram/src/rich-blocks-html-map.ts READ HTML parser comments explain data-loss prevention and Telegram constraints; boundary validation is intentional.
527 extensions/signal/src/approval-reactions.ts READ Retained: normalization validates persisted author/route and reaction identity; terminal authorization and state settlement cannot be removed.
526 extensions/feishu/src/presentation-card.ts READ Card sanitization, fallback retention and envelope checks implement distinct wire and visible-content contracts.
525 extensions/mattermost/src/mattermost/monitor-posts.ts READ APPLIED: rawText is an immutable normalized string, so remove its second trim. REJECT root-ID reuse: post.root_id is reread after awaited plan/user/policy work; hoisting changes mutable input observation timing.
524 extensions/matrix/src/matrix/sdk/recovery-key-store.ts READ No sound removal: persistence queue, staged-key tracking, SDK callbacks, and bootstrap recovery are required.
523 extensions/twitch/src/setup-surface.ts READ Removed accountId.trim() at setTwitchAccount/configureWithEnvToken calls into resolveSetupAccountId; callee already trims requested account IDs.
521 extensions/mattermost/src/mattermost/monitor-turn.ts READ Keep generation ordering, visible receipt accounting, participation persistence, and final cleanup catches; no sound scope-lens structural reduction.
517 extensions/signal/src/monitor.ts READ Retained: tracked-task catches record failures and drain shutdown; attachment limits, daemon readiness and authority rechecks are required.
516 extensions/discord/src/chunk.ts READ Chunk boundaries preserve code, Unicode and soft-line invariants; no redundant normalization.
515 extensions/telegram/src/telegram-ingress-drain.ts READ Replay outcomes and legacy lane validation enforce durable/security contracts; preserve all catches and explanatory comments.
514 extensions/telegram/src/bot-message-dispatch.ts READ Removed an outer finally that only copied a local supersession flag and merged identical empty-sticker-text branches.
513 extensions/whatsapp/src/auto-reply/monitor/process-message.ts READ Admission, broadcast STT, reactions, hooks and persisted route ownership require the existing flow; comments explain ordering.
511 extensions/imessage/src/client.ts READ Retained: catches map terminal transport outcomes, preserve diagnostics or own cleanup.
511 extensions/team-reports/src/aggregate.ts READ Removed duplicate evidence cloning/normalization before boundMemberEvidence, which already owns that projection.
511 extensions/telegram/src/bot-message.ts READ MERGED #165436; no current open-deslop owner. APPLIED: inline one-use inbound log formatter, preserving exact string and field projection.
507 extensions/matrix/src/matrix/sdk/client-core.ts READ No sound catch removal; encryption, transaction currentness, authenticated-media fallback, and decryption listeners are real boundaries.
507 extensions/slack/src/blocks-render.ts READ Removed narrating comments only; retained behavior and ownership, lifecycle, security and protocol explanations.
506 extensions/discord/src/monitor/model-picker.state.ts READ Picker input parsing validates wire custom IDs; comments explain token stability and bucket boundaries.
505 extensions/matrix/src/matrix/monitor/handler-ingress-content.ts READ No sound removal: catches record media outcomes and reservation lifecycle must survive early returns.
503 extensions/imessage/src/channel.ts READ APPLIED: bind resolveOutboundSessionRoute directly without an identical forwarding closure.
502 extensions/matrix/src/matrix/monitor/events.ts READ No safe removal: failure tracking, membership admission and decryption warnings carry useful recorded outcomes.
498 extensions/matrix/src/matrix/sdk/transport.ts READ No sound simplification; catches preserve authority error classification, dispatcher cleanup, SSRF, and bounded response contracts.
497 extensions/slack/src/monitor/ingress.ts READ No sound removal: durable admission, authorization provenance, FIFO, and settlement guards have contracts.
496 extensions/telegram/src/bot-handlers.event-bindings.ts READ Log-and-rethrow handlers keep operator-visible messages; participant catches settle durable outcomes and remain necessary.
495 extensions/feishu/src/feishu-ingress.ts READ Replay settlement and socket-recovery catches are required; redundant await in async abandonment map can be removed without dropping async rejection capture.
493 extensions/synology-chat/src/client.ts READ Removed ASCII Chat user_id resolution separator, CACHE_TTL_MS duration narration, and redundant @returns line; retain ID-space explanation and delivery classification.
493 extensions/team-reports/src/sources/github/index.ts READ Distinct API acquisitions and partial-outcome warnings retain attribution and temporal coverage contracts.
490 extensions/googlechat/src/monitor.ts READ Retained attachment-size adoption, typing fallback and ingress startup cleanup; each catch produces an outcome or releases a resource.
488 extensions/discord/src/voice/realtime-session.runtime.ts READ No sound simplification: voice switch recovery and speaker cleanup preserve accepted work
486 extensions/whatsapp/src/session.ts READ APPLIED: remove socket-creation JSDoc narration; preserve persistence, directory isolation, proxy and error-containment explanations.
484 extensions/slack/src/monitor/message-handler.ts READ No safe removal: catches release replay claims, settle completion promises or retry owner-specific conflicts.
483 extensions/matrix/src/matrix/client/storage.ts READ No sound scoped simplification; storage fallback and CAS behavior protect confirmed device identity and supported host contracts.
481 extensions/discord/src/voice/realtime-output.runtime.ts READ Made FIFO drain iteration own queue termination; kept backpressure, watchdog and close boundaries.
480 extensions/irc/src/client.ts READ buildFallbackNick whitespace removal is redundant before its ASCII nickname whitelist removal; keep lifecycle and partial-delivery catches.
480 extensions/zalouser/src/text-styles-compile.ts READ Markdown source projections preserve list/quote/fence syntax and whitespace; no narrating comments or redundant error boundaries found.
478 extensions/matrix/src/matrix/sdk/decrypt-bridge.ts READ No sound error/comment removal: decrypt retries retain exhaustion, quiesce, dedupe, and drain behavior.
477 extensions/feishu/src/monitor.message-handler.ts READ Ingress parser retains raw event values, so downstream trim is required; catches release claims or record retry outcomes.
477 extensions/imessage/src/monitor-reply-cache.ts READ unchanged: persistence catches intentionally preserve in-memory operation with one diagnostic; synchronous and asynchronous hydration serve distinct host contracts and cache provenance gates edits.
474 extensions/whatsapp/src/inbound/socket-session.ts READ Socket successor identity, timelock generation, bounded sends, late acceptance tracking and retry catches are necessary ownership/platform contracts.
473 extensions/discord/src/monitor/thread-bindings.state.ts READ Shared state, persisted binding normalization and load races need current lifecycle rules.
470 extensions/msteams/src/attachments/graph.ts READ APPLIED: normalized attachments are fresh local objects and normalizeContentType already normalizes the MIME token; reference comparison needs no second coercion. Remove now-unused import.
468 extensions/telegram/src/account-throttler.ts READ Token-wide flood waits and final network authority checks have distinct ownership; no safe guard removal.
467 extensions/discord/src/voice/audio.ts READ No sound simplification: decoder/encoder catches record stream outcomes and free resources
467 extensions/matrix/src/matrix/delivery-plan.ts READ No sound simplification; duplicate-looking validation spans persisted plan and live dispatch trust boundaries.
467 extensions/matrix/src/matrix/monitor/config.ts READ No safe removal: live allowlist normalization distinguishes fail-closed unresolved entries; recent 24h ownership guard.
465 extensions/clickclack/src/access.ts READ Repeated reads revalidate authority across awaits; catches preserve fail-closed ownership.
465 extensions/discord/src/approval-handler.runtime.ts READ Inlined the one-use approval components local and removed its duplicate type import.
463 extensions/telegram/src/bot-message-context.body.ts READ Body construction owns authorization and media fallback; catches record transcription failure.
463 extensions/whatsapp/src/auth-store.ts READ Auth reads intentionally distinguish unstable and absent state; logout symlink/ownership checks and best-effort backups preserve security and recovery; no sound simplification confirmed.
462 extensions/signal/src/client.ts READ no safe reduction found: authority wrapper surrounds HTTP initiation, errors preserve protocol context, SSE buffering/timeout/cancellation owners are distinct.
462 extensions/telegram/src/bot-native-command-menu-state.ts READ Language-code record intentionally enforces upstream exhaustiveness; locale repair and queued-error handling preserve durable cleanup.
461 extensions/discord/src/internal/gateway.ts READ Removed the impossible missing-Buffer fallback from the Node-only gateway byte-length check.
461 extensions/telegram/src/bot/body-helpers.ts READ Removed repeated compaction after renderRichBlocks already compacts every emitted line.
461 extensions/whatsapp/src/qa-driver.runtime.ts READ QA session waiters own timeout, close, pending notifications, and listener cleanup; projection adapters preserve the driver result surface.
457 extensions/line/src/markdown-to-line.ts READ APPLIED: remove the two function-name narration lines; keep byte/layout/lossless-content constraints.
457 extensions/nostr/src/nostr-profile-http.ts READ Removed comments restating NIP-05/LUD-16 regex format and successes.length > 0 condition; preserve CSRF, scope, and unknown-field retention explanations.
456 extensions/line/src/actions.ts READ Removed three narrating action-constructor JSDoc blocks; native payload normalization and platform constraints remain.
455 extensions/whatsapp/src/inbound/extract.ts READ Protocol unwrap/projection and broad context extraction accommodate Baileys message variants; parse catches convert invalid external payloads to recorded no-content outcomes.

@steipete

steipete commented Oct 6, 2026

Copy link
Copy Markdown
Contributor Author

Channel production coverage (2/3)

Baseline: 2030657. All 636 listed production files over 200 lines were read in full. Tests, support, docs, and generated files are excluded. Rows are sorted largest first across the three parts.

Lines File Status Finding
454 extensions/slack/src/setup-core.ts READ No sound removal: account identity inheritance and setup credential branches preserve public config behavior.
454 extensions/team-reports/openclaw.plugin.json READ Manifest/schema registrations remain required dynamic public contracts; no edits.
453 extensions/discord/src/voice-message.ts READ Voice catches own metadata fallback, cleanup, SSRF and ambiguous delivery classification.
453 extensions/signal/src/setup-core.ts READ no safe reduction found: input normalization owns user entry validation; local strict UUID regex differs from permissive identity looksLikeUuid and cannot be substituted.
452 extensions/discord/src/monitor/gateway-plugin.ts READ No sound simplification: gateway registration, fallback and capture preserve transport contracts
452 extensions/discord/src/send.shared.ts READ Permission probes and upload fallbacks preserve detailed errors/receipt identity; normalization occurs at raw input boundaries.
452 extensions/mattermost/src/mattermost/monitor-websocket.ts READ Keep shipped 2026.9.6 capture compatibility and connection/auth/keepalive lifecycle; catches record admission failures or terminate connections.
452 extensions/zalouser/src/channel.adapters.ts READ resolveZalouserQrProfile checks !normalized although normalizeAccountId always returns nonempty default; remaining adapters own SDK result projection or lazy runtime boundaries.
450 extensions/telegram/src/bot-native-command-dispatch.ts READ Native command access guards enforce owner authority and group policy; no sound structural deletion.
448 extensions/irc/src/inbound.ts READ No sound reduction found: authorization resolution, pairing, mention handling and tracked lifecycle callbacks enforce different outcomes.
447 extensions/slack/src/monitor/message-handler/dispatch-streaming.ts READ No safe removal: nested catches distinguish rejected stream fallback from recorded finalization failure.
447 extensions/synology-chat/src/channel.ts READ No sound reduction found: optional send hooks, receipt projection and cleanup/indeterminate-capability retention have observable contracts.
445 extensions/whatsapp/src/approval-reactions.ts READ Approval correlation, persistent typed binding, actor mapping and target cleanup form authorization boundaries; preserve validations and comments.
445 extensions/whatsapp/src/inbound/send-result.ts READ Partial-receipt merging and logical activity dedupe preserve actual accepted provider facts across nested owners; checks are provider boundary validation.
444 extensions/slack/src/approval-native-gates.ts READ No sound simplification; normalization and eligibility enforce canonical approval owner, route, account, and team constraints.
442 extensions/discord/src/actions/handle-action.ts READ Action translations preserve authority handoff and payload precedence; no safe large reduction.
442 extensions/msteams/src/monitor-handler/access.ts READ No sound scope-lens reduction: normalization scopes asserted identities and every catch preserves recorded conversation-reference failure outcomes.
441 extensions/googlechat/src/google-auth.runtime.ts READ Retained credential error sanitization, SSRF/proxy validation, response bounds and handle/dispatcher cleanup; no safe scope-lens deletion.
437 extensions/discord/src/components.parse.ts READ Parsing unknown component data intentionally validates once; style mapping has public typed and untyped callers to verify.
437 extensions/discord/src/monitor/message-media.ts READ Computed definitive content-type classification once for its three consumers.
437 extensions/discord/src/monitor/native-command-auth.ts READ Command authorizers enforce distinct member/owner/config policy; repeated checks re-read current authority.
437 extensions/slack/src/monitor/events/interactions.modal.ts READ No sound removal: modal sender authorization, Enterprise routing, and recorded plugin-dispatch failure retained.
436 extensions/discord/src/send.permissions.ts READ Retained documentation of administrator bypass and guild versus channel overwrite semantics at the security API.
434 extensions/msteams/src/messenger.ts READ REJECTED: comments specify Bot Framework attachment representation, AI badge, transport support by chat kind, token/site purpose and 100MB default; retain under the platform/WHY rule.
434 extensions/whatsapp/src/targets-runtime.ts READ JID lookup fallbacks handle provider/filesystem failures and hosted PN/LID shapes; marker preservation and rendering branches preserve byte-visible formatting.
432 extensions/imessage/src/monitor/catchup.ts READ Retained: retries, cursor bounds and CAS handle replay durability.
432 extensions/twitch/src/twitch-client.ts READ No sound reduction found: connection ownership, auth retry, registration identity and partial-send catches own recorded lifecycle outcomes.
430 extensions/msteams/src/attachments/shared.ts READ APPLIED: remove three empty-string defaults already owned by normalizeLowercaseStringOrEmpty; no read moves across await.
430 extensions/msteams/src/monitor-handler/message-handler.ts READ No sound scope-lens reduction: admission, poll and debounce error paths preserve durable lifecycle settlement and recorded outcomes.
428 extensions/discord/src/monitor/listeners.reactions.ts READ Reaction add/remove already share canonical handler; authorization ordering and recorded errors are required.
428 extensions/zalouser/src/setup-surface.ts READ normalizeAccountId always returns nonempty string; simplify duplicate normalizeAccountId ternary and nullish fallback in setZalouserDmPolicy.
427 extensions/mattermost/src/mattermost/send.ts READ Retained the four-field retry projection because it snapshots and whitelists options before awaited lookup; authority and accepted-delivery catches remain.
427 extensions/team-reports/src/summaries.ts READ Inlined single-use output budget calculation, retaining its complete-roster invariant comment.
427 extensions/whatsapp/src/send.ts READ Send catches retain byte-identical logged fields and partial-send receipts; helper layering owns activity scope and the upload contract; no safe elimination identified.
426 extensions/slack/src/monitor/presence-monitor.ts READ No safe removal: rate-limit/cooldown errors and post-await policy checks protect delivery; recent 24h ownership guard.
424 extensions/discord/src/activities/http.ts READ No sound simplification: HTTP catches map failures to stable responses or retain capability boundaries
424 extensions/feishu/src/setup-surface.ts READ Account precedence and SecretRef support comments retain useful boundary context; no code change.
423 extensions/line/src/outbound.ts READ Removed redundant empty-batch guards; retained per-media normalization timing across asynchronous delivery.
423 extensions/slack/src/approval-handler.runtime.ts READ No sound catch removal; message-update catch records best-effort failure while allowing session status settlement.
422 extensions/x/src/monitor.ts READ Repeated authorization and config checks fence awaits; guest admission and durable queue outcomes remain necessary.
421 extensions/whatsapp/src/setup-finalize.ts READ Prompt validation repeats at a pluggable prompter boundary; persistence guard catches preserve authority failures; config merge preserves account scope and unset semantics.
420 extensions/discord/src/monitor/thread-bindings.persistence.ts READ Binding persistence catches protect partial commit authority, memory fallback, and SDK compatibility; no removal.
420 extensions/zalouser/src/text-styles-ranges.ts READ Collapsed duplicate sliced-style result projection while preserving indent-only property; retained range overlap, ordering and insertion behavior.
417 extensions/signal/src/send.ts READ APPLIED: synchronous RPC account lookup; use normalized target prefixes/IDs without re-normalizing.
416 extensions/discord/src/monitor/message-handler.draft-preview.ts READ Preview state reset paths have distinct adoption, continuation and cleanup ordering.
416 extensions/mattermost/src/mattermost/slash-commands.ts READ REJECTED: JSDoc records that native registrations mirror Gateway text commands, a real cross-surface maintenance contract; no other purely narrating block identified.
415 extensions/buzz/src/setup-surface.ts READ Setup retries, generated identity cache, secret resolution, and access defaults preserve operator flow and back-navigation identity.
415 extensions/msteams/src/polls.ts READ Removed the nonnegative recheck already owned by parseStrictNonNegativeInteger and combined the remaining selection bounds filter.
414 extensions/discord/src/config-schema.ts READ Schema composition and alias normalization preserve public config; comments document constraints, no behavior-neutral structural reduction.
414 extensions/irc/src/setup-surface.ts READ No sound reduction found without setup-callback contract proof: normalization callbacks and apply callbacks are separate public setup entry points.
413 extensions/raft/src/gateway.ts READ Request rejection, child lifecycle and replay settlement preserve transport/security outcomes.
412 extensions/matrix/src/cli-verification.ts READ APPLIED: Recent #165718 already removed result projection and one-use guidance wrappers; remaining run callbacks can directly return async action promises because cli-shared.ts:246 awaits config.run() inside its error/cleanup boundary. CLI strings, validation timing and account projections stay intact.
410 extensions/discord/src/voice/realtime-turns.ts READ No sound simplification: provider epochs, frozen speaker authority and wake-name gates are intentional
410 extensions/line/src/webhook-spool.ts READ APPLIED: stale imageSet JSDoc is attached to senderKeyFor; delete it while preserving adjacent sender-authorization explanation.
409 extensions/telegram/src/bot-core.ts READ Bot middleware catches preserve dedupe/processing outcomes; stop finally owns thread binding cleanup.
408 extensions/msteams/src/attachments/download.ts READ No sound scope-lens reduction: catches intentionally record unavailable media or retry alternate auth scopes; input checks protect untrusted attachments.
408 extensions/msteams/src/read-policy.ts READ No sound scope-lens reduction: all catch-to-undefined paths fail closed across mutable target resolution and roster-based authorization.
407 extensions/telegram/src/send-prepared.ts READ Removed immediately invoked request wrapper and temporary result; retained rejected-part producer recovery.
404 extensions/telegram/src/bot/delivery.resolve-media.ts READ Retries preserve original errors and transport/path checks protect ownership and SSRF; no safe structural reduction.
403 extensions/feishu/src/card-action.ts READ Suggestion: pruneExpiredCardEntries already removes non-future entries; replace duplicate expiration recheck with map.has(key).
401 extensions/discord/src/send.outbound.ts READ Retained thread-title documentation as the transport behavior contract; error catches add send context.
401 extensions/googlechat/src/monitor-access.ts READ Retained distinct group/DM policy, deprecated-name rejection and pairing outcomes; normalization operates on separate asserted input surfaces.
400 extensions/discord/src/internal/rest-scheduler.ts READ Scheduler catches settle promises or requeue rate limits; generation and bucket accounting are intentional.
400 extensions/slack/src/monitor/message-handler/prepare-thread-context.ts READ No safe removal: history tombstones, root media and sender visibility have distinct contracts; recent 24h ownership guard.
400 extensions/telegram/src/interactive-fallback.ts READ Presentation normalization and fallback logic preserve native controls and metadata; comments explain those contracts.
399 extensions/feishu/src/comment-shared.ts READ APPLIED: use normalized path segment directly after normalizeStringEntries; retry/error owner unchanged.
399 extensions/whatsapp/src/auto-reply/deliver-reply.ts READ Retained: partial-send errors preserve accepted media and retries; trailing-media warning comment explains visible fallback.
399 extensions/zalouser/src/text-styles-source.ts READ Delimiter/source protection encodes CommonMark and Zalo formatting behavior; no safe catch/comment simplification found.
398 extensions/feishu/src/config-schema.ts READ APPLIED: remove tools-config title and display-name narration; preserve dependencies, defaults and all schema behavior.
396 extensions/discord/src/actions/runtime.messaging.send.ts READ Removed repeated trim after readStringParam already normalizes the private thread-name input.
396 extensions/imessage/src/actions.runtime.ts READ unchanged: RPC/CLI descriptors share runMessageAction and participantAction already; wrappers enforce byte admission, remote transport differences and final sanitizer policy.
394 extensions/discord/src/send.messages.ts READ No sound simplification: thread creation tracks per-chunk ambiguity and partial delivery
393 extensions/clickclack/src/outbound.ts READ Removed a narration-only JSDoc and one-use handoff alias; retained partial-send recovery and nonce contracts.
393 extensions/discord/src/voice/audio-transport.ts READ Worker bridge catches own termination, playback stop, and observed errors; no removal.
393 extensions/nextcloud-talk/src/inbound.ts READ No sound reduction found: preflight and exact-context authorization are distinct live-authority checks; channel policy and replay context remain necessary.
392 extensions/mattermost/src/mattermost/monitor.ts READ APPLIED: cleanupSlashCommands is async and the saved non-null Promise needs no Promise.resolve identity wrapper; retain capture and guard.
391 extensions/msteams/src/graph-messages.ts READ REJECTED: params.from is currently reread for each message after page-fetch awaits; pre-normalizing once would snapshot a mutable caller object earlier and change semantics.
390 extensions/line/src/auto-reply-delivery.ts READ Removed the empty-array guard before the push batching loop; retained the separate empty guard that protects reply tokens.
389 extensions/msteams/src/format.ts READ No sound scope-lens reduction: token restoration and range rewrites preserve entity, code, quote, table and mention bytes; comments explain parser constraints.
386 extensions/line/src/flex-templates/schedule-cards.ts READ No scope-lens cleanup: direct native Flex layouts already share header/bubble owners; action normalization preserves public card-builder behavior.
386 extensions/matrix/src/matrix/monitor/inbound-dedupe-migration.ts READ No sound removal: migration validates hashed identities, preserves timestamps, and verifies durable retirement.
386 extensions/slack/src/outbound-adapter.ts READ No sound catch removal; provenance parsing and fallback protect private rendered payload integrity.
384 extensions/discord/src/monitor/provider.allowlist.ts READ Removed private allowlist renormalization after toAllowlistEntries owns normalization.
384 extensions/telegram/src/message-cache-codec.ts READ Cache normalization guards persisted and recursive reply data; authoritative/partial merge is distinct.
383 extensions/x/src/control-ui.ts READ UI rendering and request generations protect connection/admin changes; no safe simplification within this lens.
382 extensions/discord/src/monitor/thread-bindings.lifecycle.ts READ ACP probes preserve uncertainty and authority; documented SDK compatibility is live.
382 extensions/telegram/src/telegram-ingress-worker.runtime.ts READ No sound simplification: retry/ack/stop catches preserve durable-before-ack worker contract
380 extensions/matrix/src/matrix/monitor/room-history.ts READ No safe removal: comments explain per-agent watermarks, bounded room-local retry snapshots, FIFO and generation invariants.
378 extensions/nostr/src/gateway.ts READ No sound reduction found: pre-crypto authorization, exact dispatch authorization, ready tracking and retiring before shutdown enforce explicit contracts.
378 extensions/slack/src/client-delivery.ts READ No sound catch removal; error mapping preserves provider verdicts, retry safety, upload secrecy, and dispatch ambiguity.
377 extensions/mattermost/src/mattermost/draft-stream.ts READ APPLIED: both private sealedAssistantTexts insertion sites store only nonempty trimmed strings; these entries are never exposed or mutated.
376 extensions/synology-chat/src/setup-surface.ts READ Removed listAccountIds(cfg).length // 0 fallback; keep token/url trim because resolveAccount preserves configured whitespace.
376 extensions/tlon/src/tlon-api.ts READ Removed unused private ClientConfig.verbose field and its callers; kept storage URL, SSRF, timeout and response-release boundaries.
375 extensions/matrix/src/matrix/poll-types.ts READ Removed narrating comments only; retained behavior and ownership, lifecycle, security and protocol explanations.
375 extensions/telegram/src/bot-native-command-builtins.ts READ Fast command model context rereads are a potential consolidation but separate fallback behavior needs focused proof.
374 extensions/matrix/doctor-contract-api.ts READ No safe removal: migration catches record warnings and preserve source data until verified import and retirement.
374 extensions/sms/src/status.ts READ Remote outcome mapping preserves partial diagnostic results, timeout budgets, and byte-identical operator messages.
369 extensions/clickclack/src/setup-core.ts READ Setup parsing, secret precedence and mapped claim errors preserve public CLI/config contracts.
368 extensions/line/src/rich-messages.ts READ No scope-lens cleanup: presentation normalizations own portable/native fallback and question admission; comments explain prompt preservation and shared quick-reply limits.
368 extensions/matrix/src/matrix/sdk/crypto-bootstrap.ts READ No sound simplification; bootstrap catches encode recovery choices and strict-mode outcomes; comments explain trust ordering.
367 extensions/line/src/monitor.ts READ No sound lens cleanup: catches implement provider registration cleanup, nonfatal loading, terminal reply consumption and keepalive shutdown; lifecycle comments are useful.
366 extensions/slack/src/monitor/thread.ts READ Removed narrating comments only; retained behavior and ownership, lifecycle, security and protocol explanations.
366 extensions/whatsapp/src/auto-reply/monitor/on-message.ts READ Preflight transcription, reaction cleanup and group gating order serve authorization and broadcast ownership; processForRoute centralizes shared parameter defaults for two callers.
364 extensions/clickclack/src/gateway.ts READ Inlined one-use correlation forwarding helper and event-list alias; cursor ordering and reconnect outcomes retained.
363 extensions/matrix/src/matrix/actions/messages.ts READ No safe removal: edit hydration, threaded pagination and poll summaries have distinct wire contracts and fallback outcomes.
362 extensions/mattermost/src/mattermost/model-picker.ts READ APPLIED: models is a nonempty private array here and normalizePage guarantees at least one; remove duplicate lower clamps.
360 extensions/clickclack/src/inbound.ts READ Reply-mode dispatch, provenance, durable media and progress cleanup serve distinct contracts.
358 extensions/telegram/src/network-errors.ts READ Classifiers distinguish definitive rejection/pre-connect safety from ambiguous delivery; predicates and comments encode important retry contracts.
357 extensions/discord/src/resolve-channels.ts READ Retained normalization at parser and directory matching boundaries; no structural change accepted beyond redundant trim tokens.
357 extensions/slack/src/monitor/events/messages.ts READ No catch removal; lookup failures become unresolved-type outcomes and event handlers record or propagate by lifecycle owner.
356 extensions/tlon/src/monitor/approval-runtime.ts READ Approval persistence, block-list probes and notification catches retain distinct logged outcomes; no sound catch removal found.
356 extensions/tlon/src/monitor/utils.ts READ Removed redundant array falsey guard, empty-string fallback after join, and narrating citation labels.
356 extensions/x/src/spend.ts READ Numeric guards protect persisted accounting and overflow; recovery and reservation settlement are required.
355 extensions/irc/src/channel.ts READ No sound reduction found: adapters hold pairing target conversion, security warnings, runtime metadata, and public plugin capabilities.
355 extensions/slack/src/monitor/message-handler/dispatch-setup.ts READ No sound removal: status/typing lifecycle cleanup and preview-versus-native policy explanations retained.
354 extensions/discord/src/components.builders.ts READ Public api.ts exports buildDiscordComponentMessage; retain its normalization because raw external callers may bypass parse owner.
352 extensions/discord/src/components-registry.ts READ Memory/persistence fallback, consumption groups, and expiry checks have separate responsibilities; catches record/disable failed persistence.
352 extensions/matrix/src/matrix/crypto-state-store.ts READ No sound simplification; persisted crypto validation, CAS fallback, and independent best-effort scoring are required.
352 extensions/slack/src/message-action-dispatch.ts READ Removed narrating comments only; retained behavior and ownership, lifecycle, security and protocol explanations.
352 extensions/telegram/src/bot-message-dispatch-progress.ts READ Progress checks protect draft ownership; terminal catches record cleanup failure.
351 extensions/discord/src/monitor/provider.deploy-errors.ts READ No sound simplification: error formatting preserves byte-stable context and fallback diagnostics
351 extensions/slack/src/monitor/relay-source.ts READ APPLIED: Recent #165718 inlined frame handling into the queued owner, which now admits asOptionalRecord before its sole private event extractor; remove the extractors duplicate object admission while preserving nested wire validation, durable-before-ack and frame error outcomes.
349 extensions/discord/src/monitor/agent-components.dispatch.ts READ MERGED #165436; no current open-deslop owner. APPLIED: inline one-use chat-type projection; direct-message precedence and literals unchanged.
348 extensions/slack/src/data-table.ts READ Removed narrating comments only; retained behavior and ownership, lifecycle, security and protocol explanations.
347 extensions/msteams/src/monitor-handler/inbound-dispatch.ts READ No sound scope-lens reduction: dispatch catch distinguishes durable adoption from best-effort user error feedback; authority binding is intentional.
346 extensions/googlechat/src/approval-handler.runtime.ts READ Retained pre-send suppression registration and failure cleanup, native card bindings and terminal projections.
346 extensions/slack/src/streaming.ts READ No sound simplification; stream error handling preserves buffered tails, Slack Stop races, and ambiguous delivery retirement.
346 extensions/team-reports/src/http.ts READ Route, auth, host and period parsing are public boundaries; response authority is revalidated after awaits.
345 extensions/matrix/src/matrix/sdk/idb-persistence.ts READ No sound removal: snapshot admission, transaction abort, locking, and retirement diagnostics retained.
345 extensions/telegram/src/bot-message-dispatch-turn.ts READ Turn callbacks preserve queue order and delivery custody; no redundant catch.
343 extensions/signal/src/install-signal-cli.ts READ APPLIED: remove narration of prefix fallback and obvious version prefix parsing; preserve ownership and SSRF checks.
342 extensions/telegram/src/approval-handler.runtime.ts READ Pending/update/terminal transport callbacks preserve shared adapter lifecycle; deferred edit errors permit origin notice before rejection.
341 extensions/matrix/src/matrix/monitor/handler-context.ts READ No safe removal: context visibility and acknowledgement failures are intentional boundaries; recent 24h ownership guard.
340 extensions/discord/src/internal/interactions.ts READ Retained Promise-returning response queue API; no accepted simplification of its settlement boundary.
340 extensions/matrix/src/approval-reactions.ts READ No sound scoped simplification; normalization occurs at persisted/public approval boundaries and catches preserve recorded outcomes.
340 extensions/msteams/src/graph.ts READ APPLIED: remove two narrating branch labels and duplicate pagination JSDoc; retain field-level cap/find-only and authority/release comments.
339 extensions/telegram/src/bot-native-command-login.ts READ Provider login error paths record completion/adoption results and fence effects; no sound deletion.
338 extensions/buzz/src/directory-state.ts READ Profile bounds, membership selection, revision ordering, and directory projection each retain distinct contracts.
338 extensions/imessage/src/probe.ts READ Retained: catches expose probe results, cache invalidation and capability detection.
337 extensions/telegram/src/bot-handlers.inbound-processing.ts READ Hydration catches map abort, oversize and retry outcomes with byte-specific warnings.
335 extensions/discord/src/config-ui-hints.ts READ No sound simplification: config UI hint map is visible user text
335 extensions/telegram/src/send-message-text.ts READ Chunk receipt and projection bookkeeping preserve partial acceptance; catch cleanup is essential, history aside can be trimmed from WHY comment.
334 extensions/nextcloud-talk/src/monitor.ts READ No sound reduction found: pending-response ownership, per-endpoint budgets, stopping target filtering and authenticated durable acknowledgement are required.
334 extensions/team-reports/src/scheduler.ts READ Run admission, stop settlement and recorded failure paths are necessary; no narration-only comments.
334 extensions/telegram/src/bot-native-commands.ts READ Command registry, menu pressure, and login callback routing are intentional; lazy module boundaries remain necessary.
333 extensions/matrix/src/approval-native.ts READ No sound error/comment removal: approval-kind, sender, target, and lazy native-runtime boundaries retained.
333 extensions/mattermost/src/mattermost/slash-state.ts READ APPLIED: remove handler field narration; loader sharing, cleanup and token-routing explanations remain.
333 extensions/sms/src/delivery-observations.ts READ Compare-and-apply loop, fingerprints, status precedence, and bounded records preserve concurrent provider observation state.
331 extensions/zalo/src/channel.ts READ Lazy runtime and send-result adapters each own boundary work; no substantial safe simplification beyond direct one-line callback forwarding.
330 extensions/discord/src/monitor/native-command-model-picker-ui.ts READ Model picker readers have distinct fallback and consistency semantics; preserve.
329 extensions/matrix/src/matrix/monitor/handler-ingress-access.ts READ No safe removal: pairing failure consumes history reservations deliberately; admission and sender-name fallback remain useful.
328 extensions/mattermost/src/mattermost/monitor-thread-backfill.ts READ Keep session-identity fencing, bounded recovery budgets, live-history merge ordering, and fail-closed authorization catches; no safe scope-lens reduction.
328 extensions/telegram/src/bot-handlers.inbound-buffer.ts READ Forward quiet-window, hydration, and durable settlement comments explain measured/lifecycle constraints; no safe reduction.
326 extensions/signal/src/setup-transport.ts READ no safe reduction found: transport admission/port ownership differs from runtime resolution; comments explain preserving sibling endpoints and bypassed preparation.
325 extensions/discord/src/actions/handle-action.guild-admin.ts READ No sound simplification: requester guards and tool-to-runtime argument adapters retain contracts
325 extensions/slack/src/client-options.ts READ No sound simplification; proxy/runtime handling, read authority, rate-limit retries, and dispatcher ownership are contractual.
324 extensions/whatsapp/src/agent-tools-call.ts READ APPLIED: remove unreachable catch around pure string E.164 normalization and trust controller-normalized self identity.
324 extensions/whatsapp/src/directory-config.ts READ Standalone ownership and retryable cleanup distinguish live owner unavailable, auth, connection, lookup and cleanup errors; catches are meaningful outcome mapping.
322 extensions/discord/src/markdown.ts READ Made private stack traversal termination own emptiness; removed impossible missing matchAll indices without new assertions.
322 extensions/nostr/src/nostr-ingress.ts READ No sound reduction found: admission retry latch, cursor callback ordering, backlog limits and legacy tombstone sequencing differ from generic monitor behavior.
320 extensions/line/src/flex-templates/media-control-cards.ts READ No scope-lens cleanup: direct card construction already shares horizontal rows/title owner; label cap 18 is intentionally stricter than postback cap 20.
320 extensions/telegram/src/channel-actions.ts READ Action discovery stays lazy and read authority is rechecked after awaited work.
319 extensions/discord/src/outbound-adapter.ts READ Lazy imports preserve cold-load boundaries, persona fallback logs matter, send capabilities are registered contracts.
319 extensions/googlechat/src/api.ts READ Retained token preparation, error redaction, response limits and cancellation-before-release; catches own visible probe outcomes.
319 extensions/googlechat/src/format.ts READ Retained resource neutralization, literal markers and UTF-8 chunk boundaries; each stage preserves a distinct Google Chat formatting invariant.
319 extensions/team-reports/src/render/people.ts READ Distinct ranking/chart/archive projections preserve UI and missing-day semantics.
318 extensions/sms/src/inbound.ts READ Two admission checks straddle async media work; pairing, adoption cleanup, and materialized media lifetime must remain.
317 extensions/buzz/src/directory-relay.ts READ Subscription generations and EOSE readiness prevent stale subscriptions; room refresh coalescing and fatal archive transitions are required.
317 extensions/whatsapp/src/inbound/group-metadata-cache.ts READ Cache generations fence async membership refresh and shutdown; separate caches preserve authoritative expiry across reconnect; failure fallback retains logged degradation.
316 extensions/signal/src/accounts.ts READ no safe reduction found: account enablement/port allocation handles explicit, implicit and independent connection ownership; reply-mode parsing preserves invalid-config fallback behavior.
315 extensions/msteams/src/setup-surface.ts READ APPLIED: remove promise forwarding only. REJECT direct function assignment because the existing projection snapshots cfg/entries/prompter and the callee rereads prompter after awaited Graph lookup.
314 extensions/line/src/card-command.ts READ Removed narrating list/receipt parser and flag-loop comments; retained escaped separator grammar and visible error conversion.
313 extensions/discord/src/monitor/gateway-metadata.ts READ No sound simplification: timeout/error classification and SSRF response release retain contracts
313 extensions/feishu/src/app-registration.ts READ APPLIED: remove redundant return-await while retaining async rejection semantics; simplify pending-error branch; remove init narration; guarded fetch/release unchanged.
313 extensions/whatsapp/src/channel.ts READ Adapters preserve lazy runtime loads and public channel hooks; runtime/status projections deliberately preserve missing versus null facts; no sound larger simplification.
311 extensions/discord/src/monitor/thread-bindings.discord-api.ts READ Binding webhook fallback and error classification preserve distinct visible outcomes; do not remove catches.
311 extensions/feishu/src/bot-content.ts READ Resource failure catches intentionally retain media-kind outcomes; comments explain placeholder ordering and media platform limitations.
311 extensions/feishu/src/post.ts READ Raw JSON parsing and rendering are separate public boundaries with intentional fallback outcomes; comments explain Markdown/media invariants.
311 extensions/slack/src/draft-stream.ts READ RETAINED: Recent #165883 already removed the private return-type mirror. Remaining generation checks fence overlapping edits, human-reply rotation and cleanup; catches record stopped/restore outcomes and message snapshots survive awaited final edits.
311 extensions/whatsapp/src/state-migrations.ts READ Migration backup, receipt and authority guards preserve September 2026 published-driver upgrade contract and prevent logout relinking; retain.
309 extensions/buzz/src/gateway.ts READ Reconnect state, early bus retirement, replay watermarks, and configured-room admission preserve independent lifecycle boundaries.
309 extensions/discord/src/send.components.ts READ Component send/edit share payload owner; remaining branches distinguish receipt and nonce behavior.
307 extensions/discord/src/monitor/provider.startup.ts READ Startup helpers carry real initialization/registration roles; listeners dynamically registered and cannot be removed by static counts.
306 extensions/msteams/src/outbound.ts READ APPLIED: delegate directly to existing async sendWithDeliveryResults while preserving destructured text/media values and receipt owner.
305 extensions/discord/src/monitor/agent-components-guild-auth.ts READ No sound simplification after caller review: sharing one computed channelConfig adds equivalent projection at the other caller
304 extensions/msteams/src/attachments/bot-framework.ts READ REJECTED: outer params is spread anew per attachment after earlier awaits; repeated private guards catch serviceUrl/tokenProvider changes before each copied request. Removing them changes timing and optional-provider behavior.
304 extensions/signal/src/daemon.ts READ Retained: classification and transport logging are separate stages; catches and exit/close listeners preserve shutdown/process ownership.
303 extensions/feishu/src/policy.ts READ Canonical ingress owner serves distinct DM/group-conversation/group-sender policies; comments explain identity and inherited-policy contracts.
303 extensions/matrix/src/cli-account.ts READ No safe removal: setup records profile/device failures and publishes config only after crypto work retires.
303 extensions/telegram/src/bot-handlers.inbound-pipeline.ts READ Inbound pipeline catches release claims and record retryable outcomes; shared handlers already consolidate event variants.
302 extensions/imessage/src/accounts.ts READ unchanged: configured detection, streaming deep merge and duplicate source ownership preserve separate selection/watching contracts; file-identity catches fail closed.
301 extensions/telegram/src/button-types.ts READ Removed JSDoc restating the presentation-to-buttons function name.
300 extensions/discord/src/monitor/message-dispatcher.ts READ Debounce admission and cancellation settle distinct ownership; catches turn aborted work into replay and remain necessary.
300 extensions/matrix/src/matrix/send/chunking.ts READ Removed narrating header and duplicate config admission after prepareMatrixSingleText already validates it.
299 extensions/clickclack/src/accounts.ts READ Config and token normalization own untrusted input; policy inheritance and credential diagnostics remain necessary.
299 extensions/telegram/src/sendchataction-401-backoff.ts READ Retained account-scoped suppression and retry ownership; duration notation documents the transport cooldown.
298 extensions/discord/src/doctor.ts READ Doctor owns raw config normalization and precise warning output; retain.
298 extensions/feishu/src/comment-handler.ts READ Repeated authorization is fresh-config and context-binding validation; dispatch finally owns typing cleanup; no sound removal found.
298 extensions/feishu/src/read-policy.ts READ Authorization normalization and lookup-error remapping preserve policy and existence-oracle boundaries; no sound removal found.
298 extensions/telegram/src/bot-update-tracker.ts READ Inlined forwarding skip and one-use acknowledgement callbacks; kept watermark and replay ownership unchanged.
297 extensions/clickclack/src/progress.ts READ Queue coalescing, finalization grace and late-frame handling preserve visible progress ordering.
297 extensions/discord/src/internal/rest.ts READ REST wrappers preserve verbs/public API; response/decompression guards and error mapping preserve platform bounds and messages.
293 extensions/feishu/src/accounts.ts READ APPLIED: one explicit/default selection object replaces nullable intermediate and unreachable account/source fallbacks.
291 extensions/matrix/src/matrix/monitor/direct.ts READ No sound removal: explicit DM classifications, cache seeding, and promotion veto failures preserve security policy.
291 extensions/msteams/src/sdk-proactive.ts READ No sound scope-lens reduction: service URL guards, reference projection, targeted-send checks and currentness assertions enforce transport boundaries.
291 extensions/telegram/src/config-schema.ts READ No sound simplification: schema descriptors and refinements preserve public configuration validation
290 extensions/msteams/src/errors.ts READ APPLIED: remove comment restating the immediately following get-method shape check.
288 extensions/mattermost/src/mattermost/monitor-auth.ts READ APPLIED: return awaited resolver result directly instead of naming it only for return; retain async error boundary and separate channel-type fallback semantics.
287 extensions/discord/src/monitor/threading.auto-thread.ts READ Auto-thread create/recover/title paths preserve side-effect and fallback boundaries; helper normalization also serves direct callers.
287 extensions/discord/src/probe.ts READ Probe catches distinguish rejection, unavailable metadata and response cleanup.
287 extensions/feishu/src/thread-bindings.ts READ Binding manager owns normalization, expiry, metadata inheritance and replacement-safe shutdown; no sound removal found.
287 extensions/slack/src/monitor/enterprise-install.ts READ No safe removal: parse catches convert malformed workspace targets to stable policy errors; preserve identity mismatch boundaries.
287 extensions/telegram/src/rich-blocks-html.ts READ Removed transparent-container narration directly repeated by emitting its children.
286 extensions/discord/src/voice/participant-context.ts READ MERGED #165883; no current open-deslop owner. RETAIN: normalizeLabel is not idempotent after truncation (99 a characters + space + b truncates to a trailing space); the second pass trims it. Roster caps, stable ordering, human/bot classification and post-lookup authority remain distinct contracts.
286 extensions/msteams/src/qa/adapter.runtime.ts READ APPLIED: remove forwarding to the async readiness owner; argument destructuring, timeout values and loop remain unchanged.
286 extensions/zalouser/doctor-contract-api.ts READ Registered migrations preserve existing credential/session state and fail-closed archival; comments explain lazy-load and identity tie-breaking constraints.
285 extensions/matrix/src/matrix/monitor/handler-reply-dispatcher.ts READ No sound catch removal; preview failures retain accepted draft delivery and carry partial receipts.
283 extensions/discord/src/outbound-payload.ts READ Scoped delivery-option builders to their only send owner, eliminating threaded context arguments and a duplicate type.

@openclaw-barnacle openclaw-barnacle Bot added channel: discord Channel integration: discord channel: googlechat Channel integration: googlechat channel: imessage Channel integration: imessage channel: line Channel integration: line channel: matrix Channel integration: matrix channel: mattermost Channel integration: mattermost channel: msteams Channel integration: msteams channel: nextcloud-talk Channel integration: nextcloud-talk channel: nostr Channel integration: nostr channel: signal Channel integration: signal channel: slack Channel integration: slack channel: telegram Channel integration: telegram channel: tlon Channel integration: tlon channel: whatsapp-web Channel integration: whatsapp-web channel: zalo Channel integration: zalo channel: zalouser Channel integration: zalouser channel: feishu Channel integration: feishu channel: twitch Channel integration: twitch channel: irc channel: synology-chat channel: sms Channel integration: sms channel: buzz extensions: clickclack plugin: team-reports channel: x size: XL labels Oct 6, 2026
@steipete

steipete commented Oct 6, 2026

Copy link
Copy Markdown
Contributor Author

Channel production coverage (3/3)

Baseline: 2030657. All 636 listed production files over 200 lines were read in full. Tests, support, docs, and generated files are excluded. Rows are sorted largest first across the three parts.

Lines File Status Finding
282 extensions/buzz/src/message-event.ts READ Validation and output bounds protect untrusted relay input and model context; tag semantics and diff metadata remain unchanged.
281 extensions/matrix/src/matrix/client/sync-cache-state.ts READ No sound removal: opaque SDK snapshot validation and generation serialization preserve state integrity.
281 extensions/msteams/src/graph-upload.ts READ REJECTED: multi-sentence docs explain eTag/webDavUrl mapping, v1-versus-beta API choice and sharing scope; preserve entire comments under the explicit platform/security WHY rule.
281 extensions/msteams/src/monitor-handler/inbound-media.ts READ No sound scope-lens reduction: identity/position fallback merging preserves advertised slots and all diagnostics describe meaningful media outcomes.
280 extensions/matrix/src/matrix/direct-management.ts READ Retained normalization and the fresh inspection parameter object to preserve client capture across asynchronous inspection.
280 extensions/sms/src/webhook.ts READ Separate authentication, sender, route, and delivery quotas preserve fairness and durable admission; catches map HTTP outcomes.
280 extensions/telegram/src/probe.ts READ Probe catches preserve retry budget and optional webhook diagnostics; trailing ignore comment is redundant.
279 extensions/discord/src/api.ts READ Timeout and retry wrappers preserve authenticated read authority, error redaction, and bounded responses; no safe structural reduction.
279 extensions/matrix/src/matrix/monitor/reaction-events.ts READ No sound catch removal; approval errors distinguish terminal absence from logged propagation and retire all reaction anchors.
279 extensions/synology-chat/src/gateway-runtime.ts READ No sound reduction found: startup issue codes feed warnings, logging adapts unknown args, and nested cleanup retains route ownership after failures.
278 extensions/discord/src/channel-actions.ts READ Removed the always-true send-membership guard after the action set is seeded with send.
276 extensions/clickclack/src/activity.ts READ Removed repeat trimming of formatter-owned commentary, simplified fallbacks and dropped narration.
275 extensions/feishu/src/bot-broadcast.ts READ Catch layers settle adoption and replay ownership or contain reporting failures; retain the lifecycle state machine.
274 extensions/feishu/src/chat.ts READ API result projection, pagination checks and read authorization preserve observable/security contracts; no sound removal found.
274 extensions/sms/src/send.ts READ Partial delivery receipts, pre-dispatch error typing, hosted-media cleanup, and persistence warning isolation remain necessary.
273 extensions/buzz/src/inbound.ts READ Membership fencing, mention admission, bounded history, bot-loop budget, and transport error outcomes preserve dispatch authority.
273 extensions/discord/src/voice/membership.ts READ Membership catches record notification failures; source revision, roster, and inferred-participant state are necessary.
273 extensions/imessage/src/monitor/ingress.ts READ Retained: wrappers preserve claim metadata, priority ordering and wait-for-idle cleanup.
273 extensions/matrix/src/cli-verification-backup.ts READ No safe removal: command run callbacks bind account/recovery-key options and centralized CLI owner handles outcomes.
273 extensions/matrix/src/outbound.ts READ No sound error/comment removal: presentation transport shaping and one-receipt-per-payload invariant retained.
272 extensions/zalo/src/api.ts READ Provider HTTP/JSON owner supplies errors; remaining catches create specific URL diagnostics and finally releases timeout; protocol comments carry units/provider behavior.
271 extensions/telegram/src/conversation-route.ts READ Route preparation shares one owner; inspection and touching have distinct authorization effects.
270 extensions/msteams/src/pending-uploads-fs.ts READ No sound scope-lens reduction: integrity, row bounds, lock and July-plus published-host point-read compatibility govern persisted consent bytes.
270 extensions/telegram/src/send-edit.ts READ Edit text/caption/not-modified fallback branches produce distinct provider outcomes; keep native payload/markup semantics.
269 extensions/telegram/src/bot/inbound-text-entities.ts READ Removed trim after the language sanitizer already removes every whitespace character.
269 extensions/telegram/src/send-special.ts READ No sound simplification: public poll registration owns routing warnings and completion
267 extensions/imessage/src/approval-reaction-poll-targets.ts READ unchanged: expiry and persisted decoding enforce untrusted state boundary; catches record persistence failure and disable broken store while retaining bounded memory fallback.
267 extensions/imessage/src/monitor/recovery-cursor.ts READ unchanged: cursor migration and atomic fallback have July+ history and published September host contract; catches intentionally retain safe replay behavior.
266 extensions/matrix/src/matrix/read-policy.ts READ No sound simplification; repeated authority/policy checks intentionally bracket awaited provider access.
266 extensions/telegram/src/bot-native-command-plugins.ts READ Removed repeated nonblank text validation after the calling progress-result guard.
266 extensions/telegram/src/rich-block-split.ts READ Replaced push-only album projection with map while retaining first-piece caption ownership.
265 extensions/discord/src/voice/segment.ts READ No sound simplification: repeated capture authority checks straddle awaits and protect revocation
264 extensions/telegram/src/model-buttons.ts READ Removed comments duplicating callback regex strings already documented in the wire-format header.
263 extensions/discord/src/internal/components.message.ts READ Native subclasses serialize distinct payload types; Row.addComponent is live in components.builders.ts:331, so retain.
263 extensions/telegram/src/account-inspect.ts READ Credential inspection keeps token precedence and duplicate-account ownership; no removable catch.
262 extensions/matrix/src/exec-approvals.ts READ No sound removal: account eligibility and approval filters enforce current authority across adapters.
262 extensions/msteams/src/msteams-ingress.ts READ No sound scope-lens reduction: catches perform identity-guarded context uninstall and shutdown cleanup; validation protects durable queue records.
262 extensions/telegram/src/miniapp/routes.ts READ No sound simplification: current-owner rechecks and capability/replay consumption preserve security
261 extensions/matrix/src/matrix/sdk/client-verification.ts READ APPLIED: Recent #165718 already removed active-version and backup-enable forwarding wrappers. Simplify remaining local trust-result projection with const facts; retain server-version capture before awaiting trust, all diagnostic catches and authoritative server rechecks.
261 extensions/mattermost/src/mattermost/monitor-model-picker.ts READ Keep fresh model validation, authorization, detached webhook lifetime, and normalized picker-delivery boundary; no safe broad reduction.
261 extensions/slack/src/approval-native.ts READ No sound catch removal; sender parsing failure preserves reviewer fallback and canonical account eligibility.
261 extensions/slack/src/config-schema.ts READ No safe removal: shared schemas already own defaults; remaining HTTP/relay refinements enforce distinct config requirements.
261 extensions/x/src/control-ui.css READ Declarative visible styling has no redundant error, normalization or narrating-comment paths.
260 extensions/feishu/src/markdown.ts READ APPLIED: remove module-title narration; preserve parser/envelope/chunking invariants.
260 extensions/googlechat/src/channel.adapters.ts READ Retained lazy runtime boundary, scoped account resolution and provider receipt normalization; helpers adapt different SDK contracts.
260 extensions/telegram/src/history-policy.ts READ History authorization revalidates current owner and handles two intentionally distinct paging policies.
260 extensions/telegram/src/send-actions.ts READ Telegram action catches convert invalid reactions/deletion no-ops into visible results; abort bridge preserves grammY ownership.
260 extensions/twitch/src/monitor.ts READ No sound reduction found: repeated access checks bind current route authority; connection/send catches preserve logged fields and delivery outcomes.
260 extensions/whatsapp/src/inbound/send-api.ts READ Accepted-send owner collects each Baileys outcome before later failure; structured send adapter is shared by poll/contact/location/sticker; no safe catch removal.
259 extensions/feishu/src/docx-markdown.ts READ Parser rechecks preserve independently valid CommonMark chunks and reference scope; all comments explain invariants.
258 extensions/mattermost/src/mattermost/monitor-interactions.ts READ Keep separate pre-effect question authorization and resolver recheck; catches preserve retryable prompt and user outcomes. No safe broad reduction.
257 extensions/telegram/src/bot-processing-outcome.ts READ ALS frames and settlement hold protocol preserve durable adoption/cancellation; no sound structural reduction.
256 extensions/imessage/src/approval-reaction-poller.ts READ unchanged: redundant-looking normalization crosses raw history RPC and persisted records; catches allow recorded per-chat partial poll continuation.
256 extensions/whatsapp/src/auto-reply/monitor/group-gating.ts READ Mention, owner command, route registry and deferred audio history checks protect admission semantics; comments explain differing raw/model-visible text.
255 extensions/discord/src/activities/store.ts READ No sound simplification: atomic comparisons and pending-launch ambiguity preserve storage contracts
255 extensions/mattermost/src/mattermost/monitor-resources.ts READ Keep lookup errors as null outcomes, aligned unavailable-media facts, identity checks, and TTL ownership; sendTypingIndicator is only a binding wrapper.
254 extensions/discord/src/voice/realtime-recording.ts READ Recording eligibility, provider generations, and pending publication cleanup have distinct lifecycle responsibilities.
254 extensions/matrix/src/matrix/client/file-sync-store.ts READ Removed narrating comments only; retained behavior and ownership, lifecycle, security and protocol explanations.
253 extensions/imessage/src/approval-native.ts READ unchanged: session routing, prompt suppression and approval rendering require distinct contracts; no bare rethrow or narration found.
253 extensions/imessage/src/setup-core.ts READ APPLIED: account owner resolves default account once; removed repeated caller default.
253 extensions/signal/src/reply-authors.ts READ no safe reduction found: comparison cache reconciliation handles async publication ordering; fallback update API has explicit September 2026 shipped-host contract.
252 extensions/irc/src/monitor.ts READ No sound reduction found: connection epochs fence recycled nicknames; disconnect pause, reconnect backoff and owned stop settlement are needed.
252 extensions/nextcloud-talk/src/webhook-spool.ts READ No sound reduction found: claim validation, migration/start ordering, ignored-event log fields and stop draining preserve durable replay behavior.
252 extensions/slack/src/accounts.ts READ No scoped normalization removal proven; token normalization is exposed through an account interface and config merges retain nested semantics.
251 extensions/discord/src/actions/runtime.messaging.messages.ts READ Message action branches preserve API query and output shape; failed guild inference intentionally falls through.
251 extensions/googlechat/src/accounts.ts READ Retained strict/inspect credential modes and default-account precedence; file and inline credential paths have separate diagnostics.
251 extensions/matrix/src/matrix/send/media.ts READ No safe removal: catches intentionally omit optional metadata; upload-boundary encryption checks and media constraints are necessary.
251 extensions/slack/src/monitor/runtime-policy.ts READ Removed repeated normalization after resolveSlackMonitorPolicy and mergeAllowlist owner-normalized values.
250 extensions/discord/src/monitor/native-command-reply.ts READ Partial delivery and expired-interaction mapping are observable contracts; normalization serves native external payload boundaries.
250 extensions/slack/src/monitor/message-handler/prepare-routing.ts READ Removed historical regression commentary while retaining the current routing invariant.
249 extensions/discord/src/monitor/threading.starter.ts READ Unified identical missing-starter and empty-payload cache-miss outcomes.
249 extensions/msteams/src/send-context.ts READ REJECTED: validation and returned classification intentionally read the referenced conversation on opposite sides of awaited SDK/auth preparation; reusing a value changes observation timing.
249 extensions/tlon/src/setup-core.ts READ Config validation and wizard callbacks preserve separate setup entrypoint contracts; no safe simplification found.
247 extensions/discord/src/send.webhook.ts READ Webhook catches preserve deadline classification, best-effort telemetry, and ambiguous-create protection.
247 extensions/matrix/src/matrix/format-spoiler-ranges.ts READ Removed narrating comments only; retained behavior and ownership, lifecycle, security and protocol explanations.
247 extensions/team-reports/src/sources/discord/index.ts READ Catches record partial acquisition outcomes and handle private-thread fallback; no redundant mapping layer.
247 extensions/zalouser/src/session-state.ts READ Credential revocation and comparisons protect atomicity; retained released-host fallback has explicit compatibility contract and must remain absent dated contrary evidence.
245 extensions/buzz/src/mentions.ts READ ASCII mention matching, code exclusion, explicit identity validation, and ambiguity diagnostics implement relay semantics.
245 extensions/nextcloud-talk/src/send.ts READ No sound reduction found: signature context, redacted errors, accepted-but-unparseable receipts and guarded response release are distinct contracts.
245 extensions/telegram/src/ingress.ts READ Ingress identity and command admission stay separate security responsibilities.
245 extensions/whatsapp/src/quoted-message.ts READ Cache lookup ambiguity and PN/LID equivalence protect quoting the requested conversation; metadata projection deliberately excludes cache timestamps.
244 extensions/discord/src/endpoint-runtime.ts READ REST/media/attachment guard repetition preserves exact labels and security boundaries; avoid speculative owner restructuring.
244 extensions/feishu/src/interactive-message-content.ts READ Input guards handle external unknown card shapes and representation fallback; no sound removal found.
243 extensions/discord/src/monitor/reply-delivery.ts READ Removed unreachable fallback after a display string with a literal nonempty robot prefix.
243 extensions/slack/src/doctor.ts READ No safe removal: diagnostic branches preserve distinct lowercase-ID/name warnings and authenticated probe outcomes.
242 extensions/clickclack/src/discussions/binding-generation.ts READ Native host-floor fallback and compare-and-apply generation fencing retain persisted ownership contracts.
242 extensions/discord/src/monitor/agent-components.handlers.ts READ Component consumption rechecks follow authorization await and protect one-use claims; showModal catch supplies user-visible failure.
242 extensions/discord/src/voice/command.ts READ Replaced the role-array identity map with an explicit shallow copy.
242 extensions/discord/src/voice/voice-conversation-input.ts READ Queue, transcript and audio limits enforce bounded admission/authority; catches retire context before signaling errors.
242 extensions/msteams/src/policy.ts READ No sound scope-lens reduction: nested matching and cross-team fallback preserve precedence; comments describe collision and policy-selection invariants.
242 extensions/telegram/src/outbound-media.ts READ Caption fallback catches preserve final/plain/error outcomes and exact diagnostics.
242 extensions/telegram/src/status-reaction-variants.ts READ Corrected stale omitted/null comment; undefined and null already have distinct behavior.
241 extensions/clickclack/src/discussions/binding-store.ts READ Indexes derive from persisted bindings; session incarnations and detached retention have separate invariants.
241 extensions/irc/src/irc-ingress.ts READ No sound reduction found: admission preserves invalid raw lines for dead-lettering and claim projections bind identity before dispatch.
241 extensions/whatsapp/src/outbound-media-contract.ts READ APPLIED: reuse normalized preferred media list; normalize only single-media fallback.
240 extensions/team-reports/src/config.ts READ Zod parsing, bounded file access and secret-error redaction own separate public boundaries.
240 extensions/team-reports/src/render/report.ts READ Visible report composition has distinct projections and intentional fallback-highlight suppression.
240 extensions/tlon/src/settings.ts READ Settings parsing protects remote/persisted shapes and optional subscription failures; retained JSON-encoding and hot-reload explanations.
239 extensions/buzz/src/qa/adapter.runtime.ts READ Corrected stale single-account comment; lease cleanup and native-to-portable message mapping protect live QA correctness.
239 extensions/feishu/src/docx-table-ops.ts READ APPLIED: remove redistribution narration; retain API minimum width, descendant constraints and lookup-lifecycle comments.
239 extensions/googlechat/src/monitor-webhook.ts READ Retained pre-auth body budgets, authenticated routing, durable admission and acknowledgement markers; catches map HTTP outcomes.
239 extensions/matrix/src/matrix/monitor/mentions.ts READ No sound catch removal; malformed mention URLs stay inert and visible labels protect against forged mentions.
239 extensions/telegram/src/telegram-ingress-spool-migration.ts READ Migration guards protect state, backup integrity, tombstones and cleanup debt; retain.
239 extensions/whatsapp/src/shared.ts READ Plugin base registers real configuration, setup, security and legacy-session contracts; lazy setup and scoped adapters have concrete consumers; no sound removal.
238 extensions/discord/src/monitor/native-command-context.ts READ Native context builds identity-bound ingress and route metadata; public wrappers have distinct context assembly responsibilities.
238 extensions/telegram/src/sequential-key.ts READ Removed private command-key JSDoc restating name and return type.
238 extensions/telegram/src/telegram-text-delivery.ts READ Manual collection could use Array.fromAsync at runtime, but ES2023 type library excludes it; preserve rather than changing project contracts.
238 extensions/whatsapp/src/inbound/outbound-mentions.ts READ APPLIED: inline one-use exact group suffix check; retain strict acceptance distinct from public normalizer.
237 extensions/matrix/src/matrix/accounts.ts READ No sound error/comment removal: config/env/credential precedence and frozen credential observation retained.
237 extensions/msteams/src/sdk.ts READ APPLIED: absorb one-use constructor into the existing exported loader, preserving {app} return shape in each of the three auth branches; callers/lazy imports/credentials remain unchanged.
237 extensions/twitch/src/plugin.ts READ No sound reduction found: lazy monitor import and pending lifecycle task prevent initialization cycles and supervisor restart loops.
237 extensions/whatsapp/src/channel-react-action.ts READ Action parameter aliases, target inference and base64 preallocation bounds are user/security contracts; no safe wrapper or catch elimination.
236 extensions/slack/src/data-visualization.ts READ Removed narrating comments only; retained behavior and ownership, lifecycle, security and protocol explanations.
236 extensions/telegram/src/bot-message-dispatch-context.ts READ Recovered topic context updates preserve host-only admission payload identity.
235 extensions/msteams/src/monitor-handler/thread-context.ts READ No sound scope-lens reduction: request catches deliberately retain independent parent/reply context with recorded failures and sender filtering.
234 extensions/discord/src/monitor/message-handler.process-reactions.ts READ Reaction contexts and controllers enforce feedback/target transitions; error catches record intentional no-op outcomes.
234 extensions/feishu/src/comment-reaction.ts READ APPLIED: normalize lifecycle replyId once; sole production caller passes private params spread, so no mutable replyId alias.
234 extensions/matrix/src/matrix/monitor/handler-draft-controller.ts READ No sound simplification; draft generations and queued boundaries preserve asynchronous block ordering.
234 extensions/signal/src/signal-ingress.ts READ Retained: queue recovery/draining comment explains lifecycle; serialized ingress, tombstones, retry outcomes and drain ownership are necessary.
234 extensions/tlon/src/monitor/history.ts READ Removed redundant thread-history JSDoc, stale path format and narrating memo/fallback comments; retained cache scope and authenticated namespace constraints.
232 extensions/discord/src/monitor/exec-approvals.ts READ No sound simplification: provider interaction catches preserve approval outcomes without duplicate mutations
232 extensions/irc/src/accounts.ts READ No sound reduction found: explicit credential-source precedence and unavailable-secret diagnostics differ; listEnabledIrcAccounts remains exported from public api.ts.
231 extensions/team-reports/src/sources/github/client.ts READ Pagination origin checks, retry controls and sanitized source errors remain meaningful.
230 extensions/discord/src/monitor/message-text.ts READ Consumed guaranteed nonblank mention/component documents without revalidation and refiltering.
230 extensions/tlon/src/channel.runtime.ts READ Removed unused verbose field from internal upload config; kept authenticated poke and response-release behavior.
229 extensions/feishu/src/subagent-hooks.ts READ Retained re-normalization: public manager/API returns mutable records, so all external aliases cannot be ruled out.
228 extensions/imessage/src/monitor/conversation-repair.ts READ unchanged: exact GUID recovery validates independent RPC history, rejects conflicting authority projections and records missing/incomplete/own-send outcomes.
228 extensions/slack/src/monitor/message-handler/prepare-room-history.ts READ No sound removal: history authorization, bounded media, and omission outcomes are behavior contracts.
228 extensions/telegram/src/doctor-contract.ts READ Current alias/tuning migrations preserve upgrade behavior and config-key boundaries; no eligible older migration demonstrated.
228 extensions/telegram/src/send-outbound.ts READ Outbound exceptions carry positive partial-delivery evidence; preserve wrappers.
227 extensions/discord/src/internal/rest-errors.ts READ No sound simplification: redaction depth/node limits and diagnostic classification are security contracts
227 extensions/feishu/src/doctor-contract.ts READ Migration registrations and repairs retain named upgrade/config contracts; no sound removal established within this lens.
227 extensions/signal/src/approval-handler.runtime.ts READ Retained: rejected target mapping and best-effort typing catch record intentional non-outcomes; author keys anchor reaction authorization.
226 extensions/discord/src/monitor/gateway-supervisor.ts READ Gateway supervisor buffers early errors and retains late error protection; error formatting details preserve diagnostics.
226 extensions/nextcloud-talk/src/setup-core.ts READ No sound reduction found: lazy allowlist prompt construction may bind translations at invocation; legacy CLI aliases remain explicit user-visible contract.
226 extensions/nostr/src/channel.ts READ No sound reduction found: target normalization intentionally distinguishes invalid prefixed tokens from wildcard access and preserves error text.
225 extensions/discord/src/monitor/message-handler.process-reply-runtime.ts READ Reply runtime delays feedback until admission and records transcript lookup failures.
225 extensions/feishu/src/monitor.vc-meeting-invited-handler.ts READ Adoption and error catches preserve cancellation/claim settlement; small redundant async callback is not worth changing lifecycle ordering.
225 extensions/signal/src/client-unix.ts READ no safe reduction found: endpoint checks, frame limits, error redaction and connection-owned subscriptions enforce external transport/security boundaries.
225 extensions/zalouser/src/zca-client.ts READ Narrow transport types and lazy CommonJS load avoid optional WebSocket tree and tough-cookie ESM incompatibility; retain boundary.
224 extensions/googlechat/src/approval-card-actions.ts READ Retained signed-token registry and bounded suppression lifecycle; normalization separates incoming approval references from stored IDs.
224 extensions/signal/src/config-schema.ts READ no safe reduction found: schema retains channel/account inheritance validation and updater-only projection of retired transport keys.
223 extensions/discord/src/internal/structures.ts READ Removed unused private channelFactory partial parameter after checking every caller.
223 extensions/discord/src/retry.ts READ Retry classifications distinguish rejected/pre-connect/ambiguous writes; catches retain gateway disconnect and timeout ownership.
223 extensions/googlechat/src/approval-native.ts READ Retained origin, approver, transport and forwarding gates; shared owners already handle repeated approval flows.
223 extensions/imessage/src/monitor/catchup-bridge.ts READ unchanged: raw watermarks intentionally include parser-rejected rows while capped valid rows retain replay ordering; catches record incomplete fetches.
222 extensions/buzz/src/channel.ts READ Plugin registration and typed session-route adapters are dynamic contracts; no redundant boundary or safe deletion found.
222 extensions/clickclack/src/channel.ts READ Distinct message and legacy outbound adapters preserve receipts and intentional no-send results.
222 extensions/discord/src/monitor/dm-command-auth.ts READ Access-group catch logs a security lookup failure then rethrows; preserve log and security semantics rather than deleting it.
222 extensions/mattermost/src/mattermost/monitor-ingress.ts READ Keep raw-before-admission and claimed-event validation distinct plus permanent-error conversion and drop logging; no safe scope-lens reduction.
221 extensions/discord/src/voice/realtime-output.ts READ PCM and callbacks enforce shared-clock ownership, cleanup and pending byte bounds; repeated closed checks are required.
221 extensions/mattermost/src/mattermost/monitor-draft-delivery.ts READ Keep confirmed-preview composition and accepted-delivery wrapping: errors must retain visible receipts; no safe scope-lens reduction.
221 extensions/telegram/src/history-read.ts READ History reads authenticate exact account/group/topic and revalidate policy after awaits.
221 extensions/zalo/src/webhook-spool.ts READ Claim revalidation protects durable identity and errors map to recorded retry outcomes; history comment explains retention domination and is retained.
220 extensions/discord/src/monitor/auto-presence.ts READ Removed null guard duplicated by the exhaustive explicit unavailable-reason comparisons.
220 extensions/line/src/flex-templates/basic-cards.ts READ No sound lens cleanup: only comment explains blank-text LINE rejection; card constructors already share title/body and bubble owners.
220 extensions/zalouser/src/tool.ts READ Tool catch produces model-visible error/partial-delivery result; parameter checks remain necessary at cast tool boundary.
219 extensions/discord/src/setup-core.ts READ Removed unreachable wildcard fallback after the setup mapper guarantees a nonblank guild key.
219 extensions/slack/src/monitor/events/interactions.ts READ No safe removal: sanitization handles untrusted nested values and compact payload shape; modal comment explains Bolt API constraint.
219 extensions/zalouser/src/ingress.ts READ Admission/claim validation and append error wrapping preserve durable identity and recorded outcomes; no safe removal found.
218 extensions/buzz/src/qa/relay-client.ts READ Authenticated roster checks, real EOSE readiness, observed-event dedupe, and transport-error capture provide live QA boundary proof.
218 extensions/discord/src/send.guild.ts READ Removed event-cover loader narration while preserving media policy and REST contract comments.
218 extensions/zalo/src/setup-surface.ts READ Secret/update-mode setup owns user-visible config and validation; catches supply supported malformed-URL fallback, preserve.
217 extensions/matrix/src/setup-config.ts READ No sound simplification; setup validation/config promotion preserves public inputs and named-account precedence.
216 extensions/buzz/src/relay-auth.ts READ Inlined one-use auth-signer factory into connection owner; preserved signer capture, auth timing, relay cleanup, and timeout mapping.
216 extensions/discord/src/monitor/provider.deploy.ts READ Nested deploy catches preserve specific rate-limit warnings and logger-failure containment; outer background catch handles unexpected setup errors.
216 extensions/googlechat/src/setup-surface.ts READ Retained shared service-account input descriptor and setup/schema ownership; no redundant errors or narration remain.
216 extensions/matrix/src/matrix/monitor/handler-helpers.ts READ RETAINED: Recent #165419 established explicit-filename-only attachment suppression. Retain caption-versus-filename distinction, raw media/wire admission, shared-DM session scoping and bounded first-notice tracking; remaining catches record intentional fallback outcomes.
216 extensions/nextcloud-talk/src/channel.ts READ No sound reduction found: plugin descriptors, provider-specific probe issue projection and outbound adapters expose distinct runtime contracts.
214 extensions/telegram/src/update-offset-store.ts READ No sound simplification: offset validation and rotation preserve migration/identity-reset contracts
213 extensions/mattermost/src/mattermost/reactions.ts READ Removed one-use mutation callbacks, their parameter/type layer and repeated projection; POST/DELETE now run directly under the existing reaction error owner.
213 extensions/tlon/src/monitor/ingress.ts READ Raw event admission, durable row decode and claim failures are independent boundaries; no safe removal found.
212 extensions/whatsapp/src/inbound/message-debounce.ts READ Debounce key tracking, lifecycle fan-in, receipt timing and event-driven drains preserve batching/shutdown order; failure catch owns abandonment.
211 extensions/feishu/src/dynamic-agent.ts READ Repeated policy checks revalidate under config mutation ownership; sentinel catch converts skipped writes into recorded current-config outcome.
211 extensions/msteams/doctor-contract-api.ts READ No sound scope-lens reduction: retired-source diagnostics and delegated-token migration are dynamically registered doctor contracts, not dead exports.
211 extensions/sms/src/gateway.ts READ Route replacement must pause before unregistering, join predecessor cleanup, and preserve readiness and stop-task ownership.
211 extensions/telegram/src/format-html.ts READ Removed stale history about deleted rich-block helpers while preserving transcript boundary rationale.
210 extensions/discord/src/security-audit.ts READ No sound simplification: audit handles untrusted raw legacy configuration and preserves finding text
210 extensions/discord/src/send.types.ts READ Removed a comment restating an intersection type.
210 extensions/discord/src/shared-interactive.ts READ Interactive adapters preserve typed approval/question contracts and legacy public compatibility.
210 extensions/feishu/src/native-card.ts READ Retained shared action/outbound ownership title and trust-boundary guards; no sound removal chosen.
210 extensions/matrix/src/matrix/draft-stream.ts READ No safe removal: failure state controls final delivery/redaction and MSC4357 cleanup; recent 24h ownership guard.
209 extensions/line/src/channel.ts READ No sound lens cleanup: target/auth classification comments preserve security/address semantics and lazy runtime loaders are real cold boundaries.
209 extensions/matrix/src/matrix/monitor/startup-verification.ts READ No sound removal: startup cooldown state, failed-request outcome, and retired-file diagnostics retained.
209 extensions/slack/src/monitor/message-handler/dispatch-progress-card.ts READ No sound catch removal; finalization failures become recorded false outcomes and retained presentation state.
209 extensions/telegram/src/status-issues.ts READ Status input is intentionally unknown and diagnostics preserve startup/stale distinctions; no sound simplification.
208 extensions/discord/src/voice/ingress.ts READ Bootstrap fallback names supported September 2026 host contract; retain migration and ingress/current-authority checks.
208 extensions/discord/src/voice/receive-recovery.ts READ Receive recovery catches record retry disposition and preserve upstream DAVE state.
207 extensions/slack/src/monitor/message-handler/prepare-content.ts READ No safe removal: media omissions, inherited-file filtering and bounded mention resolution preserve user-visible context.
207 extensions/telegram/src/topic-name-cache.ts READ Retained timestamp owner lookup to preserve monotonic state admission rather than thread another state argument.
206 extensions/matrix/src/matrix/sdk/client-support.ts READ No sound simplification; diagnostic wrappers intentionally map timeouts/errors to typed recorded outcomes.
206 extensions/msteams/src/approval-card.ts READ No sound scope-lens reduction: shared card builders already own repeated shapes and canonical terminal cards intentionally use different wording.
206 extensions/telegram/src/monitor.ts READ Polling lease, webhook/polling cleanup, runtime dispatcher forwarding, and offset rotation messages preserve ownership.
205 extensions/line/src/download.ts READ REJECTED: fetch helper returns plain Response, whose body remains nullable at lazy generator entry; deletion needs a new admitted-body return contract or cast. Retain meaningful missing-body diagnostic rather than add plumbing to save one guard.
205 extensions/signal/src/socket-path.ts READ no safe reduction found: all catches/rechecks distinguish ownership, liveness, ACL admission and cleanup after creation; never remove these security boundaries.
204 extensions/signal/src/monitor/access-policy.ts READ APPLIED: phone ingress callback uses canonical allow-recipient normalizer directly; removed duplicate parsing wrapper.
204 extensions/telegram/src/polling-lease.ts READ MERGED #165340; no current open-deslop owner. APPLIED: compare current entry with captured entry instead of a second owner symbol. Registry stores exact entry objects; stale release fencing, idempotent release and done settlement remain unchanged.
204 extensions/telegram/src/progress-draft-preview.ts READ Removed JSDoc restating the account renderer name and parameters.
204 extensions/zalouser/src/text-styles-source-spans.ts READ Source projection arithmetic preserves tabs, nested list markers and quote indentation; no redundancy safe under exact text contract found.
203 extensions/slack/src/doctor-contract.ts READ No sound removal: Doctor normalizations and their messages preserve supported config migration behavior.
203 extensions/twitch/src/twitch-ingress.ts READ No sound reduction found: claim shape checks, authentication-failure classification, handoff tracking and deferred drain shutdown own required outcomes.
203 extensions/x/src/admin.ts READ Gateway errors map to recorded responses; post-await administrator authority checks remain necessary.
202 extensions/discord/src/monitor/message-handler.recent-history.ts READ History recovery guard prevents unbounded policy refill and stale authorization; catch records omitted-history outcome.
202 extensions/discord/src/voice/voice-recording.ts READ No sound simplification: recording cleanup, resource budget and retired-owner checks preserve lifecycle
201 extensions/slack/src/native-data-blocks.ts READ Removed narrating comments only; retained behavior and ownership, lifecycle, security and protocol explanations.
201 extensions/zalo/src/outbound-media.ts READ Inlined single-use resolveHostedZaloMediaRoutePath slash-append wrapper; keep route/token/expiry rechecks and atomic store lifetime.

Reuse canonical normalization and delivery facts, remove redundant forwarding and error layers, and delete narrating comments while preserving protocol, lifecycle and authority contracts.

Full production coverage for lane l406 is recorded with the PR.
@steipete
steipete force-pushed the deslop/l406-err-comments-channels-20261005 branch from b20838b to dca5c00 Compare October 7, 2026 00:43
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 7, 2026
@steipete
steipete merged commit 6c352f4 into main Oct 7, 2026
182 of 183 checks passed
@steipete
steipete deleted the deslop/l406-err-comments-channels-20261005 branch October 7, 2026 01:04
MarMarLabs added a commit to MarMarLabs/openclaw that referenced this pull request Oct 7, 2026
105 upstream commits. openclaw#166106 deletes narrating comments and simplifies
small helpers across the channel plugins, including 39 Feishu files.
openclaw#166189 updates fs-safe to 0.24.1, which only touches
extensions/feishu/package.json on the Feishu side.

extensions/feishu/src/outbound.ts conflicted. openclaw#166106 reworded the local
image path comment inside the inline sendText handler, and this branch
moved that handler into deliverFeishuOutboundText. The merge keeps the
branch's handler and carries the new comment wording into it. The other
files both sides touch (channel.ts, config-schema.ts, markdown.ts,
reply-dispatcher.ts) took openclaw#166106's edits automatically. Those edits
remove comments and simplify expressions without changing behavior.

No upstream change touches a config schema, so the generated files were
regenerated from this merge and came out identical to the previous
branch head. build:docker ran in a separate detached checkout of this
commit. Counts are core 2494, channel 3876 and plugin 4524. The core and
plugin hashes match upstream/main. The generated metadata differs from
upstream/main only by the two Feishu markdown.tables entries. The three
generated-file checks pass there.

Feishu: 101 files and 1521 tests in the extension project, 17 files and
218 tests in the database-workers project, all passing. The forwarder
test and the routing guards pass, 503 tests. tsgo:core, tsgo:extensions,
tsgo:extensions:test, tsgo:test:root, the line-cap, max-lines,
assertion-safety, database-worker, test-timeout-race and test-mock-
exports ratchets against upstream/main, oxlint and oxfmt on the 43
changed code files all pass.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 7, 2026
* refactor(channels): deslop channels

Reuse canonical normalization and delivery facts, remove redundant forwarding and error layers, and delete narrating comments while preserving protocol, lifecycle and authority contracts.

Full production coverage for lane l406 is recorded with the PR.

* refactor(channels): finish small-module deslop sweep

* refactor(channels): preserve async snapshots and tighten fixtures

* refactor(channels): finish owner and normalization cleanup

* test(zalo): await polling image processing before assertions

* refactor(channels): finish owner cleanup and repair lane checks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: buzz channel: discord Channel integration: discord channel: feishu Channel integration: feishu channel: googlechat Channel integration: googlechat channel: imessage Channel integration: imessage channel: irc channel: line Channel integration: line channel: matrix Channel integration: matrix channel: mattermost Channel integration: mattermost channel: msteams Channel integration: msteams channel: nextcloud-talk Channel integration: nextcloud-talk channel: nostr Channel integration: nostr channel: signal Channel integration: signal channel: slack Channel integration: slack channel: sms Channel integration: sms channel: synology-chat channel: telegram Channel integration: telegram channel: tlon Channel integration: tlon channel: twitch Channel integration: twitch channel: whatsapp-web Channel integration: whatsapp-web channel: x channel: zalo Channel integration: zalo channel: zalouser Channel integration: zalouser extensions: clickclack P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. plugin: team-reports rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XL status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant