Repository navigation
[codex] Confirm Telegram final delivery before completion - #96095
AdrianIp0204 wants to merge 1 commit into
Conversation
db01ef7 to
41924d7
Compare
41924d7 to
08eabf2
Compare
|
Codex review: needs real behavior proof before merge. Reviewed August 1, 2026, 6:40 AM ET / 10:40 UTC. ClawSweeper reviewWhat this changesThis PR makes Telegram final-reply completion depend on transport confirmation and sends one recovery reply when an attempted visible final is not confirmed. Merge readiness⛔ Blocked until real behavior proof is added - 9 items remain Keep open, but do not merge the current branch. It reintroduces a P1 duplicate-message path by treating a missing Telegram message ID as failed delivery even when the shared route contract says the send may already be visible. It also still lacks the required real Telegram behavior proof. Likely related people: @steipete (medium confidence), based on current-main ownership of the reply-routing and Telegram-finalization paths. Priority: P1 Review scores
Verification
How this fits togetherAgent final replies pass through the shared dispatcher and may be routed through a channel adapter before Telegram decides whether the turn has a visible final response. The route layer supplies the delivery disposition that Telegram uses to decide between completion, a retryable failure, or a fallback message. flowchart LR
A[Agent final reply] --> B[Shared reply dispatcher]
B --> C[Routed channel delivery]
C --> D[Delivery disposition]
D --> E[Telegram final-response decision]
E --> F[Complete visible reply]
E --> G[Failure or recovery path]
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource +164, Tests +137. Total +301 across 16 files. View PR surface stats
Review metricsNone. Mantis proof suggestionTelegram Desktop proof would directly demonstrate that an explicit no-send recovers once while an ambiguous potentially visible send does not produce a duplicate message. A maintainer can ask Mantis to capture proof by posting this exact PR comment: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Rebase onto current main, preserve the shared delivery disposition as the sole source of truth, and add a focused regression plus redacted real Telegram proof showing explicit failures recover once while ambiguous sends never produce a duplicate fallback. Do we have a high-confidence way to reproduce the issue? Yes, source-reproducible: a routed Telegram final whose adapter returns Is this the best way to solve the issue? No: the current branch uses missing message identity as a proxy for delivery failure, but the current shared owner already distinguishes explicit failure, intentional suppression, and potentially visible ambiguous sends. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against dabba0ce108f. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (6 earlier review cycles)
|
08eabf2 to
fc76672
Compare
|
@clawsweeper re-review Addressed the P1 attempt-signal regression: |
|
🦞🧹 I asked ClawSweeper to review this item again. |
fc76672 to
314e61f
Compare
|
@clawsweeper re-review Rebased this PR onto current Fresh validation:
Known remaining review boundary: if live Telegram transport proof is still required, this likely needs maintainer/Mantis proof capture; the code/test/CI side is current and clean. |
|
🦞🧹 I asked ClawSweeper to review this item again. |
314e61f to
2ec5ad5
Compare
|
@clawsweeper re-review Addressed the latest routed suppression finding at head Fresh local validation at rebased head Remaining known boundary: if live Telegram transport proof is still required, this likely needs maintainer/Mantis proof capture; the code/test/CI side has been refreshed. |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
@openclaw-mantis telegram desktop proof: after the attempted-delivery fix, verify missing final delivery produces one fallback or retryable failure and intentional NO_REPLY/empty finals stay silent. |
|
@openclaw-mantis telegram desktop proof: verify missing final delivery produces one fallback or retryable failure, while NO_REPLY, empty finals, and hook-suppressed routed finals stay silent. |
2ec5ad5 to
bc60a2d
Compare
|
Refreshed this PR onto current Update:
Local validation on the refreshed head:
GitHub checks observed after push:
Proof status:
I am holding off on an |
bc60a2d to
863beaf
Compare
|
@clawsweeper re-review Rebuilt the stale branch as one current-architecture commit at The patch now requires authoritative delivery evidence for Telegram visible-final completion, provides exactly one bounded recovery outcome for attempted-but-unconfirmed delivery, and preserves silence for Local gates passed at this exact head: 5 focused files / 365 tests, test types, lint, touched-file formatting, and |
|
🦞🧹 I asked ClawSweeper to review this item again. |
What Problem This Solves
Telegram visible final replies must not count as complete merely because delivery was queued or attempted. Completion now requires authoritative transport evidence. If a visible final was attempted but delivery was not confirmed, Telegram produces exactly one bounded recovery outcome instead of silently finalizing.
Intentional silence remains silent:
NO_REPLY, empty/whitespace-only finals, reasoning-only output, and reply-payload-hook-suppressed finals do not trigger recovery.Current Architecture and Invariants
Changed Areas
src/auto-reply/reply/: delivery evidence accounting, routed/dispatcher outcome propagation, and focused regressions.extensions/telegram/src/: Telegram final-attempt tracking, confirmed-delivery gating, bounded recovery, and behavior tests.No dependency manifests, lockfiles, configuration, or unrelated channel implementations are changed.
Evidence
Clean rebuild on base
33f5c0bbb271f7f82ebffa34b209228e49251ff9, tested at exact PR head863beafa1da1220d7eb83db958cf7eeac89a1454:pnpm check:test-typespassed.pnpm lintpassed.pnpm exec oxfmt --checkpassed for all touched files.git diff --check HEAD~1..HEADpassed.Focused coverage includes confirmed delivery, attempted-but-unconfirmed delivery, exactly one recovery outcome, duplicate prevention,
NO_REPLY, empty/whitespace-only finals, and reply-payload-hook suppression.Runtime-Proof Status
No live Telegram canary was sent. Local automated behavior proof is complete, but observed Telegram transport proof remains pending maintainer-authorized execution because contributor-triggered Mantis workflow dispatch requires repository admin rights.
Compatibility and Risk