{
  "schema_version": 1,
  "run_id": "shiki-yusuke--agent-cost-gpt-6-luna-1795655927145849644",
  "date": "2026-11-26T01:21:11.089312+00:00",
  "repo": "shiki-yusuke/agent-cost",
  "model": "gpt-6-luna",
  "kind": "repo",
  "mcp": "none",
  "commit": "1201014fe2975279b331e2fa3d9dd58e20c46c96",
  "outcome": "pass",
  "time_to_working_s": 108.52001410303637,
  "install_s": 23.314,
  "first_use_s": 33.38,
  "stuck_step": null,
  "what_failed": null,
  "suggested_fix": null,
  "what_it_did": "Run agent-cost report against the README synthetic Claude fixture",
  "needs": [],
  "needs_which": null,
  "missing": null,
  "claims": [
    {
      "kind": "claim",
      "claim": "See Claude Code and Codex CLI token usage and estimated costs from the logs already on your machine.",
      "source": "See Claude Code and Codex CLI token usage and estimated costs from the logs already on your machine.",
      "input": "examples/synthetic-claude.jsonl",
      "expected": "pricing uncertainty represented as documented",
      "command": "<guest-path> report --agent claude --since 2026-06-01 --until 2026-06-02 --format table",
      "verdict": "yes",
      "outcome": "Real input produced the expected result: Total tokens: 2,000,500   Total estimated cost: $11.2500",
      "evidence": "Total tokens: 2,000,500   Total estimated cost: $11.2500\nRates catalog: 2026-11-24  (sha256=323474652eac...)\nData quality: malformed_events=0  skipped_files=0  negative_deltas=0  unpriced_tokens=500\n",
      "cwd": "<guest-path>",
      "hardware_prerequisite": null,
      "returncode": 0,
      "stdout": " -------  -----------\n2026-06  claude  claude-opus-4-8       cache_write_unknown  1000000  1000000  0         6.2500           -        lower_bound\n2026-06  claude  claude-opus-4-8       input_nocache        1000000  1000000  0         5.0000           -        priced     \n2026-06  claude  model-not-in-catalog  input_nocache        500      0        500       0.0000           -        unpriced   \n\nTotal tokens: 2,000,500   Total estimated cost: $11.2500\nRates catalog: 2026-11-24  (sha256=323474652eac...)\nData quality: malformed_events=0  skipped_files=0  negative_deltas=0  unpriced_tokens=500\n",
      "stderr": "",
      "output_truncated": true,
      "source_checked": true,
      "source_file": "README.md"
    },
    {
      "kind": "claim",
      "claim": "**Claude Code**: every logical assistant message is one billing event, attributed to the exact model on that event (a session that switches models mid-conversation is not folded into one \"primary model\"). Claude Code's transcript writes one JSONL line per content block of the same message, and those lines are deduplicated first -- but only when a row carries a full `message.id` + `requestId` pair; a row missing either half is emitted on its own (never merged) and flagged `source_quality: \"identity_missing\"` rather than assumed billing-accurate. `identity_missing` facts are still priced and included in rows/totals; the flag is a warning, not an exclusion or an unpriced status. A message's lines don't necessarily repeat an identical `usage` block: `model` and the input-side fields (input tokens, cache read, cache-write TTL breakdown) stay the same across a message's lines, but `output_tokens` typically grows line by line as the response streams in, and intermediate lines usually lack `usage.speed` entirely (reported as mode `\"unknown\"`), with only the final line carrying a concrete mode. Within a deduplicated group, `model` or an input-side field that actually differs across the group's rows, two rows disagreeing on a *concrete* mode (`\"normal\"` vs `\"fast\"`), or an `output_tokens` value that decreases or is non-monotonic across them, is counted in `data_quality.conflicting_duplicate_groups` as a real billing disagreement -- `output_tokens` growing row by row, and mode `\"unknown\"` mixed with a single concrete mode elsewhere in the group, are both the ordinary streaming pattern just described and are not flagged, since the reader's own cross-check of real transcripts found exactly that pattern in every observed duplicated group. See `CHANGELOG.md`'s 0.2.0 entry. If the row a group adopts has no `stop_reason` (common in subagent transcripts, where a message ending in `tool_use` may never get its final line), its `output_tokens` is only the streaming head's value: the group's `output` fact is flagged `source_quality: \"output_lower_bound\"` -- the observed lower bound of that message's output tokens, not guaranteed to be >= the true count. The group's input-side facts stay `\"ok\"`, and the token amount itself is unchanged (still priced and included in rows/totals); the flag is a warning only. When Anthropic's prompt-cache TTL breakdown (5-minute vs 1-hour writes) is present in the log, it's used; otherwise the cache-write tokens are priced at the 5-minute rate as an explicit **lower bound** and flagged `lower_bound` rather than guessed at the (more expensive) 1-hour rate. Each Claude fact also carries its request's prompt length (`prompt_tokens` = `input_tokens` + `cache_read_input_tokens` + `cache_creation_input_tokens`), used only to pick the tier of a model whose price depends on prompt length (`claude-haiku-5-5`).",
      "source": "**Claude Code**: every logical assistant message is one billing event, attributed to the exact model on that event (a session that switches models mid-conversation is not folded into one \"primary model\"). Claude Code's transcript writes one JSONL line per content block of the same message, and those lines are deduplicated first -- but only when a row carries a full `message.id` + `requestId` pair; a row missing either half is emitted on its own (never merged) and flagged `source_quality: \"identity_missing\"` rather than assumed billing-accurate. `identity_missing` facts are still priced and included in rows/totals; the flag is a warning, not an exclusion or an unpriced status. A message's lines don't necessarily repeat an identical `usage` block: `model` and the input-side fields (input tokens, cache read, cache-write TTL breakdown) stay the same across a message's lines, but `output_tokens` typically grows line by line as the response streams in, and intermediate lines usually lack `usage.speed` entirely (reported as mode `\"unknown\"`), with only the final line carrying a concrete mode. Within a deduplicated group, `model` or an input-side field that actually differs across the group's rows, two rows disagreeing on a *concrete* mode (`\"normal\"` vs `\"fast\"`), or an `output_tokens` value that decreases or is non-monotonic across them, is counted in `data_quality.conflicting_duplicate_groups` as a real billing disagreement -- `output_tokens` growing row by row, and mode `\"unknown\"` mixed with a single concrete mode elsewhere in the group, are both the ordinary streaming pattern just described and are not flagged, since the reader's own cross-check of real transcripts found exactly that pattern in every observed duplicated group. See `CHANGELOG.md`'s 0.2.0 entry. If the row a group adopts has no `stop_reason` (common in subagent transcripts, where a message ending in `tool_use` may never get its final line), its `output_tokens` is only the streaming head's value: the group's `output` fact is flagged `source_quality: \"output_lower_bound\"` -- the observed lower bound of that message's output tokens, not guaranteed to be >= the true count. The group's input-side facts stay `\"ok\"`, and the token amount itself is unchanged (still priced and included in rows/totals); the flag is a warning only. When Anthropic's prompt-cache TTL breakdown (5-minute vs 1-hour writes) is present in the log, it's used; otherwise the cache-write tokens are priced at the 5-minute rate as an explicit **lower bound** and flagged `lower_bound` rather than guessed at the (more expensive) 1-hour rate. Each Claude fact also carries its request's prompt length (`prompt_tokens` = `input_tokens` + `cache_read_input_tokens` + `cache_creation_input_tokens`), used only to pick the tier of a model whose price depends on prompt length (`claude-haiku-5-5`).",
      "input": "examples/synthetic-claude.jsonl",
      "expected": "pricing uncertainty represented as documented",
      "command": "<guest-path> report --agent claude --since 2026-06-01 --until 2026-06-02 --format table",
      "verdict": "yes",
      "outcome": "Real input produced the expected result: Total tokens: 2,000,500   Total estimated cost: $11.2500",
      "evidence": "Total tokens: 2,000,500   Total estimated cost: $11.2500\nRates catalog: 2026-11-24  (sha256=323474652eac...)\nData quality: malformed_events=0  skipped_files=0  negative_deltas=0  unpriced_tokens=500\n",
      "cwd": "<guest-path>",
      "hardware_prerequisite": null,
      "returncode": 0,
      "stdout": " -------  -----------\n2026-06  claude  claude-opus-4-8       cache_write_unknown  1000000  1000000  0         6.2500           -        lower_bound\n2026-06  claude  claude-opus-4-8       input_nocache        1000000  1000000  0         5.0000           -        priced     \n2026-06  claude  model-not-in-catalog  input_nocache        500      0        500       0.0000           -        unpriced   \n\nTotal tokens: 2,000,500   Total estimated cost: $11.2500\nRates catalog: 2026-11-24  (sha256=323474652eac...)\nData quality: malformed_events=0  skipped_files=0  negative_deltas=0  unpriced_tokens=500\n",
      "stderr": "",
      "output_truncated": true,
      "source_checked": true,
      "source_file": "README.md"
    },
    {
      "kind": "claim",
      "claim": "**Prompt-length tiers need a known prompt length.** A fact whose prompt length is unknown -- every Codex fact (a delta of cumulative totals, not one request), a Claude fact from a conflicting dedup group, or a Claude row whose cache-write TTL breakdown exceeds its `cache_creation_input_tokens` -- is priced at the model's base (cheapest) tier and flagged `lower_bound`. Models without tiers are unaffected.",
      "source": "**Prompt-length tiers need a known prompt length.** A fact whose prompt length is unknown -- every Codex fact (a delta of cumulative totals, not one request), a Claude fact from a conflicting dedup group, or a Claude row whose cache-write TTL breakdown exceeds its `cache_creation_input_tokens` -- is priced at the model's base (cheapest) tier and flagged `lower_bound`. Models without tiers are unaffected.",
      "input": "examples/synthetic-claude.jsonl",
      "expected": "pricing uncertainty represented as documented",
      "command": "<guest-path> report --agent claude --since 2026-06-01 --until 2026-06-02 --format table",
      "verdict": "yes",
      "outcome": "Real input produced the expected result: Total tokens: 2,000,500   Total estimated cost: $11.2500",
      "evidence": "Total tokens: 2,000,500   Total estimated cost: $11.2500\nRates catalog: 2026-11-24  (sha256=323474652eac...)\nData quality: malformed_events=0  skipped_files=0  negative_deltas=0  unpriced_tokens=500\n",
      "cwd": "<guest-path>",
      "hardware_prerequisite": null,
      "returncode": 0,
      "stdout": " -------  -----------\n2026-06  claude  claude-opus-4-8       cache_write_unknown  1000000  1000000  0         6.2500           -        lower_bound\n2026-06  claude  claude-opus-4-8       input_nocache        1000000  1000000  0         5.0000           -        priced     \n2026-06  claude  model-not-in-catalog  input_nocache        500      0        500       0.0000           -        unpriced   \n\nTotal tokens: 2,000,500   Total estimated cost: $11.2500\nRates catalog: 2026-11-24  (sha256=323474652eac...)\nData quality: malformed_events=0  skipped_files=0  negative_deltas=0  unpriced_tokens=500\n",
      "stderr": "",
      "output_truncated": true,
      "source_checked": true,
      "source_file": "README.md"
    }
  ],
  "example_checks": [],
  "cycle_checks": [
    {
      "kind": "cycle",
      "claim": "Scheduled or looping main behavior",
      "source": "repository entry points",
      "input": "source inspection",
      "expected": "identify the product trigger",
      "verdict": "yes",
      "outcome": "Inspected the documented CLI entrypoints and package command tree; README describes finite report/export/measure/rates/doctor commands and no scheduled or looping product cycle.",
      "evidence": "Inspected the documented CLI entrypoints and package command tree; README describes finite report/export/measure/rates/doctor commands and no scheduled or looping product cycle.",
      "command": ""
    }
  ],
  "maintenance": {
    "archived": false,
    "ci_commit": "b36d02c139014492aebb58d1ea11dae5aed3c899",
    "ci_read_at": "2026-11-25T03:35:25Z",
    "ci_state": "SUCCESS",
    "commits_90d": 83,
    "last_commit_at": "2026-11-25T02:48:20Z",
    "last_release_at": "2026-11-25T03:31:44Z",
    "median_reply_hours": null,
    "merged_prs_90d": 28,
    "note": "actively maintained: last commit 0 days ago; 83 commits and 28 merged PRs in 90 days; 0 open issues, 0 open PRs; latest release 2026-11-25",
    "open_issues": 0,
    "open_prs": 0,
    "reply_share": null,
    "reply_threads": 0,
    "verdict": "maintained"
  },
  "dependencies": [
    "Python 3.9+",
    "IANA timezone data"
  ],
  "local_or_hosted": "local",
  "readme_deviations": [],
  "safety": {
    "version": "z2x-1",
    "summary": "Review signals: 4 hardcoded secret.",
    "limitations": [
      "A short run cannot establish that code is safe.",
      "Connections show IP addresses; proxies can hide the final hostname.",
      "Tracing covers dispatched commands and their children, not the whole OS; guest root can interfere with tracing."
    ]
  },
  "observed": {
    "traced": true,
    "trace_truncated": false,
    "network_rule": true,
    "unsorted_contacts": false,
    "protocols_recorded": false,
    "lookups_recorded": true,
    "unsorted_blocked_ports": [],
    "contacts": [],
    "contacts_not_listed": 0,
    "lookups": [
      {
        "owner": "installer",
        "programs": [
          "git-remote-https"
        ],
        "names": [
          "github.com"
        ]
      },
      {
        "owner": "installer",
        "programs": [
          "python3"
        ],
        "names": [
          "files.pythonhosted.org",
          "pypi.org"
        ]
      }
    ],
    "credential_reads": [],
    "outside_writes": 0,
    "download_and_run_lines": 0,
    "malware_advisories": [],
    "vulnerabilities": [],
    "secrets": 4,
    "secrets_in_tests": 0,
    "download_lines_in_tests": 0,
    "dependency_versions": 1,
    "scanned": {
      "secrets": true,
      "dependencies": true,
      "source": true
    },
    "capped_kinds": [],
    "findings_capped": false,
    "malware_checked": true,
    "scan_skips": {},
    "compiled": {
      "counts": {},
      "paths": []
    },
    "installed": {
      "packages": 3,
      "malicious": [],
      "vulnerabilities": [
        {
          "package": "pip",
          "version": "24.0",
          "advisory": "GHSA-4xh5-x5gv-qwph"
        },
        {
          "package": "pip",
          "version": "24.0",
          "advisory": "GHSA-58qw-9mgm-455v"
        },
        {
          "package": "pip",
          "version": "24.0",
          "advisory": "GHSA-6vgw-5pg2-w6jp"
        },
        {
          "package": "pip",
          "version": "24.0",
          "advisory": "GHSA-jp4c-xjxw-mgf9"
        },
        {
          "package": "pip",
          "version": "24.0",
          "advisory": "GHSA-qwm4-qh6w-59xr"
        },
        {
          "package": "pip",
          "version": "24.0",
          "advisory": "GHSA-wf93-45jw-7689"
        },
        {
          "package": "pip",
          "version": "24.0",
          "advisory": "PYSEC-2026-1795"
        },
        {
          "package": "pip",
          "version": "24.0",
          "advisory": "PYSEC-2026-1796"
        },
        {
          "package": "pip",
          "version": "24.0",
          "advisory": "PYSEC-2026-196"
        },
        {
          "package": "pip",
          "version": "24.0",
          "advisory": "PYSEC-2026-2875"
        },
        {
          "package": "pip",
          "version": "24.0",
          "advisory": "PYSEC-2026-2876"
        },
        {
          "package": "pip",
          "version": "24.0",
          "advisory": "PYSEC-2026-3721"
        }
      ]
    },
    "installed_inventory": true,
    "installed_partial": false
  },
  "platform": "linux",
  "test_version": "readme-4243f19282e59714a358f5d27849c5ebf3ef413d1667fe1ae5969f004abbb1d7",
  "touched": {
    "evidence_file": "touched.json.gz",
    "linked_files": [
      "agent-events.jsonl.gz",
      "command-output.jsonl.gz"
    ],
    "network": {
      "allowed_hosts": [
        "files.pythonhosted.org",
        "pypi.org"
      ],
      "blocked_hosts": [],
      "canary_checked": true,
      "canary_sent": false,
      "canary_sent_to": [],
      "hosts": [
        "files.pythonhosted.org",
        "pypi.org"
      ],
      "package_registries": [
        "files.pythonhosted.org",
        "pypi.org"
      ],
      "private_address_attempts": 0,
      "recorded": true,
      "repo_hosts": [],
      "unanswered_hosts": [],
      "unattributed": [],
      "hosts_withheld": 2
    },
    "secret_files": {
      "opened_by_agent": [],
      "opened_by_other": [],
      "opened_by_repo": [],
      "planted": [
        "~/.env",
        "~/.ssh/id_ed25519",
        "~/.aws/credentials",
        "~/.config/gh/hosts.yml"
      ],
      "recorded": true
    },
    "version": 1
  },
  "evidence_strength": "readme_checked"
}
