audit_verify
Verify integrity of the local audit log chain for compliance with SOC 2 CC7.2 and ISO 27001 A.12.4.1. Returns OK with record count or indicates a break index if tampered.
Instructions
Verify the integrity of the local audit log chain. Returns OK + record count, or BROKEN + break index when a record has been edited or the chain otherwise diverges. Produces evidence aligned with SOC 2 CC7.2 (change monitoring) and ISO 27001 A.12.4.1 (event logging) — evidence artifacts, not a certification (OpsContext is not itself SOC 2– or ISO 27001–certified; see docs/compliance/). The audit log lives at ~/.contextengine/audit.log and records every state-changing operation (learning save/delete/import, session save/delete, activation activate/deactivate) as a hash-chained JSONL line.
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": "audit_verify"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| since | No | ISO date — restrict integrity report counters to records on/after this timestamp (chain still verified end-to-end) | |
| until | No | ISO date — restrict counters to records on/before this timestamp |