{
  "calls": [
    {
      "arguments": {
        "compare": {}
      },
      "kind": "wrong_type",
      "param": "compare",
      "reply": {
        "cut": false,
        "is_error": true,
        "text": "MCP error -32602: Input validation error: Invalid arguments for tool usage_summary: Invalid input: expected \"previous\" at compare",
        "type": "result"
      },
      "tool": "usage_summary"
    },
    {
      "arguments": {},
      "kind": "missing_required",
      "param": null,
      "reply": {
        "cut": false,
        "is_error": true,
        "text": "MCP error -32602: Input validation error: Invalid arguments for tool session_usage: Invalid input: expected string, received undefined at sessionId",
        "type": "result"
      },
      "tool": "session_usage"
    },
    {
      "arguments": {
        "sessionId": {}
      },
      "kind": "wrong_type",
      "param": "sessionId",
      "reply": {
        "cut": false,
        "is_error": true,
        "text": "MCP error -32602: Input validation error: Invalid arguments for tool session_usage: Invalid input: expected string, received object at sessionId",
        "type": "result"
      },
      "tool": "session_usage"
    },
    {
      "arguments": {
        "days": "not a number"
      },
      "kind": "wrong_type",
      "param": "days",
      "reply": {
        "cut": false,
        "is_error": true,
        "text": "MCP error -32602: Input validation error: Invalid arguments for tool model_usage: Invalid input: expected number, received string at days",
        "type": "result"
      },
      "tool": "model_usage"
    },
    {
      "arguments": {
        "days": "not a number"
      },
      "kind": "wrong_type",
      "param": "days",
      "reply": {
        "cut": false,
        "is_error": true,
        "text": "MCP error -32602: Input validation error: Invalid arguments for tool client_usage: Invalid input: expected number, received string at days",
        "type": "result"
      },
      "tool": "client_usage"
    },
    {
      "arguments": {
        "days": "not a number"
      },
      "kind": "wrong_type",
      "param": "days",
      "reply": {
        "cut": false,
        "is_error": true,
        "text": "MCP error -32602: Input validation error: Invalid arguments for tool project_usage: Invalid input: expected number, received string at days",
        "type": "result"
      },
      "tool": "project_usage"
    },
    {
      "arguments": {},
      "kind": "missing_required",
      "param": null,
      "reply": {
        "cut": false,
        "is_error": true,
        "text": "MCP error -32602: Input validation error: Invalid arguments for tool usage_breakdown: Invalid input: expected array, received undefined at axes",
        "type": "result"
      },
      "tool": "usage_breakdown"
    },
    {
      "arguments": {
        "axes": "not an array"
      },
      "kind": "wrong_type",
      "param": "axes",
      "reply": {
        "cut": false,
        "is_error": true,
        "text": "MCP error -32602: Input validation error: Invalid arguments for tool usage_breakdown: Invalid input: expected array, received string at axes\nToo big: expected string to have <=3 characters at axes",
        "type": "result"
      },
      "tool": "usage_breakdown"
    },
    {
      "arguments": {
        "days": "not a number"
      },
      "kind": "wrong_type",
      "param": "days",
      "reply": {
        "cut": false,
        "is_error": true,
        "text": "MCP error -32602: Input validation error: Invalid arguments for tool counterfactual_cost: Invalid input: expected number, received string at days",
        "type": "result"
      },
      "tool": "counterfactual_cost"
    },
    {
      "arguments": {},
      "kind": "missing_required",
      "param": null,
      "reply": {
        "cut": false,
        "is_error": true,
        "text": "MCP error -32602: Input validation error: Invalid arguments for tool cache_health: Invalid input: expected string, received undefined at sessionId",
        "type": "result"
      },
      "tool": "cache_health"
    },
    {
      "arguments": {
        "sessionId": {}
      },
      "kind": "wrong_type",
      "param": "sessionId",
      "reply": {
        "cut": false,
        "is_error": true,
        "text": "MCP error -32602: Input validation error: Invalid arguments for tool cache_health: Invalid input: expected string, received object at sessionId",
        "type": "result"
      },
      "tool": "cache_health"
    },
    {
      "arguments": {
        "days": "not a number"
      },
      "kind": "wrong_type",
      "param": "days",
      "reply": {
        "cut": false,
        "is_error": true,
        "text": "MCP error -32602: Input validation error: Invalid arguments for tool usage_report: Invalid input: expected number, received string at days",
        "type": "result"
      },
      "tool": "usage_report"
    },
    {
      "arguments": {
        "includeSubagents": "not a boolean"
      },
      "kind": "wrong_type",
      "param": "includeSubagents",
      "reply": {
        "cut": false,
        "is_error": true,
        "text": "MCP error -32602: Input validation error: Invalid arguments for tool plan_usage: Invalid input: expected boolean, received string at includeSubagents",
        "type": "result"
      },
      "tool": "plan_usage"
    },
    {
      "arguments": {},
      "kind": "unknown_tool",
      "param": null,
      "reply": {
        "cut": false,
        "is_error": true,
        "text": "MCP error -32602: Tool didrun_unknown_tool not found",
        "type": "result"
      },
      "tool": "didrun_unknown_tool"
    }
  ],
  "decoys": {
    "env": [
      "AWS_ACCESS_KEY_ID",
      "AWS_SECRET_ACCESS_KEY"
    ],
    "files": [
      "/home/lab/.ssh/id_ed25519",
      "/home/lab/.aws/credentials"
    ],
    "token": "7575ce20751b4e0f8f81e2a0a6ade6d3"
  },
  "end": "completed",
  "era": "initialize",
  "files": {
    "decoys_read": [],
    "observed": true,
    "written": [
      "/home/lab/.local/share/ai-usage-mcp/usage.db-shm",
      "/home/lab/.local/share/ai-usage-mcp/usage.db-wal",
      "/home/lab/.local/share/ai-usage-mcp/usage.db",
      "/home/lab/.npm/_logs/2026-11-23T03_45_06_339Z-debug-0.log"
    ]
  },
  "format": "didrun.use_report.v1",
  "hit_time_limit": false,
  "leaks": [],
  "network": {
    "at_start": [],
    "during_calls": [],
    "observed": true
  },
  "probe_tools_listed": 12,
  "survived": true,
  "tools_listed": 12,
  "works": {
    "agent_model": "codex/gpt-6.1-terra",
    "attempts": [
      {
        "end": "answered",
        "final_cut": false,
        "final_text": "### All-time Claude Code usage\n\n| Token type | Tokens |\n|---|---:|\n| Input | 400 |\n| Output | 60 |\n| Cache read | 600 |\n| Cache write | 110 |\n| Reasoning | 0 |\n| **Total** | **1,170** |\n\nThis covers **2 records in 1 session**, including subagent usage. The cache hit rate was **84.51%**. Cost was unavailable because the recorded model had no price in the tool’s pricing table.",
        "round": 1,
        "steps": [
          {
            "arguments": {
              "client": "claude-code"
            },
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "Usage summary -- all time\nSubagent/sidechain turns: INCLUDED (2 main + 0 subagent turns).\n\nRecords: 2   Sessions: 1\nRange:   2026-01-10T12:00:00.000Z -> 2026-01-10T12:01:00.000Z\n\nTokens (all clients):\n  Input:        400\n  Output:       60\n  Cache read:   600\n  Cache write:  110\n  Reasoning:    0\n  Total:        1,170\n  Cache hit rate:    84.51%\n  Reads per write:   5.5  (1 write : 5.5 reads)\n                     Break-even is 0.28 reads per 5-minute write and 1.11 per 1-hour write, so this cache is paying for itself.\n\n  Cost unavailable for 2 record(s) (no price for that model).\n  No estimate attempted for 2 record(s) -- no price in table builtin-2026-10-23 for that model: claude-sonnet-4-5. Any $0 above covers only what was reported, not those records.\n\nBy client:\n  claude-code  --  2 records, 1 sessions\n    Input:        400\n    Output:       60\n    Cache read:   600\n    Cache write:  110\n    Reasoning:    0\n    Total:        1,170\n    Cache hit rate:    84.51%\n    Reads per write:   5.5  (1 write : 5.5 reads)\n                       Break-even is 0.28 reads per 5-minute write and 1.11 per 1-hour write, so this cache is paying for itself.\n    Cost unavailable for 2 record(s) (no price for that model).\n    No estimate attempted for 2 record(s) -- no price in table builtin-2026-10-23 for that model: claude-sonnet-4-5. Any $0 above covers only what was reported, not those records.",
              "type": "result"
            },
            "tool": "usage_summary"
          }
        ],
        "task": "r1",
        "turns": 2
      },
      {
        "end": "answered",
        "final_cut": false,
        "final_text": "### All-time Claude Code token usage\n\n| Token type | Tokens |\n|---|---:|\n| Input | 400 |\n| Output | 60 |\n| Cache read | 600 |\n| Cache write | 110 |\n| Reasoning | 0 |\n| **Total** | **1,170** |\n\nThis covers **2 records in 1 session**, including subagent activity. The cache hit rate was **84.51%**, with 5.5 reads per write.\n\nCost is unavailable because the pricing table has no rate for the recorded model, `claude-sonnet-4-5`.",
        "round": 2,
        "steps": [
          {
            "arguments": {
              "client": "claude-code"
            },
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "Usage summary -- all time\nSubagent/sidechain turns: INCLUDED (2 main + 0 subagent turns).\n\nRecords: 2   Sessions: 1\nRange:   2026-01-10T12:00:00.000Z -> 2026-01-10T12:01:00.000Z\n\nTokens (all clients):\n  Input:        400\n  Output:       60\n  Cache read:   600\n  Cache write:  110\n  Reasoning:    0\n  Total:        1,170\n  Cache hit rate:    84.51%\n  Reads per write:   5.5  (1 write : 5.5 reads)\n                     Break-even is 0.28 reads per 5-minute write and 1.11 per 1-hour write, so this cache is paying for itself.\n\n  Cost unavailable for 2 record(s) (no price for that model).\n  No estimate attempted for 2 record(s) -- no price in table builtin-2026-10-23 for that model: claude-sonnet-4-5. Any $0 above covers only what was reported, not those records.\n\nBy client:\n  claude-code  --  2 records, 1 sessions\n    Input:        400\n    Output:       60\n    Cache read:   600\n    Cache write:  110\n    Reasoning:    0\n    Total:        1,170\n    Cache hit rate:    84.51%\n    Reads per write:   5.5  (1 write : 5.5 reads)\n                       Break-even is 0.28 reads per 5-minute write and 1.11 per 1-hour write, so this cache is paying for itself.\n    Cost unavailable for 2 record(s) (no price for that model).\n    No estimate attempted for 2 record(s) -- no price in table builtin-2026-10-23 for that model: claude-sonnet-4-5. Any $0 above covers only what was reported, not those records.",
              "type": "result"
            },
            "tool": "usage_summary"
          }
        ],
        "task": "r1",
        "turns": 2
      },
      {
        "end": "answered",
        "final_cut": false,
        "final_text": "### All-time Claude Code token usage\n\n| Token type | Tokens |\n|---|---:|\n| Input | 400 |\n| Output | 60 |\n| Cache read | 600 |\n| Cache write | 110 |\n| Reasoning | 0 |\n| **Total** | **1,170** |\n\nThe recorded usage covers **2 records in 1 session**. The cache hit rate was **84.51%**, with **5.5 reads per write**.\n\nA cost estimate was unavailable because the pricing table did not have a price for the recorded model.",
        "round": 3,
        "steps": [
          {
            "arguments": {
              "client": "claude-code"
            },
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "Usage summary -- all time\nSubagent/sidechain turns: INCLUDED (2 main + 0 subagent turns).\n\nRecords: 2   Sessions: 1\nRange:   2026-01-10T12:00:00.000Z -> 2026-01-10T12:01:00.000Z\n\nTokens (all clients):\n  Input:        400\n  Output:       60\n  Cache read:   600\n  Cache write:  110\n  Reasoning:    0\n  Total:        1,170\n  Cache hit rate:    84.51%\n  Reads per write:   5.5  (1 write : 5.5 reads)\n                     Break-even is 0.28 reads per 5-minute write and 1.11 per 1-hour write, so this cache is paying for itself.\n\n  Cost unavailable for 2 record(s) (no price for that model).\n  No estimate attempted for 2 record(s) -- no price in table builtin-2026-10-23 for that model: claude-sonnet-4-5. Any $0 above covers only what was reported, not those records.\n\nBy client:\n  claude-code  --  2 records, 1 sessions\n    Input:        400\n    Output:       60\n    Cache read:   600\n    Cache write:  110\n    Reasoning:    0\n    Total:        1,170\n    Cache hit rate:    84.51%\n    Reads per write:   5.5  (1 write : 5.5 reads)\n                       Break-even is 0.28 reads per 5-minute write and 1.11 per 1-hour write, so this cache is paying for itself.\n    Cost unavailable for 2 record(s) (no price for that model).\n    No estimate attempted for 2 record(s) -- no price in table builtin-2026-10-23 for that model: claude-sonnet-4-5. Any $0 above covers only what was reported, not those records.",
              "type": "result"
            },
            "tool": "usage_summary"
          }
        ],
        "task": "r1",
        "turns": 2
      },
      {
        "end": "answered",
        "final_cut": false,
        "final_text": "### Session details\n\n**ID:** `11111111-1111-4111-8111-111111111111`  \n**Client:** Claude Code  \n**Project:** `/home/lab`  \n**Model:** `claude-sonnet-4-5`  \n**Time:** January 10, 2026, 12:00–12:01 UTC  \n**Duration:** 1 minute  \n**Turns:** 2 main-thread; 0 subagent\n\n| Token type | Count |\n|---|---:|\n| Input | 400 |\n| Output | 60 |\n| Cache read | 600 |\n| Cache write | 110 |\n| Reasoning | 0 |\n| **Total** | **1,170** |\n\n**Cost:** Unavailable for both records because the pricing table has no price for this model.",
        "round": 1,
        "steps": [
          {
            "arguments": {
              "sessionId": "11111111-1111-4111-8111-111111111111"
            },
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "Session 11111111-1111-4111-8111-111111111111\n  Client:    claude-code\n  Project:   /home/lab\n  Models:    claude-sonnet-4-5\n  Started:   2026-01-10T12:00:00.000Z\n  Ended:     2026-01-10T12:01:00.000Z\n  Duration:  1m 0s\n  Turns:     2 (2 main, 0 subagent)\n\nTokens:\n  Input:        400\n  Output:       60\n  Cache read:   600\n  Cache write:  110\n  Reasoning:    0\n  Total:        1,170\n\n  Cost unavailable for 2 record(s) (no price for that model).\n  No estimate attempted for 2 record(s) -- no price in table builtin-2026-10-23 for that model: claude-sonnet-4-5. Any $0 above covers only what was reported, not those records.",
              "type": "result"
            },
            "tool": "session_usage"
          }
        ],
        "task": "r2",
        "turns": 2
      },
      {
        "end": "answered",
        "final_cut": false,
        "final_text": "### Session details\n\n**Session:** `11111111-1111-4111-8111-111111111111`  \n**Client:** Claude Code  \n**Project:** `/home/lab`  \n**Model:** `claude-sonnet-4-5`  \n**Time:** January 10, 2026, 12:00–12:01 UTC  \n**Duration:** 1 minute  \n**Turns:** 2 main-thread turns; no subagent turns\n\n| Token type | Count |\n|---|---:|\n| Input | 400 |\n| Output | 60 |\n| Cache read | 600 |\n| Cache write | 110 |\n| Reasoning | 0 |\n| **Total** | **1,170** |\n\n**Cost is unavailable:** The pricing table had no price for this model, so neither record was estimated.",
        "round": 2,
        "steps": [
          {
            "arguments": {
              "sessionId": "11111111-1111-4111-8111-111111111111"
            },
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "Session 11111111-1111-4111-8111-111111111111\n  Client:    claude-code\n  Project:   /home/lab\n  Models:    claude-sonnet-4-5\n  Started:   2026-01-10T12:00:00.000Z\n  Ended:     2026-01-10T12:01:00.000Z\n  Duration:  1m 0s\n  Turns:     2 (2 main, 0 subagent)\n\nTokens:\n  Input:        400\n  Output:       60\n  Cache read:   600\n  Cache write:  110\n  Reasoning:    0\n  Total:        1,170\n\n  Cost unavailable for 2 record(s) (no price for that model).\n  No estimate attempted for 2 record(s) -- no price in table builtin-2026-10-23 for that model: claude-sonnet-4-5. Any $0 above covers only what was reported, not those records.",
              "type": "result"
            },
            "tool": "session_usage"
          }
        ],
        "task": "r2",
        "turns": 2
      },
      {
        "end": "answered",
        "final_cut": false,
        "final_text": "### Session details\n\n**Session:** `11111111-1111-4111-8111-111111111111`  \n**Client:** Claude Code  \n**Project:** `/home/lab`  \n**Model:** `claude-sonnet-4-5`  \n**Time:** January 10, 2026, 12:00–12:01 UTC  \n**Duration:** 1 minute  \n**Turns:** 2 main-thread turns; no subagent turns\n\n| Token type | Count |\n|---|---:|\n| Input | 400 |\n| Output | 60 |\n| Cache read | 600 |\n| Cache write | 110 |\n| Reasoning | 0 |\n| **Total** | **1,170** |\n\n**Cost is unavailable:** the pricing table had no price for this model, so neither record was estimated.",
        "round": 3,
        "steps": [
          {
            "arguments": {
              "sessionId": "11111111-1111-4111-8111-111111111111"
            },
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "Session 11111111-1111-4111-8111-111111111111\n  Client:    claude-code\n  Project:   /home/lab\n  Models:    claude-sonnet-4-5\n  Started:   2026-01-10T12:00:00.000Z\n  Ended:     2026-01-10T12:01:00.000Z\n  Duration:  1m 0s\n  Turns:     2 (2 main, 0 subagent)\n\nTokens:\n  Input:        400\n  Output:       60\n  Cache read:   600\n  Cache write:  110\n  Reasoning:    0\n  Total:        1,170\n\n  Cost unavailable for 2 record(s) (no price for that model).\n  No estimate attempted for 2 record(s) -- no price in table builtin-2026-10-23 for that model: claude-sonnet-4-5. Any $0 above covers only what was reported, not those records.",
              "type": "result"
            },
            "tool": "session_usage"
          }
        ],
        "task": "r2",
        "turns": 2
      },
      {
        "end": "answered",
        "final_cut": false,
        "final_text": "**claude-sonnet-4-5** used the most tokens across all time: **1,170 tokens**, including subagent turns.",
        "round": 1,
        "steps": [
          {
            "arguments": {
              "limit": 1,
              "sort": "tokens"
            },
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "Usage by model -- all time\nSubagent/sidechain turns: INCLUDED.\n\nclaude-sonnet-4-5  --  2 records, 1 sessions\n  Input:        400\n  Output:       60\n  Cache read:   600\n  Cache write:  110\n  Reasoning:    0\n  Total:        1,170\n  Cost unavailable for 2 record(s) (no price for that model).\n  No estimate attempted for 2 record(s) -- no price in table builtin-2026-10-23 for that model: claude-sonnet-4-5. Any $0 above covers only what was reported, not those records.\n\nTotal across 1 model(s): 1,170 tokens\nShowing 1 of 1 models (offset 0), sorted by tokens.",
              "type": "result"
            },
            "tool": "model_usage"
          }
        ],
        "task": "r3",
        "turns": 2
      },
      {
        "end": "answered",
        "final_cut": false,
        "final_text": "**claude-sonnet-4-5** used the most tokens across all time: **1,170 tokens**, including subagent turns.\n\nThat total comprises 400 input, 60 output, 600 cache-read, and 110 cache-write tokens. Cost was unavailable because the pricing table had no price for this model.",
        "round": 2,
        "steps": [
          {
            "arguments": {
              "limit": 1,
              "sort": "tokens"
            },
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "Usage by model -- all time\nSubagent/sidechain turns: INCLUDED.\n\nclaude-sonnet-4-5  --  2 records, 1 sessions\n  Input:        400\n  Output:       60\n  Cache read:   600\n  Cache write:  110\n  Reasoning:    0\n  Total:        1,170\n  Cost unavailable for 2 record(s) (no price for that model).\n  No estimate attempted for 2 record(s) -- no price in table builtin-2026-10-23 for that model: claude-sonnet-4-5. Any $0 above covers only what was reported, not those records.\n\nTotal across 1 model(s): 1,170 tokens\nShowing 1 of 1 models (offset 0), sorted by tokens.",
              "type": "result"
            },
            "tool": "model_usage"
          }
        ],
        "task": "r3",
        "turns": 2
      },
      {
        "end": "answered",
        "final_cut": false,
        "final_text": "**claude-sonnet-4-5** used the most tokens across all time: **1,170 tokens**, including subagent turns. This comprised 400 input, 60 output, 600 cache-read, and 110 cache-write tokens.",
        "round": 3,
        "steps": [
          {
            "arguments": {
              "limit": 1,
              "sort": "tokens"
            },
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "Usage by model -- all time\nSubagent/sidechain turns: INCLUDED.\n\nclaude-sonnet-4-5  --  2 records, 1 sessions\n  Input:        400\n  Output:       60\n  Cache read:   600\n  Cache write:  110\n  Reasoning:    0\n  Total:        1,170\n  Cost unavailable for 2 record(s) (no price for that model).\n  No estimate attempted for 2 record(s) -- no price in table builtin-2026-10-23 for that model: claude-sonnet-4-5. Any $0 above covers only what was reported, not those records.\n\nTotal across 1 model(s): 1,170 tokens\nShowing 1 of 1 models (offset 0), sorted by tokens.",
              "type": "result"
            },
            "tool": "model_usage"
          }
        ],
        "task": "r3",
        "turns": 2
      }
    ],
    "none_because": null,
    "tasks": [
      {
        "done_when": "usage_summary reply identifies claude-code and shows input 400, output 60, cache-read 600 and cache-write 110; cost is estimated or unavailable, not reported.",
        "id": "r1",
        "task": "Summarize all-time Claude Code token usage, broken down by token type."
      },
      {
        "done_when": "session_usage reply identifies that session and claude-sonnet-4-5, with input 400, output 60, cache-read 600 and cache-write 110.",
        "id": "r2",
        "task": "Show details for session 11111111-1111-4111-8111-111111111111."
      },
      {
        "done_when": "model_usage reply identifies claude-sonnet-4-5 with 1170 total tokens, consisting of the fixture's two requests.",
        "id": "r3",
        "task": "Which model used the most tokens across all time?"
      }
    ],
    "tasks_file_sha256": "1605866b1ac9852dfc390e535207bb25de5e829a5c2eb25b25c983b5b04220ba",
    "writer": "codex/gpt-6.1-terra"
  }
}
