{
  "schema_version": 1,
  "run_id": "javaisbetterthanpython--codex-usage-claude-haiku-5-5-1794976295809325741",
  "date": "2026-11-18T04:33:34.614981+00:00",
  "repo": "javaisbetterthanpython/codex-usage",
  "model": "claude-haiku-5-5",
  "kind": "repo",
  "mcp": "none",
  "commit": "024f673b05944cbeccd447068b4328113ad6e8f5",
  "outcome": "pass",
  "time_to_working_s": 83.27859841706231,
  "install_s": 16.091,
  "first_use_s": 49.165,
  "stuck_step": null,
  "what_failed": null,
  "suggested_fix": null,
  "what_it_did": "codex-usage prints plan usage windows from the local cache",
  "needs": [],
  "needs_which": null,
  "missing": null,
  "claims": [
    {
      "kind": "claim",
      "claim": "codex-usage gives plan usage from the shell",
      "source": "Codex shows your plan limits only in the interactive `/status` screen.\n**`codex-usage` gives you plan usage from the shell** — for scripts, hooks, and\nAI agents deciding when to back off.",
      "input": "CODEX_HOME fixture",
      "expected": "usage percentages printed",
      "command": "<guest-path>",
      "verdict": "yes",
      "outcome": "Real input produced the expected result: 7-day: 59% used",
      "evidence": "7-day: 59% used, resets 19:32 (in 14h59m)\n",
      "hardware_prerequisite": null,
      "returncode": 0,
      "stdout": "5-hour: 23% used, resets 07:02 (in 2h29m)\n7-day: 59% used, resets 19:32 (in 14h59m)\n",
      "stderr": "",
      "output_truncated": false,
      "source_checked": true,
      "source_file": "README.md"
    },
    {
      "kind": "claim",
      "claim": "usage windows are shown",
      "source": "**Usage windows** — 5-hour and weekly usage when available, additional limits, and local reset times.",
      "input": "CODEX_HOME fixture",
      "expected": "usage percentages printed",
      "command": "<guest-path>",
      "verdict": "yes",
      "outcome": "Real input produced the expected result: 7-day: 59% used",
      "evidence": "7-day: 59% used, resets 19:32 (in 14h59m)\n",
      "hardware_prerequisite": null,
      "returncode": 0,
      "stdout": "5-hour: 23% used, resets 07:02 (in 2h29m)\n7-day: 59% used, resets 19:32 (in 14h59m)\n",
      "stderr": "",
      "output_truncated": false,
      "source_checked": true,
      "source_file": "README.md"
    },
    {
      "kind": "claim",
      "claim": "thresholds for scripts (short format, warn 70, under threshold)",
      "source": "**🚦 Thresholds for scripts** — `--warn [N]` checks any usage window. `--warn-7d [N]` checks the main weekly window. Both exit 1 at or above N%.",
      "input": "--warn 70 with 59% weekly",
      "expected": "usage percentages printed",
      "command": "<guest-path> --format short --warn 70",
      "verdict": "yes",
      "outcome": "Real input produced the expected result: 5h 23% · 7d 59%",
      "evidence": "5h 23% · 7d 59%\n",
      "hardware_prerequisite": null,
      "returncode": 0,
      "stdout": "5h 23% · 7d 59%\n",
      "stderr": "",
      "output_truncated": false,
      "source_checked": true,
      "source_file": "README.md"
    }
  ],
  "example_checks": [
    {
      "kind": "example",
      "claim": "codex-usage --json prints raw usage JSON",
      "source": "README.md",
      "input": "CODEX_HOME fixture",
      "command": "<guest-path> --json",
      "evidence": "{\n \"plan_type\": \"pro\",\n \"rate_limit\": {\n  \"allowed\": true,\n  \"limit_reached\": false,\n  \"primary_window\": {\n   \"used_percent\": 23,\n   \"limit_window_seconds\": 18000,\n   \"reset_at\": 1794985358\n  },\n  \"secondary_window\": {\n   \"used_percent\": 59,\n   \"limit_window_seconds\": 604800,\n   \"reset_at\": 1795030358\n  }\n },\n \"credits\": {\n  \"balance\": \"0\"\n }\n}",
      "deferred": false,
      "expected": "JSON containing used_percent 59",
      "hardware_prerequisite": null,
      "returncode": 0,
      "native_crash": false,
      "stdout": "{\n \"plan_type\": \"pro\",\n \"rate_limit\": {\n  \"allowed\": true,\n  \"limit_reached\": false,\n  \"primary_window\": {\n   \"used_percent\": 23,\n   \"limit_window_seconds\": 18000,\n   \"reset_at\": 1794985358\n  },\n  \"secondary_window\": {\n   \"used_percent\": 59,\n   \"limit_window_seconds\": 604800,\n   \"reset_at\": 1795030358\n  }\n },\n \"credits\": {\n  \"balance\": \"0\"\n }\n}\n",
      "stderr": "",
      "output_truncated": false,
      "verdict": "yes",
      "outcome": "command completed successfully"
    }
  ],
  "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 README.md and the CLI: codex-usage is a one-shot CLI with no cron, loop, daemon, webhook, --once or --now mode; --warn only sets an exit code for a caller's own scheduler.",
      "evidence": "Inspected README.md and the CLI: codex-usage is a one-shot CLI with no cron, loop, daemon, webhook, --once or --now mode; --warn only sets an exit code for a caller's own scheduler.",
      "command": ""
    }
  ],
  "maintenance": {
    "archived": false,
    "ci_commit": "024f673b05944cbeccd447068b4328113ad6e8f5",
    "ci_read_at": "2026-11-18T04:16:44Z",
    "ci_state": null,
    "commits_90d": 3,
    "last_commit_at": "2026-11-18T04:13:56Z",
    "last_release_at": null,
    "median_reply_hours": null,
    "merged_prs_90d": 0,
    "note": "actively maintained: last commit 0 days ago; 3 commits and 0 merged PRs in 90 days; 0 open issues, 0 open PRs; no releases",
    "open_issues": 0,
    "open_prs": 0,
    "reply_share": null,
    "reply_threads": 0,
    "verdict": "maintained"
  },
  "dependencies": [
    "python>=3.9 (3.12.3 used)",
    "codex-usage-limits 0.1.0 from PyPI"
  ],
  "local_or_hosted": "local",
  "readme_deviations": [],
  "safety": {
    "version": "z2x-1",
    "summary": "Nothing suspicious seen in this run.",
    "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": false,
    "unsorted_blocked_ports": [],
    "contacts": [],
    "contacts_not_listed": 0,
    "lookups": [],
    "credential_reads": [],
    "outside_writes": 0,
    "download_and_run_lines": 0,
    "malware_advisories": [],
    "vulnerabilities": [],
    "secrets": 0,
    "secrets_in_tests": 0,
    "download_lines_in_tests": 0,
    "dependency_versions": 0,
    "scanned": {
      "secrets": true,
      "dependencies": true,
      "source": true
    },
    "capped_kinds": [],
    "findings_capped": false,
    "malware_checked": true,
    "scan_skips": {},
    "compiled": null,
    "installed": null,
    "installed_inventory": false,
    "installed_partial": false
  },
  "platform": "linux",
  "test_version": "readme-596e5e9e75b0d340a06a1ac1f0216ad75b24f1bb60cec6c015ad4ef661487636",
  "touched": {
    "evidence_file": "touched.json.gz",
    "linked_files": [
      "agent-events.jsonl.gz",
      "command-output.jsonl.gz"
    ],
    "network": {
      "canary_checked": true,
      "canary_sent": false,
      "canary_sent_to": [],
      "hosts": [],
      "package_registries": [],
      "private_address_attempts": 0,
      "recorded": true,
      "hosts_withheld": 4
    },
    "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"
}
