verify_narration
Audit an assistant draft reply clause-by-clause against in-memory tool receipts to flag fabricated action claims before sending; pass an empty receipts list when no tools ran.
Instructions
Audit an assistant draft reply clause-by-clause against in-memory turn receipts to flag fabricated tool-action claims, unlike verify_receipt_log and inspect_receipt which read on-disk JSONL logs. Call before sending a tool-using reply (pass receipts=[] when zero tools ran to reject any claimed side effects); do not use for RAG citation checking (use corroborate_sources) or log-file cryptography. Runs offline with zero network calls: ungrounded claims return is_valid=false with character offsets and retry_prompt rather than raising an error, whereas malformed receipt objects return isError=true.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"narration": "<narration>",
"receipts": "<receipts>"
},
"name": "verify_narration"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| receipts | Yes | Tool execution receipts for the current turn (ToolReceipt objects or AER-1 dicts; pass [] if zero tools ran). | |
| narration | Yes | Assistant reply text to audit for ungrounded tool claims. | |
| user_prompt | No | Optional user prompt for conversational context. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | Yes | Inference device used for supervision (e.g. CPU). | |
| is_valid | Yes | True when every action claim is backed by a receipt. | |
| latency_ms | Yes | Wall-clock supervision latency in milliseconds. | |
| retry_prompt | Yes | Corrective repair instruction when is_valid is false, else ''. | |
| unsupported_spans | Yes | Character-level spans for each ungrounded action claim. | |
| unsupported_claims | Yes | Verbatim assistant clauses lacking receipt support. |