Skip to content

Blind v8 and fixes from it (ages, document numbers, workplaces, staff-list leak) - #22

Merged
Sergei-gorlovetsky merged 2 commits into
mainfrom
fixes-from-v8
Nov 18, 2026
Merged

Sergei-gorlovetsky merged 2 commits into
mainfrom
fixes-from-v8

Conversation

@Sergei-gorlovetsky

Copy link
Copy Markdown
Contributor

Blind v8: 400 messages written by hand by four blind authors working in parallel, after a fifth agent wrote the clinic and staff files. The brief covers a Miami clinic with a Toronto office, phone typing and autocorrect, OCR of pasted screenshots, group texts on shared phones, relatives over 89, military and student coverage, and AI hand-offs. Labels were checked by two blind annotators per 100 messages plus an adjudicator, which made 16 corrections.

First score, against frozen 2a9104e (0.1.0a10), commit 83f905c:

config recall precision
regex 77.0% 79.9%
regex + known 87.2% 81.8%
regex + model 93.4% 74.8%
regex + known + model 95.4% 74.9% (86.1% with the clinic list, 88.3% adding the staff list)

These are the best first scores of any hand-written set. The weakest type was ages over 89 (43%). Hebrew was 84%.

Staff-list leak found and fixed: in "Assistant: Thank you, Beatriz", the patient's name passed because "Thank you," was read as an earlier staff-list item after the role word "Assistant". The patient shares a first name with a staff member. Earlier list items now have to be staff names themselves. The adversarial review found a second, older cue: "Hi, this is Carla speaking" passed a caller who shares a staff name. " speaking" now counts only on a staff line.

Detection fixes:

  • ages over 89 of a relative, in five languages;
  • group, referral, account and member numbers;
  • passport, permit, DBN and tracking numbers;
  • workplaces after a cue, in five languages;
  • military ranks;
  • Hebrew prefixes on dates and streets;
  • spaced-out Hebrew spelling.

Adversarial review: three independent reviewers looked for false positives, wrong spans and privacy leaks. Every claim was re-run before it counted: 13 were confirmed, and 19 were rejected as contrived or not reproducible. The 13 confirmed:

  • the employer rule matched "school is Monday", "Trabajo en Casa", Polish cities and generic Hebrew places;
  • the age rule matched "lives at 95 Elm Street" and "TSH is 100";
  • the document rule matched years and small counts;
  • "Col." (colonia) and "Cabo Verde" were treated as military ranks;
  • "א ב ג ד" (clause letters) was read as a spelled name;
  • the speaking cue passed a caller's own name.

All 13 are fixed and covered by tests. The review also found that very long letter-and-dot blobs take 1–2 s to scan; that predates this change (0.1.0a10 is the same) and is noted under known limits.

Results:

  • v8 now, with the clinic list: recall 95.1% → 98.4%.
  • v0–v8: no identifier lost.
  • v0–v7: false positives unchanged, and recall up on every set.
  • CI: a new v8 gate requires rules + known recall of at least 90% (it is 91.5% now).
  • Tests: 428 pass.

🤖 Generated with Claude Code

Sergei-gorlovetsky and others added 2 commits November 18, 2026 11:41
…gainst frozen 2a9104e (0.1.0a10)

New brief (Miami clinic with a Toronto office, phone typing and
autocorrect, OCR of pasted screenshots, group texts on shared phones,
relatives over 89, military, Medicaid and student coverage, AI hand-offs
and agent-assist summaries). Two blind annotators per 100 messages and an
adjudicator: 15 additions, 1 retype.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Sergei Gorlovetsky <136336554+Sergei-gorlovetsky@users.noreply.github.com>
… staff-list leak

Staff list: earlier items in a list must be staff names ("Assistant: Thank
you, Beatriz" passed a patient who shares a staff first name); "<Name>
speaking" counts only on a staff line, not "Hi, this is Carla speaking".

Detection: ages over 89 of a relative anywhere on the line in five
languages (not lab values, prices or street numbers); GRP group, referral,
account and member numbers with words or spaces; passport, permit, DBN and
tracking numbers (not years, dates or small counts); workplaces after a cue
(not weekdays, months, casa, cities or generic places); military ranks;
Hebrew prefixes on dates and streets; spaced Hebrew spelling.

An adversarial review (3 reviewers, every claim reproduced) found 13 real
problems in the first draft; all fixed and covered by tests.

v8 now (clinic list): 95.1 -> 98.4 recall. No identifier lost on v0-v8;
false positives unchanged on v0-v7.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Sergei Gorlovetsky <136336554+Sergei-gorlovetsky@users.noreply.github.com>
@Sergei-gorlovetsky
Sergei-gorlovetsky merged commit 1fdb4a6 into main Nov 18, 2026
4 checks passed
@Sergei-gorlovetsky
Sergei-gorlovetsky deleted the fixes-from-v8 branch November 18, 2026 16:58
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