Skip to content

feat(sms): track Twilio delivery status - #118665

Merged
vincentkoc merged 6 commits into
mainfrom
feat/twilio-sms-delivery-status
Aug 3, 2026
Merged

vincentkoc merged 6 commits into
mainfrom
feat/twilio-sms-delivery-status

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Aug 3, 2026 •

Copy link
Copy Markdown
Member

Closes #118044

What Problem This Solves

Twilio's synchronous send response only proves provider acceptance or queueing. The SMS channel had no durable record of later carrier outcomes, so operators could not distinguish a delivered message from one that later became undelivered or failed.

Why This Change Was Made

  • Generate a validated public StatusCallback URL for outbound Twilio messages when the SMS webhook is publicly reachable.
  • Verify callback signatures and account ownership before recording any observation.
  • Store bounded, account-scoped delivery observations in plugin state with atomic deduplication.
  • Reduce out-of-order progress safely, preserve terminal conflicts, retain raw Twilio status and error evidence, and expose recent outcomes through SMS diagnostics.
  • Bound signed delivery-state persistence with a separate 3,000-callback-per-minute account-route fuse. Overflow returns HTTP 503 before any write or durable-acceptance marker.
  • Keep this contract plugin-local. It does not expand MessageReceipt, the shared plugin SDK, or RCS.

User Impact

Operators can now see recent outbound Twilio delivery outcomes such as sent, delivered, undelivered, failed, or conflicted. Provider acceptance is no longer presented as proof of final carrier delivery.

The overload fuse is fail-closed protection, not lossless backpressure. Twilio retries generated callbacks on 5xx, but reconciliation is still required when final-state completeness matters; missed intermediate transitions cannot be reconstructed.

Review Resolution

Evidence

  • Full SMS suite: 15 files, 314 tests passed.
  • Focused signed-admission proof: 2 files, 33 tests passed.
  • Callback URL and retry-contract proof: 1 file, 66 tests passed.
  • Generated channel index contract: 1 file, 21 tests passed; channels:catalog:check passed.
  • oxfmt, docs map generation, targeted oxlint, git diff --check, and commit-signature checks passed.
  • Exact-head autoreview and TruffleHog passed with no findings at 0.97 confidence.
  • Independent exact-head admission and test-shape reviews found no blocker.
  • Official Twilio contract review found no blocker after the callback-URL and reconciliation wording corrections.
  • No live Twilio credentials were available; provider behavior is covered by official contracts plus deterministic signed-webhook tests.
  • Change shape: production +793/-58; tests +1755/-11; docs +17/-6.

@vincentkoc vincentkoc self-assigned this Aug 3, 2026
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation channel: sms Channel integration: sms size: XL maintainer Maintainer-authored PR labels Aug 3, 2026
@clawsweeper clawsweeper Bot added 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. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. labels Aug 3, 2026
@clawsweeper

clawsweeper Bot commented Aug 3, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge. Reviewed August 3, 2026, 6:02 PM ET / 22:02 UTC.

ClawSweeper review

What this changes

The branch records signed Twilio delivery callbacks in SMS diagnostics and also adds MMS transport support, plugin HTTP-route updates, and outbound-delivery recovery changes.

Merge readiness

⛔ Blocked by patch quality or review findings - 7 items remain

Keep this maintainer-authored, protected PR open, but block merge on one P1 correctness issue: signed Twilio delivery callbacks persist plugin state before the SMS webhook’s normal bounded-admission checks. The previous ClawSweeper finding remains present on the same head; the repair is narrow, while a maintainer should also confirm whether the broader MMS, route-registration, and delivery-recovery work should land together.

Priority: P2
Reviewed head: 9af50ee8de90bf9c6f1c9ea46439a357a0866d13
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The design has useful targeted coverage, but the unchanged P1 admission bypass blocks confidence in the patch.
Proof confidence 🌊 off-meta tidepool Not applicable: The contributor is a repository MEMBER, so the external-contributor real-behavior-proof gate does not apply; the PR body supplies test and build claims but no independently inspectable live Twilio callback artifact on the current head.
Patch quality 🦪 silver shellfish (2/6) 1 actionable review finding remain.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The contributor is a repository MEMBER, so the external-contributor real-behavior-proof gate does not apply; the PR body supplies test and build claims but no independently inspectable live Twilio callback artifact on the current head.
Evidence reviewed 5 items Signed delivery callbacks bypass common admission limits: On the PR head, the delivery-status branch returns immediately after persistence. Its only callback rate-limit condition is restricted to disabled signature validation, while the normal per-sender and aggregate limits run later on the inbound path.
Existing test proves persistence but not signed over-quota rejection: The added callback test proves a signed callback is recorded and never enqueued as inbound traffic, but the inspected callback tests do not establish that signed delivery callbacks are rejected before recording when the route is over quota.
Prior review continuity: The preceding ClawSweeper cycle reviewed this same head SHA and identified the same missing bounded admission before delivery persistence; no subsequent commit changes the head.
Findings 1 actionable finding [P1] Rate-limit signed delivery callbacks before recording them
Security None None.

How this fits together

The SMS plugin receives Twilio webhooks through the Gateway, verifies provider signatures, and either admits inbound messages to durable ingress or records outbound carrier-delivery observations in plugin state. SMS diagnostics then read those observations so operators can distinguish provider acceptance from later delivery outcomes.

flowchart LR
  A[Twilio outbound status callback] --> B[SMS Gateway webhook route]
  B --> C[Signature validation]
  C --> D{Callback or inbound message?}
  D -->|Inbound message| E[Bounded webhook admission]
  D -->|Delivery callback| F[Delivery observation recorder]
  E --> G[Durable inbound queue]
  F --> H[Plugin state and SMS diagnostics]
Loading

Decision needed

Question Recommendation
Should the linked Twilio MMS and delivery-observation work land as one bundled SMS feature after the admission repair, or should the broader route and recovery changes be split for separate review? Land the cohesive SMS feature after repair: Keep the work together if maintainers confirm that the MMS, callback, and recovery changes are required parts of one operator-facing SMS capability.

Why: The branch changes several owner boundaries beyond delivery-status recording, and repository policy requires maintainer product and merge-scope judgment for broad behavior changes.

Before merge

  • Rate-limit signed delivery callbacks before recording them (P1) - The delivery-status branch returns at lines 149–183, and its only quota applies when signature validation is disabled. Valid signed callbacks therefore reach deliveryRecorder.record without the sender and aggregate admission checks that protect normal webhook traffic at lines 191–209, allowing a callback burst to persist unbounded work. Apply equivalent signed admission before the write and add an over-quota regression test.
  • Resolve merge risk (P1) - Merging as written lets a high-volume stream of valid signed delivery callbacks write plugin state without the sender and aggregate admission limits that protect normal validated SMS webhook traffic.
  • Resolve merge risk (P1) - The branch combines the linked delivery-observation feature with MMS behavior, plugin HTTP-route semantics, and outbound-delivery recovery changes; maintainers should explicitly confirm that this remains one coherent landing unit after the P1 repair.
  • Complete next step (P2) - The remaining P1 is a narrow mechanical repair with a clear owner boundary and focused regression path; final landing scope still needs maintainer confirmation.
  • Improve patch quality - Apply bounded signed delivery-callback admission before persistence and add the over-quota regression.
  • Improve patch quality - Confirm whether the broader MMS, HTTP-route, and recovery changes should remain in this delivery-status landing unit.

Findings

  • [P1] Rate-limit signed delivery callbacks before recording them — extensions/sms/src/webhook.ts:149-157
Agent review details

Security

None.

PR surface

Source +2172, Tests +4850, Docs +29, Config 0, Generated 0. Total +7051 across 63 files.

View PR surface stats
Area Files Added Removed Net
Source 36 2505 333 +2172
Tests 21 4885 35 +4850
Docs 3 59 30 +29
Config 1 3 3 0
Generated 2 6 6 0
Other 0 0 0 0
Total 63 7458 407 +7051

Review metrics

Metric Value Why it matters
Signed callback admission 0 signed delivery callback limits before state write The delivery-status branch bypasses the existing sender and aggregate webhook admission boundary before it persists plugin state.

Stored data model

Persistent data-model change detected: migration/backfill/repair: src/infra/delivery-queue-sqlite.test.ts, serialized state: src/plugin-sdk/outbound-media.test.ts, unknown-data-model-change: src/config/bundled-channel-config-metadata.generated.ts, vector/embedding metadata: src/plugin-sdk/outbound-media.test.ts. Confirm migration or upgrade compatibility proof before merge.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #118044
Summary: This PR is the stated implementation candidate for the open Twilio MMS and durable delivery-observation request.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Restore bounded admission before persistence (recommended)
    Apply the signed sender and aggregate callback limits before recording delivery observations, with a regression test proving over-quota callbacks do not write plugin state.
  2. Pause for scope confirmation
    If the broader MMS, plugin-route, and delivery-recovery changes are not intended to land as one SMS feature, split them before continuing merge review.
Copy recommended automerge instruction
@clawsweeper automerge

Special instructions:
Move delivery-status handling behind the shared signed admission checks or apply equivalent signed sender and aggregate limits before `deliveryRecorder.record`; add a focused signed over-quota test that asserts no persistence.

Technical review

Best possible solution:

Apply a bounded signed-callback admission policy before deliveryRecorder.record, add a regression that proves no durable write occurs after the signed quota is exhausted, then land only the confirmed coherent SMS feature scope.

Do we have a high-confidence way to reproduce the issue?

Yes, from source: send more than the configured callback quota of valid signed delivery-status forms and observe that the delivery branch reaches deliveryRecorder.record before any signed sender or aggregate limiter is evaluated. A focused regression test can establish this without external Twilio credentials.

Is this the best way to solve the issue?

No. Plugin-local delivery observations are an appropriate owner boundary, but the callback branch must reuse or mirror the established signed admission policy before it performs durable writes.

Full review comments:

  • [P1] Rate-limit signed delivery callbacks before recording them — extensions/sms/src/webhook.ts:149-157
    The delivery-status branch returns at lines 149–183, and its only quota applies when signature validation is disabled. Valid signed callbacks therefore reach deliveryRecorder.record without the sender and aggregate admission checks that protect normal webhook traffic at lines 191–209, allowing a callback burst to persist unbounded work. Apply equivalent signed admission before the write and add an over-quota regression test.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.99

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 65fa1f9a7bd1.

Labels

Label changes:

  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🌊 off-meta tidepool and patch quality is 🦪 silver shellfish.
  • remove rating: 🧂 unranked krab: Current PR rating is rating: 🦪 silver shellfish, so this older rating label is no longer current.

Label justifications:

  • P2: This is a normal-priority SMS feature PR with a concrete pre-merge correctness defect, not a live production regression.
  • merge-risk: 🚨 availability: The patch can introduce unbounded durable callback work under an otherwise valid signed Twilio callback stream.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🌊 off-meta tidepool and patch quality is 🦪 silver shellfish.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: The contributor is a repository MEMBER, so the external-contributor real-behavior-proof gate does not apply; the PR body supplies test and build claims but no independently inspectable live Twilio callback artifact on the current head.

Evidence

Acceptance criteria:

  • [P1] node scripts/run-vitest.mjs extensions/sms/src/webhook.test.ts.
  • [P1] node scripts/run-vitest.mjs extensions/sms/src/delivery-observations.test.ts.
  • [P1] git diff --check.

What I checked:

  • Signed delivery callbacks bypass common admission limits: On the PR head, the delivery-status branch returns immediately after persistence. Its only callback rate-limit condition is restricted to disabled signature validation, while the normal per-sender and aggregate limits run later on the inbound path. (extensions/sms/src/webhook.ts:149, 9af50ee8de90)
  • Existing test proves persistence but not signed over-quota rejection: The added callback test proves a signed callback is recorded and never enqueued as inbound traffic, but the inspected callback tests do not establish that signed delivery callbacks are rejected before recording when the route is over quota. (extensions/sms/src/webhook.test.ts:211, 9af50ee8de90)
  • Prior review continuity: The preceding ClawSweeper cycle reviewed this same head SHA and identified the same missing bounded admission before delivery persistence; no subsequent commit changes the head. (extensions/sms/src/webhook.ts:149, 9af50ee8de90)
  • Admission-policy provenance: The SMS webhook’s existing sender and aggregate quota behavior appears in prior SMS history, including the isolated validated-webhook quota change; the new delivery branch bypasses that established owner boundary. (extensions/sms/src/webhook.ts:191, 864259486b70)
  • Current-main comparison: Current main retains bounded per-sender and aggregate admission before durable inbound acknowledgement but does not yet contain the proposed delivery-observation branch, so the central feature remains necessary rather than implemented on main. (extensions/sms/src/webhook.ts:141, 65fa1f9a7bd1)

Likely related people:

  • clawSean: Introduced the recent SMS change that isolates validated webhook quotas, directly adjacent to the admission boundary this patch bypasses. (role: validated-webhook quota contributor; confidence: high; commits: 864259486b70; files: extensions/sms/src/webhook.ts)
  • Peter Steinberger: History shows work on durable webhook ingress monitoring and preventing acknowledged Twilio-message loss, which shares the persistence and lifecycle boundary affected here. (role: durable-webhook lifecycle contributor; confidence: high; commits: c163daa4ed02, ee2b4e5acc59; files: extensions/sms/src/webhook.ts)
  • Vincent Koc: Has prior merged SMS webhook-test work and authored the current delivery-status implementation, making them a relevant technical contact for the focused repair. (role: recent SMS contributor; confidence: high; commits: 245451148029, 9af50ee8de90; files: extensions/sms/src/webhook.ts, extensions/sms/src/webhook.test.ts)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (2 earlier review cycles)
  • reviewed 2026-08-03T12:49:35.121Z sha 85c5f4938a06bf3bc4a9b4623c5aa1952ae332a3 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-03T14:12:04.664Z sha 9af50ee :: needs changes before merge. :: [P1] Apply admission limits before persisting signed delivery callbacks

@vincentkoc
vincentkoc force-pushed the feat/twilio-sms-delivery-status branch from 85c5f49 to 9af50ee Compare August 3, 2026 14:04
@vincentkoc
vincentkoc force-pushed the feat/twilio-sms-mms-pr branch from cafcc86 to 0fdd04b Compare August 3, 2026 14:04
@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. and removed 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. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. labels Aug 3, 2026
@vincentkoc
vincentkoc force-pushed the feat/twilio-sms-mms-pr branch 2 times, most recently from ddd6ce1 to 960a550 Compare August 3, 2026 20:59
Base automatically changed from feat/twilio-sms-mms-pr to main August 3, 2026 21:46
@openclaw-barnacle openclaw-barnacle Bot added the gateway Gateway runtime label Aug 3, 2026
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Aug 3, 2026
@vincentkoc
vincentkoc force-pushed the feat/twilio-sms-delivery-status branch from 9af50ee to 583fff0 Compare August 3, 2026 22:06
@openclaw-barnacle openclaw-barnacle Bot removed the gateway Gateway runtime label Aug 3, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review August 3, 2026 22:08
@vincentkoc

vincentkoc commented Aug 3, 2026 •

Copy link
Copy Markdown
Member Author

Resolved the latest ClawSweeper rank-up moves at 61095a48a8ca1ba6b865cd8d2eda2eb287ecc539.

  • Signed callback admission: delivery callbacks now pass signature, MessageSid, and exact AccountSid validation before a separate 3,000/minute account-route fuse. Callback 3,001 returns HTTP 503 before recorder construction or invocation and without the durable-acceptance header.
  • Regression proof: the focused test exhausts the real fixed-window limiter, proves no write/ack on overflow, verifies route isolation, and verifies reopening after the window resets.
  • Landing scope: route registration, delivery recovery, and MMS landed separately in fix(plugins): unify HTTP route conflict handling #118203, fix(delivery): renew stable producer leases #118663, and feat(sms): add Twilio MMS support #118664. This PR now contains only the delivery-observation feature.
  • Proof: full SMS suite 15 files/314 tests; focused admission 2 files/33 tests; callback URL contract 1 file/66 tests; generated channel index 1 file/21 tests; exact-head autoreview and TruffleHog clean at 0.97 confidence.
  • External contract: docs now state that overload is lossy fail-closed protection, callback URLs are derived, and reconciliation recovers final state rather than missed intermediate transitions.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 3, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot removed the rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. label Aug 3, 2026
@vincentkoc
vincentkoc force-pushed the feat/twilio-sms-delivery-status branch from 4d1946f to 61095a4 Compare August 3, 2026 22:17
@clawsweeper

clawsweeper Bot commented Aug 3, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@vincentkoc
vincentkoc merged commit 0758316 into main Aug 3, 2026
115 checks passed
@vincentkoc
vincentkoc deleted the feat/twilio-sms-delivery-status branch August 3, 2026 22:39
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Aug 3, 2026
…ansports-20260803

* origin/main: (120 commits)
  test(ui): add service-worker update primary QA proof (#118805)
  test(qa): cover CLI onboarding and plugin install sources (#118882)
  test(qa): cover remote logging boundaries (#118951)
  fix(sms): retry transient MMS failures before durable adoption (#118994)
  test(qa): cover video generation invocation (#118864)
  test(qa): cover media reference intake (#118858)
  test(qa): cover image generation task lifecycle (#118915)
  feat(sms): track Twilio delivery status (#118665)
  test(tasks): cover TaskFlow registry lifecycle (#118983)
  test(gateway): verify SSH tunnel fallback (#118818)
  fix(security): harden network tool output at canonical owner boundaries (#118984)
  fix(googlechat): align doctor policy ownership with canonical account configuration (#118972)
  test(tui): prove editor input through PTY (#118982)
  fix(memory): persist trusted owner provenance at canonical transcript boundary (#118987)
  test(qa): cover health monitor and cache boundaries (#118961)
  fix(macos): restore dashboard frame double-click zoom (#118976)
  fix(googlechat): recover durable lanes after oversized attachments (#118986)
  test(qa): cover runtime telemetry evidence (#118950)
  fix(gateway): resolve SQLite usage details (#118918)
  test(cron): cover durable scheduler state (#118981)
  ...
vincentkoc added a commit to clawSean/openclaw that referenced this pull request Aug 3, 2026
* origin/main: (1301 commits)
  fix(sms): align MMS retries with network timeouts (openclaw#119002)
  test(qa): cover composed tool result consumption (openclaw#118991)
  test(cron): cover delivery outcomes (openclaw#118993)
  test(qa): cover guarded media fetch boundaries (openclaw#118857)
  test(qa): cover music generation controls (openclaw#118901)
  test(qa): cover core vision routing (openclaw#118861)
  test(qa): cover Gateway usage and memory APIs (openclaw#118995)
  fix(docker): use authenticated gateway health command (openclaw#118996)
  test(plugins): align tool fixtures with owner policy (openclaw#118959)
  test(qa): cover managed gateway service lifecycle (openclaw#118855)
  test(qa): cover audio proxy and limit handling (openclaw#118863)
  test(qa): cover PDF extraction dispatch (openclaw#118860)
  test(ui): add service-worker update primary QA proof (openclaw#118805)
  test(qa): cover CLI onboarding and plugin install sources (openclaw#118882)
  test(qa): cover remote logging boundaries (openclaw#118951)
  fix(sms): retry transient MMS failures before durable adoption (openclaw#118994)
  test(qa): cover video generation invocation (openclaw#118864)
  test(qa): cover media reference intake (openclaw#118858)
  test(qa): cover image generation task lifecycle (openclaw#118915)
  feat(sms): track Twilio delivery status (openclaw#118665)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 4, 2026
* feat(sms): track Twilio delivery status

* fix(sms): preserve Twilio delivery callbacks under inbound load

* fix(sms): correct delivery status contracts

* fix(sms): retry transient Twilio callback reads

* fix(sms): bound delivery callback admission

* docs(sms): clarify delivery callback recovery
steipete added a commit that referenced this pull request Oct 14, 2026
…of diagnostics (#171606)

## What Problem This Solves

Older channel-plugin code duplicates shared SDK ownership and carries defensive machinery for unsupported internal inputs, synthetic clocks, and throwing diagnostic hooks. Several normal inbound paths also put message content or pairing codes into diagnostics.

## User Impact

Message delivery, account/security policy, conversation identity, provider features, and ordinary shutdown/restart durability remain supported. Inbound message text, malformed Teams consent payloads and pairing codes no longer appear in the repaired diagnostic paths. No configuration, CLI, protocol, SDK export, dependency, schema, retention, or permission changes are required.

## Why This Change Was Made

This is the second old-code channel-plugin pass. Only production files with no origin/main commit in the preceding seven days are included; eligibility is refreshed before every push. The overlapping Feishu Markdown fence repair was removed from this branch once main independently landed it in #171222.

The packet removes **512 net production lines** (+503/-1015; tests, fixtures, test support, generated files, and declarations excluded). It reuses existing public SDK owners for plugin setup composition, secret-contract wiring, receipts, status summaries, process-global maps, error traversal, and account-scoped DM policy. There are no private-core or cross-plugin imports.

## Best-effort tradeoffs accepted

Each removed mechanism below was checked against callers, dependency behavior, and introducing history. Synthetic tests and hypothetical PR race descriptions are not treated as human production reports. Actual incident fixes, live security authority, FIFO, resource bounds, and accepted-write settlement are retained.

- Discord identify clock-skew observation (`c767b37e3b2`): the only added proof jumps the clock from a trillion milliseconds to zero; no human report is linked. A drastic backward clock jump can now prolong reconnect until clock recovery/restart; ordinary five-second parallel identify spacing remains.
- WhatsApp second synchronous close observation (#109886, `bf413374cca`): native Baileys uses EventEmitter and cannot asynchronously close between synchronous check/listener registration. A nonstandard reentrant `newListener` hook can reach the existing bounded timeout; transport-confirmed close and cleanup remain.
- Tlon formatter fallback (#1837, `51720980736`): validated decimal BigInt input cannot fail the pinned @ud formatter. A broken dependency now fails visibly instead of sending the incorrect raw ID that the original threading fix rejected.
- Matrix second private sync waiter (#62779, `0c00c3c2306`): the actual monitor waits once; only a synthetic test calls twice. An unsupported second call may replace the first callbacks; real outage/fatal/abort settlement remains.
- ClickClack outer setup catches (`752567dbc8e`): network/config failures are already caught by their owners; the extra path catches a broken logger/formatter then invokes the same logger again. Such internal failures now surface; ordinary setup diagnostics remain.
- ClickClack second workspace snapshot (`3e352d67278`): verification now resolves ID/name/slug from one provider response. A concurrent rename/removal is observed on the next verification/runtime request rather than an opportunistic second fetch.
- SMS generated-fragment revalidation (#118665, `0758316883f`): raw URL validation stays; only URLSearchParams-generated fragment bytes were checked twice. A monkeypatched/broken encoder is no longer revalidated; length, auth, URL and retry bounds remain.
- Feishu timeout-warning catch (`0028e6040a7`): the cited stuck-task/FIFO issues concern the retained five-minute cap, not a throwing logger. A broken warning hook now rejects that queue call visibly; subsequent same-key work continues.
- Feishu private timeout customization (`0028e6040a7`, `fab8d29d211`, #101949): only tests passed disabled/oversized/custom values. Unsupported direct imports can no longer tune/disable the private cap; all production callers retain five-minute progress/FIFO behavior.
- Reef logger-fatal deferred/race (#162669; synthetic hook in #110870): ordinary transport-error containment and shutdown from the recorded live relay incident stay. A throwing error logger is reported by the scheduler instead of intentionally killing an otherwise healthy inbox.
- Matrix nonfinite media size fallback (`9b71382efb6`, #149128): the sole production producer passes Buffer.byteLength; NaN cases were synthetic cleanup fixtures. Unsupported private NaN calls now carry that supplied value; MIME, encryption, image fields and duration remain.
- Buzz subscription count coercion (`6c7a96e588e`): the sole caller supplies array.length. Unsupported negative/fractional private values are not repaired; the actual room/resource cap remains.
- Teams upload-byte coercion (#104120, `0c8220ebf9a`): both callers supply Buffer.length. Unsupported malformed private counts follow transfer arithmetic; timer clamping and upload budgets stay.
- Nostr zero-count score fallback (`7b6cbf58697`): private entries are synchronously created and incremented together. An unsupported new zero-outcome insertion could score NaN; actual outage/circuit-breaker/failover behavior stays.
- Buzz profile-limit coercion (`ba2510e8fa8`): the only explicit producer supplies the bounded integer budget. Unsupported direct malformed limits are not normalized; ordinary caps, zero-budget and untrusted-event checks stay.
- Feishu card-launcher clock injection/max-Date guard (`05634708e05`): only a synthetic year-275760 test supplies the private clock. A corrupt clock may create an unusable expiry until recovery/restart; effect-side expiry, actor/chat and approval validation stay.
- QA private empty media-batch guard (#115290, `641c82b5bd0`): all three callers prove a nonempty batch. Unsupported direct empty calls take the ordinary text path; real media caps and atomic loading remain.
- Slack private global-map slot revalidation (original sharing fix `55318df83ff`): normal module sharing/replacement is retained. No human private-slot corruption report is linked; third-party mutation/deletion of our private Symbol slot is no longer checked on every read, and restart repairs unsupported corruption.
- Buzz synchronous subscription-construction compensation (`b48984792f4`, `828f88c5ca5`, #130300): native nostr-tools construction emits no callbacks and authored filters are plain/nonempty. Unsupported throwing/cyclic private filters or replaced constructors surface without immediate count/generation/timer compensation; close/deadline/restart recovers temporary state.
- Buzz post-construction inline-EOSE/abort retry (same provenance): native callbacks are asynchronous. A non-native constructor emitting EOSE inline no longer gets a second cleanup attempt; real EOSE-before-CLOSE, late EOSE, close-once, deadlines, queued slots, abort listeners, membership authority and shutdown remain. Fixtures now schedule EOSE with queueMicrotask while retaining assertions.
- Signal clean-end recovery duplication (#10240, `dff4a04c1f5`): clean EOF and transient failures share one backoff tail. An impossible non-abort internal sleep rejection or broken status/logger callback now surfaces rather than entering compensating reconnect; real sleep rejects on abort and actual recovery stays.
- WhatsApp optional native socket-end fallback (`69225003820`): actual callers use WASocket with required end(). An unsupported fake without end fails plainly; normal teardown and its error reporting stay.
- Nextcloud post-synchronous-route abort check (#159067, `5fd7c3d95e0`): the old awaited server-start path became synchronous route registration. A reentrant registry callback abort may briefly publish ready; installed abort cleanup, post-spool-ready check, auth and durable settlement stay.
- Buzz history-count clamps (`132e39bff64`): the actual positive room count and queue-capacity invariant guarantee the result. Unsupported private negative/oversized counts are not repaired; actual FIFO/resource reservations remain.
- LINE frozen-error wrapper (#100996, `f859d78b612`): native SDK HTTPFetchError is mutable; Object.freeze was a synthetic fixture, not a cited human incident. An unsupported frozen replacement error can now fail annotation with TypeError; actual partial-send/recovery contracts stay.
- LINE duplicate missing-receipt invariant (`05eda57b3c7`, #99600, #142092, #165718): all native sends return validated IDs and required receipts. Unsupported fake results use canonical bridge normalization instead of the former private throw; physical-send progress, caption quoting, receipt order and declared capabilities stay. The bridge also preserves already-sanctioned chatId metadata.
- Feishu display-cache extreme-clock guards (`23e1aac9b2c`): introduced with a synthetic max-Date test, no linked human report. Corrupt clocks follow ordinary arithmetic; account scope, positive/negative TTL and the 500-entry bound remain.
- Mattermost reaction-identity extreme-clock guards (`77b334a9845`): only invalid/max-Date tests support the machinery, no linked human report. Corrupt clocks follow arithmetic; token/base-URL scope, ten-minute expiry, delegated conversation/post/self-DM checks and request authority remain.

Other cuts remove duplicate facts/checks under one existing owner and introduce no additional failure tradeoff: Signal subscription/abort state, Zalouser Promise settlement and DM setter, Nextcloud claimed version/lane validation, Teams media/header validation and empty-array merging, Buzz refresh-state identity, Nostr flush identity, Matrix encryption gating, Mattermost runtime-config guard, immutable plugin setup bases, and private Discord/iMessage test overrides.

Matrix's private zero-answer poll fallback is also removed: its sole caller has already passed the shared minimum-two-options validator (`c49b6cc241a`, #163574). No reachable input loses a fallback. Teams attachment header rejection remains owned by the canonical bounded media saver; malformed/oversize headers now use the existing `attachmentView save failed` warning instead of the special malformed-header tag or silent oversized-header skip. The unavailable result and byte protection remain unchanged.

## Evidence

Focused owning-boundary/sibling tests and independent isolated reviews were run per checkpoint. Latest batches passed: Discord/LINE/Matrix/Synology 76 cases (157.00s wrapper), LINE/Feishu/Mattermost 66 cases (132.62s), Mattermost reaction 12 cases, Zalo Personal setup 17 cases (48.97s), and Teams consent/parser/lifecycle 52 cases (29.18s). The Teams malformed-content regression failed on the original handler before the one-line repair. The new Zalo test fixture initially assumed the wrong promotion target; source inspection and an explicit two-account fixture corrected it without changing production behavior or weakening retained assertions.

Production/test extension typechecks and targeted type-aware lint/format pass. Runtime and Madge checks report zero cycles. Existing SDK export checks pass. Earlier fresh cliStartup build and affected built-entry import proof passed; no performance improvement is claimed from dirty-tree profiling. No live accounts, operator state, driver installation, Gateway or remote lease was used.

Final Matrix poll/send/shared-normalization proof passes 55 cases across three shards (138.50s wrapper). Independent full-branch review and the supplemental poll review found no actionable P0–P2 findings.

Two local baseline gates are inherited from the branch base: suppression inventory expects 87 versus the untouched proxy's 88 (current main has repaired the entry); aggregate check-changed stops on stale untouched max-lines entry src/agents/btw.ts after conflict/line-cap gates pass. No allowlist/budget expansion was made. Earlier cold-start timing-sensitive failures remain observations, not claimed repaired/inherited; the complete changed cold-start file subsequently passed all eight cases with unchanged timers/assertions.

The first exact-head hosted run [38503961141](https://github.com/openclaw/openclaw/actions/runs/38503961141) completed in 643 seconds: 51 jobs passed, 25 planned jobs skipped, and the baseline ratchet plus its aggregate gate failed. The defect was ours: removed Slack/Twitch assertions and two removed ClickClack mocks needed exact inventory shrinkage. Those four inventory items are corrected without adding allowances or changing behavior. All actual tests, types, lint, architecture, package boundaries, QA and security jobs passed on that production patch. Final exact-head run [38505676106](https://github.com/openclaw/openclaw/actions/runs/38505676106) passed on `86922ccf92825d4b53b77005119590d1e7759a32`: 55 successful jobs, 25 planned skips, zero failed/cancelled jobs, 643 seconds wall time and 9,679 summed reported job seconds. The exact-head required CI/security gate passes. CodeQL also reports a neutral warning for unselected main configurations; those skipped configurations are not claimed as proof. No CI rerun, inherited-failure admin exception, or green-seeking push was used.

<details>
<summary>Round-2 largest-first coverage log</summary>

Setup/runtime composition is consolidated for Buzz, Nostr, A2A and Google Chat; setup stays dependency-light. Matrix/Feishu secret activation uses the existing factory with activation/order/owner rules unchanged. IRC shares parsing/status owners. LINE shares receipt/progress mapping without routing through legacy media behavior. Zalo Personal shares the existing account-scoped DM policy owner. Privacy regressions reach real WhatsApp/iMessage/Synology inbound and Feishu pairing diagnostic paths while asserting complete dispatch/challenge behavior.

Largest old owners retained after source/caller/history review include iMessage catchup/conversation repair; Matrix formatting/actions/crypto/shutdown; Mattermost interactive access/draft boundary/final receipts; Signal approvals/transport setup; Slack ingress FIFO/thread visibility/workspace identity/streaming; WhatsApp paid-STT/admission/quoted identity/partial delivery; Teams Graph/Bot Framework/upload consent security; Buzz signed membership/archival authority/resource budgets; Nostr circuit breakers/profile mutation auth; LINE provider caps/reply-token/media ordering; Twitch listener/auth resource ownership; SMS callback/API ordering; Synology auth/rate limits/durable acknowledgments; Reef encryption/transport error containment; FaceTime trust/rollback/permissions; and paid X request accounting.

Recent files were deferred, including remaining Teams inbound-body, Tlon admin/approval-text and WhatsApp outbound-content diagnostics; recently landed feature foundations were not treated as dead code. QA setup-base consolidation was held because completing its runtime caller would exceed the one-line recent-file exception. No Phase E standalone memory code was touched. Detailed per-mechanism provenance and checkpoint evidence is retained in the requested round-2 lane ledger.

</details>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 14, 2026
…of diagnostics (openclaw#171606)

## What Problem This Solves

Older channel-plugin code duplicates shared SDK ownership and carries defensive machinery for unsupported internal inputs, synthetic clocks, and throwing diagnostic hooks. Several normal inbound paths also put message content or pairing codes into diagnostics.

## User Impact

Message delivery, account/security policy, conversation identity, provider features, and ordinary shutdown/restart durability remain supported. Inbound message text, malformed Teams consent payloads and pairing codes no longer appear in the repaired diagnostic paths. No configuration, CLI, protocol, SDK export, dependency, schema, retention, or permission changes are required.

## Why This Change Was Made

This is the second old-code channel-plugin pass. Only production files with no origin/main commit in the preceding seven days are included; eligibility is refreshed before every push. The overlapping Feishu Markdown fence repair was removed from this branch once main independently landed it in openclaw#171222.

The packet removes **512 net production lines** (+503/-1015; tests, fixtures, test support, generated files, and declarations excluded). It reuses existing public SDK owners for plugin setup composition, secret-contract wiring, receipts, status summaries, process-global maps, error traversal, and account-scoped DM policy. There are no private-core or cross-plugin imports.

## Best-effort tradeoffs accepted

Each removed mechanism below was checked against callers, dependency behavior, and introducing history. Synthetic tests and hypothetical PR race descriptions are not treated as human production reports. Actual incident fixes, live security authority, FIFO, resource bounds, and accepted-write settlement are retained.

- Discord identify clock-skew observation (`fa56d13411c`): the only added proof jumps the clock from a trillion milliseconds to zero; no human report is linked. A drastic backward clock jump can now prolong reconnect until clock recovery/restart; ordinary five-second parallel identify spacing remains.
- WhatsApp second synchronous close observation (openclaw#109886, `ca60d105ece`): native Baileys uses EventEmitter and cannot asynchronously close between synchronous check/listener registration. A nonstandard reentrant `newListener` hook can reach the existing bounded timeout; transport-confirmed close and cleanup remain.
- Tlon formatter fallback (openclaw#1837, `a898f3d7bb5`): validated decimal BigInt input cannot fail the pinned @ud formatter. A broken dependency now fails visibly instead of sending the incorrect raw ID that the original threading fix rejected.
- Matrix second private sync waiter (openclaw#62779, `aec73fd9ca4`): the actual monitor waits once; only a synthetic test calls twice. An unsupported second call may replace the first callbacks; real outage/fatal/abort settlement remains.
- ClickClack outer setup catches (`9079efe9026`): network/config failures are already caught by their owners; the extra path catches a broken logger/formatter then invokes the same logger again. Such internal failures now surface; ordinary setup diagnostics remain.
- ClickClack second workspace snapshot (`188ce1e28e9`): verification now resolves ID/name/slug from one provider response. A concurrent rename/removal is observed on the next verification/runtime request rather than an opportunistic second fetch.
- SMS generated-fragment revalidation (openclaw#118665, `37690fb4f4b`): raw URL validation stays; only URLSearchParams-generated fragment bytes were checked twice. A monkeypatched/broken encoder is no longer revalidated; length, auth, URL and retry bounds remain.
- Feishu timeout-warning catch (`7a2ce698b8c`): the cited stuck-task/FIFO issues concern the retained five-minute cap, not a throwing logger. A broken warning hook now rejects that queue call visibly; subsequent same-key work continues.
- Feishu private timeout customization (`7a2ce698b8c`, `491abe564ce`, openclaw#101949): only tests passed disabled/oversized/custom values. Unsupported direct imports can no longer tune/disable the private cap; all production callers retain five-minute progress/FIFO behavior.
- Reef logger-fatal deferred/race (openclaw#162669; synthetic hook in openclaw#110870): ordinary transport-error containment and shutdown from the recorded live relay incident stay. A throwing error logger is reported by the scheduler instead of intentionally killing an otherwise healthy inbox.
- Matrix nonfinite media size fallback (`96ff92e82bb`, openclaw#149128): the sole production producer passes Buffer.byteLength; NaN cases were synthetic cleanup fixtures. Unsupported private NaN calls now carry that supplied value; MIME, encryption, image fields and duration remain.
- Buzz subscription count coercion (`d656588ae32`): the sole caller supplies array.length. Unsupported negative/fractional private values are not repaired; the actual room/resource cap remains.
- Teams upload-byte coercion (openclaw#104120, `6d759fe8b17`): both callers supply Buffer.length. Unsupported malformed private counts follow transfer arithmetic; timer clamping and upload budgets stay.
- Nostr zero-count score fallback (`25838b5d7de`): private entries are synchronously created and incremented together. An unsupported new zero-outcome insertion could score NaN; actual outage/circuit-breaker/failover behavior stays.
- Buzz profile-limit coercion (`67bce4fe0d7`): the only explicit producer supplies the bounded integer budget. Unsupported direct malformed limits are not normalized; ordinary caps, zero-budget and untrusted-event checks stay.
- Feishu card-launcher clock injection/max-Date guard (`207f045b11c`): only a synthetic year-275760 test supplies the private clock. A corrupt clock may create an unusable expiry until recovery/restart; effect-side expiry, actor/chat and approval validation stay.
- QA private empty media-batch guard (openclaw#115290, `4dbddeefcc9`): all three callers prove a nonempty batch. Unsupported direct empty calls take the ordinary text path; real media caps and atomic loading remain.
- Slack private global-map slot revalidation (original sharing fix `564ccc6f56a`): normal module sharing/replacement is retained. No human private-slot corruption report is linked; third-party mutation/deletion of our private Symbol slot is no longer checked on every read, and restart repairs unsupported corruption.
- Buzz synchronous subscription-construction compensation (`2bd60a2e983`, `eb99a1b3432`, openclaw#130300): native nostr-tools construction emits no callbacks and authored filters are plain/nonempty. Unsupported throwing/cyclic private filters or replaced constructors surface without immediate count/generation/timer compensation; close/deadline/restart recovers temporary state.
- Buzz post-construction inline-EOSE/abort retry (same provenance): native callbacks are asynchronous. A non-native constructor emitting EOSE inline no longer gets a second cleanup attempt; real EOSE-before-CLOSE, late EOSE, close-once, deadlines, queued slots, abort listeners, membership authority and shutdown remain. Fixtures now schedule EOSE with queueMicrotask while retaining assertions.
- Signal clean-end recovery duplication (openclaw#10240, `1b2dfffddeb`): clean EOF and transient failures share one backoff tail. An impossible non-abort internal sleep rejection or broken status/logger callback now surfaces rather than entering compensating reconnect; real sleep rejects on abort and actual recovery stays.
- WhatsApp optional native socket-end fallback (`3294ef6f0cb`): actual callers use WASocket with required end(). An unsupported fake without end fails plainly; normal teardown and its error reporting stay.
- Nextcloud post-synchronous-route abort check (openclaw#159067, `af36cf97537`): the old awaited server-start path became synchronous route registration. A reentrant registry callback abort may briefly publish ready; installed abort cleanup, post-spool-ready check, auth and durable settlement stay.
- Buzz history-count clamps (`bbde46b881f`): the actual positive room count and queue-capacity invariant guarantee the result. Unsupported private negative/oversized counts are not repaired; actual FIFO/resource reservations remain.
- LINE frozen-error wrapper (openclaw#100996, `a2aad76fdba`): native SDK HTTPFetchError is mutable; Object.freeze was a synthetic fixture, not a cited human incident. An unsupported frozen replacement error can now fail annotation with TypeError; actual partial-send/recovery contracts stay.
- LINE duplicate missing-receipt invariant (`15be48ecd0e`, openclaw#99600, openclaw#142092, openclaw#165718): all native sends return validated IDs and required receipts. Unsupported fake results use canonical bridge normalization instead of the former private throw; physical-send progress, caption quoting, receipt order and declared capabilities stay. The bridge also preserves already-sanctioned chatId metadata.
- Feishu display-cache extreme-clock guards (`ab53c2998a1`): introduced with a synthetic max-Date test, no linked human report. Corrupt clocks follow ordinary arithmetic; account scope, positive/negative TTL and the 500-entry bound remain.
- Mattermost reaction-identity extreme-clock guards (`6199cc7df89`): only invalid/max-Date tests support the machinery, no linked human report. Corrupt clocks follow arithmetic; token/base-URL scope, ten-minute expiry, delegated conversation/post/self-DM checks and request authority remain.

Other cuts remove duplicate facts/checks under one existing owner and introduce no additional failure tradeoff: Signal subscription/abort state, Zalouser Promise settlement and DM setter, Nextcloud claimed version/lane validation, Teams media/header validation and empty-array merging, Buzz refresh-state identity, Nostr flush identity, Matrix encryption gating, Mattermost runtime-config guard, immutable plugin setup bases, and private Discord/iMessage test overrides.

Matrix's private zero-answer poll fallback is also removed: its sole caller has already passed the shared minimum-two-options validator (`306de68c026`, openclaw#163574). No reachable input loses a fallback. Teams attachment header rejection remains owned by the canonical bounded media saver; malformed/oversize headers now use the existing `attachmentView save failed` warning instead of the special malformed-header tag or silent oversized-header skip. The unavailable result and byte protection remain unchanged.

## Evidence

Focused owning-boundary/sibling tests and independent isolated reviews were run per checkpoint. Latest batches passed: Discord/LINE/Matrix/Synology 76 cases (157.00s wrapper), LINE/Feishu/Mattermost 66 cases (132.62s), Mattermost reaction 12 cases, Zalo Personal setup 17 cases (48.97s), and Teams consent/parser/lifecycle 52 cases (29.18s). The Teams malformed-content regression failed on the original handler before the one-line repair. The new Zalo test fixture initially assumed the wrong promotion target; source inspection and an explicit two-account fixture corrected it without changing production behavior or weakening retained assertions.

Production/test extension typechecks and targeted type-aware lint/format pass. Runtime and Madge checks report zero cycles. Existing SDK export checks pass. Earlier fresh cliStartup build and affected built-entry import proof passed; no performance improvement is claimed from dirty-tree profiling. No live accounts, operator state, driver installation, Gateway or remote lease was used.

Final Matrix poll/send/shared-normalization proof passes 55 cases across three shards (138.50s wrapper). Independent full-branch review and the supplemental poll review found no actionable P0–P2 findings.

Two local baseline gates are inherited from the branch base: suppression inventory expects 87 versus the untouched proxy's 88 (current main has repaired the entry); aggregate check-changed stops on stale untouched max-lines entry src/agents/btw.ts after conflict/line-cap gates pass. No allowlist/budget expansion was made. Earlier cold-start timing-sensitive failures remain observations, not claimed repaired/inherited; the complete changed cold-start file subsequently passed all eight cases with unchanged timers/assertions.

The first exact-head hosted run [38503961141](https://github.com/openclaw/openclaw/actions/runs/38503961141) completed in 643 seconds: 51 jobs passed, 25 planned jobs skipped, and the baseline ratchet plus its aggregate gate failed. The defect was ours: removed Slack/Twitch assertions and two removed ClickClack mocks needed exact inventory shrinkage. Those four inventory items are corrected without adding allowances or changing behavior. All actual tests, types, lint, architecture, package boundaries, QA and security jobs passed on that production patch. Final exact-head run [38505676106](https://github.com/openclaw/openclaw/actions/runs/38505676106) passed on `86922ccf92825d4b53b77005119590d1e7759a32`: 55 successful jobs, 25 planned skips, zero failed/cancelled jobs, 643 seconds wall time and 9,679 summed reported job seconds. The exact-head required CI/security gate passes. CodeQL also reports a neutral warning for unselected main configurations; those skipped configurations are not claimed as proof. No CI rerun, inherited-failure admin exception, or green-seeking push was used.

<details>
<summary>Round-2 largest-first coverage log</summary>

Setup/runtime composition is consolidated for Buzz, Nostr, A2A and Google Chat; setup stays dependency-light. Matrix/Feishu secret activation uses the existing factory with activation/order/owner rules unchanged. IRC shares parsing/status owners. LINE shares receipt/progress mapping without routing through legacy media behavior. Zalo Personal shares the existing account-scoped DM policy owner. Privacy regressions reach real WhatsApp/iMessage/Synology inbound and Feishu pairing diagnostic paths while asserting complete dispatch/challenge behavior.

Largest old owners retained after source/caller/history review include iMessage catchup/conversation repair; Matrix formatting/actions/crypto/shutdown; Mattermost interactive access/draft boundary/final receipts; Signal approvals/transport setup; Slack ingress FIFO/thread visibility/workspace identity/streaming; WhatsApp paid-STT/admission/quoted identity/partial delivery; Teams Graph/Bot Framework/upload consent security; Buzz signed membership/archival authority/resource budgets; Nostr circuit breakers/profile mutation auth; LINE provider caps/reply-token/media ordering; Twitch listener/auth resource ownership; SMS callback/API ordering; Synology auth/rate limits/durable acknowledgments; Reef encryption/transport error containment; FaceTime trust/rollback/permissions; and paid X request accounting.

Recent files were deferred, including remaining Teams inbound-body, Tlon admin/approval-text and WhatsApp outbound-content diagnostics; recently landed feature foundations were not treated as dead code. QA setup-base consolidation was held because completing its runtime caller would exceed the one-line recent-file exception. No Phase E standalone memory code was touched. Detailed per-mechanism provenance and checkpoint evidence is retained in the requested round-2 lane ledger.

</details>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: sms Channel integration: sms docs Improvements or additions to documentation maintainer Maintainer-authored PR merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. P2 Normal backlog priority with limited blast radius. size: XL status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Twilio MMS and durable SMS delivery observations

1 participant