Skip to content

Round 2: personal data first, PII recall, narrowed Tier 2, sealed-set result - #4

Merged
mohanenm merged 83 commits into
mainfrom
round-2
Nov 26, 2026
Merged

mohanenm merged 83 commits into
mainfrom
round-2

Conversation

@mohanenm

Copy link
Copy Markdown
Owner

Round 2: personal data first, better recall on hard-to-catch PII, a narrowed Tier 2, and the first sealed-set result.

Behaviour changes

  • protect: pii is the default. Personal data is redacted: names, contact details, identifiers, addresses and places, day-level dates, and sentences about someone's health, family, legal or employment situation. Business context is flagged for review instead of redacted: amounts, percentages, organisations found automatically, business topics, quarters. protect: confidential redacts business context too, and offrecord init asks which you want. Deny-list entries are always redacted.
  • Personal-topic sentences need a personal anchor: a pronoun, a person word, a name, or an event that only happens to a person. "Our cancer franchise grew" is flagged, not redacted.
  • Tier 2 is narrowed to indirect identifiers the rules missed. The guess verifier (it cost recall) and the coherence report (it flagged nothing on the real model) are removed.

Detection

New Tier 0 rules for:

  • spoken IPs and emails, multi-word passwords, read-back codes, URL paths;
  • last digits of cards and accounts, address tails;
  • ordinary-word given names next to person words;
  • indirect identifiers (people redacted, organisations flagged);
  • place names: partial names completed, more place words, places in text without capitals.

Evaluation

  • offrecord eval leads with PII recall and PII-clean transcripts, each with a 95% bootstrap interval. "Other seen" is renamed "other r/f" (redacted or flagged).
  • 40 new blind tuning transcripts (h41–h80), including a place-heavy batch.

Results (Tier 0 / Tier 1)

PII recall PII-clean transcripts
Validation 98.0% / 98.6% 80% / 86%
User set 88.2% / 89.5% 25% / 25%
  • Sealed set, opened once, against targets fixed beforehand. Tier 0 misses two of them:

    Target Tier 0 Tier 1
    PII recall 95% 93.4% 96.4%
    PII-clean transcripts 65% 46% 65%

    Almost all of Tier 0's misses are place names. It is reported as a fail in the README and on the site. The sealed set is now spent, so the next release needs a fresh one.

  • Place work done after opening it, on new tuning data only: place recall on that batch rose from 85.9% to 89.1% at Tier 0. The sealed set was not used for it.

  • Earnings-21 (real calls, never tuned on): Tier 0 PII recall 87.0%.

Checks

  • ruff check, ruff format --check, mypy, pytest (610 passed) locally
  • scripts/check_hygiene.py
  • CI on GitHub (first run on this branch)

…daction can be undone; report unchecked coherence turns
offrecord is a PII tool first. With the default protect: pii, personal data is
redacted and everything else becomes a review flag: figures, organisations found
by models or the codename pattern, business topics, and coarse dates (quarters,
fiscal years, a month or year). protect: confidential redacts business context
too. Deny-list entries and everything the name rules find always redact.

The policy runs on raw detector spans before the merger, so a flagged business
sentence never hides a name inside it from redaction. Topic terms are split into
personal (health, family and legal circumstances, an individual's employment or
conduct: always redacted) and business; Tier 1 seed sentences likewise. Pricing
and renewal terms are flags again (topics.mode mixed).

Business spans used to hide some PII gaps and false positives. Added: last digits
of cards and accounts, bare numbers of four or more digits, places listed after a
place. Fixed: figures with thousands separators taken as dictated IDs, codes like
Q3 taken as places, months, weekdays, contractions and topic vocabulary taken as
name guesses.

eval reports PII recall and the PII clean-transcript rate as the headline, and
the share of other labels that are at least flagged. init asks whether to also
hide business context.
…ddress tails, last digits, spoken emails and IPs
A health, legal or family term now needs a personal anchor in its sentence: a
pronoun, a singular person noun, or a name or description of a person. Terms
for events that only happen to a person (a PIP, divorce, a funeral) need none.
Unanchored sentences are business context: flagged under protect: pii, still
redacted under protect: confidential.
Bootstrap over transcripts with a fixed seed. Rename "other seen" to "other
r/f" (redacted or flagged) and say in the report that a flag only asks you to
look.
The LLM now sees only sentences with a person or organisation cue that the
Tier 0 indirect rules did not match, and is asked only for descriptions that
single out one person or organisation (people redacted, organisations
flagged). Remove the guess verifier, which cost recall, and the coherence
check, which flagged nothing on the real model even for all-placeholder
lines.
Lead the README and site with PII recall, PII-clean transcripts and their
intervals, describe protect: pii and protect: confidential, the indirect
identifier rules and the new Tier 2, and drop the removed guess check and
coherence report.
h61 to h80, written blind like the earlier batches: places phrased many ways,
abbreviations, multi-word names, places that are ordinary words, lower-case
speech-to-text, and near misses that must stay visible.
Redact a capitalised name whole when only part of it was found, add words that
end place names, and find places in text without capitals. On the new
place-heavy tuning batch Tier 0 place recall goes from 85.9% to 89.1%; on
Earnings-21 from 75.5% to 76.8%, with precision slightly up.
@mohanenm mohanenm changed the title Round 2 Round 2: personal data first, PII recall, narrowed Tier 2, sealed-set result Nov 26, 2026
@github-advanced-security

Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

Python 3.11 rejects unhashable dataclass defaults, and mappingproxy is only
hashable from 3.12. Also stop two NER unit tests from loading a locally
installed embedding model.
@mohanenm
mohanenm merged commit 7c50946 into main Nov 26, 2026
12 checks passed
@mohanenm
mohanenm deleted the round-2 branch November 26, 2026 18:22
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.

2 participants