Files
magpie/internal/redact/testdata
yetone 89a9ded2cc redact: the masking eval scores each local model (#3578)
TestMaskEval runs once per model in pii.Models, each against its own
recording (testdata/eval-model.json for Privacy Filter, the new
eval-astrlink.json for AstrLink Guard, recorded through pii with the
publisher's files), and MAGPIE_EVAL_CACHE records every model found
there. A value known to come out wrong with AstrLink Guard says so in
GuardKnown: a token count taken for a secret (#3775) and a +81 phone
neither the rules nor it find (#3776).

Rules + model: Privacy Filter 41/42 masked, 1/113 wrongly; AstrLink
Guard 41/42, 1/113. Model alone: 40/42, 47/113 and 38/42, 3/113.

Run: go test ./internal/redact at the pushed head; removing either
GuardKnown makes it red.
2026-10-27 02:01:17 +08:00
..