{
"_comment": "Fixtures for 13-apply-patch.yaml — agent reads then rewrites a file to modify it in-place.",
"fixtures": [
{
"_comment": "Turn 0: agent reads the file first to see its contents",
"match": { "userMessage": "patch-me.txt", "turnIndex": 0, "hasToolResult": false },
"response": {
"toolCalls": [
{
"name": "read_file",
"arguments": { "path": "patch-me.txt" }
}
]
}
},
{
"_comment": "Turn 1: after reading, agent writes the modified content back",
"match": { "userMessage": "patch-me.txt", "turnIndex": 1, "hasToolResult": true },
"response": {
"toolCalls": [
{
"name": "write_file",
"arguments": {
"path": "patch-me.txt",
"contents": "line one\nline TWO\nline three\n"
}
}
]
}
},
{
"_comment": "Turn 2: after write succeeds, agent confirms done",
"match": { "userMessage": "patch-me.txt", "turnIndex": 2, "hasToolResult": true },
"response": {
"content": "Done! Changed 'line two' to 'line TWO' in patch-me.txt."
}
}
]
}