ait_verify_fix
Re-runs 13 AST rules on a candidate patch and diffs the result against the unmodified file on disk to confirm the target defect is fixed and no regressions were introduced.
Instructions
Re-run the 13-rule catalog over a candidate source string and diff the result against the file as it currently exists on disk: returns resolved, introduced, remaining_defects, regression and clean. USE WHEN: you have a proposed patch for a file that is still unmodified on disk, to prove the target finding is gone and nothing new appeared. DO NOT USE: after writing the patch — the baseline would then equal the candidate and the diff is meaningless — or as a semantic proof; this is AST re-verification of 13 rules, not correctness.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Unmodified baseline file on disk, e.g. src/ait/engine.py. | |
| candidate_code | Yes | Full replacement source text (not a diff), e.g. 'def f(x):\n return x\n'. |