Repository navigation
docs(design): zsync adversarial shifted-insertion test fixture (#2079) - #3723
Merged
Merged
Conversation
Add design note for the canonical zsync-style insertion adversary at docs/design/zsync-shifted-insertion-test.md, pinning the public-API guard for the four pipeline optimizations enumerated in docs/design/zsync-inspired-matching.md (#2053). Documents the fixture parameters, expected match output for aligned vs unaligned regimes, the upstream rsync --stats comparison oracle, CI integration gated by SIMD parity (#2077), and the failure modes (signed-byte regression #2076 class, off-by-one in seek, bithash false negative #2061-#2063 class, want_i hint off-by-one, rolling-window reset bugs, strong-checksum truncation drift, ring-buffer wrap bugs). Cites the existing fixture at crates/match/tests/shifted_insertion_fixture.rs, the sibling rsum-collision fixture from #2078, and the rolling sign-extension fix from PR #3560 (commit 723a0a0).
oferchen
added a commit
that referenced
this pull request
May 18, 2026
#3723) Add design note for the canonical zsync-style insertion adversary at docs/design/zsync-shifted-insertion-test.md, pinning the public-API guard for the four pipeline optimizations enumerated in docs/design/zsync-inspired-matching.md (#2053). Documents the fixture parameters, expected match output for aligned vs unaligned regimes, the upstream rsync --stats comparison oracle, CI integration gated by SIMD parity (#2077), and the failure modes (signed-byte regression #2076 class, off-by-one in seek, bithash false negative #2061-#2063 class, want_i hint off-by-one, rolling-window reset bugs, strong-checksum truncation drift, ring-buffer wrap bugs). Cites the existing fixture at crates/match/tests/shifted_insertion_fixture.rs, the sibling rsum-collision fixture from #2078, and the rolling sign-extension fix from PR #3560 (commit 723a0a0).
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
#3723) Add design note for the canonical zsync-style insertion adversary at docs/design/zsync-shifted-insertion-test.md, pinning the public-API guard for the four pipeline optimizations enumerated in docs/design/zsync-inspired-matching.md (#2053). Documents the fixture parameters, expected match output for aligned vs unaligned regimes, the upstream rsync --stats comparison oracle, CI integration gated by SIMD parity (#2077), and the failure modes (signed-byte regression #2076 class, off-by-one in seek, bithash false negative #2061-#2063 class, want_i hint off-by-one, rolling-window reset bugs, strong-checksum truncation drift, ring-buffer wrap bugs). Cites the existing fixture at crates/match/tests/shifted_insertion_fixture.rs, the sibling rsum-collision fixture from #2078, and the rolling sign-extension fix from PR #3560 (commit 723a0a0).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
docs/design/zsync-inspired-matching.md(Add full --ignore-times support across client and engine #2053): bithash (Fix ignore-times quick check comparison #2059-Ensure identical timestamp files are compared by content #2063), seq-match (Fix quick-check skip logic for ignore-times parity #2064-Ensure --ignore-times forces a rewrite #2067), prune (Avoid checksum comparisons when timestamps match #2068-Ensure copy skip heuristics verify file content #2071), compact-keys (Fix ignore-times handling for quick checks #2072-Fix delta copy test expectations #2073).--statscomparison oracle, CI integration gated by SIMD parity (Remove legacy monolithic fallback and special modules #2077), and the seven failure-mode classes the fixture catches.Test plan
crates/match/tests/shifted_insertion_fixture.rsalready on master; sibling atcrates/match/tests/rsum_collision_fixture.rs(from Refactor checksum and handshake modules #2078); prerequisite atcrates/checksums/tests/rolling_signed_byte_regression.rs(Refactor fallback binary and special executor modules #2076 / PR test(checksums): pin signed-byte rolling Adler regression fixture #3636); upstream sign-extension fix at PR fix(checksums): rolling checksum sign-extends bytes to match upstream schar #3560 (commit 723a0a0)