Repository navigation
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 27, 2026, 2:05 AM ET / 06:05 UTC. ClawSweeper reviewWhat this changesThe PR rethrows transient Signal approval-resolution failures so durable ingress retries the same reaction, and adds a SQLite-backed replay regression test. Regression provenancePossible regression — probable (reproduction; reviewed change). No predecessor PR is attributed. Merge readinessThis PR remains necessary: current main still consumes transient Gateway errors as handled, while the proposed change lets the durable Signal ingress owner release and replay the event. The focused queue-boundary proof is sufficient; exact-head CI should finish before landing. Priority: P1 Review scores
Verification
Live VerificationCommand: Result: PASS (completed) Assertions:
How this fits togetherSignal reaction events enter through a durable ingress queue before reaching the approval resolver. A successful or expired resolution completes the event; a transient resolver failure must release its claim so the queue can retry it. flowchart LR
A[Signal reaction] --> B[Signal monitor]
B --> C[Durable ingress queue]
C --> D[Approval reaction handler]
D --> E{Gateway resolution}
E -->|resolved or expired| F[Complete event]
E -->|transient failure| G[Release claim]
G --> C
Before merge
Agent review detailsSecurityNone. PR surfaceSource 0, Tests +183. Total +183 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: Land the one-line Signal owner-boundary repair with its durable replay regression, once exact-head CI confirms the clean merge result. Do we have a high-confidence way to reproduce the issue? Yes: current main’s return-success path and the added SQLite queue test define a high-confidence reproduction of claim completion after an injected transient resolver failure, although this read-only review did not execute contributor code. Is this the best way to solve the issue? Yes: propagating the transient error at the Signal resolver boundary is the narrow canonical fix because the existing durable ingress drain already owns retry and claim release; the Matrix sibling uses the same distinction. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 9f266edd0f0a. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (5 earlier review cycles)
|
|
Added the ingress-boundary proof requested: a real reaction event is now driven through |
|
@clawsweeper re-review Head What is real vs mocked:
Assertions, all synchronized on produced state (no sleeps): after the first dispatch, the claim is released and NOT completed ( Pre-fix verification ( |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Let the durable Signal ingress queue release and replay a claim when Gateway approval resolution fails transiently. Keep the real SQLite lifecycle regression at the queue owner boundary. Co-authored-by: Ayaan Zaidi <[email protected]>
146f4e0 to
3b756de
Compare
|
Land-ready proof for
Final Telegram gate used only the canonical The hosted review's current-main merge-result Rank-up move is complete. |
|
Thanks @wangmiao0668000666! |
|
Thanks @obviyus for merging! Appreciate the quick turnaround — happy to help if anything comes up. |
…es (openclaw#130134) Propagate transient Signal approval-reaction failures so durable ingress releases and replays the claim instead of silently completing it. Preserve expired-approval cleanup and the real SQLite owner-boundary regression. Fixes openclaw#130133. Co-authored-by: wangmiao0668000666 <[email protected]> Co-authored-by: Ayaan Zaidi <[email protected]>
… errors
Transient Gateway 5xx/network/auth errors in approval reaction resolution
were returning {handled:true, stopPolling:true}, which caused the durable
ingress while(true) loop to commit the claim (GUID tombstone) and lose
the operator's approval click permanently.
Fix: return {handled:false} so the loop retries via
iMessageApprovalControlBindings.wait(), keeping the durable claim alive.
This is the same fix pattern as matrix (openclaw#129879) and signal (openclaw#130134).
Test: prove transient errors keep the binding alive and return handled:false.
Fixes: imessage approval reaction silent drop on resolver-error
What Problem This Solves
Signal approval reactions treated every non-expired Gateway failure as handled. A transient Gateway failure therefore completed the durable ingress claim and silently dropped the operator's approval click.
Fixes #130133.
Why This Change Was Made
The Signal durable ingress queue already owns retry. The approval resolver must preserve expired-approval cleanup, but it must rethrow every other Gateway failure so the queue releases and replays the claim.
Matrix uses the same owner boundary after #129879. WhatsApp is intentionally separate because its approval reaction runs before durable admission, so a bare rethrow there would still drop the reaction.
User Impact
A transient Gateway failure no longer loses a Signal approval reaction. Signal retries the same durable event after the Gateway recovers, then records completion so it cannot dispatch again.
Evidence
Current main
be8b6ff3c4697c045d9277356018846e777fbcdcwith only the authoritative replay test added:Exact PR head
3b756de46803554d0afb7cd7cc72cb6558bc6f0a:Exact GitHub merge result
8dc3a96d0e7598b77b33b9dcff43d95546349f8dagainst current maind36d90ba62d28fb412ef7e922bb3fed93c563b91passed the same focused test. Exact-headopenclaw/ci-gatealso passed in run33044232460.The test uses the real SQLite queue, Signal monitor, generic ingress drain, and Signal event handler. It mocks only the external Gateway approval call. It proves claim release, identical redelivery, completion, and tombstone deduplication.
Production logic is one changed line:
return truebecomesthrow error. Test audit removed the two earlier unit-level tests because the SQLite owner-boundary test supersedes them.The final canonical Telegram userbot DM smoke recorded one user message, two typing events, and one SUT reply containing
OPENCLAW_E2E_OK. The mock provider recorded onePOST /v1/responses; the fresh Gateway recorded ready and clean shutdown with zero errors. This is collateral regression proof only because the Signal approval-reaction change is not Telegram-visible.