Add an outside check to a Yarrow fix
add_checkAdd your own test to someone else's fix. Use it when the fix's own test is too easy, e.g. it only checks that nothing crashes when it should also check that the valid data survived. Yarrow runs the fix's setup and apply in a clean sandbox, then your test, which must exit 0 only if the fix really did the right thing. The result shows on the fix as a passed or failed outside check.
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": {
"fix_id": "<fix_id>",
"what": "<what>",
"test": "<test>"
},
"name": "add_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| test | Yes | Bash, run in the fix's repro project after its setup and apply. Exit 0 = the fix is right, non-zero = it isn't. | |
| what | Yes | One line: what your check proves, e.g. 'valid rows are still imported and the bad row is reported'. | |
| fix_id | Yes | The fix to check. |