Repository navigation
feat: Phase 1 - Comprehensive Parity Gap Analysis - #2252
Merged
Merged
Conversation
Phase 1: Comprehensive Parity Gap Analysis
==========================================
- Created PARITY_GAP_ANALYSIS.md with 60+ test scenarios
- Analyzed 9 feature groups vs rsync 3.4.1
- Categorized gaps: COMPLETE, PARTIAL, MISSING, UNKNOWN
- Documented infrastructure status for all features
- Identified 7 sparse scenarios, 7 compression scenarios
- Mapped metadata (8 scenarios), delete/backup (9 scenarios)
- Documented daemon/protocol (11 scenarios), SSH status
- Listed filter engine, messages, exit codes, logging gaps
- Created foundation for interop test harness
Phase 2: Sparse Semantics Complete Cluster
==========================================
- Added 5 comprehensive sparse validation tests
- Multiple hole patterns test (data-hole-data interleaved)
- Hole data integrity verification (specific offsets)
- Small holes test (< 1024 byte threshold)
- Aligned holes test (16-byte SIMD fast path verification)
- Large sparse file test (1GB with minimal data)
- All tests verify SIMD u128 batching correctness
- Platform-aware block allocation verification
- Maintains single-seek-per-zero-run invariant
Implementation Status
====================
- Sparse infrastructure: ✅ COMPLETE
- SIMD/u128 batching: ✅ VERIFIED
- Upstream-equivalent holes: ✅ TESTED
- Block allocation: ✅ VALIDATED (platform-aware)
Per Mission Brief Phases 1-2:
- Phase 1: Map and log parity gaps ✅
- Phase 2: Sparse semantics as complete cluster ✅
Next: Phase 3 (Compression group), Phase 4 (Metadata),
Phase 5 (Delete/Backup), Phase 6 (Daemon/Protocol),
Phase 7 (Messages/Exit codes)
oferchen
force-pushed
the
genspark_ai_developer
branch
from
November 28, 2025 19:41
3f93656 to
55a24b8
Compare
oferchen
added a commit
that referenced
this pull request
May 1, 2026
) Phase 1: Comprehensive Parity Gap Analysis ========================================== - Created PARITY_GAP_ANALYSIS.md with 60+ test scenarios - Analyzed 9 feature groups vs rsync 3.4.1 - Categorized gaps: COMPLETE, PARTIAL, MISSING, UNKNOWN - Documented infrastructure status for all features - Identified 7 sparse scenarios, 7 compression scenarios - Mapped metadata (8 scenarios), delete/backup (9 scenarios) - Documented daemon/protocol (11 scenarios), SSH status - Listed filter engine, messages, exit codes, logging gaps - Created foundation for interop test harness Phase 2: Sparse Semantics Complete Cluster ========================================== - Added 5 comprehensive sparse validation tests - Multiple hole patterns test (data-hole-data interleaved) - Hole data integrity verification (specific offsets) - Small holes test (< 1024 byte threshold) - Aligned holes test (16-byte SIMD fast path verification) - Large sparse file test (1GB with minimal data) - All tests verify SIMD u128 batching correctness - Platform-aware block allocation verification - Maintains single-seek-per-zero-run invariant Implementation Status ==================== - Sparse infrastructure: ✅ COMPLETE - SIMD/u128 batching: ✅ VERIFIED - Upstream-equivalent holes: ✅ TESTED - Block allocation: ✅ VALIDATED (platform-aware) Per Mission Brief Phases 1-2: - Phase 1: Map and log parity gaps ✅ - Phase 2: Sparse semantics as complete cluster ✅ Next: Phase 3 (Compression group), Phase 4 (Metadata), Phase 5 (Delete/Backup), Phase 6 (Daemon/Protocol), Phase 7 (Messages/Exit codes) Co-authored-by: Ofer Chen <[email protected]>
oferchen
added a commit
that referenced
this pull request
May 5, 2026
) Phase 1: Comprehensive Parity Gap Analysis ========================================== - Created PARITY_GAP_ANALYSIS.md with 60+ test scenarios - Analyzed 9 feature groups vs rsync 3.4.1 - Categorized gaps: COMPLETE, PARTIAL, MISSING, UNKNOWN - Documented infrastructure status for all features - Identified 7 sparse scenarios, 7 compression scenarios - Mapped metadata (8 scenarios), delete/backup (9 scenarios) - Documented daemon/protocol (11 scenarios), SSH status - Listed filter engine, messages, exit codes, logging gaps - Created foundation for interop test harness Phase 2: Sparse Semantics Complete Cluster ========================================== - Added 5 comprehensive sparse validation tests - Multiple hole patterns test (data-hole-data interleaved) - Hole data integrity verification (specific offsets) - Small holes test (< 1024 byte threshold) - Aligned holes test (16-byte SIMD fast path verification) - Large sparse file test (1GB with minimal data) - All tests verify SIMD u128 batching correctness - Platform-aware block allocation verification - Maintains single-seek-per-zero-run invariant Implementation Status ==================== - Sparse infrastructure: ✅ COMPLETE - SIMD/u128 batching: ✅ VERIFIED - Upstream-equivalent holes: ✅ TESTED - Block allocation: ✅ VALIDATED (platform-aware) Per Mission Brief Phases 1-2: - Phase 1: Map and log parity gaps ✅ - Phase 2: Sparse semantics as complete cluster ✅ Next: Phase 3 (Compression group), Phase 4 (Metadata), Phase 5 (Delete/Backup), Phase 6 (Daemon/Protocol), Phase 7 (Messages/Exit codes) Co-authored-by: Ofer Chen <[email protected]>
3 tasks
oferchen
added a commit
that referenced
this pull request
May 17, 2026
Establishes the two-phase model (parallel compute_extras, single emitter drain) that replaces the batched --delete-during sweep and the opt-in --delete-strict-order gate from PR #4245. Locks down the invariants the implementation tasks (#2252-#2285) must preserve: upstream f_name_cmp ordering per directory, depth-first directory order, single-emitter side effects, per-directory filter snapshot, pure workers. Covers all timing modes, hardlink coordination, error policy, removal plan for the strict-order flag and batched sweep, plus the interop, determinism, and perf test plan.
oferchen
added a commit
that referenced
this pull request
May 17, 2026
…2252) (#4256) Adds a foundational `f_name_cmp` that compares two `FileEntry` values by `(dirname, basename)` in unsigned byte order, mirroring upstream rsync's `flist.c:f_name_cmp()`. Bytes with the high bit set sort after ASCII; no locale awareness, no case folding, no protocol-29 file-vs-directory disambiguation (that logic stays in `sort.rs`). This is the sort key the parallel-deterministic-delete pipeline needs to merge candidate lists with byte-identical ordering to upstream's pre-sort scan. Wiring callers over to this comparator is left to follow-up tasks. Includes a `name_cmp_eq` helper that tolerates a single trailing `/` on the basename to mirror upstream's implicit directory-slash equivalence, and a components-only `f_name_cmp_components` helper for callers and fuzzers that already hold dirname/basename byte slices. Unit tests cover ASCII ordering, same-basename/different-dirname, high-byte unsigned order (>= 0x80), dot/double-dot, hidden dotfiles, embedded slashes, deep nesting, and the file-vs-dir byte-only fold. Proptest covers reflexivity, antisymmetry, transitivity, and agreement with the components helper. Upstream references: - flist.c:3197 enum fnc_state - flist.c:3198 enum fnc_type - flist.c:3217-3334 f_name_cmp() - flist.c:3331 (int)*c1++ - (int)*c2++ (unsigned byte compare)
oferchen
added a commit
that referenced
this pull request
May 18, 2026
Establishes the two-phase model (parallel compute_extras, single emitter drain) that replaces the batched --delete-during sweep and the opt-in --delete-strict-order gate from PR #4245. Locks down the invariants the implementation tasks (#2252-#2285) must preserve: upstream f_name_cmp ordering per directory, depth-first directory order, single-emitter side effects, per-directory filter snapshot, pure workers. Covers all timing modes, hardlink coordination, error policy, removal plan for the strict-order flag and batched sweep, plus the interop, determinism, and perf test plan.
oferchen
added a commit
that referenced
this pull request
May 18, 2026
…2252) (#4256) Adds a foundational `f_name_cmp` that compares two `FileEntry` values by `(dirname, basename)` in unsigned byte order, mirroring upstream rsync's `flist.c:f_name_cmp()`. Bytes with the high bit set sort after ASCII; no locale awareness, no case folding, no protocol-29 file-vs-directory disambiguation (that logic stays in `sort.rs`). This is the sort key the parallel-deterministic-delete pipeline needs to merge candidate lists with byte-identical ordering to upstream's pre-sort scan. Wiring callers over to this comparator is left to follow-up tasks. Includes a `name_cmp_eq` helper that tolerates a single trailing `/` on the basename to mirror upstream's implicit directory-slash equivalence, and a components-only `f_name_cmp_components` helper for callers and fuzzers that already hold dirname/basename byte slices. Unit tests cover ASCII ordering, same-basename/different-dirname, high-byte unsigned order (>= 0x80), dot/double-dot, hidden dotfiles, embedded slashes, deep nesting, and the file-vs-dir byte-only fold. Proptest covers reflexivity, antisymmetry, transitivity, and agreement with the components helper. Upstream references: - flist.c:3197 enum fnc_state - flist.c:3198 enum fnc_type - flist.c:3217-3334 f_name_cmp() - flist.c:3331 (int)*c1++ - (int)*c2++ (unsigned byte compare)
oferchen
added a commit
that referenced
this pull request
May 18, 2026
Establishes the two-phase model (parallel compute_extras, single emitter drain) that replaces the batched --delete-during sweep and the opt-in --delete-strict-order gate from PR #4245. Locks down the invariants the implementation tasks (#2252-#2285) must preserve: upstream f_name_cmp ordering per directory, depth-first directory order, single-emitter side effects, per-directory filter snapshot, pure workers. Covers all timing modes, hardlink coordination, error policy, removal plan for the strict-order flag and batched sweep, plus the interop, determinism, and perf test plan.
oferchen
added a commit
that referenced
this pull request
May 18, 2026
…2252) (#4256) Adds a foundational `f_name_cmp` that compares two `FileEntry` values by `(dirname, basename)` in unsigned byte order, mirroring upstream rsync's `flist.c:f_name_cmp()`. Bytes with the high bit set sort after ASCII; no locale awareness, no case folding, no protocol-29 file-vs-directory disambiguation (that logic stays in `sort.rs`). This is the sort key the parallel-deterministic-delete pipeline needs to merge candidate lists with byte-identical ordering to upstream's pre-sort scan. Wiring callers over to this comparator is left to follow-up tasks. Includes a `name_cmp_eq` helper that tolerates a single trailing `/` on the basename to mirror upstream's implicit directory-slash equivalence, and a components-only `f_name_cmp_components` helper for callers and fuzzers that already hold dirname/basename byte slices. Unit tests cover ASCII ordering, same-basename/different-dirname, high-byte unsigned order (>= 0x80), dot/double-dot, hidden dotfiles, embedded slashes, deep nesting, and the file-vs-dir byte-only fold. Proptest covers reflexivity, antisymmetry, transitivity, and agreement with the components helper. Upstream references: - flist.c:3197 enum fnc_state - flist.c:3198 enum fnc_type - flist.c:3217-3334 f_name_cmp() - flist.c:3331 (int)*c1++ - (int)*c2++ (unsigned byte compare)
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
Establishes the two-phase model (parallel compute_extras, single emitter drain) that replaces the batched --delete-during sweep and the opt-in --delete-strict-order gate from PR #4245. Locks down the invariants the implementation tasks (#2252-#2285) must preserve: upstream f_name_cmp ordering per directory, depth-first directory order, single-emitter side effects, per-directory filter snapshot, pure workers. Covers all timing modes, hardlink coordination, error policy, removal plan for the strict-order flag and batched sweep, plus the interop, determinism, and perf test plan.
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
…2252) (#4256) Adds a foundational `f_name_cmp` that compares two `FileEntry` values by `(dirname, basename)` in unsigned byte order, mirroring upstream rsync's `flist.c:f_name_cmp()`. Bytes with the high bit set sort after ASCII; no locale awareness, no case folding, no protocol-29 file-vs-directory disambiguation (that logic stays in `sort.rs`). This is the sort key the parallel-deterministic-delete pipeline needs to merge candidate lists with byte-identical ordering to upstream's pre-sort scan. Wiring callers over to this comparator is left to follow-up tasks. Includes a `name_cmp_eq` helper that tolerates a single trailing `/` on the basename to mirror upstream's implicit directory-slash equivalence, and a components-only `f_name_cmp_components` helper for callers and fuzzers that already hold dirname/basename byte slices. Unit tests cover ASCII ordering, same-basename/different-dirname, high-byte unsigned order (>= 0x80), dot/double-dot, hidden dotfiles, embedded slashes, deep nesting, and the file-vs-dir byte-only fold. Proptest covers reflexivity, antisymmetry, transitivity, and agreement with the components helper. Upstream references: - flist.c:3197 enum fnc_state - flist.c:3198 enum fnc_type - flist.c:3217-3334 f_name_cmp() - flist.c:3331 (int)*c1++ - (int)*c2++ (unsigned byte compare)
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.
Phase 1: Comprehensive Parity Gap Analysis
This PR implements Phase 1 of the Mission Brief high-throughput parity plan: systematic gap mapping across all feature groups.
What's Included
Comprehensive Gap Analysis Document ()
Feature Groups Analyzed
Sparse Files (✅ Infrastructure / 🔧 Validation needed)
Compression (🔧 PARTIAL)
Metadata (✅ Basic / 🔧 Advanced)
Delete & Backup (🔧 PARTIAL)
Daemon & Protocol (✅ Basic / 🔧 Advanced)
Remote Shell (SSH) (🔧 Infrastructure / ❌ Integration)
Filter Engine (🔧 PARTIAL)
Messages & Exit Codes (🔧 PARTIAL)
Logging & Output (🔧 PARTIAL)
Gap Summary
Next Steps (Mission Brief Phases)
Interop Test Harness
Document provides foundation for harness that:
Compliance
Review Focus: Completeness of gap analysis, clarity of categorization, actionability of next steps.