ReferenceSchemas

Capture Policy Schema

Capture policy actions, redaction rules, default pattern redaction, and redaction reports.

CapturePolicy

{
  "defaultAction": "capture",
  "rules": [
    { "path": "customer.email", "action": "mask", "reason": "PII" }
  ]
}

Actions

capture
drop
hash
mask

Current Action Behavior

ActionCurrent implementation
captureCapture after default pattern redaction.
dropReplace field with null.
hashReplace with [HASHED].
maskReplace with [REDACTED].

encrypt, artifact_only, and metadata_only are not capture policy actions in v0.3. Use explicit artifact storage and context metadata when you need those semantics.

RedactionReport

FieldMeaning
fieldsDroppedNumber of fields dropped.
fieldsMaskedNumber of fields masked.
fieldsHashedNumber of fields hashed.
patternsMatchedPattern classes detected by default redaction.

On this page