Repository navigation
Conversation
Quest-Claim: 37ffc9182657022f
…oders (checkpoint) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…code time Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # rs/moq-net/src/model/track.rs
- Draft-23 timestamp Object IDs no longer depend on INCLUDE_PROPERTIES, in Rust and JS, so one Object ID names one frame on every request. - A draft-23 track's LOC 0x08 is dropped (mutable) or refused (sealed) at a draft-18..22 egress, where 0x08 is the transport TIMESCALE. - Archive replay raises a stored timestamp below its group's newest, live and filled alike, so recordings with decreasing stamps replay. - JS decodes a compact subgroup stream's later objects as plain deltas, accepting sparse timestamp IDs after the first. - fMP4 import maps decode times only for a decode-order output. - The streamed producer path raises the transport only for containers whose payload carries the presentation time; raw refuses instead. - cts stays unadvertised (writable() refuses it) until bindings carry a decode time and draft-18..22 hops are settled; the follow-up quest records both. - Binding docs state that a group's timestamps never decrease; the hang draft drops the cts HLS placement claim. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- TRACK_STATUS picks its Largest Object's ID scheme from the track's timescale and the draft, not from the answer's (possibly empty) properties. - Archive fills load a group from its first object even for a tail, so replay raises timestamps from the whole stored prefix. - A streamed decode-order frame below its group's latest is refused before the producer takes the group, so the accepted frames finish. - cts goes back to decode-only, as on main: the writer, its streaming prefix, and its round-trip test leave until the cts-encoders quest, which records the commit holding them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…et cts encoders to lite-08 - Archive replay refuses a stored group whose timestamps go down with TimestampMismatch instead of raising them: fills refuse the group before accepting it (checked over the whole stored prefix), and the live feed aborts that group and skips the rest of it while the track goes on. - quest/m2/cts-encoders.md moves to quest/m4: publishers switch to cts with lite-08, after subscribers have upgraded; every first-party decoder already reads cts. lite07-finalize records the decisions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Design change: two maintainer decisions landed on head 360aa3e after review round 3.
Decision 3 (groups keyed by frame 0's timestamp) is still open under (Written by Claude Opus 5.5) |
A group whose stored head was pruned can't be shown never to decrease, so a fill drops it even for a tail starting past the pruned frames, and the live feed aborts it with NotFound, as a fill reads it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Maintainer decision (from the /quest-run pick round, 2026-11-28):
(Written by Claude Opus 5.5) |
- draft-23 egress sets FIRST_OBJECT when a timed slice past Object 0 still starts at frame 0, in Rust and JS. - moq-archive keeps serving an untimed group's retained tail after its head is pruned; only a timed group needs its whole prefix. - lite07-finalize and cts-encoders no longer record frame 0 at the group start as decided; drop_record.test.ts is back to main. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # quest/m2/lite07-finalize.md
- JS draft-23 egress waits for frame 0 or the group's end before a timed slice past Object 0 writes its header, so FIRST_OBJECT holds when frame 0 lands after the stream opens, as Rust's describe waits. - An untimed archive tail fill looks up objects from the requested frame, so a pruned head doesn't drop a retained tail. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A draft-23 timed slice past Object 0 settles FIRST_OBJECT from the stream's own first read, which the send loop then writes, instead of a separate wait. The read keeps the loop's expiry, route recovery, and cancellation; a slice selecting nothing reads no frame first. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Design change: on head 9570fc3, the JS draft-23 publisher settles a timed slice's FIRST_OBJECT from the stream's first frame read. This takes the reviewer's recommended approach at the third-round checkpoint (PR body
Decision 3 is settled as item D: frame 0 at the group start moves to (Written by Claude Opus 5.5) |
- A timestamp-ID copy whose stream starts past the group's first object answers no FETCH, since it can't prove its head. - Only draft-23 timestamp Object IDs skip ordinals densely: a mid-group draft-18..22 timed copy whose IDs skip is sparse again. - lite-07 TRACK_PROPERTIES refuses a forwarded 0x08 on a draft-18..22 track, whose timescale TRACK_INFO carries; the ietf draft says so. - JS reads ID_TIMESCALE and the other understood properties from Immutable Properties too, refusing a second copy as Rust does. - JS frameHeader takes 'first' explicitly. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- A timestamp-ID copy relayed from a stream starting past the group's first object still answers a FETCH from its first object on; only a range reaching below it is refused. - A FETCH past a headless timed copy's estimated last ID is no longer refused INVALID_RANGE on that lower bound. - JS refuses a second or nested Immutable Properties block, as Rust. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A draft-23 FETCH starting past a headless timed copy's estimated last Object ID, in that group, is refused as unsupported: the true last ID may lie past the estimate, so neither INVALID_RANGE nor a response end at the estimate holds. A group past every held one is still not found. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Design change: on head a60596c, a draft-23 FETCH starting past a headless timed copy's estimated Largest Object, in that group, is refused as unsupported. This takes the reviewer's refusal option at the second review checkpoint (PR body
Advertised Largest and Next Object stay lower bounds, so a subscription never skips an object. (Written by Claude Opus 5.5) |
- A draft-23 copy recovered from a later frame records the first Object ID it kept, and serves no FETCH until it knows it. - A same-scheme relayed timestamp-ID copy ends past its last relayed ID, and a copy missing its head or with strayed IDs derives none. - A frame the container refuses no longer marks its group reordered. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # quest/m0/test-flakes-5/finish-go-row-under-load.md
A lite-05/06 copy may hold a timestamp below its predecessor. Draft-23 timestamp IDs carried it with a TIMESTAMP_TIE, writing a decreasing timestamp the draft forbids. TimedIds (Rust and JS) now refuses it with TimestampMismatch, matching lite-07 egress. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Summary
A group's timestamps now never decrease, and every copy of a group serves the same moq-transport Object IDs.
TimestampMismatch, where the frame is created. This covers Rustgroup::Producer::write_frame,create_frameand batch writes, and JSGroupProducer. Copies ingested from lite-05/06 (unchecked) are exempt, since released publishers stamped B-frames with presentation time.ID_TIMESCALE(0x40B70).Group ID + Object ID - TIMESTAMP_TIE, whereTIMESTAMP_TIE(0x40B72) is omitted when zero.TimedIdsin Rust and JS). It keeps no per-copy timing state, so every copy and every failover yields the same IDs.Unsupported) rather than guessing.TIMESCALE(0x08) with dense IDs as a temporary shim, marked for deletion at the next bump. A draft-23 track's LOC0x08is dropped (mutable) or refused (sealed) at a draft-18..22 egress, where0x08is the transport timescale.FRAMEdeltas.FRAMEcarries a zigzag delta from the Group Start.GROUP_ENDcounts from the last frame.legacyandlocstamp the transport with the newest presentation time so far in the group, while the payload keeps each frame's own. This is done inhang::container::Frame::write_to, the moq-mux streaming path, and JSHang.Container.Legacy.Producer. B-frame imports keep working unchanged.container::Framegainsdecode, andContainer::decode_order()marks a container whose transport is its decode time.rawis one, so it refuses a reordered frame (buffered or streamed) instead of writing a decreasing timestamp.ctsstays decode-only, as on main.TimestampMismatch; fills read a group from its first stored object so a tail refuses what a whole read does.legacytransport stamps and the CMAF limit.drafts/README.mdcode points,doc/concept/moq-lite.md,doc/concept/standard.md.write_frame, libmoqmoq_publish_group_frame) state the non-decreasing rule.Impact
Breaking (wire and API):
ID_TIMESCALEinstead ofTIMESCALE(0x08).FRAME:GROUP_ENDcounts from the last frame.moq-net:TimestampMismatch(behavior).group::Producer::latest()returns the highest timestamp written.moq-mux:container::Framehas a new public fielddecode: Option<Timestamp>. Migration: adddecode: Noneto existing literals; an importer with decode times may set them.Containertrait gainsdecode_order(), which defaults tofalse.legacyB-frame recording from an earlier release) is refused withTimestampMismatch(behavior), and a timed group whose head was pruned reads asNotFound; an untimed group's retained tail is still served.moq-json, JS@moq/json: an update or edit older than the newest written is refused (behavior).Bindings (moq-ffi, libmoq): no API change; a group's frames now refuse a decreasing timestamp (documented).
Decisions
The user picked items A to D on 2026-11-27; I took my recommendation on the numbered items while they were away.
TimestampMismatch): a fill refuses it before accepting it, checked over the whole stored prefix, and the live feed aborts that group while the track goes on. Old legacy B-frame recordings with decreasing stamps stop replaying. Rejected: raising them to the newest (rewrites JSON edit times and CMAF anchors), and replaying them unchecked (needs a public opt-out flag). This settles both open review findings.cts, publishers keep writinglegacy. Every first-party decoder already readscts(moq-muxcts::Wire::decode, JSContainer.Ctsused by@moq/watchvideo, audio, and text, MSF mapping, and the Rust exporters). moq-hls still refusesctsrenditions, and serving them is part of the switch. Publishers switch with lite-08 to save about 3 to 7 bytes per frame: quest/m4/cts-encoders.md. Rejected: first-party encoders onctsfor lite-07.FRAMEdelta at Frame Start 0, removes zigzag from lite-07, and dropsseek(start). This PR keeps lite-07-wip's temporary zigzag first delta. Rejected: folding it into this PR.Producer::seekkeys a joined group above its first frame, so frame 0 can precede its key. moq-transport already carries that case withTIMESTAMP_TIE.seek: it broke the warmup-trim and join behavior five moq-audio tests rely on.legacy, which stamps the transport with the newest presentation time;ctsstays decode-only. Thectsswitch moves to quest/m4/cts-encoders.md.ctsin this change". That decision was taken because alegacyB-frame stream's transport timestamps went backwards; the encoder-side stamp fixes that without rewriting any presentation time (the payload keeps it) or holding per-copy state.ctscan't ship yet: the libmoq/moq-ffi frame APIs carry no decode time, and a draft-18..22 hop stamps every object at its Group ID, losing the decode time actsoffset counts from. The writer built here was dropped; the quest records the commit holding it.ctsnow. With decode-time grouping it broke about 40 moq-mux splice, open-GOP, leading-picture and TS-recovery tests, some of them real regressions (leading pictures dropped at joins, a video-only presentation shift on edit lists).tfdt(first decode time). It is monotone, but on a verbatim timebase an edit-listed first fragment decodes before zero; it then saturates and shifts that track's presentation times.-frag_duration 1000orfrag_keyframe. Both reviewers accepted this; the redesign is in the follow-up quest.Producer::reorder()stays.legacy/CMAF frames ignoredecode, so importers still supply the reorder delay for the catalog's jitter.legacy(Matroska has no DTS). Audio stays onlegacy.rawvsctsaudio is an open question in the follow-up quest.ctsrenditions, so there is noctsplacement to define yet; the follow-up quest owns it (groups placed by their transport, decode-time, starts).ctsplacement in the hang draft now, which the reviewer flagged as describing behavior the edge doesn't have.StreamCode.Internal(JS has no Unsupported stream code). Rust passes matching relayed IDs through verbatim; both produce the same IDs.ID_TIMESCALEare read with dense IDs. Only draft-23+ uses timestamp IDs.Overlap
#9719 (per-range policy) touches the same files:
js/net(broadcast,group,track,resume, lite publisher/subscriber, ietf publisher/subscriber),rs/moq-muxcontainer consumer/producer and fMP4/TS import,rs/moq-hlsrendition, the lite draft anddoc/concept/moq-lite.md. Expect textual conflicts; the semantics don't overlap, since this PR changes timestamps and Object IDs, not ranges. main has been merged in (one conflict inrs/moq-net/src/model/track.rs, both sides kept).Validation
On head a60596c:
quest gate just check: all modules pass.quest gate just rs test --no-fail-fast(workspace, on 07805f6): 12932 passed;moq-netreran on the head (4684 passed).quest gate just js test: all pass (on 07805f6; JS unchanged since).quest gate just test interop --all: all checks pass, including lite-05/06/07-wip drop/tail/compress, IETF TRACK_STATUS, andhls gridbetween Rust and JS (node and bun). Two earlier runs hit the knownfinish cppflake in quest/m0/test-flakes-5/finish-go-row-under-load.md (sightings added), and each immediate rerun passed.moq-cli; covered by the moq-mux fMP4/TS/FLV import and export tests.Follow-ups
cts. Open questions: decode-order grouping at splices, MPEG-TS decode times, MKV DTS, the audio container, CMAFtfdtanchoring, decode time in the libmoq/moq-ffi frame APIs,ctsover draft-18..22 hops, and HLS export ofcts.GroupProducerhas nolatestcounterpart to Rust'sgroup::Producer::latest(); add it when a JS caller needs it.Models
Size: L
Implementer: Claude Code, claude-opus-5-5, unknown (arm A)
Review
Rewritten by
quest reviewafter each round.Head: b2ca7ce, named in full once no reviewer reports a finding
Base: origin/main at 6d74ff6
Risk: high,
If wrong, published Rust and JS consumers of moq-net and js/net, and deployed peers speaking the IETF draft wire, could see changed object, group, and subscriber/publisher behavior (the new draft-23 egress refusal of decreasing timestamps, plus the rewritten ietf publisher/subscriber and model/track and group paths) reach a release cut before any check catches it, and reverting it means a new release or wire-compatibility fix, so it is hard to undo. I did not open the diff hunks to confirm exact API signatures or whether the affected wire version is -wip, so this tier rests on the stat and commit titles.Classified: high by Claude Code, claude-haiku-5-5, low effort, session
61106ff1-a13e-496f-ba3f-1f0cfa78eb80Risk file: bb7b1c0de60b
Reviewer: Codex, gpt-6.2-sol, xhigh effort
Session:
01a22218-252d-7bd0-9bef-6070537604ea, round 2Score: 7/10,
Both earlier findings are fixed, and the head can land once it preserves relayed track ends, honors bounded FETCH ranges, and rejects timestamp-ID seeks across a rewind.Rounds: 11; first round 7 (high 2, medium 5); findings 18 (high 3, medium 15): fixed 13, refuted 2, open 3
Findings, open until the next round settles them:
rs/moq-net/src/ietf/publisher.rs:22398:Compute the track end from the last data objectrs/moq-net/src/model/group.rs:1052:Derive timestamp IDs across declared legacy object gapsrs/moq-net/src/ietf/publisher.rs:22425:Validate the skipped timestamp prefix before seeking by Object IDThe last round's findings, at a60596c:
rs/moq-net/src/ietf/subscriber.rs:642:Record the first retained Object ID after FETCH recovery;`RangeWriter::retain` records the first kept wire Object ID before enabling FETCH, so the publisher refuses requests that start below the cached suffix.rs/moq-mux/src/container/producer.rs:808:Update reorder state only after accepting the frame;The mux producer now calls `present()` after a successful write or streamed commit, or when accepting a buffered frame, so the rejected B-frame leaves the group's reorder state unchanged.Reviewer: Claude Code, claude-opus-5-5, high effort, second
Session:
287a16dd-fea5-45bd-8cb6-407728ca8bb4, round 2Score: 9/10,
The one open medium finding is fixed: a relayed draft-23 copy's END_OF_TRACK now uses the same Object ID as the inline end marker, and what changed since the last review causes no new findings.Rounds: 11; first round 4 (high 1, medium 3); findings 10 (high 3, medium 7): fixed 6, refuted 4, open 0
Findings: none
The last round's findings, at a60596c:
rs/moq-net/src/ietf/publisher.rs:22379:Draft-23 END_OF_TRACK can name an Object ID the relay already delivered;`timed_end` (rs/moq-net/src/ietf/publisher.rs:22396-22401) now returns `last_object() + 1` for a relayed copy in the same ID scheme, and only when the track ends right after its last frame. That matches the `group_last_id` + 1 `end_oid` that GroupServe's inline END_OF_TRACK check uses (publisher.rs:8658-8663). `timed_ids` also refuses copies with `!first_object` or `sparse` (rs/moq-net/src/model/group.rs:1153).