Skip to content

quest: peer links default to 64 MiB, and the cut waits on send-credit stall stats - #9327

Merged
kixelated merged 1 commit into
mainfrom
quest-plan/peer-flow-control
Nov 22, 2026
Merged

kixelated merged 1 commit into
mainfrom
quest-plan/peer-flow-control

Conversation

@kixelated

@kixelated kixelated commented Nov 22, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

The main → release flow-control review found two gaps in what the cut ships:

  • [limits.peer.quic] defaults to 16 MiB (#7624), which caps one relay-to-relay link at about 450 Mbps at a 250 ms RTT. Release runs 64 MiB. A relay upgraded from release carries a quarter of the peer traffic, and moq.pro's edge sets no window of its own.
  • The cut ships the flow-control rework (smaller windows, leased credit, fastest-reader pacing, paused allowances), and its failure mode is a hang. Nothing reports a connection blocked on its peer's MAX_DATA. On release, the qmux credit leak stayed invisible for days.

Approach

Planning only:

  • New quest/m1/peer-window-default.md [S]: [limits.peer.quic] receive_window and send_window default to 64 MiB. The cut doesn't wait on it. Peers keep the 1 MiB stream window, and the PR measures the join latency a backlog burst adds across a long link.
  • send-credit-stalls [M] moves from m3 to m1, Rust only, and the release cut now requires it.
  • New quest/m3/send-credit-stalls-js.md [M]: the JS WebSocket half, split out. m3 because it was split from an m3 quest; review can move it to m4, since no named consumer waits on it.

Decisions

Settled by the maintainer on 2026-11-21 in the /quest-plan interview:

  • Goal: ✅ peer links, on moq's defaults and on moq.pro's fleet, carry peak inter-region traffic without a flow-control cap, with memory bounded by design, and operators see a credit stall before moq.pro's live fleet runs the cut (rejected: also client ingest windows; moq.pro config and the stall counter only). The per-session subscription count was dropped: max_streams bounds it.
  • Peer stream window: ✅ keep feat!: lease qmux receive credit, one-segment floor, smaller windows, sized readiness #7624's decision 11, the 1 MiB stream window from [quic] (rejected: a [limits.peer.quic] stream_receive_window). Steady live media needs only its bitrate. Measure the backlog burst instead.
  • Peer default: ✅ 64 MiB, release parity (rejected: 32 MiB; a sim-picked value with no named target).
  • Peer default placement: ✅ m1, the cut doesn't wait (rejected: the cut waits).
  • Stall counter placement: ✅ m1, the cut waits (rejected: m1 without the cut waiting; keeping m3).
  • JS stall stats: ✅ split into their own quest (rejected: keeping them in the quest the cut waits on).

Impact

None: quest files only.

Validation

quest check: 495 documents ok. Planning only; no behavior to exercise.

Follow-ups

  • moq.pro sets its peer windows explicitly, and its live full cut waits on that: moq-dev/moq.pro#4345 (quest/m0/peer-flow-control.md).

Models

Size: S
Implementer: Claude Code, claude-opus-5-5, unknown effort

(Written by Opus 5.5)

🤖 Generated with Claude Code

Review

Rewritten by quest review after each round.

  • Head: 1658ce8

  • Base: origin/main at d34b1f1

  • Risk: low, Only quest plans and release prerequisites change, so no consumer or deployed peer behavior can break, and a revert fully undoes the changes.

  • Classified: low by Codex, gpt-6.1-sol, low effort, session 01a200c7-bc5a-7200-b342-baeae23ab170

  • Reviewer: Codex, gpt-6.1-sol, medium effort

  • Session: 01a200c7-cbdf-7900-88cd-825fecd339d7, round 1

  • Score: 10/10, The quest-only changes consistently split Rust and JS stall statistics, update references, and add the intended release prerequisite without actionable defects or runtime behavior changes.

  • Rounds: 1; first round 0; findings 0: fixed 0, refuted 0, open 0

  • Findings: none

… stall stats

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kixelated
kixelated marked this pull request as ready for review November 22, 2026 01:04
@coderabbitai

coderabbitai Bot commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

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

Next included review available in 5 minutes.

Check out review usage here.

View limit details

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

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 58807a9b-86b1-45b0-8ed0-eb550b3a14d8
Commits

Reviewing files that changed from the base of the PR and between d34b1f1 and 1658ce8.

Files selected for processing: 5

  • quest/m1/peer-window-default.md
  • quest/m1/send-credit-stalls.md
  • quest/m3/release/cut.md
  • quest/m3/send-credit-stalls-js.md
  • quest/m3/send-credit-stalls.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ No new issues found.

Approach: sound — a quest-only change that closes the two flow-control gaps from the main → release review without touching code.

Reviewed changes — all five quest files in the single commit.

  • peer-window-default (new, m1): sets [limits.peer.quic] windows to 64 MiB, and the cut doesn't wait on it. The 1 MiB stream window stays, and the plan asks for a backlog-burst join-latency measurement.
  • send-credit-stalls (moved m3 → m1): scoped to Rust, with the decisions recorded. It uses the existing moq_net::session::Stats, which exists in rs/moq-net/src/session.rs.
  • release/cut: the cut now waits on the stall counter, and the quest is listed as a prerequisite.
  • send-credit-stalls-js (new, m3): the JS WebSocket half, mirroring the Rust episode rule and field names.
  • m3/send-credit-stalls: deleted. A grep found no remaining references to the old path.

Pullfrog  | View workflow run | Using claude-sonnet-5-5 | 𝕏

@kixelated
kixelated added this pull request to the merge queue Nov 22, 2026
Merged via the queue into main with commit ceba411 Nov 22, 2026
9 checks passed
@kixelated
kixelated deleted the quest-plan/peer-flow-control branch November 22, 2026 01:07
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