check_trace
Validate a single RECORD trace against schema, behavioral, and regulatory rules, returning pass/warn/fail status, severity counts, and violation details with citations and remediation.
Instructions
Check one RECORD trace for violations.
Runs schema conformance, behavioral rules (human oversight, escalation, temporal, provenance, integrity) and per-regulation field-gap analysis. Returns status (pass / warn / fail), counts by severity, and every violation with its JSON-pointer path, evidence, regulatory citations, and remediation. Use check_trace_chain for several traces.
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. | |
| trace | No | A RECORD trace as a JSON object (or JSON string). Omit when using `path`. | |
| 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 |
|---|---|---|---|
| index | Yes | Position of the trace in the input. | |
| counts | Yes | ||
| errors | No | Checks that crashed on this input (not violations). | |
| status | Yes | ||
| record_id | Yes | ||
| violations | Yes | ||
| schema_valid | Yes | ||
| gap_regulations | No | record-py GapAnalyzer regulations evaluated. |