Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
155 changes: 6 additions & 149 deletions drafts/draft-lcurley-moq-lite.md

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions js/net/src/lite/subscribe.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,11 +203,10 @@ test("lite-07 carries the span as its only range, exclusive at the end", async (

test("a lite-07 list decodes as the span covering it", async () => {
// Priority, order, max delay, and an unstated min delay as SubscribeUpdate writes them,
// then no Range ID to retire, the ranges it adds, the update number, an absent wanted group, and
// a pull that follows the subscriber's route.
// then no Range ID to retire, the ranges it adds, the update number, and an absent wanted group.
const head = (await encodeMessage(Version.DRAFT_07, new SubscribeUpdate({ priority: 0, ranges: [] }))).slice(1, 5);
const update = async (ranges: number[]) => {
const body = [...head, 0, ...ranges, 0, 0, 0];
const body = [...head, 0, ...ranges, 0, 0];
const got = await SubscribeUpdate.decode(
new Reader(undefined, new Uint8Array([body.length, ...body]), Version.DRAFT_07),
Version.DRAFT_07,
Expand Down
17 changes: 0 additions & 17 deletions js/net/src/lite/subscribe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ import {
hasRanges,
hasRefresh,
hasSkip,
hasWarm,
resolvesStart,
Version,
} from "./version.ts";
Expand All @@ -43,18 +42,6 @@ async function encodeUpdate(w: Writer, version: Version, update: bigint) {
if (hasSkip(version)) await w.u62(update);
}

/** Encode `Warm`: the pull follows this endpoint's route (0), since it chooses no source per broadcast. */
async function encodeWarm(w: Writer, version: Version) {
if (hasWarm(version)) await w.u8(0);
}

/** Decode `Warm`, whether the pull joins this side's copy, and ignore it: only a relay choosing a source per broadcast acts on it. */
async function decodeWarm(r: Reader, version: Version) {
if (!hasWarm(version)) return;
const warm = await r.u8();
if (warm > 1) throw new ProtocolViolation(`unknown warm ${warm}`);
}

/**
* Encode the `Group Start` field shared by SUBSCRIBE and SUBSCRIBE_UPDATE.
*
Expand Down Expand Up @@ -708,7 +695,6 @@ export class SubscribeUpdate {
}
await encodeUpdate(w, version, this.update);
if (hasRefresh(version)) await w.u62(this.wantedGroup === undefined ? 0n : this.wantedGroup + 1n);
await encodeWarm(w, version);
break;
}
}
Expand All @@ -734,7 +720,6 @@ export class SubscribeUpdate {
}
const update = await decodeUpdate(r, version);
const wanted = hasRefresh(version) ? await r.u62() : 0n;
await decodeWarm(r, version);
return new SubscribeUpdate({
wantedGroup: wanted === 0n ? undefined : wanted - 1n,
priority,
Expand Down Expand Up @@ -872,7 +857,6 @@ export class Subscribe {
break;
}
await encodeUpdate(w, version, this.update);
await encodeWarm(w, version);
}

static async #decode(r: Reader, version: Version): Promise<Subscribe> {
Expand All @@ -893,7 +877,6 @@ export class Subscribe {
const minDelay = await decodeMinDelay(r, version);
const span = await decodeSpan(r, version);
const update = await decodeUpdate(r, version);
await decodeWarm(r, version);
return new Subscribe({
id,
broadcast,
Expand Down
17 changes: 0 additions & 17 deletions js/net/src/lite/version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -488,23 +488,6 @@ export function hasAnnounceCompression(version: Version): boolean {
}
}

/** Whether the announce stream carries warm routes (WARM_START, WARM_UPDATE, and WARM_END), and
* SUBSCRIBE and SUBSCRIBE_UPDATE say whether each pull joins the publisher's copy. Added in lite-07. */
export function hasWarm(version: Version): boolean {
// Explicitly list older versions so future versions keep the lite-07+ behavior.
switch (version) {
case Version.DRAFT_01:
case Version.DRAFT_02:
case Version.DRAFT_03:
case Version.DRAFT_04:
case Version.DRAFT_05:
case Version.DRAFT_06:
return false;
default:
return true;
}
}

/** Whether TRACK_INFO carries the refresh ratio and SUBSCRIBE_UPDATE a wanted group. Added in lite-07.
* Older peers see a track that never refreshes. */
export function hasRefresh(version: Version): boolean {
Expand Down
1 change: 0 additions & 1 deletion quest/m2/lite07-finalize.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@ route key lane's early signal above end when
- [Routes and announces](/quest/m2/cluster-routes/README.md) - lite-07 carries the route layer: ROUTE per origin node and path-less ANNOUNCE, with the native hop list gone (only the temporary lite-06 compatibility chain remains)
- [Lite-07 by start](/quest/m2/time-addressing/lite07.md) - lite-07 carries group starts, previous-start links, GROUP_END, and time bounds instead of sequence numbers
- [@moq/net by start](/quest/m2/time-addressing/js.md) - JS speaks the same lite-07 wire
- [Warm routes on the wire](/quest/m2/warm-routes-wire.md) - removes WARM_* and SUBSCRIBE's `Warm` byte from lite-07
- [Subscriber Min Age](/quest/m2/subscriber-min-age.md) - removes SUBSCRIBE's minimum age, which nothing reads

## Related
Expand Down
47 changes: 0 additions & 47 deletions quest/m2/warm-routes-wire.md

This file was deleted.

2 changes: 1 addition & 1 deletion quest/m3/cache-routing/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ The earlier Plan, items 1 to 14 (2026-11-08 to 2026-11-14), is in
over plain path routing was never measured
([moq-dev/moq#8732](https://github.com/moq-dev/moq/pull/8732)). The
maintainer stripped its wire from lite-07 on 2026-11-14
([warm routes on the wire](/quest/m2/warm-routes-wire.md)).
([moq-dev/moq#8840](https://github.com/moq-dev/moq/pull/8840)).

This README's own work, once its child lands:

Expand Down
Loading