Skip to content

fix(ci): stabilize committed mention delivery test - #190273

Merged
roboclaw-bot merged 1 commit into
mainfrom
main-ci/l204-mentions
Nov 1, 2026
Merged

roboclaw-bot merged 1 commit into
mainfrom
main-ci/l204-mentions

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Fixes the committed-mention test timing out or reading an uncommitted chat.send acknowledgment.

User Impact

CI checks committed, once-only mention delivery through authenticated RPCs. No production behavior changes.

Why This Change Was Made

Hold the synthetic seed response, submit the mention as an explicit followup, and wait for the exact committed session.message identity plus the recipient’s mentions.changed publication. Selecting followup keeps the pending input in its own turn; default steering can hand it to the seed run. The positive committed sequence, Inbox content, once-only delivery, and idempotent replay assertions remain intact.

Only src/gateway/server.mentions-committed.test.ts changes: +38/-10 test lines and zero production lines. Existing deferred/cancellation helpers release the provider first during LIFO cleanup. No retries, skips, timeout increases, assertion weakening, baseline changes, CI reruns, or workflow dispatches.

Evidence

  • Original failure: run 41297432333, job 124821333820 asserted a positive sequence on an ACK with messageSeq: undefined. The protocol permits absent sequences during pending custody.
  • Current failed head cff8a93c2de3: run 41301640350, job 124833913759, checks-node-changed-compact-large-26, pinned-Bun lane. The changed test was the only test executed and timed out at 120,000 ms. Its job log was fetched once.
  • One unchanged local pinned-Bun reproduction failed with the same 120,000 ms timeout. Inspection of that isolated test’s state showed the exact mention user row committed with steerTargetRunId: mention-seed, with no notifications.mentions.* state. This exposed the fixture’s unintended steering path; the repair adds only explicit queueMode: "followup" and its explanatory comment.
  • Fixed test passes once on Node v26.12.1: 1/1, 29.741 seconds test / 44.80 seconds wrapper; and once on repository-pinned Bun 1.4.4-canary.1+191755ec1: 1/1, 12.261 seconds test / 26.55 seconds wrapper. Bun executable SHA-256 matches the repository pin.
  • The focused file proves real TLS/authenticated Gateway admission, native agent execution against a synthetic local HTTP provider, pending input commitment, recipient publication, and replay across two profiles. This integration accounts for its runtime; no paid provider or operator Gateway was used.
  • Scoped gateway-server test TypeScript, type-aware lint, oxfmt, whitespace, and unchanged test-line ceiling pass (6,373,558 lines; ceiling 6,390,648).
  • Fresh shared Codex autoreview (GPT-6.1 Sol, P0–P2) of the complete staged candidate against base 6a606e2e8cf3: validated scoped-clean, no findings. The complete test, including its unchanged assertions and teardown, was supplied after an initial bundle omitted the tail. Unchanged queue-drain/provider-close internals were outside the supplied review context. Broad proof belongs to new-head PR CI.

Co-authored-by: steipete [email protected]

@clawsweeper

clawsweeper Bot commented Nov 1, 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. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime size: XS labels Nov 1, 2026
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review November 1, 2026 11:22
@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. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 1, 2026
@roboclaw-bot
roboclaw-bot enabled auto-merge (squash) November 1, 2026 11:37
@clawsweeper

clawsweeper Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR synchronizes the committed-mention test with transcript commitment and recipient Inbox publication.

Example: Alice sends “@bob Please review.” while an earlier provider request is held.

  • Before: The test expects a positive messageSeq in the immediate acknowledgment and can fail when it is undefined.
  • After: The test waits for mention-original:user to receive a committed sequence and for Bob’s Inbox publication before checking one notification and idempotent replay.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Focused, contract-aligned test repair with no concrete finding; supporting harness results are reported, while current-head CI still has an unattributed timeout.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored test-only repair is outside the contributor production-proof gate; its scenario exercises authenticated TLS Gateway RPCs with a controlled HTTP provider, and the body reports baseline failure and Node/Bun passes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: CI can reject valid pending-input behavior before checking committed mention delivery.
Reason: The maintainer-authored direction aligns the test with the documented contract and retains its meaningful delivery guarantees.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored PR repairs a documented test-contract mismatch without weakening delivery assertions; no definite introduced bug was found, but current-head CI has an unattributed timeout.

Priority: P2
Reviewed head: cff8a93c2de379aa27a08f328f7736bb741f856d

Before merge

None.

Findings

None.

Agent review details

How this fits together

The Gateway accepts authenticated chat input, commits its transcript entry, and separately delivers eligible human mentions to the recipient’s Inbox; this change adjusts the integration test around those boundaries.

flowchart LR
  A[Authenticated sender] --> B[Chat input admission]
  B --> C[Pending input custody]
  C --> D[Transcript commitment]
  D --> E[Session message event]
  D --> F[Mention Inbox owner]
  F --> G[Recipient publication]
  G --> H[Inbox and replay assertions]
Loading

Technical review

Best possible solution:

Keep the existing Gateway scenario and synchronize its assertions with the owning commitment and Inbox publication events.

Do we have a high-confidence way to reproduce the issue?

The original CI annotation confirms an undefined acknowledgment sequence, and current main still asserts that sequence despite the documented pending-custody contract.

Is this the best way to solve the issue?

The patch is a focused repair using existing deferred helpers and production events, preserving commitment, recipient content, once-only delivery, and replay checks.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 6129cfa7bebc.

Provenance checked

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Shakker: Raw commit 3e517e9 adds src/gateway/server.mentions-committed.test.ts:181 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 3e517e9eb12d; files: src/gateway/server.mentions-committed.test.ts)
  • Peter Steinberger: Raw commit cbcd38b adds src/gateway/server.mentions-committed.test.ts:4 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: cbcd38b12e3c; files: src/gateway/server.mentions-committed.test.ts)

PR surface

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

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 36 10 +26
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 36 10 +26

Review metrics

Metric Value Why it matters
Production versus test changes Production +0/−0; tests +36/−10 The additional test code supplies deterministic provider gating and event synchronization while retaining the existing delivery assertions.

Labels

Label changes:

  • add P2: This repairs a concrete CI test-contract mismatch with no production behavior change.
  • 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:

  • P2: This repairs a concrete CI test-contract mismatch with no production behavior change.
  • 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.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Attribute the current-head committed-mention timeout before landing.

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 1, 2026, 6:37 AM ET / 11:37 UTC.

@roboclaw-bot
roboclaw-bot force-pushed the main-ci/l204-mentions branch from cff8a93 to 09f0515 Compare November 1, 2026 12:16
@roboclaw-bot
roboclaw-bot merged commit 33f1ecc into main Nov 1, 2026
109 checks passed
@roboclaw-bot
roboclaw-bot deleted the main-ci/l204-mentions branch November 1, 2026 12:41
roboclaw-bot added a commit that referenced this pull request Nov 1, 2026
Takes main's committed-mention (#190273) and cron cancellation-receipt
(#190311) test fixes in place of this branch's versions.

Co-authored-by: vyctorbrzezowski <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 2, 2026
Wait for the exact committed input and recipient Inbox publication in the authenticated mention test. Keep positive sequence, once-only delivery, and replay assertions.

Co-authored-by: steipete <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. gateway Gateway runtime size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant