apply_verified_patch
Verify a proposed fix for quantum-vulnerable crypto before applying: runs policy and blast-radius gates to approve only safe, complete patches.
Instructions
Deterministically VERIFY a proposed fix before writing it — runs the same patch-policy + verify_fix + blast-radius gates as qremediate (offline, no key, no network). Give the finding, the file's current content, and your proposed FULL corrected content; returns approved:true only if the patch is in-policy, clears the finding, adds no new finding, introduces no network/exec sink, and is bounded in size. This does NOT write the file — you write it, only when approved, and never auto-merge.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| finding | Yes | The scan finding being fixed (needs a string ruleId and location.file). | |
| newContent | Yes | Your proposed full corrected file content. | |
| originalContent | Yes | The file's current full content. |