Skip to content

test: cover non-numeric STT mismatch as medium misheard - #8

Merged
royalpinto007 merged 1 commit into
AgentPostmortem:mainfrom
AshSgDe29071999:test/non-numeric-misheard
Aug 11, 2026
Merged

test: cover non-numeric STT mismatch as medium misheard#8
royalpinto007 merged 1 commit into
AgentPostmortem:mainfrom
AshSgDe29071999:test/non-numeric-misheard

Conversation

@AshSgDe29071999

Copy link
Copy Markdown
Contributor

Summary

check_misheard has two branches: high misheard_number when digits/number-words differ, and medium misheard when the transcript differs but numbers still match. Only the high path was covered.

Case covered

  • STT text differs from truth while number tokens are identical (e.g. “shirt” vs “shoes” around the same “fifteen”)
  • Expects exactly one medium misheard finding and no misheard_number

Test plan

  • pytest -q → 19 passed

Fixes #2

When truth differs but extracted numbers still match, check_misheard
takes the medium `misheard` branch rather than high misheard_number.
That path had no test; pin it so a future change cannot collapse the
two severities.

Fixes #2
@royalpinto007
royalpinto007 merged commit 1e4933e into AgentPostmortem:main Aug 11, 2026
2 checks passed
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.

Add a test for an untested edge case

2 participants