Verify Git Diff Integrity
mergelock_verify_diffUse when someone asks to verify a unified git diff for weakened tests, CI bypasses, assertion spoofing, permissive SQL RLS policies, leaked credentials, or unbacked PR file claims. Returns deterministic findings on every plan and embeds the signed Ed25519 receipt on Audit Vault.
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": {
"diff": "<diff>"
},
"name": "mergelock_verify_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| diff | Yes | Unified git diff string (git diff output). | |
| pr_body | No | Optional pull request description text for file-claim verification. | |
| head_sha | No | Optional commit reference associated with the local diff. | |
| repo_name | No | Optional repository identifier (blinded via HMAC-SHA256 prior to receipt chaining). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan | No | Internal plan code associated with the authenticated workspace. | |
| used | No | Validations consumed in the active metering window. | |
| error | No | Error code returned when input arguments fail structural validation. | |
| reason | No | Explanation for an error, quota hold, or non-evaluated diff state. | |
| hold_id | No | Identifier of the recorded quota-hold receipt when paywalled. | |
| receipt | No | Signed Ed25519 mergelock-receipt.v2 object on Audit Vault, or null. | |
| summary | No | Plain-English summary when a validation is held on quota. | |
| verdict | No | Integrity evaluation verdict (PASS, FAIL, or ACTION_REQUIRED). | |
| findings | No | Structured integrity findings with rule IDs, severities, files, and lines. | |
| docs_only | No | Whether every touched file in the diff is documentation-only. | |
| evaluated | No | Whether deterministic integrity checks executed against the diff. | |
| oversized | No | Whether the diff exceeded the deterministic inspection size boundary. | |
| vault_url | No | MergeLock Audit Vault capability URL for the recorded receipt or hold. | |
| receipt_id | No | Identifier of the recorded integrity receipt. | |
| repo_limit | No | Private repository slot limit on the workspace plan. | |
| duration_ms | No | Wall-clock evaluation duration in milliseconds. | |
| upgrade_url | No | Workspace plan checkout link returned when quota is exhausted. | |
| hold_receipt | No | Signed quota-hold receipt on Audit Vault workspaces, or null. | |
| quota_window | No | Metering window for the workspace plan (lifetime or monthly). | |
| changed_files | No | Number of changed file sections parsed in the unified diff. | |
| finding_count | No | Total deterministic integrity findings detected in the diff. | |
| monthly_limit | No | Validation cap for the active metering window. | |
| consumes_quota | No | Whether this diff shape counts toward workspace validation quota. | |
| quota_exceeded | No | Whether workspace validation quota was exhausted prior to evaluation. | |
| attestation_locked | No | Whether signed Ed25519 receipt export requires an Audit Vault plan. |