|
131 | 131 | "warnings": [] |
132 | 132 | } |
133 | 133 | }, |
134 | | - "redact-hash": { |
135 | | - "classification": "behavioral-fix", |
136 | | - "reason": "PY-M7 emits the complete chosen digest and supports keyed HMAC.", |
137 | | - "expected": { |
138 | | - "value": { |
139 | | - "result_type": "RedactResult", |
140 | | - "fields": { |
141 | | - "redacted_text": "[EMAIL_08168cd80dfd534ab0f10af10f1303fe00af2d43ab5c1432360d137f8197e17a] [EMAIL_e8f39b3e1382367d6d41ab34dc270d4e7533f978c9e9a775dfe2185b2f96b96c] [EMAIL_08168cd80dfd534ab0f10af10f1303fe00af2d43ab5c1432360d137f8197e17a] [SSN_01a54629efb952287e554eb23ef69c52097a75aecc0e3a93ca0855ab6d7a31a0]", |
142 | | - "mapping": { |
143 | | - "[EMAIL_08168cd80dfd534ab0f10af10f1303fe00af2d43ab5c1432360d137f8197e17a]": "a@example.com", |
144 | | - "[EMAIL_e8f39b3e1382367d6d41ab34dc270d4e7533f978c9e9a775dfe2185b2f96b96c]": "b@example.com", |
145 | | - "[SSN_01a54629efb952287e554eb23ef69c52097a75aecc0e3a93ca0855ab6d7a31a0]": "123-45-6789" |
146 | | - }, |
147 | | - "entities": [ |
148 | | - { |
149 | | - "result_type": "Entity", |
150 | | - "fields": { |
151 | | - "type": "EMAIL", |
152 | | - "text": "a@example.com", |
153 | | - "start": 0, |
154 | | - "end": 13, |
155 | | - "confidence": 1.0, |
156 | | - "engine": "regex" |
157 | | - } |
158 | | - }, |
159 | | - { |
160 | | - "result_type": "Entity", |
161 | | - "fields": { |
162 | | - "type": "EMAIL", |
163 | | - "text": "b@example.com", |
164 | | - "start": 14, |
165 | | - "end": 27, |
166 | | - "confidence": 1.0, |
167 | | - "engine": "regex" |
168 | | - } |
169 | | - }, |
170 | | - { |
171 | | - "result_type": "Entity", |
172 | | - "fields": { |
173 | | - "type": "EMAIL", |
174 | | - "text": "a@example.com", |
175 | | - "start": 28, |
176 | | - "end": 41, |
177 | | - "confidence": 1.0, |
178 | | - "engine": "regex" |
179 | | - } |
180 | | - }, |
181 | | - { |
182 | | - "result_type": "Entity", |
183 | | - "fields": { |
184 | | - "type": "SSN", |
185 | | - "text": "123-45-6789", |
186 | | - "start": 42, |
187 | | - "end": 53, |
188 | | - "confidence": 1.0, |
189 | | - "engine": "regex" |
190 | | - } |
191 | | - } |
192 | | - ] |
193 | | - } |
194 | | - }, |
195 | | - "warnings": [] |
196 | | - } |
197 | | - }, |
198 | | - "engine-redact-hash": { |
199 | | - "classification": "behavioral-fix", |
200 | | - "reason": "PY-M7 emits the complete chosen digest and supports keyed HMAC.", |
201 | | - "expected": { |
202 | | - "value": { |
203 | | - "result_type": "RedactResult", |
204 | | - "fields": { |
205 | | - "redacted_text": "[EMAIL_08168cd80dfd534ab0f10af10f1303fe00af2d43ab5c1432360d137f8197e17a] [EMAIL_e8f39b3e1382367d6d41ab34dc270d4e7533f978c9e9a775dfe2185b2f96b96c] [EMAIL_08168cd80dfd534ab0f10af10f1303fe00af2d43ab5c1432360d137f8197e17a]", |
206 | | - "mapping": { |
207 | | - "[EMAIL_08168cd80dfd534ab0f10af10f1303fe00af2d43ab5c1432360d137f8197e17a]": "a@example.com", |
208 | | - "[EMAIL_e8f39b3e1382367d6d41ab34dc270d4e7533f978c9e9a775dfe2185b2f96b96c]": "b@example.com" |
209 | | - }, |
210 | | - "entities": [ |
211 | | - { |
212 | | - "result_type": "Entity", |
213 | | - "fields": { |
214 | | - "type": "EMAIL", |
215 | | - "text": "a@example.com", |
216 | | - "start": 0, |
217 | | - "end": 13, |
218 | | - "confidence": 1.0, |
219 | | - "engine": "regex" |
220 | | - } |
221 | | - }, |
222 | | - { |
223 | | - "result_type": "Entity", |
224 | | - "fields": { |
225 | | - "type": "EMAIL", |
226 | | - "text": "b@example.com", |
227 | | - "start": 14, |
228 | | - "end": 27, |
229 | | - "confidence": 1.0, |
230 | | - "engine": "regex" |
231 | | - } |
232 | | - }, |
233 | | - { |
234 | | - "result_type": "Entity", |
235 | | - "fields": { |
236 | | - "type": "EMAIL", |
237 | | - "text": "a@example.com", |
238 | | - "start": 28, |
239 | | - "end": 41, |
240 | | - "confidence": 1.0, |
241 | | - "engine": "regex" |
242 | | - } |
243 | | - } |
244 | | - ] |
245 | | - } |
246 | | - }, |
247 | | - "warnings": [] |
248 | | - } |
249 | | - }, |
250 | | - "preset-hash": { |
251 | | - "classification": "behavioral-fix", |
252 | | - "reason": "PY-M7 emits the complete chosen digest and supports keyed HMAC.", |
253 | | - "expected": { |
254 | | - "value": { |
255 | | - "result_type": "RedactResult", |
256 | | - "fields": { |
257 | | - "redacted_text": "[EMAIL_ff8d9819fc0e12bf0d24892e45987e249a28dce836a85cad60e28eaaa8c6d976]", |
258 | | - "mapping": { |
259 | | - "[EMAIL_ff8d9819fc0e12bf0d24892e45987e249a28dce836a85cad60e28eaaa8c6d976]": "alice@example.com" |
260 | | - }, |
261 | | - "entities": [ |
262 | | - { |
263 | | - "result_type": "Entity", |
264 | | - "fields": { |
265 | | - "type": "EMAIL", |
266 | | - "text": "alice@example.com", |
267 | | - "start": 0, |
268 | | - "end": 17, |
269 | | - "confidence": 1.0, |
270 | | - "engine": "regex" |
271 | | - } |
272 | | - } |
273 | | - ] |
274 | | - } |
275 | | - }, |
276 | | - "warnings": [] |
277 | | - } |
278 | | - }, |
279 | 134 | "explicit-invalid-bounds": { |
280 | 135 | "classification": "validation-difference", |
281 | 136 | "reason": "PY-L7 rejects malformed explicit spans rather than silently skipping them.", |
|
495 | 350 | } |
496 | 351 | }, |
497 | 352 | "process-hash": { |
498 | | - "classification": "behavioral-fix", |
499 | | - "reason": "PY-M7 replaces legacy truncated MD5 with the complete selected digest; PY-L3 updates the retirement notice.", |
| 353 | + "classification": "diagnostic-difference", |
| 354 | + "reason": "PY-L3 retirement notices identify the current release. Legacy default MD5 and its eight-character prefix remain compatible; explicit algorithms and keyed HMAC are additional options.", |
500 | 355 | "expected": { |
501 | 356 | "value": { |
502 | 357 | "original": "alice@example.com", |
|
508 | 363 | "end": 17 |
509 | 364 | } |
510 | 365 | ], |
511 | | - "anonymized": "[EMAIL_ff8d9819fc0e12bf0d24892e45987e249a28dce836a85cad60e28eaaa8c6d976]" |
| 366 | + "anonymized": "[EMAIL_c160f8cc]" |
512 | 367 | }, |
513 | 368 | "warnings": [ |
514 | 369 | { |
|
569 | 424 | }, |
570 | 425 | "public-signatures": { |
571 | 426 | "classification": "signature-addition", |
572 | | - "reason": "PY-M7 adds keyword-only hash_type/hash_key; TextService custom models use the engine gliner_model keyword; backend remains keyword-only.", |
| 427 | + "reason": "PY-M7 adds keyword-only hash_type/hash_key while preserving existing unkeyed output widths and omitted legacy hash defaults; TextService custom models use the engine gliner_model keyword; backend remains keyword-only.", |
573 | 428 | "expected": { |
574 | 429 | "value": { |
575 | 430 | "datafog:scan": { |
|
762 | 617 | "name": "hash_type", |
763 | 618 | "kind": "KEYWORD_ONLY", |
764 | 619 | "required": false, |
765 | | - "default": "sha256" |
| 620 | + "default": null |
766 | 621 | }, |
767 | 622 | { |
768 | 623 | "name": "hash_key", |
|
1112 | 967 | }, |
1113 | 968 | "warnings": [] |
1114 | 969 | } |
1115 | | - }, |
1116 | | - "anonymize-text-hash": { |
1117 | | - "classification": "behavioral-fix", |
1118 | | - "reason": "PY-M7 emits the complete chosen digest rather than a truncated unsalted token.", |
1119 | | - "expected": { |
1120 | | - "value": "[EMAIL_ff8d9819fc0e12bf0d24892e45987e249a28dce836a85cad60e28eaaa8c6d976]", |
1121 | | - "warnings": [] |
1122 | | - } |
1123 | 970 | } |
1124 | 971 | } |
1125 | 972 | } |
0 commit comments