canon_diff
Compares before and after AuditReports to report per-R movement (fixed, regressed, unchanged) and hashes, verifying an edit improved compliance without regressing other invariants.
Instructions
Canon — diff two AuditReports (before / after) and return per-R movement (fixed, regressed, unchanged) plus before/after hashes. Use to verify that an edit improved Canon compliance without regressing other invariants. Reference: ivd/canon_layer.md §Audit diff.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"before": "<before>",
"after": "<after>"
},
"name": "canon_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | Yes | AuditReport from canon_check on the revised text. | |
| before | Yes | AuditReport from canon_check on the original text. |