{
  "schema_version": 1,
  "run_id": "Hyena-Atalas--quota-guard-gpt-6-luna-1795283887321055060",
  "date": "2026-11-21T18:01:35.055606+00:00",
  "repo": "Hyena-Atalas/quota-guard",
  "model": "gpt-6-luna",
  "kind": "repo",
  "mcp": "none",
  "commit": "37c49668826c00a1c9634d4ff4156b87fc980994",
  "outcome": "pass",
  "time_to_working_s": 175.04492911399575,
  "install_s": null,
  "first_use_s": 125.073,
  "stuck_step": null,
  "what_failed": null,
  "suggested_fix": null,
  "what_it_did": "python3 quota_guard.py scan --claude-root ./fixtures/claude --codex-root ./fixtures/codex --idle-seconds 180 --min-severity high --json",
  "needs": [],
  "needs_which": null,
  "missing": null,
  "claims": [
    {
      "kind": "claim",
      "claim": "A working name for the CLI and repository is quota-guard.",
      "source": "Sessmeter is the working name for this project; the CLI and repo are still quota-guard.",
      "input": "constructed local session fixtures",
      "expected": "the quota-guard CLI scans the fixtures",
      "command": "python3 quota_guard.py scan --claude-root ./fixtures/claude --codex-root ./fixtures/codex --idle-seconds 180 --min-severity high --json",
      "verdict": "yes",
      "outcome": "Real input produced the expected result: \"files_scanned\": 4",
      "evidence": "…\"files_scanned\": 4,\n    \"files_skipped\": {},\n    \"sessions\": 4,\n    \"sessions_sidechain_excluded\": 0,\n    \"sessions_no_user_anchor\": 0,\n    \"sessions_no_user_anchor_by_reason\": {},\n    \"alerts_by_type\": {\n      \"A\": 2,\n      \"B\": 1\n    },\n    \"alerts_shown\": 0,\n    \"alerts_hidden\": 3,\n    \"min_severity\": \"high\",\n    \"thresholds\": {\n      \"idle_seconds\": 180,\n      \"token_threshold\": 200,\n      \"percent_threshold\": 2.0,\n      \"long_run_seconds\": 1800\n    },\n    \"zstd_backend\": null,\n    \"turns_total\": 0,\n    \"turns_completed\": 0,\n    \"post_complete_usage_events\": 0\n  },\n  \"files_scanned\": [\n   ",
      "hardware_prerequisite": null,
      "returncode": 0,
      "stdout": "     \"token_threshold\": 200,\n      \"percent_threshold\": 2.0,\n      \"long_run_seconds\": 1800\n    },\n    \"zstd_backend\": null,\n    \"turns_total\": 0,\n    \"turns_completed\": 0,\n    \"post_complete_usage_events\": 0\n  },\n  \"files_scanned\": [\n    \"fixtures/claude/projects/demo-idle/sha256:ad8065fd9fb2.jsonl\",\n    \"fixtures/claude/projects/demo-ok/sha256:fc77a58a0e5f.jsonl\",\n    \"fixtures/codex/sessions/2026/11/10/rollout-sha256:fb5f932bb0d7.jsonl\",\n    \"fixtures/codex/sessions/2026/11/10/rollout-sha256:b3714f181a1a.jsonl\"\n  ],\n  \"files_skipped\": [],\n  \"sessions\": 4,\n  \"alerts\": [],\n  \"warnings\": []\n}\n",
      "stderr": "",
      "output_truncated": true,
      "source_checked": true,
      "source_file": "README.md"
    },
    {
      "kind": "claim",
      "claim": "Scan local Claude Code and Codex CLI session logs for usage changes during a quiet period, and audit agent-config files for leaked secrets.",
      "source": "Free, open-source, **read-only** CLI for local Claude Code and Codex CLI data. It looks at session logs for a simple usage pattern: token counts or Codex quota percentages that keep moving after you have not entered a prompt for a while. It can also audit local agent-config files for leaked secrets (`secrets`) and run both checks together (`doctor`).",
      "input": "constructed Claude and Codex fixtures",
      "expected": "four files scanned and a quota alert reported",
      "command": "python3 quota_guard.py scan --claude-root ./fixtures/claude --codex-root ./fixtures/codex --idle-seconds 180 --min-severity high --json",
      "verdict": "yes",
      "outcome": "Real input produced the expected result: \"files_scanned\": 4",
      "evidence": "…\"files_scanned\": 4,\n    \"files_skipped\": {},\n    \"sessions\": 4,\n    \"sessions_sidechain_excluded\": 0,\n    \"sessions_no_user_anchor\": 0,\n    \"sessions_no_user_anchor_by_reason\": {},\n    \"alerts_by_type\": {\n      \"A\": 2,\n      \"B\": 1\n    },\n    \"alerts_shown\": 0,\n    \"alerts_hidden\": 3,\n    \"min_severity\": \"high\",\n    \"thresholds\": {\n      \"idle_seconds\": 180,\n      \"token_threshold\": 200,\n      \"percent_threshold\": 2.0,\n      \"long_run_seconds\": 1800\n    },\n    \"zstd_backend\": null,\n    \"turns_total\": 0,\n    \"turns_completed\": 0,\n    \"post_complete_usage_events\": 0\n  },\n  \"files_scanned\": [\n   ",
      "hardware_prerequisite": null,
      "returncode": 0,
      "stdout": "     \"token_threshold\": 200,\n      \"percent_threshold\": 2.0,\n      \"long_run_seconds\": 1800\n    },\n    \"zstd_backend\": null,\n    \"turns_total\": 0,\n    \"turns_completed\": 0,\n    \"post_complete_usage_events\": 0\n  },\n  \"files_scanned\": [\n    \"fixtures/claude/projects/demo-idle/sha256:ad8065fd9fb2.jsonl\",\n    \"fixtures/claude/projects/demo-ok/sha256:fc77a58a0e5f.jsonl\",\n    \"fixtures/codex/sessions/2026/11/10/rollout-sha256:fb5f932bb0d7.jsonl\",\n    \"fixtures/codex/sessions/2026/11/10/rollout-sha256:b3714f181a1a.jsonl\"\n  ],\n  \"files_skipped\": [],\n  \"sessions\": 4,\n  \"alerts\": [],\n  \"warnings\": []\n}\n",
      "stderr": "",
      "output_truncated": true,
      "source_checked": true,
      "source_file": "README.md"
    },
    {
      "kind": "claim",
      "claim": "Scan read-only local JSONL session logs and configuration files for quota usage changes and configuration hints.",
      "source": "- **Read-only local files.** JSONL session logs, `config.toml` / `settings.json` for `check-config`, and agent-config files for `secrets` (see below).",
      "input": "constructed Claude and Codex fixtures",
      "expected": "four files scanned and JSON usage summary",
      "command": "python3 quota_guard.py scan --claude-root ./fixtures/claude --codex-root ./fixtures/codex --idle-seconds 180 --min-severity high --json",
      "verdict": "yes",
      "outcome": "Real input produced the expected result: \"files_scanned\": 4",
      "evidence": "…\"files_scanned\": 4,\n    \"files_skipped\": {},\n    \"sessions\": 4,\n    \"sessions_sidechain_excluded\": 0,\n    \"sessions_no_user_anchor\": 0,\n    \"sessions_no_user_anchor_by_reason\": {},\n    \"alerts_by_type\": {\n      \"A\": 2,\n      \"B\": 1\n    },\n    \"alerts_shown\": 0,\n    \"alerts_hidden\": 3,\n    \"min_severity\": \"high\",\n    \"thresholds\": {\n      \"idle_seconds\": 180,\n      \"token_threshold\": 200,\n      \"percent_threshold\": 2.0,\n      \"long_run_seconds\": 1800\n    },\n    \"zstd_backend\": null,\n    \"turns_total\": 0,\n    \"turns_completed\": 0,\n    \"post_complete_usage_events\": 0\n  },\n  \"files_scanned\": [\n   ",
      "hardware_prerequisite": null,
      "returncode": 0,
      "stdout": "     \"token_threshold\": 200,\n      \"percent_threshold\": 2.0,\n      \"long_run_seconds\": 1800\n    },\n    \"zstd_backend\": null,\n    \"turns_total\": 0,\n    \"turns_completed\": 0,\n    \"post_complete_usage_events\": 0\n  },\n  \"files_scanned\": [\n    \"fixtures/claude/projects/demo-idle/sha256:ad8065fd9fb2.jsonl\",\n    \"fixtures/claude/projects/demo-ok/sha256:fc77a58a0e5f.jsonl\",\n    \"fixtures/codex/sessions/2026/11/10/rollout-sha256:fb5f932bb0d7.jsonl\",\n    \"fixtures/codex/sessions/2026/11/10/rollout-sha256:b3714f181a1a.jsonl\"\n  ],\n  \"files_skipped\": [],\n  \"sessions\": 4,\n  \"alerts\": [],\n  \"warnings\": []\n}\n",
      "stderr": "",
      "output_truncated": true,
      "source_checked": true,
      "source_file": "README.md"
    },
    {
      "kind": "claim",
      "claim": "Do not make network requests while scanning local files.",
      "source": "- **No network.** A scan does not make HTTP requests. Doc links in the output are for you to open.",
      "input": "constructed Claude and Codex fixtures",
      "expected": "local scan completes",
      "command": "python3 quota_guard.py scan --claude-root ./fixtures/claude --codex-root ./fixtures/codex --idle-seconds 180 --min-severity high --json",
      "verdict": "yes",
      "outcome": "Real input produced the expected result: \"files_scanned\": 4",
      "evidence": "…\"files_scanned\": 4,\n    \"files_skipped\": {},\n    \"sessions\": 4,\n    \"sessions_sidechain_excluded\": 0,\n    \"sessions_no_user_anchor\": 0,\n    \"sessions_no_user_anchor_by_reason\": {},\n    \"alerts_by_type\": {\n      \"A\": 2,\n      \"B\": 1\n    },\n    \"alerts_shown\": 0,\n    \"alerts_hidden\": 3,\n    \"min_severity\": \"high\",\n    \"thresholds\": {\n      \"idle_seconds\": 180,\n      \"token_threshold\": 200,\n      \"percent_threshold\": 2.0,\n      \"long_run_seconds\": 1800\n    },\n    \"zstd_backend\": null,\n    \"turns_total\": 0,\n    \"turns_completed\": 0,\n    \"post_complete_usage_events\": 0\n  },\n  \"files_scanned\": [\n   ",
      "hardware_prerequisite": null,
      "returncode": 0,
      "stdout": "     \"token_threshold\": 200,\n      \"percent_threshold\": 2.0,\n      \"long_run_seconds\": 1800\n    },\n    \"zstd_backend\": null,\n    \"turns_total\": 0,\n    \"turns_completed\": 0,\n    \"post_complete_usage_events\": 0\n  },\n  \"files_scanned\": [\n    \"fixtures/claude/projects/demo-idle/sha256:ad8065fd9fb2.jsonl\",\n    \"fixtures/claude/projects/demo-ok/sha256:fc77a58a0e5f.jsonl\",\n    \"fixtures/codex/sessions/2026/11/10/rollout-sha256:fb5f932bb0d7.jsonl\",\n    \"fixtures/codex/sessions/2026/11/10/rollout-sha256:b3714f181a1a.jsonl\"\n  ],\n  \"files_skipped\": [],\n  \"sessions\": 4,\n  \"alerts\": [],\n  \"warnings\": []\n}\n",
      "stderr": "",
      "output_truncated": true,
      "source_checked": true,
      "source_file": "README.md"
    },
    {
      "kind": "claim",
      "claim": "Report local timeline information without exposing prompt text.",
      "source": "A report from this tool is a local timeline of counts and timestamps. It is a clue, not proof that official billing is wrong.",
      "input": "constructed Claude and Codex fixtures",
      "expected": "Summary: files found 4, scanned 4, skipped 0.",
      "command": "python3 quota_guard.py scan --claude-root ./fixtures/claude --codex-root ./fixtures/codex --idle-seconds 180 --min-severity high --json",
      "verdict": "yes",
      "outcome": "Real input produced the expected result: \"files_scanned\": 4",
      "evidence": "…\"files_scanned\": 4,\n    \"files_skipped\": {},\n    \"sessions\": 4,\n    \"sessions_sidechain_excluded\": 0,\n    \"sessions_no_user_anchor\": 0,\n    \"sessions_no_user_anchor_by_reason\": {},\n    \"alerts_by_type\": {\n      \"A\": 2,\n      \"B\": 1\n    },\n    \"alerts_shown\": 0,\n    \"alerts_hidden\": 3,\n    \"min_severity\": \"high\",\n    \"thresholds\": {\n      \"idle_seconds\": 180,\n      \"token_threshold\": 200,\n      \"percent_threshold\": 2.0,\n      \"long_run_seconds\": 1800\n    },\n    \"zstd_backend\": null,\n    \"turns_total\": 0,\n    \"turns_completed\": 0,\n    \"post_complete_usage_events\": 0\n  },\n  \"files_scanned\": [\n   ",
      "hardware_prerequisite": null,
      "returncode": 0,
      "stdout": "     \"token_threshold\": 200,\n      \"percent_threshold\": 2.0,\n      \"long_run_seconds\": 1800\n    },\n    \"zstd_backend\": null,\n    \"turns_total\": 0,\n    \"turns_completed\": 0,\n    \"post_complete_usage_events\": 0\n  },\n  \"files_scanned\": [\n    \"fixtures/claude/projects/demo-idle/sha256:ad8065fd9fb2.jsonl\",\n    \"fixtures/claude/projects/demo-ok/sha256:fc77a58a0e5f.jsonl\",\n    \"fixtures/codex/sessions/2026/11/10/rollout-sha256:fb5f932bb0d7.jsonl\",\n    \"fixtures/codex/sessions/2026/11/10/rollout-sha256:b3714f181a1a.jsonl\"\n  ],\n  \"files_skipped\": [],\n  \"sessions\": 4,\n  \"alerts\": [],\n  \"warnings\": []\n}\n",
      "stderr": "",
      "output_truncated": true,
      "source_checked": true,
      "source_file": "README.md"
    }
  ],
  "example_checks": [
    {
      "kind": "example",
      "claim": "README fixture scan",
      "source": "README.md: Point the tool at the constructed samples in this repository",
      "input": "fixtures/claude and fixtures/codex",
      "command": "python3 quota_guard.py scan --claude-root ./fixtures/claude --codex-root ./fixtures/codex --idle-seconds 180 --min-severity high --json",
      "evidence": "      \"token_threshold\": 200,\n      \"percent_threshold\": 2.0,\n      \"long_run_seconds\": 1800\n    },\n    \"zstd_backend\": null,\n    \"turns_total\": 0,\n    \"turns_completed\": 0,\n    \"post_complete_usage_events\": 0\n  },\n  \"files_scanned\": [\n    \"fixtures/claude/projects/demo-idle/sha256:ad8065fd9fb2.jsonl\",\n    \"fixtures/claude/projects/demo-ok/sha256:fc77a58a0e5f.jsonl\",\n    \"fixtures/codex/sessions/2026/11/10/rollout-sha256:fb5f932bb0d7.jsonl\",\n    \"fixtures/codex/sessions/2026/11/10/rollout-sha256:b3714f181a1a.jsonl\"\n  ],\n  \"files_skipped\": [],\n  \"sessions\": 4,\n  \"alerts\": [],\n  \"warnings\": []\n}",
      "deferred": false,
      "expected": "JSON summary with one shown alert",
      "hardware_prerequisite": null,
      "returncode": 0,
      "native_crash": false,
      "stdout": "     \"token_threshold\": 200,\n      \"percent_threshold\": 2.0,\n      \"long_run_seconds\": 1800\n    },\n    \"zstd_backend\": null,\n    \"turns_total\": 0,\n    \"turns_completed\": 0,\n    \"post_complete_usage_events\": 0\n  },\n  \"files_scanned\": [\n    \"fixtures/claude/projects/demo-idle/sha256:ad8065fd9fb2.jsonl\",\n    \"fixtures/claude/projects/demo-ok/sha256:fc77a58a0e5f.jsonl\",\n    \"fixtures/codex/sessions/2026/11/10/rollout-sha256:fb5f932bb0d7.jsonl\",\n    \"fixtures/codex/sessions/2026/11/10/rollout-sha256:b3714f181a1a.jsonl\"\n  ],\n  \"files_skipped\": [],\n  \"sessions\": 4,\n  \"alerts\": [],\n  \"warnings\": []\n}\n",
      "stderr": "",
      "output_truncated": true,
      "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 quota_guard.py entrypoints and README: scan, report, check-config, secrets, and doctor are manually invoked CLI operations; no scheduler, cron loop, or webhook cycle is implemented.",
      "evidence": "Inspected quota_guard.py entrypoints and README: scan, report, check-config, secrets, and doctor are manually invoked CLI operations; no scheduler, cron loop, or webhook cycle is implemented.",
      "command": ""
    }
  ],
  "maintenance": {
    "archived": false,
    "ci_commit": "37c49668826c00a1c9634d4ff4156b87fc980994",
    "ci_read_at": "2026-11-15T20:29:21Z",
    "ci_state": null,
    "commits_90d": 15,
    "last_commit_at": "2026-11-11T01:11:03Z",
    "last_release_at": null,
    "median_reply_hours": null,
    "merged_prs_90d": 0,
    "note": "actively maintained: last commit 3 days ago; 15 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.11+ (guest Python 3.12.3)",
    "Python standard library"
  ],
  "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": true,
    "unsorted_blocked_ports": [],
    "contacts": [],
    "contacts_not_listed": 0,
    "lookups": [
      {
        "owner": "installer",
        "programs": [
          "git-remote-https"
        ],
        "names": [
          "github.com"
        ]
      }
    ],
    "credential_reads": [],
    "outside_writes": 0,
    "download_and_run_lines": 0,
    "malware_advisories": [],
    "vulnerabilities": [],
    "secrets": 3,
    "secrets_in_tests": 3,
    "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": {
      "counts": {},
      "paths": []
    },
    "installed": {
      "packages": 0,
      "malicious": [],
      "vulnerabilities": []
    },
    "installed_inventory": true,
    "installed_partial": false
  },
  "platform": "linux",
  "test_version": "readme-750e3cdbb85cbaf919c8a710efe66f4caa6904b3eee09a851787291ecc117a40",
  "touched": {
    "evidence_file": "touched.json.gz",
    "linked_files": [
      "agent-events.jsonl.gz",
      "command-output.jsonl.gz"
    ],
    "network": {
      "allowed_hosts": [
        "github.com"
      ],
      "blocked_hosts": [],
      "canary_checked": true,
      "canary_sent": false,
      "canary_sent_to": [],
      "hosts": [
        "github.com"
      ],
      "package_registries": [],
      "private_address_attempts": 0,
      "recorded": true,
      "repo_hosts": [],
      "unanswered_hosts": [],
      "unattributed": [],
      "hosts_withheld": 1
    },
    "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"
}
