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 inspection and compliance checks.
Instructions
Retrieve persisted SWE-Gate patch evaluation records and violation findings by evaluation_id (EVL-<16 lowercase hex chars>), or verify cryptographic SHA-256 hash-chained audit sessions in TraceKitStore by session_id (SES-...) with optional block pagination (include_blocks default true, max_blocks 1..256 default 50); at least one of evaluation_id or session_id must be provided. Use this for forensic inspection and compliance verification after running evaluate_patch or context tools.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "query_audit_ledger"
}
}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 |