Skip to content

Commit 5f0c17b

Browse files
jonwalstedtclaude
andcommitted
docs(inference): update PiiDetectionFailureMode docstring for narrowed allow_unsafe semantics
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 8d5e461 commit 5f0c17b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • x-pack/platform/plugins/shared/inference/server/workflow_anonymization/detection

x-pack/platform/plugins/shared/inference/server/workflow_anonymization/detection/types.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ export interface PiiRegexWorkerTaskPayload {
5454
*
5555
* `block` refuses to produce a partial result, so a broken rule fails the LLM call
5656
* rather than letting the PII class it was meant to catch through unmasked.
57-
* `allow_unsafe` logs the failure and returns no matches for the entire payload.
57+
* `allow_unsafe` logs and skips each invalid rule; valid rules still run and return their matches.
58+
* Infrastructure failures (timeout, queue saturation) still return no matches for the entire payload.
5859
*/
5960
export type PiiDetectionFailureMode = 'block' | 'allow_unsafe';

0 commit comments

Comments
 (0)