{
  "checker": {
    "claims": [
      {
        "claim": "Radon computes cyclomatic complexity from the command line with radon cc",
        "command": "<guest-path> cc radon/metrics.py -a",
        "evidence": "F 98:0 mi_compute - A\n    F 120:0 mi_parameters - A\n    F 32:0 h_visit_ast - A\n    F 25:0 h_visit - A\n    F 145:0 mi_visit - A\n    F 150:0 mi_rank - A\n\n7 blocks (classes, functions, methods) analyzed.\nAverage complexity: A (2.2857142857142856)\n",
        "expected": "mi_compute listed with complexity rank A",
        "input": "radon/metrics.py",
        "kind": "claim",
        "outcome": "Real input produced the expected result: F 98:0 mi_compute - A",
        "returncode": 0,
        "source": "radon cc sympy/solvers/solvers.py -a -nc",
        "source_checked": true,
        "source_file": "README.rst",
        "verdict": "yes"
      },
      {
        "claim": "Radon computes raw metrics such as LOC and SLOC",
        "command": "<guest-path> raw radon/raw.py",
        "evidence": "LOC: 245\n    LLOC: 102\n    SLOC: 111\n    Comments: 33\n    Single comments: 31\n    Multi: 57\n    Blank: 46\n    - Comment Stats\n        (C % L): 13%\n        (C % S): 30%\n        (C + M % L): 37%\n",
        "expected": "raw metrics report with LOC 245",
        "input": "radon/raw.py",
        "kind": "claim",
        "outcome": "Real input produced the expected result: LOC: 245",
        "returncode": 0,
        "source": "radon raw --include-ipynb --ipynb-cells .",
        "source_checked": true,
        "source_file": "README.rst",
        "verdict": "yes"
      }
    ],
    "cycle_checks": [
      {
        "claim": "Scheduled or looping main behavior",
        "command": "",
        "evidence": "Entry points inspected (radon/cli.py, README.rst, setup.py, pyproject.toml): radon is a one-shot CLI that computes metrics and exits; it has no scheduler, cron, loop, webhook or --once/--now trigger.",
        "expected": "identify the product trigger",
        "input": "source inspection",
        "kind": "cycle",
        "outcome": "Entry points inspected (radon/cli.py, README.rst, setup.py, pyproject.toml): radon is a one-shot CLI that computes metrics and exits; it has no scheduler, cron, loop, webhook or --once/--now trigger.",
        "source": "repository entry points",
        "verdict": "yes"
      }
    ],
    "details": {
      "argv": [
        "<guest-path>",
        "cc",
        "radon/metrics.py",
        "-a"
      ],
      "kind": "cli",
      "needs_browser": false,
      "needs_credentials": false,
      "returncode": 0,
      "scope": "product operation",
      "stderr": "",
      "stdout": "radon/metrics.py\n    F 69:0 halstead_visitor_report - A\n    F 98:0 mi_compute - A\n    F 120:0 mi_parameters - A\n    F 32:0 h_visit_ast - A\n    F 25:0 h_visit - A\n    F 145:0 mi_visit - A\n    F 150:0 mi_rank - A\n\n7 blocks (classes, functions, methods) analyzed.\nAverage complexity: A (2.2857142857142856)",
      "working": true
    },
    "evidence_strength": "readme_checked",
    "example_checks": [
      {
        "claim": "Run the documented test suite (make tests)",
        "command": "<guest-path> radon/tests/run.py",
        "deferred": false,
        "evidence": "                                [ 58%]\nradon/tests/test_ipynb.py .....                                          [ 59%]\nradon/tests/test_other_metrics.py ...................................... [ 69%]\n........................................................................ [ 86%]\n..                                                                       [ 87%]\nradon/tests/test_raw.py ................................................ [ 99%]\n...                                                                      [100%]\n\n============================= 404 passed in 3.30s ==============================",
        "expected": "all tests pass",
        "input": "radon/tests/run.py",
        "kind": "example",
        "outcome": "command completed successfully",
        "returncode": 0,
        "source": "Makefile tests target",
        "verdict": "yes"
      },
      {
        "claim": "Run the README quick example form of radon cc on the package",
        "command": "<guest-path> cc radon -a -nc",
        "deferred": false,
        "evidence": "radon/raw.py\n    F 185:0 analyze - C\nradon/cli/tools.py\n    F 244:0 iter_filenames - C\nradon/cli/harvest.py\n    M 276:4 RawHarvester.to_terminal - C\nradon/tests/test_cli_tools.py\n    F 564:0 test_cc_to_terminal - C\n\n4 blocks (classes, functions, methods) analyzed.\nAverage complexity: C (12.25)",
        "expected": "blocks analyzed summary",
        "input": "radon package with -a -nc",
        "kind": "example",
        "outcome": "command completed successfully",
        "returncode": 0,
        "source": "README.rst Cyclomatic Complexity Example",
        "verdict": "yes"
      }
    ],
    "status": "PASS"
  },
  "deviations": [
    "README gives 'pip install radon'; installed the pinned checkout instead, from <guest-path>, to test the pinned commit.",
    "Ran the tests with the venv python at <guest-path> rather than a bare python, because the Makefile's bare 'python' is not guaranteed to be the venv interpreter.",
    "README names the file README.rst; the Makefile and checker default look for README.md, so claim quotes are taken from README.rst.",
    "Checker rejected probes whose input .py file lived outside the checkout (flagged as agent-written), so the final probe, claims and examples use the repo's own radon/metrics.py and radon/raw.py as inputs.",
    "Final validation: check.py --validate --replay returned valid=true, replay PASS (1 probe, 2 README claims, 2 examples, 1 cycle check with detected=false)."
  ],
  "fault_owner": null,
  "main_blocker": null,
  "operation": "Compute code metrics (cyclomatic complexity with radon cc, raw metrics with radon raw) from the command line",
  "operation_scope": "Python 3.12 guest VM; pip install of the pinned checkout into a venv at <guest-path>; no browser or credentials needed",
  "outcome": "working",
  "plain_failure": null,
  "steps": [
    "python3 -m venv <guest-path>",
    "<guest-path> install <guest-path>",
    "<guest-path> install -r test_requirements.txt",
    "<guest-path> --version",
    "<guest-path> cc example.py -a",
    "<guest-path> raw example.py",
    "python radon/tests/run.py (404 passed)"
  ],
  "stuck_step": null,
  "suggested_fix": "None required for the tested operations."
}
