Skip to content

docs(design): protocol fuzzing harness against upstream rsync - #3654

Merged
oferchen merged 1 commit into
masterfrom
docs/protocol-fuzzing-harness-1193
May 5, 2026
Merged

oferchen merged 1 commit into
masterfrom
docs/protocol-fuzzing-harness-1193

Conversation

@oferchen

@oferchen oferchen commented May 5, 2026

Copy link
Copy Markdown
Owner

Design note for TODO #1193 covering a behavioural differential fuzz harness that drives both oc-rsync and upstream rsync 3.4.1 through randomized end-to-end transfer scenarios and asserts equivalence on exit code, destination tree bytes, wire payload, and stderr structure.

Key sections

Wire-compat invariants confirmed

Zero impact on production code paths. The harness lives in a new crates/fuzz-harness/ crate outside the production dependency graph (cli -> core -> ...). No new flag in crates/cli/, no new module in any production crate, no #[cfg(fuzz)] guards. Aligns with the wire-compat discipline already documented in docs/design/zsync-inspired-matching.md lines 21-34.

Test plan

  • Manual review of the design note against tools/ci/run_interop.sh, crates/protocol/tests/golden_*.rs, and crates/protocol/src/version/constants.rs for citation accuracy.
  • Verify the four follow-up TODOs listed in the doc are tracked separately (not added to the persistent tracker per the task requirements).
  • Verify zero production code is touched: git diff origin/master -- crates/ | wc -l should be 0.

Design note for TODO #1193. Adds docs/design/protocol-fuzzing-harness.md
covering a behavioural differential fuzz harness that drives both
oc-rsync and upstream rsync 3.4.1 through randomized end-to-end
transfer scenarios and asserts equivalence on exit code, destination
tree bytes, wire payload (tcpdump), and stderr structure. Sister to
the wire-byte fuzz at crates/protocol/fuzz/ (#1194) and the wire-format
differential fuzzer at #1303.

Documents only. Zero impact on production code paths; the harness lives
in a new fuzz-harness crate outside the production dependency graph.
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label May 5, 2026
@oferchen
oferchen merged commit bfb2187 into master May 5, 2026
8 checks passed
@oferchen
oferchen deleted the docs/protocol-fuzzing-harness-1193 branch May 5, 2026 10:10
oferchen added a commit that referenced this pull request May 18, 2026
Design note for TODO #1193. Adds docs/design/protocol-fuzzing-harness.md
covering a behavioural differential fuzz harness that drives both
oc-rsync and upstream rsync 3.4.1 through randomized end-to-end
transfer scenarios and asserts equivalence on exit code, destination
tree bytes, wire payload (tcpdump), and stderr structure. Sister to
the wire-byte fuzz at crates/protocol/fuzz/ (#1194) and the wire-format
differential fuzzer at #1303.

Documents only. Zero impact on production code paths; the harness lives
in a new fuzz-harness crate outside the production dependency graph.
oferchen added a commit that referenced this pull request Aug 24, 2026
Design note for TODO #1193. Adds docs/design/protocol-fuzzing-harness.md
covering a behavioural differential fuzz harness that drives both
oc-rsync and upstream rsync 3.4.1 through randomized end-to-end
transfer scenarios and asserts equivalence on exit code, destination
tree bytes, wire payload (tcpdump), and stderr structure. Sister to
the wire-byte fuzz at crates/protocol/fuzz/ (#1194) and the wire-format
differential fuzzer at #1303.

Documents only. Zero impact on production code paths; the harness lives
in a new fuzz-harness crate outside the production dependency graph.
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