{
  "kind": "crashed",
  "product_version": "0.12.897",
  "wheel_sha256": "a9c3bf17b036c5f661df05ba4a02cf3afa834b44c2492f3e60fb3b66061a0a24",
  "method": "Published detector functions evaluated on authored inert events or disposable configuration files.",
  "scope": "No live agent, runtime adapter, daemon ingestion, product UI, external command or network action was exercised.",
  "cases": [
    {
      "case": "two-starts-in-one-minute",
      "inputs": {
        "events_newest_first": [
          {
            "event_type": "session.restarted",
            "ts": "2026-09-27T12:01:00Z",
            "data": {}
          },
          {
            "event_type": "session.started",
            "ts": "2026-09-27T12:00:00Z",
            "data": {}
          }
        ]
      },
      "expected_severity": "warning",
      "actual_severity": "warning",
      "findings": [
        {
          "kind": "crashed",
          "session_id": "claude_code:example",
          "runtime": "claude_code",
          "severity": "warning",
          "title": "claude_code restarted 2 times in 1 min",
          "detail": "This session started over 2 times in 1 min. That usually means the agent process crashed and was relaunched, or is stuck in a restart loop. Check the runtime's own logs for the exit reason. You can Stop or Pause this agent from the ClawMetry dashboard or device.",
          "evidence": {
            "restarts": 2,
            "threshold": 2,
            "window_sec": 900,
            "threshold_source": "static",
            "observed": "session.started/restarted events counted by timestamps",
            "span_sec": 60
          },
          "first_bad_step": 0,
          "spend_at_risk_usd": 0.0,
          "spend_basis": "unknown",
          "burn_rate_usd_per_min": 0.0,
          "session_cost_usd": 0.0,
          "frameworks": {
            "mapping_version": "2026-09-27.1",
            "owasp_llm": [],
            "owasp_asi": [],
            "atlas": [],
            "mapped": false,
            "mode": "detect",
            "pre_action_control": false
          }
        }
      ]
    },
    {
      "case": "single-start",
      "inputs": {
        "events_newest_first": [
          {
            "event_type": "session.started",
            "ts": "2026-09-27T12:00:00Z",
            "data": {}
          }
        ]
      },
      "expected_severity": null,
      "actual_severity": null,
      "findings": []
    }
  ]
}
