{
  "kind": "stuck_loop",
  "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": "five-identical-calls",
      "inputs": {
        "events_newest_first": [
          {
            "event_type": "tool_call",
            "ts": "2026-09-27T12:00:04Z",
            "data": {
              "tool": "Bash",
              "args": {
                "command": "git status"
              }
            }
          },
          {
            "event_type": "tool_call",
            "ts": "2026-09-27T12:00:03Z",
            "data": {
              "tool": "Bash",
              "args": {
                "command": "git status"
              }
            }
          },
          {
            "event_type": "tool_call",
            "ts": "2026-09-27T12:00:02Z",
            "data": {
              "tool": "Bash",
              "args": {
                "command": "git status"
              }
            }
          },
          {
            "event_type": "tool_call",
            "ts": "2026-09-27T12:00:01Z",
            "data": {
              "tool": "Bash",
              "args": {
                "command": "git status"
              }
            }
          },
          {
            "event_type": "tool_call",
            "ts": "2026-09-27T12:00:00Z",
            "data": {
              "tool": "Bash",
              "args": {
                "command": "git status"
              }
            }
          }
        ]
      },
      "expected_severity": "warning",
      "actual_severity": "warning",
      "findings": [
        {
          "kind": "stuck_loop",
          "session_id": "claude_code:example",
          "runtime": "claude_code",
          "severity": "warning",
          "title": "claude_code looping: 5x identical Bash calls, no progress",
          "detail": "The agent repeated the same Bash call 5 times in a row without a different action. You can Stop or Pause this agent from the ClawMetry dashboard or device.",
          "evidence": {
            "pattern": "identical",
            "tool": "Bash",
            "repeats": 5,
            "total_tool_calls": 5,
            "threshold": 3,
            "threshold_source": "static"
          },
          "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": [
              "LLM06:2026"
            ],
            "owasp_asi": [
              "ASI02"
            ],
            "atlas": [
              "AML.T0034.002"
            ],
            "mapped": true,
            "mode": "detect",
            "pre_action_control": false
          }
        }
      ]
    },
    {
      "case": "different-arguments",
      "inputs": {
        "events_newest_first": [
          {
            "event_type": "tool_call",
            "ts": "2026-09-27T12:00:07Z",
            "data": {
              "tool": "Bash",
              "args": {
                "command": "cat file7.txt"
              }
            }
          },
          {
            "event_type": "tool_call",
            "ts": "2026-09-27T12:00:06Z",
            "data": {
              "tool": "Bash",
              "args": {
                "command": "cat file6.txt"
              }
            }
          },
          {
            "event_type": "tool_call",
            "ts": "2026-09-27T12:00:05Z",
            "data": {
              "tool": "Bash",
              "args": {
                "command": "cat file5.txt"
              }
            }
          },
          {
            "event_type": "tool_call",
            "ts": "2026-09-27T12:00:04Z",
            "data": {
              "tool": "Bash",
              "args": {
                "command": "cat file4.txt"
              }
            }
          },
          {
            "event_type": "tool_call",
            "ts": "2026-09-27T12:00:03Z",
            "data": {
              "tool": "Bash",
              "args": {
                "command": "cat file3.txt"
              }
            }
          },
          {
            "event_type": "tool_call",
            "ts": "2026-09-27T12:00:02Z",
            "data": {
              "tool": "Bash",
              "args": {
                "command": "cat file2.txt"
              }
            }
          },
          {
            "event_type": "tool_call",
            "ts": "2026-09-27T12:00:01Z",
            "data": {
              "tool": "Bash",
              "args": {
                "command": "cat file1.txt"
              }
            }
          },
          {
            "event_type": "tool_call",
            "ts": "2026-09-27T12:00:00Z",
            "data": {
              "tool": "Bash",
              "args": {
                "command": "cat file0.txt"
              }
            }
          }
        ]
      },
      "expected_severity": null,
      "actual_severity": null,
      "findings": []
    }
  ]
}
