{
  "model_name": "test-skill-install-routine-webhook-sim",
  "expects": {
    "tools_used": ["skill_install", "routine_create", "event_emit", "routine_history"],
    "tool_results_contain": {
      "event_emit": "fired_routines"
    }
  },
  "steps": [
    {
      "response": {
        "type": "tool_calls",
        "tool_calls": [
          {
            "id": "call_skill_install_1",
            "name": "skill_install",
            "arguments": {
              "name": "wf-orchestrator-trace-install-1",
              "content": "---\nname: wf-orchestrator-trace-install-1\ndescription: Minimal workflow skill for trace install validation\nactivation:\n  keywords: [\"workflow\", \"orchestrator\"]\n---\n\nYou are a minimal workflow skill used for trace install validation.\n"
            }
          }
        ],
        "input_tokens": 120,
        "output_tokens": 32
      }
    },
    {
      "response": {
        "type": "tool_calls",
        "tool_calls": [
          {
            "id": "call_routine_create_1",
            "name": "routine_create",
            "arguments": {
              "name": "wf-webhook-sim-trace",
              "description": "Trace routine to simulate webhook event flow",
              "trigger_type": "system_event",
              "event_source": "github",
              "event_type": "issue.opened",
              "event_filters": {
                "repository": "nearai/ironclaw"
              },
              "action_type": "full_job",
              "prompt": "When issue webhook event arrives, start implementation loop and create branch/PR updates."
            }
          }
        ],
        "input_tokens": 170,
        "output_tokens": 36
      }
    },
    {
      "response": {
        "type": "tool_calls",
        "tool_calls": [
          {
            "id": "call_event_emit_1",
            "name": "event_emit",
            "arguments": {
              "event_source": "github",
              "event_type": "issue.opened",
              "payload": {
                "repository": "nearai/ironclaw",
                "issue_number": 4242,
                "sender": "trace-bot"
              }
            }
          }
        ],
        "input_tokens": 210,
        "output_tokens": 28
      }
    },
    {
      "response": {
        "type": "tool_calls",
        "tool_calls": [
          {
            "id": "call_routine_history_1",
            "name": "routine_history",
            "arguments": {
              "name": "wf-webhook-sim-trace",
              "limit": 5
            }
          }
        ],
        "input_tokens": 240,
        "output_tokens": 22
      }
    },
    {
      "response": {
        "type": "text",
        "content": "Installed the skill template, created a system-event routine, emitted a webhook-equivalent event, and verified the routine run history.",
        "input_tokens": 280,
        "output_tokens": 25
      }
    }
  ]
}
