Repository navigation
fix(digest): fail visibly when the daily report is not confirmed - #1230
Conversation
An unconfirmed Telegram send, a retry finding an earlier unconfirmed attempt, a failed delivery-record write and an unconfirmed 07:30 deadline check all returned 200, so schedulers recorded success while no report arrived. Return 502 for each; accepted and duplicate deliveries stay 200, and reservations still prevent resends. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011iHeYdZHqdsDyVsVxzUJLA
A retried 07:30 check now takes its HTTP status from the first recorded deadline receipt, so a recorded receipt_unverified result cannot return 200. Make the concurrent-send test hold the first send open so the overlapping 502 path is deterministic, and update the delivery contract for the new 502 outcomes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011iHeYdZHqdsDyVsVxzUJLA
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011iHeYdZHqdsDyVsVxzUJLA
Codex Review Summary: ✅ CompletedThis 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 Generated by Claude Code |
|
Codex Review: Didn't find any major issues. Swish! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
🛡️ Codex Security Review · Automatically triggeredSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
AI assistance
Claude Code wrote the change. Codex CLI reviewed it locally for two rounds: the round-1 P1, P2 and P3 findings were fixed, and the round-2 P2 doc findings were fixed.
What changed
execute_slotused to return HTTP 200 in four cases where no report was confirmed. Each now returns 502:acceptedandduplicatestill return 200. The reservation still blocks a second message, so nothing is resent.azure_timer_digest: on a retried deadline check, the HTTP status now comes from the first recorded deadline receipt. A recordedreceipt_unverifiedcan no longer return 200.unknownpath is deterministic.docs/unified-daily-notification.mddelivery contract updated:How verified
python3 -m unittest test_cloud_run_daily_digest test_azure_timer_digest: 75 tests OK.python3 -m unittest discover -s python/tests: 1242 tests. The only failures are the 3 pre-existing, environment-dependenttest_qsl_compat_checkercases, which also fail onmain.git diff --check: clean.Why
Telegram did not deliver the unified daily report, but the Azure job still exited successfully. Schedulers therefore showed success while no report arrived. A missing report must be a visible failure.
Risk
Generated by Claude Code