Commit 92ebc87
fix(pii): don't redact bare URLs in template redaction
buildRedactionPrompt's catch-all "similar identifiers" phrasing let the
model sweep up plain links (booking pages, docs, social) as PII, even
though a URL isn't personal data on its own. Adds an explicit carve-out
mirroring the public-figure fix (#351), plus stress-harness cases for a
bare-URL template and a URL with a genuinely embedded identifier
(mailto:) that should still be caught.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>1 parent 45ef6f7 commit 92ebc87
2 files changed
Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
425 | 425 | | |
426 | 426 | | |
427 | 427 | | |
| 428 | + | |
| 429 | + | |
428 | 430 | | |
429 | 431 | | |
430 | 432 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
127 | 145 | | |
128 | 146 | | |
129 | 147 | | |
| |||
0 commit comments