Baseline Safety Check
dcl_evaluate_safetyAssess an AI response for safety by checking the required 'AI' disclosure and absence of two forbidden disclaimer phrases; returns NO_COMMIT if confidence falls below 0.75.
Instructions
PRE-ACTION Baseline Safety Check ($0.01). Runs the "safety" policy: flags 2 forbidden disclaimers ("I cannot be held responsible", "no guarantees") and additionally REQUIRES the substring "AI" to appear somewhere in the response — missing it costs 0.2 confidence even with no forbidden phrase present. Minimum confidence is 0.75. Returns NO_COMMIT if confidence drops below 0.75, with reason naming the forbidden phrase found or the missing required pattern. Use this when you specifically need to confirm an AI-disclosure marker is present and the two disclaimer phrases are absent — not as a general-purpose safety net; for broader coverage use dcl_evaluate_fast or dcl_evaluate_strict instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | Yes | Identifier of the agent that produced the response. | |
| response | Yes | The agent or LLM response text to check for safety violations. | |
| payment_id | No | Optional payment identifier returned by a previous call when payment is required |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | Yes | Human-readable explanation of why the verdict was reached. | |
| tx_hash | Yes | Hash of this record in the tamper-evident audit chain. | |
| verdict | Yes | COMMIT if the response passed policy checks, otherwise NO_COMMIT. | |
| seal_text | Yes | Human-readable Leibniz Layer verification seal. | |
| timestamp | Yes | Unix timestamp when this record was sealed. | |
| confidence | Yes | Confidence score of the verdict, from 0.0 to 1.0. | |
| drift_mode | Yes | Current drift status: NORMAL, WARNING, ESCALATION, or BLOCK. | |
| input_hash | Yes | Hash of the evaluated response (raw content is never stored). | |
| verify_url | Yes | Public URL to independently verify this seal. | |
| chain_index | Yes | Sequential index of this record in the audit chain. | |
| drift_score | Yes | Z-score measuring deviation of the recent commit rate from baseline. | |
| policy_version | Yes | Version of the policy that was applied. |