moq-net: a narrowed lite-05/06 budget blocks a later widening, and per-reader skip harvest cost (from #10037/#10095 review)
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- javascript, rust
- 領域
- backend, performance, testing
調査の方向性
Start with rs/moq-net/src/lite/publisher.rs at the cited name_history and serve-path locations, then compare js/net/src/lite/publisher.ts; trace how a narrowed budget marks cached groups and how widening serves them. Reproduce the narrow-then-widen case and add mirrored regression tests that confirm every cached group in the widened span arrives. For the skip harvest, read rs/moq-net/src/ledger.rs and AGENTS.md, then add the requested failover benchmark across reader and cached-run counts.
索引モデルが issue の本文から書いたものです。
説明
Found by the retroactive Codex review in https://github.com/moq-dev/moq/pull/10288 (Codex seats replayed on PRs that landed while Codex was at its usage limit, 2026-12-01T18:30Z onward), each verified against main at a62650a98f by an independent read-only pass.
Size: M. Rust and JS, no public API or wire change. Each fix has a regression test (mirrored in Rust and JS where both sides have the path), and the skip harvest gets a failover benchmark swept over reader count and cached run count.
The same review's other findings here are already tracked: JS lacking keep_floor_skips in https://github.com/moq-dev/moq/issues/10276, and name_owed rebuilding skipped_in per step in https://github.com/moq-dev/moq/issues/10275. https://github.com/moq-dev/moq/issues/10215 covers a neighboring name_history bug (queued drops marked Final before they're sent); fix both together. https://github.com/moq-dev/moq/pull/10177 is open lite-06 sparse-skip work in the same publisher paths.
Findings and plan
- A narrowed budget names cached history final, so a later widening can't serve it. When the budget narrows (100 to 50 ms),
name_historysetsplaced = fromand tells everything untold invouched..fromasReport::Finalstale (rs/moq-net/src/lite/publisher.rs:6314-6350). A later widening re-offers cached groups there, but the serve path skips any key already told (publisher.rs:6943-6949), so they never reach the wire, contradictingname_skipped's doc ("a wider budget may still serve a stale one"). JS matches (js/net/src/lite/publisher.ts:2462-2488). lite-06 is the default clients negotiate.
Fix: name as final only what the publisher's own upstream verdict or the track's Max Age bound proves no later widening can offer (a group this relay merely evicted can still be refetched upstream, so its absence from the cache is no proof), and leave the rest below the start untold, keeping #10037's coalescing for what does get named. Test: narrow, then widen twice, and every cached group in the widened span arrives.
Caused by https://github.com/moq-dev/moq/pull/10037. - Each reader re-harvests the whole skip index after a switch. Every reader's
keep_floor_skipsresetsSkipsSeenon a generation change, so its first call walks all ofdrops_changesfrom 0 (rs/moq-net/src/ledger.rs:102-109) under the copy's lock and re-learns the same runs into the sharedSkips. A switch costs readers times runs.
Fix: harvest below-floor skips once per generation on the front, not per reader, and add the failover benchmark above (swept over reader count and cached run count, perAGENTS.md's fan-out rule).
Caused by https://github.com/moq-dev/moq/pull/10095.
The fixing PR lists each originating PR under ## Caused by as - [moq-dev/moq#N](url) - what it got wrong (found by reviewer).
(Written by Claude Opus 5.5)
- 主要言語
- Rust
- スター
- 1.6k
- フォーク
- 251
- 平均マージ
- 10時間 10分
- マージ済み PR(30日)
- 832
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
moq-dev/moq のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
foundry-rs/starknet-foundry#4733 ·
メンテナーはふだん 4 日以内に返信
-
autofix:working
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
libracoder/kiri#1138 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
roc-lang/basic-webserver#277 ·
メンテナーはふだん 1 日以内に返信