You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Flight scrubber sends names Presidio misses to the model provider #2520
The flight scrubber (openadapt_flow/flight/scrub.py and flight/pseudonym.py, PR #2493) relies on Presidio to find names. When Presidio misses a name entirely, the name is sent to the model provider unscrubbed.
A full name Presidio never tags is forwarded as is (synthetic example: "Oren Dunleavy").
When only part of a name is tagged, the untagged part is forwarded (synthetic example: the first name in "Anders ").
A name is protected only after it has been detected once somewhere else in the same run; after that, the run's pseudonym map replaces it everywhere.
Measured recall on the synthetic corpus (packages/flow/benchmark/flight/scrub_recall, seed 7, 50 records) is 97.2% to 98.0% depending on the path. Every miss is a name. The corpus and the detection patterns have the same author, so recall on real records is likely lower and is unmeasured.
This is not fixed. Until it is, scrubbed mode must not be described as keeping all names from the model.
Possible directions:
Treat the task's own record fields (P1 readiness record_* inputs) as known values and add them to the pseudonym map before the first request.
Add the record's identity values from the guard task to the map.
Measure recall on a held-out corpus written by someone other than the pattern author.
Activity