Overview
Add property-based test ensuring byte-identical replay determinism: given the same ordered input stream, the engine produces identical execution reports and market-data messages, including sequence numbers, reject codes, and prices. Use proptest to generate random order sequences.
Context
- Files:
tests/unit/, src/orderbook/sequencer/
- Related issue: global
engine_seq monotonic across streams
- Sequencer already supports journal + replay; this test validates round-trip correctness
- Invariant:
replay(snapshot, journal) ≡ live(snapshot, orders)
Acceptance criteria
Overview
Add property-based test ensuring byte-identical replay determinism: given the same ordered input stream, the engine produces identical execution reports and market-data messages, including sequence numbers, reject codes, and prices. Use
proptestto generate random order sequences.Context
tests/unit/,src/orderbook/sequencer/engine_seqmonotonic across streamsreplay(snapshot, journal) ≡ live(snapshot, orders)Acceptance criteria
cargo clippy --all-targets --all-features -- -D warningscleancargo fmt --all --checkcleancargo test --all-featuresclean (including property tests)cargo build --releasecleanprop_replay_determinismruns 50 cases, all passsnapshots_matchoracle confirms snapshot + replayed journal match initial state