Repository navigation
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: needs real behavior proof before merge. Reviewed September 6, 2026, 3:20 PM ET / 19:20 UTC. ClawSweeper reviewWhat this changesThe PR strips internal runtime context from reply text and voice transcript metadata in shared outbound planning, with three regression tests. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readiness⛔ Blocked before merge - 10 items remain Keep open: the patch introduces a sanitizer-ordering defect that can expose context previously removed by delivery sanitization. The prior request for after-fix behavior proof also remains unresolved; no verified merged replacement establishes that this PR is obsolete. Priority: P1 Review scores
Verification
How this fits togetherShared outbound planning turns assistant replies into text, media, and transcript projections. Telegram direct delivery and shared queued delivery consume these projections, with additional sanitization on the queued path. flowchart TD
A[Assistant reply] --> B[Shared outbound planning]
B --> C[Context cleanup and directive parsing]
C --> D[Telegram direct delivery]
C --> E[Queued delivery sanitizer]
E --> F[Channel transport]
D --> G[Visible chat message]
F --> G
Before merge
Findings
Agent review detailsSecurityNeeds attention: The patch can weaken existing private-context removal through sanitizer ordering; it adds no dependency or execution-permission changes. PR surfaceSource +22, Tests +46. Total +68 across 2 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Consolidate early cleanup through the existing outbound sanitization owner, preserving inline-before-standalone ordering and useful reply content instead of maintaining parallel stripping sequences. Do we have a high-confidence way to reproduce the issue? Yes, from source: pass an inline opening delimiter and standalone closing delimiter through planning followed by delivery sanitization; the new first pass removes the closer and leaves private text. This was not executed, and the original long-conversation report remains unverified on current main. Is this the best way to solve the issue? No: early cleanup is a useful mitigation for direct delivery, but composing the low-level stripper ahead of the broader sanitizer breaks its ordering invariant; reuse the existing owner rather than duplicating its sequence. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 633b84f22256. LabelsLabel justifications:
EvidenceSecurity concerns:
What I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
… context Deliver queue persistence rejoins mid-text blocks with a single newline (preserveSurroundingWhitespace). The plan-stage pre-strip used the default double-newline separator, leaving visible blank-line + indent drift.
|
Related follow-up: #141544 merged on September 8, 2026. It sanitizes outward reasoning previews at the shared dispatch boundary; it does not change model input or runtime-context carrier placement. This PR adds protection to planned outbound text and spokenText. #141544 closes a different bypass through the direct reasoning-preview callback. Its merge does not establish that this payload-normalization change is superseded, and it provides no session-identity repair. Do not treat #141544 as sufficient grounds to close this PR as a duplicate. |
|
Parking this one for now — not a quality call.
The branch is untouched: |
What Problem This Solves
Fixes #136471 — Internal runtime context block leaking raw into visible Telegram messages; per-turn session IDs instead of persistent session. Minimal diff, single shared guard, no new deps.
Evidence
Closes #136471