Repository navigation
fix(ci): stabilize committed mention delivery test - #190273
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis 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.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete 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 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe 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]
Technical reviewBest 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
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +26. Total +26 across 1 file. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
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 1, 2026, 6:37 AM ET / 11:37 UTC. |
Co-authored-by: steipete <[email protected]>
cff8a93 to
09f0515
Compare
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]>
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]>
What Problem This Solves
Fixes the committed-mention test timing out or reading an uncommitted
chat.sendacknowledgment.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 committedsession.messageidentity plus the recipient’smentions.changedpublication. Selectingfollowupkeeps 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.tschanges: +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
messageSeq: undefined. The protocol permits absent sequences during pending custody.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.steerTargetRunId: mention-seed, with nonotifications.mentions.*state. This exposed the fixture’s unintended steering path; the repair adds only explicitqueueMode: "followup"and its explanatory comment.1.4.4-canary.1+191755ec1: 1/1, 12.261 seconds test / 26.55 seconds wrapper. Bun executable SHA-256 matches the repository pin.6a606e2e8cf3: validatedscoped-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]