Repository navigation
fix(interop): an untimed IETF datagram's timestamp is its sequence - #9197
Conversation
#8918 made every received datagram carry a timestamp, unscaled at its sequence, but the interop tail still expected none from JS. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
✅ No new issues found.
Approach: sound. It updates the stale interop assertions to match the post-#8918 behavior, where a scale-less datagram's timestamp is Timestamp.unscaled(sequence).
Reviewed changes
Reviewed the full diff. I also checked the assertions against js/net/src/time.ts and js/net/src/datagram.ts.
- JS tail subscriber: asserts
frame.timestamp.key === BigInt(sequence).keyisbigint | undefined, anddatagram.tssets a scale-less datagram's timestamp to its sequence, so the check is correct. - Rust tail subscriber: asserts
frame.timestamp == Timestamp::unscaled(sequence)in place ofscale().is_none(). This is stricter and matches the JS side. - Rust publisher comment: no longer says the datagram carries no timestamp.
claude-sonnet-5-5 | 𝕏
|
No actionable comments were generated in the recent review. WalkthroughThe Rust publisher comment now describes each datagram timestamp as unscaled and carried as the Merge Risk:
|
# Conflicts: # test/interop/clients/rust/tail.rs
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes since the prior review: only a merge of main into the branch.
- Merged
main— no change to the PR's own edits: the JS and Rust tail subscribers still assert a datagram's timestamp is unscaled at its sequence.
claude-sonnet-5-5 | 𝕏

Problem
Scheduled Interop run 44353391853 fails
datagram rust -> js-native-nodeandrust -> js-native-bunon moq-transport-18:tail.ts:225expects a received datagram's timestamp to beundefined, but it isTimestamp.unscaled(0). Since #8918 a JS datagram always carries a timestamp, unscaled at its sequence on a scale-less track (datagram.ts), so the assertion is stale. Earlier scheduled runs failed before reaching this step, so this is persistent, not flaky.Approach
Timestamp::unscaled(sequence)instead of only an absent scale.Impact
Validation
main:just test interop --tail --publishers rust --subscribers js-native-node --versions moq-transport-18fails with the nightly'sunexpected IETF timestampfor node and bun.just test interop --tail --publishers rust --subscribers rust,js-native-node,js-native-bun --versions moq-transport-18passes, including all four datagram lanes (both directions, node and bun).just cipasses.main(conflict in the Rust publisher's comment againstmain's new.context("the track already exists"); kept both):just test interop --tail --publishers rust,js-native-node --subscribers rust,js-native-node,js-native-bun --versions moq-transport-18passes, includingdatagram rust -> js-native-nodeandrust -> js-native-bun;just checkpasses.Alternatives
Caused by
Follow-ups
None.
Models
Size: XS
Implementer: Claude Code, claude-opus-5-5, unknown effort
Implementer: Claude Code, claude-opus-5-5, unknown effort (iterate, XS)
(Written by Opus 5.5)
🤖 Generated with Claude Code
Review
Rewritten by
quest reviewafter each round.Head: c9ae869
Base: origin/main at f2965d8
Risk: low,
Only interop test assertions and comments change, so contributors could see test failures, but no consumer API or wire behavior changes and a revert fully undoes it.Classified: low by Codex, gpt-6.1-sol, low effort, session
01a2021b-8ab0-7bc2-ad64-db09d7cd7600Reviewer: Codex, gpt-6.1-sol, medium effort
Session:
01a2021b-a688-7413-b1f6-8d5d6e37a97c, round 1Score: 10/10,
The updated assertions match both implementations and correct stale expectations without changing production behavior.Rounds: 2; first round 0; findings 0: fixed 0, refuted 0, open 0
Findings: none