Skip to content

fix(checks): catch digit-level confusions on account numbers - #6

Open
AshSgDe29071999 wants to merge 1 commit into
AgentPostmortem:mainfrom
AshSgDe29071999:fix/digit-level-confusions
Open

fix(checks): catch digit-level confusions on account numbers#6
AshSgDe29071999 wants to merge 1 commit into
AgentPostmortem:mainfrom
AshSgDe29071999:fix/digit-level-confusions

Conversation

@AshSgDe29071999

Copy link
Copy Markdown

Summary

Mis-hearing checks covered the classic -teen/-ty amount pairs, but the confusions that cost the most on a real phone line are digit and letter swaps on account numbers, card readbacks, and reference codes.

  • Extend _CONFUSABLE with oh/zero, a/eight, to/too/two, double-digit phrasing, and narrowband letter pairs (B/D/E/P/T/V/Z), each with an acoustic rationale comment
  • Include zero/oh in numeric token extraction
  • Flag confusable swaps as high-severity misheard_number
  • Add fixtures/misheard_account_number.json (oh vs zero on an account number)
  • Guard that good_call.json still produces zero findings

Test plan

  • pytest -q (20 passed)

Fixes #4

Expand confusable pairs beyond -teen/-ty with oh/zero, a/eight, to/two,
double-digit readbacks, and narrowband letter swaps. Treat confusable
swaps as high-severity misheard_number and pin an account-number fixture.

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

Digit-level confusions are missing, and those are the ones on card and account numbers

1 participant