Skip to content

test(processor): verify noise-floor estimation tie-break determinism#127

Merged
flexiondotorg merged 1 commit into
mainfrom
validate
Jun 16, 2026
Merged

test(processor): verify noise-floor estimation tie-break determinism#127
flexiondotorg merged 1 commit into
mainfrom
validate

Conversation

@flexiondotorg

Copy link
Copy Markdown
Contributor

Add three hermetic unit tests for the determinism tie-break in
estimateNoiseFloorAndThreshold: order-independence of candidate
set, truncation picks lowest-RMS, and boundary at threshold 0.20.
Rename seed constants roomToneCandidatePercentfloorSeedTopPercent
and roomToneCandidateMinCountfloorSeedMinCount for naming
cohesion with the live noise-floor seed (retired room-tone-candidate
election concept). Remove stale word from comment in output.go.

  Add three hermetic unit tests for the determinism tie-break in
  `estimateNoiseFloorAndThreshold`: order-independence of candidate
  set, truncation picks lowest-RMS, and boundary at threshold 0.20.
  Rename seed constants `roomToneCandidatePercent` → `floorSeedTopPercent`
  and `roomToneCandidateMinCount` → `floorSeedMinCount` for naming
  cohesion with the live noise-floor seed (retired room-tone-candidate
  election concept). Remove stale word from comment in output.go.

Signed-off-by: Martin Wimpress <code@wimpress.io>

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 3 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Auto-approved: Adds hermetic unit tests for noise-floor tie-break determinism, renames two internal constants for naming cohesion, and removes a stale word from a comment. Pure test additions and cosmetic renames — no logic or production code behavior changes.

Re-trigger cubic

@flexiondotorg flexiondotorg merged commit 56cb179 into main Jun 16, 2026
10 checks passed
@flexiondotorg flexiondotorg deleted the validate branch June 16, 2026 02:02
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.

1 participant