Skip to content

docs(audits): zsync golden-byte stability audit (#2086) - #3683

Merged
oferchen merged 2 commits into
masterfrom
docs/zsync-golden-stability-2086
May 5, 2026
Merged

oferchen merged 2 commits into
masterfrom
docs/zsync-golden-stability-2086

Conversation

@oferchen

@oferchen oferchen commented May 5, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds docs/audits/zsync-golden-byte-stability.md, a 620-line evidence-based audit verifying the four planned zsync-inspired matching optimizations (bithash, seq-match, prune, compact-keys) cannot perturb wire-emitted bytes.
  • Inventories the inline golden-byte tests that pin the match/delta path (crates/protocol/tests/golden_protocol_v28_mplex_delta_stats.rs, golden_protocol_v29_wire.rs::golden_v29_sum_head_md4, the codec goldens) and the structural correctness suites in crates/match/ and crates/engine/.
  • States the per-optimization invariant for each technique (Refactor filter rule parsing into smaller modules #2060-Fix delta copy test expectations #2073) and identifies one gap: today's golden corpus uses unique-per-block basis content, so duplicate-basis-block prune behaviour is not pinned at the wire-byte level. Recommends a new test for Verify identical timestamp comparisons consider content differences #2069 covering [A,A,A] basis with AA source.
  • Traces MatchIndex lookup -> DeltaToken::Copy -> script_to_wire_delta -> write_token_stream end-to-end with line citations.

Test plan

  • No code touched - docs-only PR (single new file under docs/audits/).
  • No crates/, tests/, Cargo.toml, Cargo.lock, tools/, or workflow changes.
  • Mirror existing docs/audits/ style (verified against fuzzy-basis-search.md, zstd-batch-compatibility.md, known-failures-eliminate.md).
  • Hyphens only - no em-dashes.
  • Cites paths in path/to/file.rs:LINE format.

oferchen added 2 commits May 5, 2026 18:07
Pin the wire-boundary invariants for the four planned zsync-inspired
matching optimizations (bithash, seq-match, prune, compact-keys),
inventory existing golden tests on the match/delta path, and flag the
one gap (no wire-byte pin for duplicate-basis-block COPY-token
sequences) that #2069 must close before landing.
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label May 5, 2026
@oferchen
oferchen merged commit 999c9b7 into master May 5, 2026
7 checks passed
@oferchen
oferchen deleted the docs/zsync-golden-stability-2086 branch May 6, 2026 18:58
oferchen added a commit that referenced this pull request May 18, 2026
Pin the wire-boundary invariants for the four planned zsync-inspired
matching optimizations (bithash, seq-match, prune, compact-keys),
inventory existing golden tests on the match/delta path, and flag the
one gap (no wire-byte pin for duplicate-basis-block COPY-token
sequences) that #2069 must close before landing.
oferchen added a commit that referenced this pull request Aug 24, 2026
Pin the wire-boundary invariants for the four planned zsync-inspired
matching optimizations (bithash, seq-match, prune, compact-keys),
inventory existing golden tests on the match/delta path, and flag the
one gap (no wire-byte pin for duplicate-basis-block COPY-token
sequences) that #2069 must close before landing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant