Skip to content

Partner practice news passes the privacy check (business clauses after she/he/they) - #154

Merged
itennell merged 5 commits into
mainfrom
claude/partner-business-clauses
Nov 4, 2026
Merged

itennell merged 5 commits into
mainfrom
claude/partner-business-clauses

Conversation

@itennell

@itennell itennell commented Nov 4, 2026

Copy link
Copy Markdown
Owner

Follow-up to #153. 18 of 20 harmless partner lines were refused ("email Lisa, she moved her practice to Evanston").

Change (lib/aeon/guard.ts, positive only)

  • PRACTICE_NEWS: after she/he/they, a fixed business clause, then ONLY time/place words (next week, in January, to Evanston, on Thursdays), then the clause end. Clauses: opened/moved/hiring/starting/leaving/switching + practice/group/office/program; hiring a new associate; on vacation; out until ; asked for my brochure/fee sheet/NPI/availability/card; has/got openings; takes ; presenting at ; co-lead/lead/host a workshop; mentioned a new group/IOP/program; sees a lot of referrals.
  • Field words (perinatal, anxiety, grief, oncology...) count only inside the "sees a lot of ... referrals" frame; the frame is read as plain referral talk before the health checks. Anywhere else they still refuse.
  • IOP, PHP, lunch-and-learn, associate, brochure, NPI, sliding scale, EHR, conference as business nouns; DBT/CBT/teen/second... as modifiers; lunch-and-learn and IOP in REFERRAL_CONTEXT.

Tests (real NER, no stubs)

  • tests/fixtures/partner-first-names.ts: ROUND3_MUST_PASS (17 lines, incl. all 9 required) and ROUND3_MUST_REFUSE (22: smuggles aimed at the new clauses like "he's on vacation in rehab", "she moved her practice because of her breakdown", plus "she's been suicidal lately", "she's 17", "out of the psych ward", "has openings since his divorce", "sees ... for her own PTSD").
  • guard-partner-first-names: 195 passed; guard suites 991 passed.
  • Full suite: 4200 passed, 0 failed (one earlier run had a files.test.ts lease test fail once; it passes alone and on rerun).
  • tsc, eslint, gitleaks clean. No migrations.

🤖 Generated with Claude Code

itennell and others added 5 commits November 3, 2026 20:53
…they

Fixed business phrases (opened/moved/hiring + practice, on vacation, out until,
asked for my brochure/NPI, has openings, takes a payer, presenting at, co-lead
a workshop, mentioned a new group/IOP, sees a lot of <field> referrals) followed
only by time and place words. Field words count only in the sees-referrals
frame. lunch-and-learn and IOP are business words. 22 smuggles as tests.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… on her words

Root cause of the CI flake: a random approval_id's hex digits matched the phone
pattern (~0.5%), so plan_referral_meeting's full-rules tool result was withheld.
normalizeForCheck reads UUIDs as [id]. businessOnly/PERSONAL_MATTER/next-sentence
rules now run only at message and memory (herWords), not on code-built results.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Name-finder hits lose weekday/month words at their ends (Mon-Sun, Tue/Tues,
Thu/Thur/Thurs, Feb-Dec abbreviations, Sept); month names that are also first
names (Jan, May, June, April...) only next to a day number or weekday. Applied
to every name-finder read in the guard, so replies and tool results keep times.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Capitalized January..December (not a date: no day number, no weekday or
in/until/next before it, not 'May I') in a client-like, personal-matter or
health sentence refuses at message and memory.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@itennell
itennell merged commit 3f08601 into main Nov 4, 2026
4 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.

1 participant