Skip to content

[codex] Confirm Telegram final delivery before completion - #96095

Closed
AdrianIp0204 wants to merge 1 commit into
openclaw:mainfrom
AdrianIp0204:codex/telegram-final-delivery-confirmation
Closed

AdrianIp0204 wants to merge 1 commit into
openclaw:mainfrom
AdrianIp0204:codex/telegram-final-delivery-confirmation

Conversation

@AdrianIp0204

@AdrianIp0204 AdrianIp0204 commented Jun 23, 2026 •

Copy link
Copy Markdown
Contributor

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

  • The shared reply dispatcher records explicit delivered counts only when the durable delivery callback returns usable transport evidence.
  • Telegram final-outcome handling distinguishes attempted visible delivery from confirmed delivery.
  • A confirmed visible final completes normally.
  • An attempted-but-unconfirmed visible final produces one fallback; if fallback delivery is also unavailable, the turn fails retryably.
  • Recovery is bounded and excluded from normal final-attempt accounting, preventing recursive or duplicate fallback.
  • Silent and hook-suppressed finals never become visible delivery attempts.
  • Legacy/non-Telegram callers remain compatible when explicit delivery counts are unavailable.

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 head 863beafa1da1220d7eb83db958cf7eeac89a1454:

  • Focused Vitest: 5 files, 365 tests passed.
  • pnpm check:test-types passed.
  • pnpm lint passed.
  • pnpm exec oxfmt --check passed for all touched files.
  • git diff --check HEAD~1..HEAD passed.

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

  • OpenClaw callers without explicit delivered counts retain legacy behavior.
  • The behavior change is intentionally scoped to Telegram visible-final completion.
  • Remaining risk is integration-level transport behavior not reproducible without the separately gated live proof; the code and focused regression suite fail closed when authoritative evidence is absent.

@openclaw-barnacle openclaw-barnacle Bot added channel: telegram Channel integration: telegram size: M triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. and removed triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. labels Jun 23, 2026
@AdrianIp0204
AdrianIp0204 force-pushed the codex/telegram-final-delivery-confirmation branch from db01ef7 to 41924d7 Compare June 23, 2026 13:33
@AdrianIp0204
AdrianIp0204 marked this pull request as ready for review June 23, 2026 13:34
@AdrianIp0204
AdrianIp0204 force-pushed the codex/telegram-final-delivery-confirmation branch from 41924d7 to 08eabf2 Compare June 23, 2026 13:45
@clawsweeper

clawsweeper Bot commented Jun 23, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed August 1, 2026, 6:40 AM ET / 10:40 UTC.

ClawSweeper review

What this changes

This 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
Reviewed head: 863beafa1da1220d7eb83db958cf7eeac89a1454

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The PR has focused automated coverage, but a P1 duplicate-delivery defect and absent real Telegram proof make it not merge-ready.
Proof confidence 🧂 unranked krab (1/6) Needs real behavior proof before merge: The PR body explicitly says no live Telegram canary was sent; focused tests and CI do not establish the changed transport behavior or rule out duplicate delivery. Add redacted Telegram Desktop evidence, terminal diagnostics, or runtime logs after the semantic fix. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Patch quality 🧂 unranked krab (1/6) 1 actionable review finding remain.

Verification

Check Result Evidence
Real behavior Needs proof Needs real behavior proof before merge: The PR body explicitly says no live Telegram canary was sent; focused tests and CI do not establish the changed transport behavior or rule out duplicate delivery. Add redacted Telegram Desktop evidence, terminal diagnostics, or runtime logs after the semantic fix. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Evidence reviewed 5 items Current route contract preserves ambiguous sends: Current main explicitly treats an adapter result with no identity as potentially visible (delivered: true, ambiguous: true) so callers do not retry or send a duplicate fallback.
Telegram fallback is gated by explicit failure or non-silent skip: Current main only sends the ordinary Telegram failure fallback for dispatch errors, failed non-silent delivery, or non-silent skips; its completion state also considers the delivery summary.
PR patch conflicts with the current disposition model: The proposed routed-final check requires a nonempty messageId for Telegram, so an adapter result that is potentially visible but lacks an editable identity becomes an attempted-but-unconfirmed send and triggers the new fallback path.
Findings 1 actionable finding [P1] Preserve ambiguous sends instead of issuing a Telegram fallback
Security None None.

How this fits together

Agent 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]
Loading

Before merge

  • Add real behavior proof - Needs real behavior proof before merge: The PR body explicitly says no live Telegram canary was sent; focused tests and CI do not establish the changed transport behavior or rule out duplicate delivery. Add redacted Telegram Desktop evidence, terminal diagnostics, or runtime logs after the semantic fix. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • Preserve ambiguous sends instead of issuing a Telegram fallback (P1) - Do not require a nonempty messageId to treat a routed Telegram final as delivered. Current main deliberately classifies adapter_returned_no_identity as potentially visible so callers do not retry or post a duplicate fallback; this condition turns that case into an attempted-but-unconfirmed delivery and can send a second message.
  • Resolve merge risk (P2) - A Telegram adapter can complete a send without returning a message ID; this branch would classify that potentially visible reply as unconfirmed and send a second fallback message.
  • Resolve merge risk (P1) - The branch is dirty against current main, whose shared routing contract now carries delivered and ambiguous dispositions rather than using message-ID presence as the delivery decision.
  • Resolve merge risk (P1) - The PR body confirms that no live Telegram canary or equivalent observed transport proof has been provided.
  • Complete next step (P2) - The contributor needs to rebase the branch onto the current shared delivery contract, repair the duplicate-fallback behavior, and provide real Telegram proof before merge.
  • Improve patch quality - Rebase onto current main and preserve ambiguous routed sends instead of inferring failure from a missing message ID.
  • Improve patch quality - Add a regression covering adapter_returned_no_identity with no fallback or duplicate reply.
  • Improve patch quality - Post redacted real Telegram proof after the repair; updating the PR body should trigger review, or a maintainer can request @clawsweeper re-review.

Findings

  • [P1] Preserve ambiguous sends instead of issuing a Telegram fallback — src/auto-reply/reply/dispatch-from-config.ts:756-766
Agent review details

Security

None.

PR surface

Source +164, Tests +137. Total +301 across 16 files.

View PR surface stats
Area Files Added Removed Net
Source 12 203 39 +164
Tests 4 140 3 +137
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 16 343 42 +301

Review metrics

None.

Mantis proof suggestion

Telegram 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:

@openclaw-mantis telegram desktop proof: verify that explicit no-send final delivery recovers once while an ambiguous Telegram send does not post a duplicate fallback.

Merge-risk options

Maintainer options:

  1. Rebase onto the delivery-disposition contract (recommended)
    Replace the message-ID inference with current-main delivered, suppressed, and ambiguous outcomes, then prove that an ambiguous Telegram send does not emit a fallback.
  2. Pause the stricter confirmation behavior
    Do not merge a Telegram-only fail-closed fallback policy unless maintainers explicitly choose behavior that can duplicate a possibly visible final reply.

Technical review

Best 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 adapter_returned_no_identity is deliberately potentially visible on current main, while this branch's nonempty-message-ID check would trigger its fallback path.

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:

  • [P1] Preserve ambiguous sends instead of issuing a Telegram fallback — src/auto-reply/reply/dispatch-from-config.ts:756-766
    Do not require a nonempty messageId to treat a routed Telegram final as delivered. Current main deliberately classifies adapter_returned_no_identity as potentially visible so callers do not retry or post a duplicate fallback; this condition turns that case into an attempted-but-unconfirmed delivery and can send a second message.
    Confidence: 0.96

Overall correctness: patch is incorrect
Overall confidence: 0.96

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P1: The proposed fallback can send a second user-visible Telegram message after a final reply may already have reached the recipient.
  • merge-risk: 🚨 compatibility: The branch bypasses current-main's shared routed-delivery disposition contract and substitutes message-ID presence as the Telegram completion rule.
  • merge-risk: 🚨 message-delivery: The changed fallback condition can duplicate a final response when a transport call succeeds without an editable message identity.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🧂 unranked krab.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs real behavior proof before merge: The PR body explicitly says no live Telegram canary was sent; focused tests and CI do not establish the changed transport behavior or rule out duplicate delivery. Add redacted Telegram Desktop evidence, terminal diagnostics, or runtime logs after the semantic fix. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • mantis: telegram-visible-proof: Mantis should capture Telegram visible proof. The final-reply and fallback behavior is directly visible in a short Telegram Desktop recording.

Evidence

What I checked:

  • Current route contract preserves ambiguous sends: Current main explicitly treats an adapter result with no identity as potentially visible (delivered: true, ambiguous: true) so callers do not retry or send a duplicate fallback. (src/auto-reply/reply/route-reply.ts:389, dabba0ce108f)
  • Telegram fallback is gated by explicit failure or non-silent skip: Current main only sends the ordinary Telegram failure fallback for dispatch errors, failed non-silent delivery, or non-silent skips; its completion state also considers the delivery summary. (extensions/telegram/src/bot-message-dispatch.ts:485, dabba0ce108f)
  • PR patch conflicts with the current disposition model: The proposed routed-final check requires a nonempty messageId for Telegram, so an adapter result that is potentially visible but lacks an editable identity becomes an attempted-but-unconfirmed send and triggers the new fallback path. (src/auto-reply/reply/dispatch-from-config.ts:756, 863beafa1da1)
  • Repository policy requires live Telegram proof for this transport change: The scoped Telegram guide requires real Telegram proof for PRs touching transport behavior; the PR body explicitly says no live Telegram canary was sent. (extensions/telegram/AGENTS.md:111, dabba0ce108f)
  • Current-main provenance: The current reply-routing and Telegram-finalization implementation is attributed by blame to Peter Steinberger in the available checkout; the associated dispatch-pipeline refactor merged as commit 127b781. (src/auto-reply/reply/route-reply.ts:389, 127b78142b6e)

Likely related people:

  • steipete: Available blame attributes the current reply-routing and Telegram terminal-state code to Peter Steinberger, and commit 127b781 merged the recent auto-reply dispatch refactor that owns this boundary. (role: current-main refactor author and recent area contributor; confidence: medium; commits: 127b78142b6e; files: src/auto-reply/reply/route-reply.ts, extensions/telegram/src/bot-message-dispatch.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 (6 earlier review cycles)
  • reviewed 2026-06-24T09:00:10.790Z sha 2ec5ad5f8a8f66e29a21185ab8c16921de6bab10 :: needs real behavior proof before merge. :: none
  • reviewed 2026-07-02T12:59:25.938Z sha 2ec5ad5f8a8f66e29a21185ab8c16921de6bab10 :: needs real behavior proof before merge. :: none
  • reviewed 2026-07-07T19:05:11.869Z sha 2ec5ad5f8a8f66e29a21185ab8c16921de6bab10 :: needs real behavior proof before merge. :: none
  • reviewed 2026-07-21T07:03:15.016Z sha bc60a2d39dc1ba166afb52059e0db85b1a98158d :: needs real behavior proof before merge. :: none
  • reviewed 2026-07-29T23:22:15.829Z sha bc60a2d39dc1ba166afb52059e0db85b1a98158d :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-01T10:37:06.272Z sha 863beaf :: needs real behavior proof before merge. :: [P1] Preserve ambiguous sends instead of issuing a Telegram fallback

@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. mantis: telegram-visible-proof Mantis should capture Telegram visible proof. P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. labels Jun 23, 2026
@AdrianIp0204
AdrianIp0204 force-pushed the codex/telegram-final-delivery-confirmation branch from 08eabf2 to fc76672 Compare June 24, 2026 01:58
@AdrianIp0204

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Addressed the P1 attempt-signal regression: attemptedVisibleFinalDelivery now only reflects normalized visible final send attempts, with focused regressions for exact NO_REPLY, empty finals, routed attempt evidence, and Telegram fallback behavior. PR body has updated redacted behavior proof and validation.

@clawsweeper

clawsweeper Bot commented Jun 24, 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: the existing ClawSweeper review comment will be edited in place when the review finishes.

@AdrianIp0204
AdrianIp0204 force-pushed the codex/telegram-final-delivery-confirmation branch from fc76672 to 314e61f Compare June 24, 2026 07:21
@AdrianIp0204

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Rebased this PR onto current main (d9034da0a6) and force-pushed the refreshed head 314e61f7fdce. PR body evidence now points at the rebased head.

Fresh validation:

  • Focused behavior tests: 256 auto-reply tests + 139 Telegram tests passed.
  • ./node_modules/.bin/oxfmt --check passed on all touched files.
  • git diff --check origin/main...HEAD passed.
  • pnpm tsgo:core:test and pnpm tsgo:extensions:test passed.
  • Fresh GitHub checks are clean: 65 success, 1 neutral, 26 skipped, 0 failed/pending.

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.

@clawsweeper

clawsweeper Bot commented Jun 24, 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: the existing ClawSweeper review comment will be edited in place when the review finishes.

@AdrianIp0204
AdrianIp0204 force-pushed the codex/telegram-final-delivery-confirmation branch from 314e61f to 2ec5ad5 Compare June 24, 2026 08:44
@AdrianIp0204

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Addressed the latest routed suppression finding at head 2ec5ad5f8a: routed replies now mark attemptedDelivery only after durable delivery returns a non-suppressed send result. Added route-level assertions for cancelled/emptied reply-payload hook suppression and a dispatcher-level regression proving hook-suppressed routed Telegram finals do not set attemptedVisibleFinalDelivery.

Fresh local validation at rebased head 2ec5ad5f8a: focused Vitest 257 auto-reply tests + 139 Telegram tests passed, oxfmt passed on touched files, git diff --check origin/main...HEAD passed, pnpm tsgo:core:test passed, and pnpm tsgo:extensions:test passed.

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.

@clawsweeper

clawsweeper Bot commented Jun 24, 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: the existing ClawSweeper review comment will be edited in place when the review finishes.

@AdrianIp0204

Copy link
Copy Markdown
Contributor Author

@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.

@AdrianIp0204

Copy link
Copy Markdown
Contributor Author

@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.

@clawsweeper clawsweeper Bot added status: 🛠️ actively grinding The PR author has acted after the latest ClawSweeper review and work remains. and removed status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Jun 27, 2026
@clawsweeper clawsweeper Bot added status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed status: 🛠️ actively grinding The PR author has acted after the latest ClawSweeper review and work remains. labels Jul 7, 2026
@AdrianIp0204
AdrianIp0204 force-pushed the codex/telegram-final-delivery-confirmation branch from 2ec5ad5 to bc60a2d Compare July 21, 2026 06:52
@AdrianIp0204

AdrianIp0204 commented Jul 21, 2026 •

Copy link
Copy Markdown
Contributor Author

Refreshed this PR onto current main.

Update:

  • Force-pushed AdrianIp0204:codex/telegram-final-delivery-confirmation to bc60a2d39dc1ba166afb52059e0db85b1a98158d, with PR base now 8a03f414ce2517a4cc01ee2835e7d4a4aeeefccc.
  • Ported the stale PR behavior onto current head: direct Telegram final delivery now requires confirmed message evidence, routed hook-suppressed finals do not count as attempted delivery, and unconfirmed visible final delivery sends a retryable fallback.
  • Added/updated focused regressions for dispatcher delivered counts, routed attempted-delivery flags, and Telegram fallback behavior.

Local validation on the refreshed head:

  • pnpm exec vitest run src/auto-reply/reply/reply-flow.test.ts src/auto-reply/reply/dispatch-from-config.final-outcome-counts.test.ts src/auto-reply/reply/route-reply.test.ts src/auto-reply/reply/dispatch-from-config.test.ts extensions/telegram/src/bot-message-dispatch.delivery-basics.test.ts passed: 5 files, 365 tests.
  • pnpm check:test-types passed.
  • pnpm lint passed.
  • pnpm exec oxfmt --check ... passed for the touched files.
  • git diff --check HEAD~1..HEAD passed.

GitHub checks observed after push:

  • Real behavior proof, Security Sensitive Guard, Auto response, Labeler, and ClawSweeper Dispatch passed.
  • dependency-guard enforcement passed, but the earlier dependency-guard-detect job hit its 5m timeout while fetching trusted base ref 8a03f414ce2517a4cc01ee2835e7d4a4aeeefccc. This PR does not touch dependency manifests or lockfiles, so that looks like checkout/infra timeout rather than dependency drift.

Proof status:

  • Still needs Mantis Telegram Desktop Proof.
  • A workflow dispatch from AdrianIp0204 is blocked by GitHub with HTTP 403: Must have admin rights to Repository, and previous Mantis issue-comment runs skipped proof because this actor has read permission.
  • Please trigger Mantis Telegram Desktop Proof from maintainer authority with pr_number=96095, or remove/re-add mantis: telegram-visible-proof from a write/maintain/admin account.

I am holding off on an @clawsweeper re-review request until the proof artifact exists, to avoid a predictable needs proof loop.

@clawsweeper clawsweeper Bot added the merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. label Jul 29, 2026
@AdrianIp0204
AdrianIp0204 force-pushed the codex/telegram-final-delivery-confirmation branch from bc60a2d to 863beaf Compare August 1, 2026 10:30
@AdrianIp0204

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Rebuilt the stale branch as one current-architecture commit at 863beafa1da1220d7eb83db958cf7eeac89a1454 on base 33f5c0bbb271f7f82ebffa34b209228e49251ff9.

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 NO_REPLY, empty/whitespace-only, reasoning-only, and hook-suppressed finals.

Local gates passed at this exact head: 5 focused files / 365 tests, test types, lint, touched-file formatting, and git diff --check. No live canary was sent; observed Telegram transport proof remains separately gated.

@clawsweeper

clawsweeper Bot commented Aug 1, 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.

@obviyus

obviyus commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator

Thanks for the work here. Current main now records authoritative delivery outcomes and handles Telegram final-response fallback through the shared delivery path in #115016 and #115588; focused current-main tests pass. This older confirmation path is superseded, so I’m closing it.

@obviyus obviyus closed this Aug 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: telegram Channel integration: telegram mantis: telegram-visible-proof Mantis should capture Telegram visible proof. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. size: M status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants