{
  "model_name": "test-apply-patch",
  "expects": {
    "tools_used": ["write_file", "apply_patch", "read_file"],
    "all_tools_succeeded": true,
    "min_responses": 1
  },
  "steps": [
    {
      "request_hint": { "last_user_message_contains": "patch" },
      "response": {
        "type": "tool_calls",
        "tool_calls": [
          {
            "id": "call_write_original",
            "name": "write_file",
            "arguments": {
              "path": "/tmp/ironclaw_coverage_test_apply_patch/patch_target.txt",
              "content": "Hello World\nThis is the original content.\nGoodbye World"
            }
          }
        ],
        "input_tokens": 80,
        "output_tokens": 30
      }
    },
    {
      "response": {
        "type": "tool_calls",
        "tool_calls": [
          {
            "id": "call_apply_patch",
            "name": "apply_patch",
            "arguments": {
              "path": "/tmp/ironclaw_coverage_test_apply_patch/patch_target.txt",
              "old_string": "This is the original content.",
              "new_string": "This is the PATCHED content."
            }
          }
        ],
        "input_tokens": 120,
        "output_tokens": 25
      }
    },
    {
      "response": {
        "type": "tool_calls",
        "tool_calls": [
          {
            "id": "call_read_patched",
            "name": "read_file",
            "arguments": {
              "path": "/tmp/ironclaw_coverage_test_apply_patch/patch_target.txt"
            }
          }
        ],
        "input_tokens": 150,
        "output_tokens": 15
      }
    },
    {
      "response": {
        "type": "text",
        "content": "I wrote the file, applied the patch to change 'original' to 'PATCHED', and verified the result.",
        "input_tokens": 180,
        "output_tokens": 25
      }
    }
  ]
}
