apply_winner
Apply a fork's diff to the local tree after re-verifying it on a clean fork, ensuring the change passes there first.
Instructions
Land one fork's diff on the local tree. First re-verifies it on a fresh clean fork (the receipt), so what lands is proven to pass somewhere other than where it was written. Returns {ok, receipt_ok}.
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": {
"session_id": "<session_id>",
"fork_id": "<fork_id>",
"repo_path": "<repo_path>"
},
"name": "apply_winner"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fork_id | Yes | ||
| test_cmd | No | pytest -q | |
| repo_path | Yes | ||
| session_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||