Skip to content

quest(m2): plan keying groups by frame 0 and removing group timestamps - #9821

Merged
kixelated merged 3 commits into
mainfrom
quest-plan/group-frame-timestamps
Nov 28, 2026
Merged

kixelated merged 3 commits into
mainfrom
quest-plan/group-frame-timestamps

Conversation

@kixelated

@kixelated kixelated commented Nov 28, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

Group timestamps are currently supplied separately from frame 0's timestamp (append_group(start) / create_group(Info { start })), allowing empty groups, start-vs-frame-0 mismatches, rollback glue on failed frame-0 writes, and forcing moq-lite-07 to carry a zigzag delta on a stream's first FRAME.

Approach

Add quest/m2/group-frame-timestamps.md ([L]) in m2, requiring /quest/m2/timestamp-ids.md and gating /quest/m2/lite07-finalize.md, and record the 2026-11-27 decisions in quest/m2/lite07-finalize.md and quest/m2/README.md.

Planned structure:

  • New quest: [L] quest/m2/group-frame-timestamps.md in m2 (breaking API and lite-07-wip wire change before the 0.22 cut).
  • Updated quests: quest/m2/lite07-finalize.md (adds group-frame-timestamps.md under ## Required and records the decision) and quest/m2/README.md (records the decision).

Impact

  • Docs/quests only in this PR; no code or wire changes yet.

Alternatives

Decisions

Interview on 2026-11-27 with the maintainer:

  • Goal and landing strategy: ✅ Confirm goal as a separate m2 quest after feat(net,mux)!: moq-timestamp-03 Object IDs and monotonic lite-07 timestamps #9794, gating lite07-finalize.md (rejected: fold into PR feat(net,mux)!: moq-timestamp-03 Object IDs and monotonic lite-07 timestamps #9794, drop).
  • GROUP_END (finish_at): ✅ Keep GROUP_END (End Delta) as the last frame's exclusive end, since duration is not a frame property (that adds a frame of latency).
  • Producer API shape: ✅ Eager first-frame group creation (append_group(frame) / create_group(frame) + streamed append_frame(info) / create_frame(info) returning frame::Producer whose .finish() returns group::Producer), unified for timed and scale-less tracks (rejected: lazy uncommitted append_group(), splitting timed vs. untimed creation APIs).
  • moq-mux / moq-ffi / libmoq seek(start): ✅ Remove seek(start) from moq-mux, moq-ffi, libmoq, and all bindings (rejected: keep seek(start) as a minimum-start floor or unskipped-gap helper).
  • Reporting missing/pruned group keys without empty groups: ✅ Expose track::Producer::drop_groups(range, err) in Rust and JS, mirroring skip_groups, so moq-archive and replay producers can fail missing keys without empty groups (rejected: keep drop_groups private and have moq-archive call skip_groups).
  • Legacy ingress (lite-05/06, draft-18..22): ✅ Re-key groups by frame 0's timestamp on arrival; ignore empty legacy groups and reject unsupported by-key history requests before cache lookup (carried from feat(net,mux)!: moq-timestamp-03 Object IDs and monotonic lite-07 timestamps #9794 Decision C; rejected: leave older-version copies unchecked).

Follow-ups

  • quest/m2/group-frame-timestamps.md (added by this PR; no open Waiting items).

Validation

On head e5bf2705e0:

  • quest check: passed (575 documents checked).
  • quest gate just ci: passed (biome, markdown, gh, quest, shell, large_files, text, toml, nix, justfile).

Models

Size: S
Implementer: Antigravity, gemini-4-neon, high effort

(Written by Gemini 4 Neon with high effort)

@kixelated
kixelated marked this pull request as ready for review November 28, 2026 06:40
@kixelated
kixelated added this pull request to the merge queue Nov 28, 2026
Merged via the queue into main with commit 9dcef6d Nov 28, 2026
4 of 5 checks passed
@kixelated
kixelated deleted the quest-plan/group-frame-timestamps branch November 28, 2026 06:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant