Repository navigation
docs(audits): wire-format unchanged under parallel dispatch (#1548) - #4205
Merged
Merged
Conversation
Document the byte-stream equivalence guarantee for the parallel-dispatch infrastructure in crates/engine/src/concurrent_delta/. Surveys five parallel sites and their reordering paths, lists existing internal and golden tests, and flags four gaps (no production caller of ParallelDeltaPipeline, no sequential-vs-parallel parity assertion, an untested force_insert deadlock-break path, and no interop coverage of the parallel path). Verdict is a conditional PASS: trivially true today because the receiver always runs the sequential pipeline, with concrete follow-ups required before the parallel path is wired into production.
This was referenced May 17, 2026
oferchen
added a commit
that referenced
this pull request
May 17, 2026
Captures the design for parallelizing the receiver's per-file delta apply loop while preserving per-file token order and wire-format parity. Documents the current sequential surface, the dormant ParallelDeltaPipeline that would host the change, the backpressure model, and the gating prerequisites - chiefly the parity-test gap flagged by audit #4205 (G2) - that block default adoption. Recommends a phased opt-in rollout: land the sequential-vs-parallel parity test first, then add a hidden CLI gate, then collect #4214 / #4206 bench evidence, and only then consider flipping the default.
oferchen
added a commit
that referenced
this pull request
May 18, 2026
…4205) Document the byte-stream equivalence guarantee for the parallel-dispatch infrastructure in crates/engine/src/concurrent_delta/. Surveys five parallel sites and their reordering paths, lists existing internal and golden tests, and flags four gaps (no production caller of ParallelDeltaPipeline, no sequential-vs-parallel parity assertion, an untested force_insert deadlock-break path, and no interop coverage of the parallel path). Verdict is a conditional PASS: trivially true today because the receiver always runs the sequential pipeline, with concrete follow-ups required before the parallel path is wired into production.
oferchen
added a commit
that referenced
this pull request
May 18, 2026
Captures the design for parallelizing the receiver's per-file delta apply loop while preserving per-file token order and wire-format parity. Documents the current sequential surface, the dormant ParallelDeltaPipeline that would host the change, the backpressure model, and the gating prerequisites - chiefly the parity-test gap flagged by audit #4205 (G2) - that block default adoption. Recommends a phased opt-in rollout: land the sequential-vs-parallel parity test first, then add a hidden CLI gate, then collect #4214 / #4206 bench evidence, and only then consider flipping the default.
oferchen
added a commit
that referenced
this pull request
May 18, 2026
…4205) Document the byte-stream equivalence guarantee for the parallel-dispatch infrastructure in crates/engine/src/concurrent_delta/. Surveys five parallel sites and their reordering paths, lists existing internal and golden tests, and flags four gaps (no production caller of ParallelDeltaPipeline, no sequential-vs-parallel parity assertion, an untested force_insert deadlock-break path, and no interop coverage of the parallel path). Verdict is a conditional PASS: trivially true today because the receiver always runs the sequential pipeline, with concrete follow-ups required before the parallel path is wired into production.
oferchen
added a commit
that referenced
this pull request
May 18, 2026
Captures the design for parallelizing the receiver's per-file delta apply loop while preserving per-file token order and wire-format parity. Documents the current sequential surface, the dormant ParallelDeltaPipeline that would host the change, the backpressure model, and the gating prerequisites - chiefly the parity-test gap flagged by audit #4205 (G2) - that block default adoption. Recommends a phased opt-in rollout: land the sequential-vs-parallel parity test first, then add a hidden CLI gate, then collect #4214 / #4206 bench evidence, and only then consider flipping the default.
Merged
5 tasks
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
…4205) Document the byte-stream equivalence guarantee for the parallel-dispatch infrastructure in crates/engine/src/concurrent_delta/. Surveys five parallel sites and their reordering paths, lists existing internal and golden tests, and flags four gaps (no production caller of ParallelDeltaPipeline, no sequential-vs-parallel parity assertion, an untested force_insert deadlock-break path, and no interop coverage of the parallel path). Verdict is a conditional PASS: trivially true today because the receiver always runs the sequential pipeline, with concrete follow-ups required before the parallel path is wired into production.
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
Captures the design for parallelizing the receiver's per-file delta apply loop while preserving per-file token order and wire-format parity. Documents the current sequential surface, the dormant ParallelDeltaPipeline that would host the change, the backpressure model, and the gating prerequisites - chiefly the parity-test gap flagged by audit #4205 (G2) - that block default adoption. Recommends a phased opt-in rollout: land the sequential-vs-parallel parity test first, then add a hidden CLI gate, then collect #4214 / #4206 bench evidence, and only then consider flipping the default.
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/audits/parallel-dispatch-wire-format-verification.mdcovering whether enabling parallel dispatch can change the bytes oc-rsync sends on the wire.crates/engine/src/concurrent_delta/(work-queue drain, strategy dispatch, consumer threads, reorder buffer, spill buffer, and theParallelDeltaPipelinefacade incrates/transfer/src/delta_pipeline.rs).crates/protocol/tests/golden_*) and interop coverage (tools/ci/run_interop.sh).Key findings
ParallelDeltaPipelinehas no production caller today (Receiver::set_delta_pipelineis never invoked; the field is set but never read), so the shipped binary always usesSequentialDeltaPipelineand the wire stream matches upstreamreceiver.c:recv_files()1:1.force_insertdeadlock-break path, and the interop matrix does not exercise parallel dispatch.Test plan
cargo fmt --all -- --check(docs-only change; rancargo fmt --allbefore pushing - no Cargo.toml touched)