spike(rust/cli): wire CLI binary and fixture round-trip test (#99) - #106
Merged
Conversation
Implements load_wav_samples, main.rs CLI, and fixture_roundtrip test. Rust lag matches JS baseline exactly: -6.8s, snr 9.815, 19/19 tests pass. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
PIL font data in .venv contains base64 that matches the sk-* pattern. .venv is a Python virtualenv — not source, not scannable for secrets. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Member
|
All test passed! Technically |
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
load_wav_samplestolib.rs— reads 16-bit PCM or float WAV viahound, normalises to[-1.0, 1.0]src/main.rsCLI:audio-sync <ref.wav> <target.wav>→lag: -6.800000s snr: 9.815; prints[LOW CONFIDENCE]when SNR < 3.0; all errors propagated gracefully (no unwrap/expect in main)fixture_roundtriptest: loads committed fixture WAVs +baseline.json, runs the full Rust pipeline, asserts lag matches JS baseline to ±1 sample at 8 kHzserde+serde_jsontoCargo.tomlfor baseline JSON parsing--exclude-dir=.venvso PIL font binary data in.venvdoesn't trip thesk-*patternTest plan
cargo test— 19/19 pass (18 prior +fixture_roundtrip)fixture_roundtrip— Rust lag-6.8smatches JS baselinelagSeconds: -6.8exactly (well within ±1 sample)lag: -6.800000s snr: 9.815— reliable, no[LOW CONFIDENCE]npm test— 266/268 pass (2 pre-existing skips, unrelated to spike)Closes #99
🤖 Generated with Claude Code