check_trace_chain
Validates RECORD trace chains against per-trace and cross-trace rules, flagging duplicate record_ids, version drift, unreviewed escalations, status regressions, and SAR deadline issues.
Instructions
Check a chain of RECORD traces: every per-trace rule plus cross-trace rules.
Cross-trace rules include duplicate record_ids, agent version drift within a case, escalations closed without human review, human overrides the agent reasserted, outcome status regressions, and SAR filing deadlines. Returns the chains found, per-trace reports, chain violations, and overall status.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Path to a .json (object or array) or .jsonl file. Only available when the server runs over stdio. | |
| traces | No | RECORD traces as a JSON array (or a JSON/JSONL string). Omit when using `path`. | |
| group_by | No | How to split traces into chains. 'auto' groups by decision_lineage.case_id, falling back to investigation_thread_id; 'none' treats the whole input as one chain. | auto |
| frameworks | No | Only evaluate rules citing these framework ids (see list_frameworks), and run their field-gap analyses. Default: all rules; gap analyses chosen from each trace's authority_basis. | |
| include_gaps | No | Include per-regulation missing-field (GAP.*) violations. | |
| input_format | No | 'record' for RECORD documents, 'openinference' for OpenInference span dicts (converted with record-py's adapt_span). | record |
| min_severity | No | Drop violations below this severity. | info |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chains | Yes | ||
| counts | Yes | Totals across per-trace and chain violations. | |
| errors | No | ||
| status | Yes | ||
| traces | Yes | ||
| trace_count | Yes | ||
| chain_violations | Yes |