docs(test-support): RFC for protocol-level capture/replay harness (#1850)#3507
Merged
Conversation
) Sketches a capture/replay test harness for the test-support crate, hooking at the multiplex frame boundary to record post-decompression wire bytes and replay them deterministically. Covers capture format, capture and replay surfaces, integration points, use cases, open questions, and phased delivery. Docs only.
oferchen
added a commit
that referenced
this pull request
May 5, 2026
) (#3507) Sketches a capture/replay test harness for the test-support crate, hooking at the multiplex frame boundary to record post-decompression wire bytes and replay them deterministically. Covers capture format, capture and replay surfaces, integration points, use cases, open questions, and phased delivery. Docs only.
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/capture-replay-harness.md(425 lines), an RFC sketch for a protocol-level capture/replay test harness in thetest-supportcrate.crates/test-support/src/lib.rs(31 lines, single helper), flatgolden_protocol_v28_*.rs/golden_handshakes.rsfiles incrates/protocol/tests/, and the livetools/ci/run_interop.shharness..ocrccapture format with a versioned header and per-frame records (direction, timestamp delta, MessageCode, payload), captured post-decompression at the multiplex frame boundary, gated byOC_RSYNC_CAPTURE_PATH.Replayertype, slotting into existingRead+Writetransport seams (crates/rsync_io/src/ssh/connection.rs, daemon negotiation path).Includes
Last verified: 2026-05-01marker and explicit "RFC, sketch only. No implementation in this PR." at the top.Test plan
grepconfirmed clean).