Skip to content

Locale packs for mishearing and confirmation checks - #5

Open
AshSgDe29071999 wants to merge 1 commit into
AgentPostmortem:mainfrom
AshSgDe29071999:fix/locale-packs
Open

Locale packs for mishearing and confirmation checks#5
AshSgDe29071999 wants to merge 1 commit into
AgentPostmortem:mainfrom
AshSgDe29071999:fix/locale-packs

Conversation

@AshSgDe29071999

Copy link
Copy Markdown

Summary

Mishearing and confirmation vocabularies were hardcoded English. A Spanish/Hindi call returned empty findings (looked like a pass) from the two most important checks.

  • Locale packs (voiceeval/locales/en.json, es.json) with confusable pairs + confirmation phrases
  • Interaction.language (default en); analyse(..., packs=..., locale_pack=...)
  • Missing pack → locale_unavailable high finding (fails the suite)
  • Spanish example fixture fixtures/es_misheard_call.json
  • English default behaviour preserved for existing fixtures

Test plan

  • pytest (22 tests)
  • English fixtures still catch misheard + no_confirmation
  • Unsupported language is not a silent pass
  • Custom pack + Spanish pack work

Fixes #3

Hardcoded English meant non-English calls silently returned zero findings
from the two headline checks. Ship en + es packs, allow custom packs per
suite, and report locale_unavailable (not a pass) when no pack is loaded
for the call language. English default pack keeps existing fixture behaviour.

Fixes AgentPostmortem#3
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.

The mishearing and confirmation vocabularies are hardcoded English, so a non-English call reports zero findings

1 participant