credence_scan
Scan model output for numeric literals matching unverified constraints and annotate them as stale or unverified to prevent writes with uncertain values.
Instructions
Generation-Time Constraint Scanner (CP3): scan model output for numeric literals that match registered unverified constraints.
Two annotation tiers (no confidence scores — unknown = unverified): ⚠⚠ CREDENCE[stale] — source="temporal_scan" (structurally stale values) ⚠ CREDENCE[unverified] — all other registered constraints
Scans both code blocks and prose.
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": {
"output_text": "<output_text>",
"session_id": "<session_id>"
},
"name": "credence_scan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | Session whose constraints to check against. | |
| output_text | Yes | Raw model output to scan. | |
| current_turn | No | Turn number for confidence decay (default 0). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||