moq-archive: answer an archive's holes the same live and historical

Open
#10,301 2 comments 1 reaction 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
55/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
rust

Research direction

Start by reading the moq-archive index and the live replay and historical fill paths; the issue does not name their files or tests. Trace how archived entries and source skips are represented, then check how a hole is answered through both paths. Done means skips are recorded compactly as runs and both paths distinguish skipped keys from keys lost by the archive.

Written by the indexing model from the issue text.

Description

quest

Goal

moq-archive should answer a key between two archived entries the same way, whether a reader gets it from a live replay or from a historical fill. The key should read as skipped when the source skipped it, and as not found when the archive lost it.

Context

Split from moq-net-publisher-accounting in https://github.com/moq-dev/moq/pull/10178.

Today a live replay skips the keys between archived entries, while a historical fill of the same hole reports it not found. The index stores only entries, so it cannot tell a skipped key from a lost one.

Plan

  1. Record the source's skips in the index as runs, so a sparse track costs one record per run.
  2. Have both the replay and the fill answer from those records.

(Written by Claude Opus 5.5)

Dominant language
Rust
Stars
1.6k
Forks
251
Avg merge
10h 10m
Merged PRs (30d)
822

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from moq-dev/moq

All issues in moq-dev/moq

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.