Skip to content

fix(tlon): wait for the real poison-message acknowledgment in CI - #208177

Merged
daniel-lxs merged 2 commits into
mainfrom
openclaw/work-for-roboclaw-ae8dd3
Nov 29, 2026
Merged

daniel-lxs merged 2 commits into
mainfrom
openclaw/work-for-roboclaw-ae8dd3

Conversation

@roboclaw-bot

Copy link
Copy Markdown
Collaborator

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 25 assertion 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

  • Main reproduction: the original 385 files across 26 extensions, four vCPUs, pinned Bun, two concurrent groups and four Vitest workers. Main ee377fc07a15 passed once, then failed on ACK 25. That failed run didn't record whether an ACK would have arrived after teardown.
  • Controlled HTTP comparison: I held the final byte of event 25 for 2.5 seconds. Main failed with the original assertion; the repaired fixture passed with the same delay. Sending event 24 instead still failed with expected 24 to be 25. These probes are not in the diff.
  • Final source verification: both fresh full-shard runs passed. The focused monitor file passed 20/20 with one worker (86.49 s wall including setup); formatting and lint passed. The targeted typecheck passed separately. No production change; no live ship tested.
  • Local autoreview produced no verdict: its isolation preflight rejected the workspace-scoped temporary directory.

Co-authored with @daniel-lxs.

Work sessions

Linked for team reference; these sessions aren’t public.

Worked on by

🦞 Made with OpenClaw

roboclaw-bot and others added 2 commits November 29, 2026 08:29
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
@clawsweeper

clawsweeper Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added channel: tlon Channel integration: tlon size: XS labels Nov 29, 2026
@clawsweeper clawsweeper Bot added the P2 Normal backlog priority with limited blast radius. label Nov 29, 2026
@daniel-lxs
daniel-lxs marked this pull request as ready for review November 29, 2026 09:16
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Nov 29, 2026
@clawsweeper

clawsweeper Bot commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

Codex review: passed.

What this changes

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

  • Before: The test fails before sending the recovery messages.
  • After: The test accepts ACK 25 and proceeds to verify recovery; a wrong acknowledgment still fails.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A minimal, correct test repair supported by source inspection and passing CI; the controlled-delay replay results remain reported evidence.
Proof confidence 🦐 gold shrimp (3/6) No shipped behavior changes; the retained test exercises real loopback HTTP/SSE and ingress, with passing reviewed-head CI and reported controlled-delay comparisons.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: A loaded CI runner can fail a valid Tlon recovery test because ACK 25 misses an incidental two-second deadline.
Reason: The maintainer-authored change removes a runner-speed dependency without weakening the acknowledgment or recovery contract.

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: 7173aa4a8c3c347b74713eb582d05d4912027c11

Before merge

None.

Findings

None.

Agent review details

How this fits together

The 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
Loading

Technical review

Best 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

  • Poison-message acknowledgment and recovery test keeps the original intent (5b46d3b: Prove through real HTTP/SSE and durable ingress that an unserializable poison event is acknowledged and later group and direct messages continue to dispatch.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Agustin Rivera: Raw commit 5b46d3b adds extensions/tlon/src/monitor/index.test.ts:862 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 5b46d3b7dde8; files: extensions/tlon/src/monitor/index.test.ts)
  • Peter Steinberger: Raw commit 7ed6b47 adds extensions/tlon/src/monitor/index.test.ts:8 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 7ed6b4716743; files: extensions/tlon/src/monitor/index.test.ts)

PR surface

Tests +5. Total +5 across 1 file. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 7 2 +5
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 7 2 +5

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 29, 2026, 4:30 AM ET / 09:30 UTC.

@daniel-lxs
daniel-lxs merged commit 3f6ef04 into main Nov 29, 2026
179 checks passed
@daniel-lxs
daniel-lxs deleted the openclaw/work-for-roboclaw-ae8dd3 branch November 29, 2026 09:34
tideclaw-bot pushed a commit that referenced this pull request Nov 30, 2026
…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]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 30, 2026
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: tlon Channel integration: tlon P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants