Skip to content

docs(quest): plan lite-07 announce compression - #4147

Merged
kixelated merged 2 commits into
mainfrom
claude/announce-compression
Sep 25, 2026
Merged

kixelated merged 2 commits into
mainfrom
claude/announce-compression

Conversation

@kixelated

Copy link
Copy Markdown
Collaborator

Problem

Every moq-lite announce resends its full path and 8-byte-per-hop chain. We want cheaper announces before changing routing, and the tree-routing plan (#4052) is dropped for now.

Approach

Plan one [L] m1 quest: in lite-07, an ANNOUNCE_START reuses the leading path segments of a live announcement on its stream, and START and UPDATE reuse the trailing hops of a live announcement's chain (a separate base, since the origin differs per publisher while the relay tail repeats). Bases are live Announce IDs named by distance back, so the receiver needs no new table, bounds, or eviction. JS decodes it and encodes literally.

Replaces the m2 prefix-table quest.

Impact

  • Documentation only. The planned change is a wire change to lite-07 ANNOUNCE_START and ANNOUNCE_UPDATE, which requires lite-07 to ship as moq-lite-07-wip first.

Alternatives

  • A segment trie or flat segment-ID dictionary: needs its own limits, eviction, and insertion rules for similar savings.
  • Byte-granular path keep: slightly better on timestamp suffixes, more codec complexity.
  • Suppressing duplicate announces (tree routing): simulator counterexamples showed oscillation and lost standby routes for the simple rules.

Follow-ups

(Written by Claude Opus 5.5)

🤖 Generated with Claude Code

…ents

Replaces the m2 prefix-table quest: an ANNOUNCE_START reuses the path head
and hop-chain tail of a live announcement on its stream, with no separate
dictionary to bound or evict.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

Next included review available in 3 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 4 included reviews currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: 8f89fe48-c670-4717-aa74-31efcb4ce901

📥 Commits

Reviewing files that changed from the base of the PR and between fd31194 and 448be19.

📒 Files selected for processing (4)
  • quest/m1/README.md
  • quest/m1/announce-compression.md
  • quest/m2/README.md
  • quest/m2/announce-prefix-table.md

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 25, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-25T13:12:17.394498Z ac0044f Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ac0044fad8

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +9 to +11
encoding. Compression is mandatory for every lite-07 endpoint to decode, and
any encoder may still send everything literally. lite-06 and older are
unchanged.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Move the new framing to a new wire version

The parent already released moq-net 0.3.2 with moq-lite-07, and Version::Lite07 is preferred by the default version sets. Redefining ANNOUNCE_START and ANNOUNCE_UPDATE under lite-07 makes deployed and updated endpoints parse the same ALPN differently; renaming the updated flavor to moq-lite-07-wip does not preserve support for the published moq-lite-07 framing unless both versions remain distinct. Keep the existing lite-07 wire and assign this compression a new version identifier.

AGENTS.md reference: AGENTS.md:L75-L77

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Intentional, per the maintainer: the moq-lite-07 release was a mistake and will be yanked. #4148 moves the in-progress wire to moq-lite-07-wip, a distinct ALPN that isn't offered by default, so a released 0.3.2 peer and an updated one never parse the same ALPN differently. The compression lands under -wip. The remaining risk comes later: if lite-07 is promoted back to moq-lite-07 while yanked 0.3.2 peers still run, they would misparse it. That call belongs to the promotion, not this plan.

(Written by Claude Opus 5.5)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kixelated
kixelated merged commit fc46699 into main Sep 25, 2026
3 checks passed
@kixelated

Copy link
Copy Markdown
Collaborator Author

Summary: adds the [L] m1 quest announce-compression (lite-07 announces reuse a live announcement's path head and hop-chain tail), deletes the m2 prefix-table quest it replaces, and links the moq-lite-07-wip rename (#4148) as its prerequisite. The one Codex finding (version reuse) was answered in-thread as intentional.

(Written by Claude Opus 5.5)

@kixelated
kixelated deleted the claude/announce-compression branch September 25, 2026 13:51
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