PII Detection Scan
dcl_evaluate_piiScan agent responses for personal data across 8 categories, from emails to crypto addresses. Any finding triggers a NO_COMMIT verdict, halting risky commits.
Instructions
POST-ACTION PII Detection Scan ($0.02). Regex-based scan across 8 personal-data categories, with a Luhn checksum on card numbers to reduce false positives. Any finding results in NO_COMMIT.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | Yes | Identifier of the agent that produced the response. | |
| response | Yes | The text to scan for personal data: emails, phone numbers, national IDs, bank cards, IBANs, crypto addresses, IP addresses, passport numbers. | |
| payment_id | No | Optional payment identifier returned by a previous call when payment is required |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tx_hash | Yes | Hash of this record in the tamper-evident audit chain. | |
| verdict | Yes | COMMIT if nothing was found, otherwise NO_COMMIT. | |
| findings | Yes | All matches found. Empty list if verdict is COMMIT. | |
| seal_text | Yes | Human-readable Leibniz Layer verification seal. | |
| timestamp | Yes | Unix timestamp when this record was sealed. | |
| input_hash | Yes | Hash of the scanned text (raw content is never stored). | |
| risk_score | Yes | 0.0-1.0 risk score based on number and severity of findings. | |
| verify_url | Yes | Public URL to independently verify this seal. | |
| chain_index | Yes | Sequential index of this record in the audit chain. | |
| detection_count | Yes | Number of findings. | |
| categories_clear | Yes | Categories with no findings. | |
| categories_checked | Yes | All checklist categories that were scanned. |