verify_patch_integrity
Evaluate a proposed patch against deterministic AST anti-reward-hacking and safety rules, checking original versus patched files or a unified diff to flag unsafe or integrity-breaking changes.
Instructions
Evaluate a proposed patch (original vs patched files or unified diff) against 8 deterministic AST anti-reward-hacking & safety rules (RH001–RH008).
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": {
"original_files": "<original_files>"
},
"name": "verify_patch_integrity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unified_diff | No | Optional unified diff string applied onto original_files. | |
| patched_files | No | Mapping of {rel_path: patched_source_code}. | |
| original_files | Yes | Mapping of {rel_path: original_source_code}. | |
| max_files_touched | No | ||
| max_lines_changed | No | ||
| allow_test_modifications | No |