Skip to content

quest: plan moq-quic audit fixes, ACK packing, sendmmsg, and coverage - #9707

Merged
kixelated merged 1 commit into
mainfrom
quest-plan/quic-audit
Nov 26, 2026
Merged

kixelated merged 1 commit into
mainfrom
quest-plan/quic-audit

Conversation

@kixelated

@kixelated kixelated commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

Plans the findings from the moq-quic audit (real-time latency, CPU/memory efficiency, correctness/DoS bugs, fuzz/bench coverage) together with cross-connection sendmmsg batching, fewer ACKs with tail-room piggybacking, and packet/ACK/syscall count tracking.

Planned Quests

Milestone Size Quest Reason for milestone
m2 [S] quic-lease-ownership Breaking public API change (Lease drops Default, gains ownership tag) before moq-quic first publishes at 0.22
m1 [S] quic-eviction-deadlock Additive deadlock fix in main's credit rework + ReceiveCredit.tla update
m1 [M] quic-ack-and-ecn-fixes Additive protocol/latency fixes (ACK-under-congestion, ECN packet count, ACK_FREQUENCY, MaxAckDelay, ReceiveTimestamps)
m1 [M] quic-path-and-probe-fixes Additive path/probe fixes (dual-stack NAT rebind, prev_path, MTUD gating, bandwidth probe, ACK-only spurious loss)
m1 [M] quic-stream-and-wire-fixes Additive correctness/panic fixes (Assembler, reset_stream, empty write, Send::acked, QMux close, 32-bit wire, BloomTokenLog, CidState, rate refill)
m1 [S] quic-dos-bounds Additive hardening against unauthenticated Initial buffering, sparse stream-ID allocation, 24-bit CID exhaustion, and global reset suppression
m1 [M] quic-ack-packing-and-pto-duplication Additive config + internal ACK packing (max_ack_delay 50 ms default, tail-room piggybacking at max_ack_delay/2, PTO STREAM duplication)
m9/perf [M] quic-hot-path-allocs Internal per-packet/ACK CPU & alloc fixes, no API/wire change, gated by before/after profiles
m9/perf [M] tokio-sendmmsg-batch Measure-first cross-connection sendmmsg batching in moq-tokio (moq-uring already batches via SQEs)
m9/perf [S] quic-pacer-quantum-alignment Internal pacing burst vs BBR3 quantum alignment and high-rate relay MAX_ACK_ONLY/Dedup tuning
m4 [S] quic-packet-count-metrics Packet, ACK, PING (zero-PING active assertion), and syscall batching tests/metrics across moq-quic, moq-bench, and scale-sim
m4 [M] quic-fuzz-and-bench-coverage QMux, ACK_RECEIVE_TIMESTAMPS, widened Connection, and Endpoint fuzz targets + real-crypto rind benches
m4 [M] quic-prioritized-send-admission Additive real-time scheduling feature after 0.22 (prevent low-priority streams saturating send_window/max_data)
m4 [M] uring-async-handshake Runtime architecture improvement after 0.22 (offload server TLS handshakes off the moq-uring worker loop)
m4 [M] quic-l4s-accecn Real-time transport feature after 0.22 (ECT(1) + per-ACK CE packet counts)

Decisions

Interviewed 2026-11-26 with the maintainer:

  • Audit scope: ✅ Plan all (bugs, latency, CPU, coverage) (rejected: bugs and real-time latency only; drop).
  • Fewer ACKs & piggybacking: ✅ Confirm goal; default max_ack_delay = 50 ms (configurable past 25 ms), reserve tail room to piggyback ACKs at max_ack_delay / 2, pair with PTO STREAM duplication, expose ack_eliciting_threshold keeping default 1 (rejected: piggybacking only; keep 25 ms default; raise default ack_eliciting_threshold to 10/cwnd-scaled now; drop).
  • Cross-connection sendmmsg in moq-tokio: ✅ Confirm as a measure-first m9/perf quest; moq-uring stays unchanged (rejected: drop and rely on moq-uring).
  • Packet/ACK/syscall count tracking: ✅ Confirm across moq-quic sim tests/benches, moq-bench, and scale-sim (rejected: moq-quic only; drop).
  • Keep-alive packet reuse: ✅ No separate quest (native moq-quic already resets KeepAlive on every sent/received packet including ACK-only and PR feat(quic,net,qmux): sessions take a keep-alive with a stale signal #9698 owns { soft, hard }); add a zero-PING assertion for active sessions in quic-packet-count-metrics (rejected: also slow down QMux's 1 s QX_PING probe now).
  • Net-new features: ✅ Plan prioritized send-buffer admission, moq-uring async handshake offload, and L4S/AccECN (rejected: RACK-TLP & BDP receive-window auto-tuning; 0-RTT session resumption; none).
  • Lease ownership safety: ✅ Remove Default on Lease and tag with (StreamId, ConnectionTag) before 0.22 in m2 (rejected: keep Default and guard at runtime).

Models

  • Size: M
  • Implementer: Antigravity, gemini-4-neon

(Written by gemini-4-neon)

Review

Rewritten by quest review after each round.

  • Head: b7e5810
  • Base: origin/main at dc0eb1a
  • Risk: low, Breaks nothing: all 15 changed files are new quest plan markdown under quest/, which no consumer, peer, or release reads, and a revert deletes them cleanly. No code, API, wire format, config, or release script changes.
  • Classified: low by Claude Code, claude-haiku-5-5, low effort, session b92ad43b-3d8e-4c01-9e8f-e7b1d4447e11
  • Class: quest
  • Risk file: bb7b1c0de60b
  • Local review: none, since the head is low risk

@kixelated
kixelated marked this pull request as ready for review November 26, 2026 19:06
@coderabbitai

coderabbitai Bot commented Nov 26, 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 45 seconds.

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: fe3ace6b-69e2-4da7-9e83-795adc907d40
Commits

Reviewing files that changed from the base of the PR and between dc0eb1a and b7e5810.

Files selected for processing: 15

  • quest/m1/quic-ack-and-ecn-fixes.md
  • quest/m1/quic-ack-packing-and-pto-duplication.md
  • quest/m1/quic-dos-bounds.md
  • quest/m1/quic-eviction-deadlock.md
  • quest/m1/quic-path-and-probe-fixes.md
  • quest/m1/quic-stream-and-wire-fixes.md
  • quest/m2/quic-lease-ownership.md
  • quest/m4/quic-fuzz-and-bench-coverage.md
  • quest/m4/quic-l4s-accecn.md
  • quest/m4/quic-packet-count-metrics.md
  • quest/m4/quic-prioritized-send-admission.md
  • quest/m4/uring-async-handshake.md
  • quest/m9/perf/quic-hot-path-allocs.md
  • quest/m9/perf/quic-pacer-quantum-alignment.md
  • quest/m9/perf/tokio-sendmmsg-batch.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

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