Repository navigation
fix(tlon): wait for the real poison-message acknowledgment in CI - #208177
Conversation
Require the HTTP fixture to receive ACK 25 before sending the recovery messages. Use the Vitest cancellation signal instead of a two-second latency assertion under shard contention. Co-authored-by: daniel-lxs <[email protected]>
Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: be835a68-51a7-487a-86bf-6a0ee0186c92
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. |
|
Codex review: passed. What this changesThis PR replaces a two-second acknowledgment poll with a fixture receipt bounded by Vitest cancellation. Example: The HTTP fixture receives ACK 25 after 2.5 seconds.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR makes a focused test repair while preserving acknowledgment and recovery coverage; no actionable correctness defects were found, and the reviewed head passes CI. Reviewed head: Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Tlon monitor test sends nested messages through real loopback HTTP/SSE, production ingress, and SQLite, then checks transport acknowledgments and subsequent inbound dispatch. flowchart TD
A[Test SSE server] --> B[Urbit SSE client]
B --> C[Tlon monitor and ingress]
C --> D[SQLite queue and handlers]
B --> E[HTTP acknowledgment fixture]
E --> F[Test receipt assertion]
F --> A
Technical reviewBest possible solution: Keep this focused receipt-based synchronization change and retain the existing recovery assertions. Do we have a high-confidence way to reproduce the issue? Source confirms that an acknowledgment arriving after two seconds fails the original test despite successful recovery; the PR reports a controlled 2.5-second comparison, but this read-only review did not reproduce it. Is this the best way to solve the issue? The change uses the existing HTTP receipt producer and shared cancellation helper, removes the incidental latency requirement, and preserves failure on missing or incorrect acknowledgments. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against bdc9ee74e4ec. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +5. Total +5 across 1 file. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 29, 2026, 4:30 AM ET / 09:30 UTC. |
…8177) Wait for the loopback server to receive the first channel acknowledgment before sending the recovery messages. Require event ID 25 and let Vitest cancellation bound the wait on a slow runner. Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: be835a68-51a7-487a-86bf-6a0ee0186c92 (cherry picked from commit 3f6ef04) Companion audit: The later #207383, #207982, #201292, and #207380 matches are mention-only changes to UI log search, translation labels, Docker Doctor output, and Workboard rendering; none affects this owner. #208207 performs Gateway restart after plugin repair; it does not change the Tlon mocked-server acknowledgment. Co-authored-by: RomneyDa <[email protected]>
…nclaw#208177) Wait for the loopback server to receive the first channel acknowledgment before sending the recovery messages. Require event ID 25 and let Vitest cancellation bound the wait on a slow runner. Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: be835a68-51a7-487a-86bf-6a0ee0186c92
Related: hourly extension shard 5 failure
What Problem This Solves
The Tlon recovery test fails if the loopback HTTP server hasn't recorded ACK 25 within two seconds of writing a 100,000-level nested message. That makes the test check runner speed as well as recovery. I reproduced the same
expected [] to include 25assertion on the second cold replay of the original shard.User Impact
This changes only the test. Tlon users need to take no action. A missing or wrong acknowledgment still fails; the test must receive ACK 25 before it sends any recovery messages.
Why This Change Was Made
The HTTP fixture already sees the acknowledgment PUT. It now reports the first event ID directly to the test, which asserts that it is 25. The existing Vitest cancellation signal bounds the wait and lets cleanup run. The poison payload, production handlers, durable queue, and ordered assertions for ACKs 25, 46 and 67 are unchanged. This preserves the recovery contract established in #177536, without introducing a new latency limit.
Evidence
ee377fc07a15passed once, then failed on ACK 25. That failed run didn't record whether an ACK would have arrived after teardown.expected 24 to be 25. These probes are not in the diff.Co-authored with @daniel-lxs.
Work sessions
Linked for team reference; these sessions aren’t public.
Worked on by
🦞 Made with OpenClaw