Repository navigation
fix(channels): keep private message content out of diagnostics - #172935
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex review: needs maintainer review before merge. What this changesThis PR replaces private channel content in diagnostics with delivery metadata and fixed failure descriptions. Example: WhatsApp sends the reply "Account balance: $125".
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it fixes current diagnostic-content leaks with a focused, maintainer-directed change; no actionable introduced defect was found. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherChannel plugins receive messages and send replies through existing transport owners, while separate diagnostic calls record operational outcomes. flowchart LR
A[Channel transport] --> B[Plugin receive owner]
B --> C[Agent message handling]
C --> D[Plugin reply owner]
D --> A
B --> E[Operational diagnostics]
D --> E
Technical reviewBest possible solution: Land the focused diagnostic-content removal while retaining existing delivery, recovery, and authorization owners. Do we have a high-confidence way to reproduce the issue? Current-main log payloads directly include private content, establishing the failure path by source inspection; no target code was executed during this read-only review. Is this the best way to solve the issue? Removing content at each logging source follows repository policy and avoids relying on incomplete downstream redaction without changing message processing. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against e5048e178175. Provenance checked
TestingProof path: unit tests only. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -20, Tests +125, Other -1. Total +104 across 18 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 15, 2026, 4:33 AM ET / 08:33 UTC. |
…law#172935) * fix(channels): keep message content out of diagnostics * fix(channels): remove remaining inbound content diagnostics * test(signal): preserve inbound newline normalization in privacy proof
What Problem This Solves
Fixes channel diagnostics that copy private messages, owner commands, captions, attachment URLs, or malformed inbound JSON excerpts into logs.
User Impact
WhatsApp delivery diagnostics retain message IDs, text lengths, media kinds, sizes, and timing without message bodies or attachment sources, including source-bearing media failure errors. iMessage and Signal report malformed input without repeating it; Signal also omits inbound previews, provider exception payloads, and attachment error content. Teams and Feishu no longer log inbound or quoted message previews. Zalo image failures and Tlon owner-command/media diagnostics omit private content and attachment sources. Message delivery, authorization, recovery, and media limits are unchanged.
Why This Change Was Made
Remove content at its logging source instead of truncating or redacting it later. The WhatsApp preview helper becomes unused and is removed with its mechanism-only tests. Regressions exercise the existing receive/send paths and require the actual message to remain delivered while diagnostics omit it.
Best-effort tradeoffs accepted
None. No security, delivery-settlement, or durability guard is removed. Malformed JSON and failed inbound-media diagnostics intentionally report the failure category without the source-bearing parser/provider error text.
Evidence
4d7feb60367cc341e7ccd5c546f23c38f8767e62: hosted CI run 38704535669 completed successfully, including the required CI gate. That result does not prove the subsequent privacy follow-through; its exact-head CI is still required.5b5526135e2ef9147bbee32047fa68e7221b6f0b: CI run 38708079248 completed with one failed test-bundle job and its aggregate CI gate. The Signal subconfig passed 161 tests and failed the new CRLF fixture, which incorrectly expected raw CRLF instead of the shared inbound owner's longstanding LF normalization. All other selected checks succeeded; planned skips are not proof. The correction changes only that fixture's explicit expected delivery and avoids comparing raw diagnostic length with normalized context length; production behavior is unchanged. Isolated execution of the actual newline owner passed both real-newline and literal-escape fixtures. A bounded full Signal replay reached worker preparation but no assertions under host load; no passing replay is claimed.1838817535a42ac311fb1ae051c53fb4d5a0dcca: hosted CI run 38711226429 passed, including the repaired Signal bundle and required CI/security gate. Full exact-head check census: 62 successes, 50 planned skips, one neutral CodeQL result, zero failures/cancellations/pending checks. Planned skips and the neutral result are not claimed as executed proof. Live PR is mergeable on that exact head.