Skip to content

os-app: always-on deterministic sound-regression ledger - #465

Merged
ItsAlphaNeon merged 1 commit into
mainfrom
sound-regression-ledger
Dec 1, 2026
Merged

ItsAlphaNeon merged 1 commit into
mainfrom
sound-regression-ledger

Conversation

@thacer13

Copy link
Copy Markdown
Collaborator

Adds a fast (~0.05 s), always-on sound-regression ledger (crates/os-app/src/sound_ledger.rs) that runs on every cargo test with zero external files or environment variables:

  • Self-contained musical scenarios: renders Lemon Trio chord (trio_chord), Citrus through Lemon Parametric EQ → Lemon Reverb → Lemon Delay → Lemon Soft Clipper → Lemon Limiter (citrus_fx_chain), and hard-panned stereo channels sending to a shared reverb bus (sends_and_panning).
  • Objective audio fingerprints: checks finite output, headroom bounds, stereo RMS dBFS, stereo Peak dBFS, and high-frequency energy balance within ±0.08 dB of locked golden figures.
  • Determinism & multicore parity: verifies bit-for-bit repeatability across fresh renders and bit-for-bit equality between single-core and multi-core (os_engine::parallel::Pool) engine runs.
  • Intentional updates: set OS_LEDGER_PRINT=1 to print updated baselines when making an intentional DSP change.

Verification

  • cargo test --locked -p os-app sound_ledger — 2 passed, 0 failed in 0.05 s.

@ItsAlphaNeon
ItsAlphaNeon merged commit aed16d0 into main Dec 1, 2026
3 checks passed
@ItsAlphaNeon
ItsAlphaNeon deleted the sound-regression-ledger branch December 1, 2026 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants