Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
140 commits
Select commit Hold shift + click to select a range
0e45532
chore(quest): claim quest/m1/empty-segments.md
kixelated Oct 24, 2026
a3fbe3b
fix(net): refuse empty segments in published names
kixelated Oct 24, 2026
afe087b
Merge remote-tracking branch 'origin/main' into quest/m1/empty-segments
kixelated Oct 24, 2026
c0b2b59
Merge remote-tracking branch 'origin/main' into HEAD
kixelated Oct 25, 2026
8ad51ec
wip: strict Path construction in moq-net
kixelated Oct 25, 2026
a0977b1
wip: migrate moq-net callers to strict Path
kixelated Oct 25, 2026
f927421
wip: migrate the rest of the Rust workspace to strict Path
kixelated Oct 25, 2026
881498d
wip: strict JS Path.from and test fixes
kixelated Oct 25, 2026
ccc45a7
wip: document strict paths in the lite draft, concept doc, and MIGRAT…
kixelated Oct 25, 2026
3650160
wip: format and fix moq-wasm
kixelated Oct 25, 2026
e73a6d2
Merge remote-tracking branch 'origin/main' into HEAD
kixelated Oct 25, 2026
3c1b809
chore(quest): claim quest/m1/ietf-drop/d14-17.md
kixelated Oct 25, 2026
47ffd18
wip(net): drop moq-transport drafts 14-17 from the moq-net library
kixelated Oct 25, 2026
346955b
wip(net): compile moq-net tests without drafts 14-17
kixelated Oct 25, 2026
386d366
wip: drop drafts 14-17 from the relay, tooling and CI lanes
kixelated Oct 25, 2026
f63daba
wip(relay): draft-18 raw SETUP in the token tests
kixelated Oct 25, 2026
33994a6
wip(net): sweep draft 14-17 residue from comments and tests
kixelated Oct 25, 2026
6875a99
fix(net): keep the moql SETUP on draft-14's u16 size
kixelated Oct 25, 2026
c85fe40
feat(net)!: drop moq-transport drafts 14 through 17 from @moq/net, in…
kixelated Oct 25, 2026
86d747d
fix(test): typecheck interop helpers and lint the single-draft confor…
kixelated Oct 25, 2026
2036e94
test(net): keep the anonymous split-horizon dial on moq-lite-01
kixelated Oct 25, 2026
6b61c30
Merge remote-tracking branch 'origin/main' into HEAD
kixelated Oct 25, 2026
3886483
fix: join moq-boy prefixes as paths and warn on an invalid name attri…
kixelated Oct 25, 2026
1c8a6df
Merge origin/main into quest/m1/ietf-drop/d14-17
kixelated Oct 25, 2026
b7a421a
Merge origin/main into quest/m1/ietf-drop/d14-17
kixelated Oct 25, 2026
906cbbd
chore(quest): size the ietf-drop parent now that its children landed
kixelated Oct 25, 2026
07ef0aa
fix(moq-boy): warn and fall back on an invalid prefix attribute
kixelated Oct 25, 2026
2c5ffd1
Merge remote-tracking branch 'origin/main' into HEAD
kixelated Oct 25, 2026
12475e7
Merge remote-tracking branch 'origin/main' into HEAD
kixelated Oct 25, 2026
a08b886
style: format the merged path call sites
kixelated Oct 25, 2026
d815088
Merge remote-tracking branch 'origin/main' into HEAD
kixelated Oct 25, 2026
d0ab85a
Merge remote-tracking branch 'origin/main' into HEAD
kixelated Oct 25, 2026
d689e35
Merge remote-tracking branch 'origin/main' into HEAD
kixelated Oct 25, 2026
9b5ede9
Merge remote-tracking branch 'origin/main' into HEAD
kixelated Oct 25, 2026
dd8cbeb
test(net): build the merged auth test's path strictly
kixelated Oct 25, 2026
6ce3a64
Merge remote-tracking branch 'origin/main' into HEAD
kixelated Oct 25, 2026
c503e05
Merge origin/main into quest/m1/ietf-drop/d14-17
kixelated Oct 25, 2026
37e478c
fix(mux): name a program under an extension-only final segment withou…
kixelated Oct 25, 2026
6122421
Merge remote-tracking branch 'origin/main' into HEAD
kixelated Oct 25, 2026
8f396e4
Merge remote-tracking branch 'origin/main' into HEAD
kixelated Oct 25, 2026
5d6d06f
Merge origin/main into quest/m1/ietf-drop/d14-17
kixelated Oct 25, 2026
7f71212
Merge remote-tracking branch 'origin/main' into HEAD
kixelated Oct 25, 2026
fc8685c
Merge origin/main into quest/m1/ietf-drop/d14-17
kixelated Oct 25, 2026
9204b01
quest: leave the request-ID history decision in d14-17
kixelated Oct 25, 2026
d26eeaf
wip: Path loses its lifetime
kixelated Oct 25, 2026
bc20f51
wip: drop to_owned calls
kixelated Oct 25, 2026
4cf4381
fix(js): refuse an invalid path attribute instead of falling back
kixelated Oct 25, 2026
049029d
Merge remote-tracking branch 'origin/main' into HEAD
kixelated Oct 25, 2026
cdb5241
fix(net): build the schedule bench without scheduling domains
kixelated Oct 25, 2026
e5628fd
Merge commit 'cdb5241061' into HEAD
kixelated Oct 25, 2026
626fabf
wip: concat without realloc, compress heads by str
kixelated Oct 25, 2026
45060e7
Merge remote-tracking branch 'origin/main' into HEAD
kixelated Oct 25, 2026
c7a77f0
Merge remote-tracking branch 'origin/main' into HEAD
kixelated Oct 25, 2026
98ee1b7
fix(moq-net): track only the peer's highest request ID
kixelated Oct 25, 2026
4f01077
fix(js): idle an element while a path attribute is refused
kixelated Oct 25, 2026
b02cd28
wip: fmt
kixelated Oct 25, 2026
bd3b21b
Merge remote-tracking branch 'origin/main' into HEAD
kixelated Oct 26, 2026
745f510
Merge remote-tracking branch 'origin/main' into HEAD
kixelated Oct 26, 2026
16999c1
test(tokio): build the token test's broadcast path with Path::new
kixelated Oct 26, 2026
d7b81ea
Merge origin/main into quest/m1/ietf-drop/d14-17
kixelated Oct 26, 2026
d99110b
wip: u16 offset keeps 32-bit Path at main's size
kixelated Oct 26, 2026
67fe62c
Merge origin/main
kixelated Oct 26, 2026
23a0350
Merge remote-tracking branch 'origin/main' into HEAD
kixelated Oct 26, 2026
f94f2f3
test(net): build the shared session bench's paths with Path
kixelated Oct 26, 2026
609381a
Merge remote-tracking branch 'origin/main' into HEAD
kixelated Oct 26, 2026
39e76e3
test(mux): name the TS route tests' broadcast with Path::new
kixelated Oct 26, 2026
c056b00
Merge remote-tracking branch 'origin/main' into HEAD
kixelated Oct 26, 2026
d148267
fix(studio): parse scene and program broadcast names as paths
kixelated Oct 26, 2026
a13b75e
refactor(net): one copy constructor for Repr
kixelated Oct 26, 2026
a33e174
Merge origin/main into quest/m1/ietf-drop/d14-17
kixelated Oct 26, 2026
1e249b5
feat(net): cap paths at 64 KiB on the wire and on an origin
kixelated Oct 26, 2026
228cc69
feat(net): share the 64 KiB path limit with @moq/net and the draft
kixelated Oct 26, 2026
48c3430
fix(net): cap paths at 16 KiB so a message carrying one still fits
kixelated Oct 26, 2026
bc3f3b6
Merge remote-tracking branch 'origin/main' into path-no-lifetime
kixelated Oct 26, 2026
cad1350
refactor(net)!: bound every Path at 16 KiB with fallible constructors
kixelated Oct 26, 2026
af43f0b
Merge origin/main into quest/m1/ietf-drop/d14-17
kixelated Oct 26, 2026
0cffdd7
quest: narrow the remaining quests to drafts 18 and 22
kixelated Oct 26, 2026
63452b6
Merge remote-tracking branch 'origin/main' into quest/m1/empty-segments
kixelated Oct 26, 2026
29d33cd
docs(moq-net): separate the drafts 14-17 migration entry
kixelated Oct 26, 2026
3f73213
style: format main's merged call sites
kixelated Oct 26, 2026
4c8961c
fix(net): measure a wire path before normalizing, and refuse an overl…
kixelated Oct 26, 2026
7006e74
Merge remote-tracking branch 'origin/main' into quest/m1/empty-segments
kixelated Oct 26, 2026
8da8e7b
Merge remote-tracking branch 'origin/main' into path-no-lifetime
kixelated Oct 26, 2026
ff6ee38
fix(net): refuse a request too long under the root on its own stream,…
kixelated Oct 26, 2026
4937c70
Merge remote-tracking branch 'origin/main' into quest/m1/empty-segments
kixelated Oct 26, 2026
75b367b
Merge remote-tracking branch 'origin/main' into quest/m1/empty-segments
kixelated Oct 26, 2026
78a9714
Merge remote-tracking branch 'origin/main' into path-no-lifetime
kixelated Oct 26, 2026
132689c
fix(rtc): qualify whep test paths so a no-default-features build has …
kixelated Oct 26, 2026
df9f5a6
Merge remote-tracking branch 'origin/main' into quest/m1/empty-segments
kixelated Oct 26, 2026
1cd9471
Merge origin/main into quest/m1/ietf-drop/d14-17
kixelated Oct 26, 2026
400f1ff
quest: narrow newly landed quest text to drafts 18 and 22
kixelated Oct 26, 2026
3489720
fix(test): run the moxygen conformance cells without a single-draft loop
kixelated Oct 26, 2026
b572b50
Merge origin/main into quest/m1/ietf-drop/d14-17
kixelated Oct 26, 2026
7a071fa
Merge remote-tracking branch 'origin/main' into merge-6843
kixelated Oct 26, 2026
42c2c55
fix(moq-cli): build echo_test's Echo from a parsed Relative
kixelated Oct 26, 2026
fa801da
Merge remote-tracking branch 'origin/main' into merge-6843
kixelated Oct 26, 2026
dcb5906
Merge remote-tracking branch 'origin/main' into quest/m1/empty-segments
kixelated Oct 26, 2026
0d9cd6c
fix(js/net): refuse an announced path the interest prefix pushes past…
kixelated Oct 27, 2026
8d4c558
Merge remote-tracking branch 'origin/main' into merge-6843
kixelated Oct 27, 2026
6aa6048
Merge remote-tracking branch 'origin/main' into quest/m1/empty-segments
kixelated Oct 27, 2026
7f8f435
Merge remote-tracking branch 'origin/main' into quest/m1/empty-segments
kixelated Oct 27, 2026
f19e97c
Merge origin/main into path-no-lifetime
kixelated Oct 27, 2026
4409f5a
Merge remote-tracking branch 'origin/main' into quest/m1/empty-segments
kixelated Oct 27, 2026
670f3de
fix(net): refuse IETF namespace fields that escape to an empty segment
kixelated Oct 27, 2026
720770e
fix(boy): keep the observed attribute type out of the public declaration
kixelated Oct 27, 2026
6cb5190
Merge remote-tracking branch 'origin/main' into quest/m1/empty-segments
kixelated Oct 27, 2026
3a8d47f
doc(c): note refused empty path segments in the moq-c guide
kixelated Oct 27, 2026
f685968
Merge remote-tracking branch 'origin/main' into quest/m1/empty-segments
kixelated Oct 27, 2026
1507094
Merge origin/main into quest/m1/ietf-drop/d14-17
kixelated Oct 27, 2026
00fdfe7
fix(net): build the paths that main's new restart tests pass as strings
kixelated Oct 27, 2026
a2958eb
fix(net): drop the merge's unused helpers
kixelated Oct 27, 2026
8879669
test(tokio): stall the reply SETUP defers, offering lite-02
kixelated Oct 27, 2026
0f05029
Merge origin/main into quest/m1/ietf-drop/d14-17
kixelated Oct 27, 2026
2ddf656
Merge origin/main into path-no-lifetime
kixelated Oct 27, 2026
af015ed
Merge origin/main into quest/m1/ietf-drop/d14-17
kixelated Oct 27, 2026
f96b825
Merge remote-tracking branch 'origin/main' into d14-17-land-abd8
kixelated Oct 27, 2026
51b8d7e
style: format the merge
kixelated Oct 27, 2026
bab07ce
quest: name only draft 18 in the relative-filter note
kixelated Oct 27, 2026
8b91970
Merge origin/main into quest/m1/ietf-drop/d14-17
kixelated Oct 27, 2026
59cafd5
Merge origin/main into quest/m1/ietf-drop/d14-17
kixelated Oct 27, 2026
4641e52
test(ffi): show a token nothing carries on moq-lite-06
kixelated Oct 27, 2026
69a9a88
Merge origin/main into quest/m1/ietf-drop/d14-17
kixelated Oct 27, 2026
a37e947
Merge remote-tracking branch 'origin/main' into d14-17-land-abd8
kixelated Oct 27, 2026
fcaa59f
Merge origin/main into quest/m1/ietf-drop/d14-17
kixelated Oct 27, 2026
db6606c
Merge origin/main into quest/m1/ietf-drop/d14-17
kixelated Oct 27, 2026
0d22fda
fix(net): yield while skipping a fetch payload
kixelated Oct 27, 2026
0b71d54
Merge origin/main into quest/m1/ietf-drop/d14-17
kixelated Oct 27, 2026
f9da34f
Merge origin/main into quest/m1/ietf-drop/d14-17
kixelated Oct 27, 2026
5c272c3
Merge origin/main into quest/m1/ietf-drop/d14-17
kixelated Oct 27, 2026
65f6db2
docs(net): name draft 18 where comments said draft-17+
kixelated Oct 27, 2026
c6268a7
test(net): expect the moql SETUP's own type error after #6905
kixelated Oct 27, 2026
e393c6c
Merge origin/main into path-no-lifetime
kixelated Oct 27, 2026
641c41e
Merge origin/main into quest/m1/ietf-drop/d14-17
kixelated Oct 27, 2026
8213385
fix(stats): drop the needless borrows clippy denies in the producer_t…
kixelated Oct 27, 2026
2f71644
Merge #6843's head into quest/m1/empty-segments
kixelated Oct 27, 2026
fd994a1
Merge origin/main into quest/m1/empty-segments
kixelated Oct 27, 2026
ea45122
Merge origin/main into drop-d14-17
kixelated Oct 27, 2026
ffcfdca
Merge #6753's head into quest/m1/empty-segments
kixelated Oct 27, 2026
e0f6b22
Merge origin/main into quest/m1/empty-segments
kixelated Oct 27, 2026
74cf05b
style(net): format the merged publisher test
kixelated Oct 27, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions c/moq/MIGRATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ How to update your code for each breaking change, newest first.

The hand-written crate never published as moq-c: a libmoq 0.6 user applies these entries before moving to the generated API.

### Paths with an empty segment are refused ([#6648](https://github.com/moq-dev/moq/pull/6648))

`moq_origin_create_broadcast`, `moq_origin_requests`, `moq_origin_announced_broadcast`, and `moq_origin_request` return an error for a path with a leading, trailing, or doubled `/` instead of collapsing it. Pass the canonical path, such as `room/cam`. The generated API refuses the same paths.

### Session allocator ([#6751](https://github.com/moq-dev/moq/pull/6751))

`moq_session_bandwidth` is `moq_session_allocator`, `moq_bandwidth_reserve` is `moq_allocator_reserve`, and `moq_bandwidth_close` is `moq_allocator_close`, matching `moq_net::bandwidth::Allocator`. `moq_reservation_grant` is `moq_reservation_rate`, matching `moq_net::bandwidth::Reservation::rate()`. Signatures are unchanged. The receive estimate keeps its names (`moq_session_recv_bandwidth`, `moq_bandwidth_consumer_*`).
Expand Down
4 changes: 4 additions & 0 deletions cpp/moq/MIGRATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

### Paths with an empty segment are refused ([#6648](https://github.com/moq-dev/moq/pull/6648))

Publishing, serving, or requesting a broadcast at a path with a leading, trailing, or doubled `/` fails instead of collapsing it. Pass the canonical path, such as `room/cam`.

### First release

There is no published C++ package to migrate from. Start with the current headers and examples, and build the wrapper, generated bindings, and native library together.
Expand Down
4 changes: 4 additions & 0 deletions cpp/obs/MIGRATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ How to update your OBS setup for each breaking change, newest first.

## Unreleased

### Broadcast names with an empty segment are refused ([#6648](https://github.com/moq-dev/moq/pull/6648))

A broadcast name with a leading, trailing, or doubled `/` fails to publish or play instead of being collapsed. Use the canonical name, such as `room/cam`.

Connection state and first-dial failures now arrive through one lifecycle watcher. UI reads no longer poll the Client or Session for failure separately.

### The audio-only and video-only outputs are gone (#6762)
Expand Down
4 changes: 4 additions & 0 deletions dart/moq/MIGRATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ How to update your code for each breaking change, newest first.

## Unreleased

### Paths with an empty segment are refused ([#6648](https://github.com/moq-dev/moq/pull/6648))

Publishing, serving, or requesting a broadcast at a path with a leading, trailing, or doubled `/` throws instead of collapsing it. Pass the canonical path, such as `room/cam`.

### Request handlers are `requests()` ([#6752](https://github.com/moq-dev/moq/pull/6752))

Rename `dynamic_()` on `OriginProducer`, `BroadcastProducer`, `TrackProducer`, and `TrackRequest` to `requests()`.
Expand Down
5 changes: 5 additions & 0 deletions doc/concept/moq-lite.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ carries [publisher epochs](#publisher-epochs).
| **Frame** | A sized chunk of bytes. | Object |
| **Datagram** | One unreliable frame sent as a QUIC datagram instead of a group. | Datagram |

A broadcast is named by a path: non-empty segments joined by `/`, such as
`room/alice`. A path never starts or ends with `/` or doubles one, so each name
has one spelling, and every API and peer refuses one that does. The empty path
is the root, which prefixes every path.

## Discovery

A session can ask for announcements matching a path prefix. The peer replies
Expand Down
2 changes: 1 addition & 1 deletion doc/concept/standard.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ subset drops. What a peer actually observes against this implementation:
- **History is fetched in ranges.** In Rust, Object ID gaps must be marked by Prior Object ID Gap properties for a group to be fetchable. A `FETCH` returns a range of groups from the cache, which a relay fills upstream with one `FETCH` per run of missing groups, or on draft 18 the saved prefix of the group a new subscription just joined. The range ends at Largest Object's group and reads it whole, so a `FETCH` of a group still being written waits for it to finish. That departs from draft 22's cap at Largest Object: a cache cannot know an open group's real Largest Object, and a cut group would be cached downstream as complete. On draft 18, `FETCH_OK` End Object 0 covers the entire End Group, matching the request; Rust also accepts the legacy answer naming the next group with Object 0. On draft 22, `FETCH_OK`'s End Location is the requested end, capped at Largest Object's group: a range holding no objects gets an empty fetch stream, and only a start past Largest Object is refused, with `INVALID_RANGE`. A Rust relay retains the upstream Largest Object from `TRACK_STATUS`, so even a fetch-only copy can resolve a draft 22 `LOCATION_FILTER` relative to it; without a publisher report or live feed, it refuses that filter as `NOT_SUPPORTED`. JavaScript publishing refuses every `FETCH`. Datagrams are never fetchable. A Rust reader that only fetches learns the track from `TRACK_STATUS` instead of subscribing, so a finished track stays fetchable; a reader whose publisher refuses `TRACK_STATUS` as `NOT_SUPPORTED` still subscribes.
- **Compression.** Rust peers exchange compressed tracks when both offer the [Flate extension](/draft/moq-flate). Other peers receive one shared inflated copy. A publisher that seals the compression declaration makes that fallback unavailable: an incompatible peer is refused, preserving the sealed metadata. JavaScript does not offer the IETF extension.
- **Timing.** A track whose `SUBSCRIBE_OK` declares no `TIMESCALE` is untimed. A Rust reader that never subscribed takes the units from `TRACK_STATUS`.
- **Strict SETUP and parameters.** Repeated unknown `SETUP` options, GREASE included, are accepted if well-formed; a repeated known option is rejected. A `GROUP_ORDER` other than Ascending (1) or Descending (2) closes the session. An unknown message parameter, or one defined only for another message, closes the session. Other malformed control input closes the session with the draft's code too, such as a server `SETUP` carrying `PATH` or `AUTHORITY`, a request cut short by FIN, or a second `GOAWAY` on one stream; a first `GOAWAY` on a request stream is legal.
- **Strict SETUP and parameters.** Repeated unknown `SETUP` options, GREASE included, are accepted if well-formed; a repeated known option is rejected. A `GROUP_ORDER` other than Ascending (1) or Descending (2) closes the session. An unknown message parameter, or one defined only for another message, closes the session. Other malformed control input closes the session with the draft's code too, such as a server `SETUP` carrying `PATH` or `AUTHORITY`, a namespace field ending in `/` (it would map to a path with an empty segment), a request cut short by FIN, or a second `GOAWAY` on one stream; a first `GOAWAY` on a request stream is legal.
- **One `SETUP` credential**, forwarded to the [auth server](/bin/relay/auth#the-contract) unverified. A second `SETUP` token closes the session. We advertise no token cache, so an alias reference in `SETUP` closes it with `PROTOCOL_VIOLATION`, one on a request with `UNKNOWN_AUTH_TOKEN_ALIAS`, and a registration on a request with `AUTH_TOKEN_CACHE_OVERFLOW`. Where the Rust side authorizes the peer or verifies tokens, a token on a `SUBSCRIBE` or `PUBLISH_NAMESPACE` is verified like an in-band session token and authorizes that one request alone, even where that authorization already covers it; it never widens the session. It is refused with `NOT_SUPPORTED` when nothing verifies it, when it is empty, or when its Token Type is anything but 0 (out of band). A side that does neither, JavaScript included, ignores the token. Rust refuses a request carrying more than one distinct token with `NOT_SUPPORTED`, since it verifies one; JavaScript, which verifies none, ignores them all. A token-authorized `SUBSCRIBE` still stays within the grant the peer gave us. A token-authorized `PUBLISH_NAMESPACE` needs a grant covering everything beneath the namespace, and the tracks we subscribe under it rely on that announce instead of our limit, ending with it. An update renews the token, and a refused renewal ends only that request. Rust and JavaScript send the token a route names (`Route::auth`) on its `PUBLISH_NAMESPACE`, and swapping it renews the request with `REQUEST_UPDATE`; the inline `NAMESPACE` that answers a solicited `SUBSCRIBE_NAMESPACE` carries no token. A token added to a reconnecting connection's auth handle rides every session it makes, so the announcement keeps it across a reconnect; one added to a single session's handle ends with that session. A token on any other request is decoded and grants nothing, and a request repeating one is refused with `MALFORMED_AUTH_TOKEN`. The negotiated [MoQ Auth extension](/concept/moq-lite#authorization) accepts additional session tokens in band.
- **Pause delivery.** `FORWARD=0` on a `SUBSCRIBE` or its update drops the subscription, closing its data streams and holding nothing upstream, while the request and its slot stay. `FORWARD=1` subscribes again as a new `SUBSCRIBE` with the same filter would, so nothing carries across the pause: its `REQUEST_OK` names the live edge it joined at. A paused update may change only priority and max age.
- **Refused, not fatal.** A legal request this stack does not serve is rejected on its own and the session stays up: the fetch forms above get `NOT_SUPPORTED`. Range Filters get `INVALID_FILTER` on draft 22 because the advertised filter limit is zero. On draft 22, namespaces whose first tuple field is exactly `.` or `.session` get `DOES_NOT_EXIST` before application lookup; other dot prefixes still reach the application. Subscription updates accept priority, negotiated subscriber max age, and delivery timeouts. Rust also carries range changes, keeps bounded subscriptions updatable, renews request tokens, and judges `NEW_GROUP_REQUEST` as a join (see dynamic groups below). On draft 22, widening fills cached history on a separate fetch stream, completing earlier groups and handing the newest head to its live subgroup tail; fills follow the requested group order. Other supported-but-unimplemented preferences end that subscription; a `TRACK_PROPERTY_FILTER` there closes the session with `PROTOCOL_VIOLATION`, since it belongs only to `SUBSCRIBE_TRACKS`. A namespace update may change its prefix; suffixes after the acknowledgement are relative to that new prefix.
Expand Down
3 changes: 3 additions & 0 deletions drafts/draft-lcurley-moq-lite.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ Any broadcasts and subscriptions are transparently proxied by the CDN behind the
## Broadcast
A Broadcast is a collection of Tracks named by a path.
This corresponds to a MoqTransport's "track namespace".
A path is a sequence of non-empty segments joined by `/` (0x2F), so it never starts or ends with `/` or contains two in a row; the empty path has no segments and prefixes every path.
A publisher instance is identified by an Epoch, carried on its routes (see [ANNOUNCE_START](#announce-start)): a path and an Epoch name one Broadcast, and a publisher MUST NOT serve different content under the same pair.
A restarted publisher mints a new Epoch rather than reusing the path's old one, while replicas of the same content MAY share one.
A route without an Epoch names no instance: nothing says another route serves the same bytes.
Expand Down Expand Up @@ -1829,6 +1830,8 @@ The `Message Length` describes the payload size on the wire.

- A session without a negotiated subprotocol negotiates the version in a draft-14 CLIENT_SETUP and SERVER_SETUP exchange. Implementations apply this to moq-lite-03 through moq-lite-06 too.

- A path never has an empty segment, so a leading, trailing, or doubled `/` is a PROTOCOL_VIOLATION rather than a second spelling of the same path.

- Added the SETUP `Implementation` parameter (0x6): the sender's software as `name/version` product tokens. Earlier versions with a Setup Stream ignore it as an unknown parameter.

- Hop IDs span 64 bits; a relay sends 0 in place of one an earlier version's varint cannot carry.
Expand Down
4 changes: 4 additions & 0 deletions go/wrapper/MIGRATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ How to update your code for each breaking change, newest first.

## Unreleased

### Paths with an empty segment are refused ([#6648](https://github.com/moq-dev/moq/pull/6648))

Publishing, serving, or requesting a broadcast at a path with a leading, trailing, or doubled `/` returns an error instead of collapsing it. Pass the canonical path, such as `room/cam`.

### Request handlers are `Requests()` ([#6752](https://github.com/moq-dev/moq/pull/6752))

Rename `Dynamic()` on `OriginProducer`, `BroadcastProducer`, `TrackProducer`, and `TrackRequest` to `Requests()`.
Expand Down
52 changes: 52 additions & 0 deletions js/moq-boy/src/element.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
import { expect, mock, test } from "bun:test";

// The UI renders into a shadow root, which the test runner has no DOM for.
mock.module("solid-js/web", () => ({ render: () => () => {} }));
mock.module("./ui/element.tsx", () => ({ BoyUI: () => null }));

const registry = new Map<string, CustomElementConstructor>();
globalThis.HTMLElement = class {
attachShadow() {
return {};
}
} as unknown as typeof HTMLElement;
globalThis.customElements = {
define: (name: string, ctor: CustomElementConstructor) => {
registry.set(name, ctor);
},
get: (name: string) => registry.get(name),
} as unknown as CustomElementRegistry;

const { default: MoqBoy } = await import("./element");

// Effects rerun in a later task, so each check waits one out.
const settle = () => new Promise((resolve) => setTimeout(resolve, 0));

// A refused prefix idles the element rather than discovering games under a default prefix.
for (const attribute of ["prefix", "prefix-game", "prefix-viewer"] as const) {
test(`an invalid ${attribute} idles the element until a valid one arrives`, async () => {
const el = new MoqBoy();
try {
// Invalid markup, parsed before the element connects.
expect(() => el.attributeChangedCallback(attribute, null, "/boy")).toThrow();
el.connectedCallback();
await settle();
expect(el.connection.enabled.peek()).toBe(false);

el.attributeChangedCallback(attribute, "/boy", "boy");
await settle();
expect(el.connection.enabled.peek()).toBe(true);

expect(() => el.attributeChangedCallback(attribute, "boy", "boy//x")).toThrow();
await settle();
expect(el.connection.enabled.peek()).toBe(false);

// Removing the attribute restores the default, which is valid.
el.attributeChangedCallback(attribute, "boy//x", null);
await settle();
expect(el.connection.enabled.peek()).toBe(true);
} finally {
el.disconnectedCallback();
}
});
}
Loading
Loading