Skip to content

docs(audits): compatibility-flags interaction matrix (#2106) - #3914

Merged
oferchen merged 1 commit into
masterfrom
audits/compat-flags-matrix
May 7, 2026
Merged

oferchen merged 1 commit into
masterfrom
audits/compat-flags-matrix

Conversation

@oferchen

@oferchen oferchen commented May 7, 2026

Copy link
Copy Markdown
Owner

Summary

  • Audits upstream rsync 3.4.1 (options.c lines 2382-2427) for the mutual-exclusion rules among --inplace, --append, --append-verify, --whole-file, --partial-dir, --delay-updates, and --write-devices.
  • Tabulates oc-rsync's enforcement in crates/core/src/client/config/builder/mod.rs::validate(). Identifies two silent acceptances (R1: --append --whole-file; R7: --write-devices aliasing into inplace) and a message-string divergence for R4/R5 (delay-updates wording).
  • Lays out a 30+ row cli_validation_matrix.rs test plan covering accepted orthogonal combinations, currently-enforced rejections, and the gap rows that will drive fixes.

Single deliverable: docs/audits/compat-flags-matrix.md (93 lines, replaces the prior protocol-30 wire-compat_flags audit; that material is covered by docs/audits/compat-flags-audit.md).

Test plan

  • Static review: cross-reference every cited line against target/interop/upstream-src/rsync-3.4.1/options.c and crates/core/src/client/config/builder/.
  • Verified existing tests at crates/core/src/client/config/builder/tests.rs:1058-1115 cover R2-R5.
  • Follow-up PR: implement crates/core/tests/cli_validation_matrix.rs and the R1/R7 fixes outlined in section 5.

Audit upstream rsync 3.4.1 mutual-exclusion rules for --inplace,
--append, --whole-file, --partial-dir, --delay-updates, --write-devices,
and tabulate which combinations oc-rsync's ClientConfigBuilder::validate()
currently rejects. Identifies two silent acceptances (R1: --append
--whole-file; R7: --write-devices aliasing) and a message-string
divergence on R4/R5, and lays out a 30+ row cli_validation_matrix.rs
test plan to lock the behaviour in.
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label May 7, 2026
@oferchen
oferchen merged commit ed43cbe into master May 7, 2026
8 checks passed
@oferchen
oferchen deleted the audits/compat-flags-matrix branch May 8, 2026 03:50
oferchen added a commit that referenced this pull request May 18, 2026
Audit upstream rsync 3.4.1 mutual-exclusion rules for --inplace,
--append, --whole-file, --partial-dir, --delay-updates, --write-devices,
and tabulate which combinations oc-rsync's ClientConfigBuilder::validate()
currently rejects. Identifies two silent acceptances (R1: --append
--whole-file; R7: --write-devices aliasing) and a message-string
divergence on R4/R5, and lays out a 30+ row cli_validation_matrix.rs
test plan to lock the behaviour in.
oferchen added a commit that referenced this pull request Aug 24, 2026
Audit upstream rsync 3.4.1 mutual-exclusion rules for --inplace,
--append, --whole-file, --partial-dir, --delay-updates, --write-devices,
and tabulate which combinations oc-rsync's ClientConfigBuilder::validate()
currently rejects. Identifies two silent acceptances (R1: --append
--whole-file; R7: --write-devices aliasing) and a message-string
divergence on R4/R5, and lays out a 30+ row cli_validation_matrix.rs
test plan to lock the behaviour in.
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