query_audit_ledger
Retrieve SWE-Gate patch evaluation records and violation findings by evaluation_id, or verify SHA-256 hash-chained audit sessions by session_id for forensic and compliance checks.
Instructions
Retrieve persisted SWE-Gate patch evaluation records and violation findings by evaluation_id (EVL-...), or verify and inspect cryptographic SHA-256 hash-chained audit sessions in TraceKitStore by session_id (SES-...) with optional block listing (include_blocks, max_blocks). Use this for forensic inspection and compliance verification after running evaluate_patch or context tools. Pure read-only query with zero ledger mutations.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_blocks | No | Maximum number of audit blocks to return when `include_blocks` is true (1 to 256) | |
| session_id | No | TraceKit session identifier (`SES-...`) to verify SHA-256 hash chain integrity and inspect blocks | |
| evaluation_id | No | SWE-Gate evaluation identifier (`EVL-<16 lowercase hex chars>`) returned by `evaluate_patch` | |
| include_blocks | No | Whether to include individual hash-chained audit block records when querying `session_id` |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | JSON-serialized audit ledger query and cryptographic chain verification report | |
| isError | Yes | True if neither identifier was provided, parameters failed validation, or no matching audit record was found |