{
  "run_id": "PyCQA--docformatter-claude-haiku-5-5-1793085742012966311",
  "date": "2026-10-27T07:24:12.454372+00:00",
  "repo": "PyCQA/docformatter",
  "kind": "repo",
  "source": "https://github.com/PyCQA/docformatter",
  "commit": "82069d7f1e105bd86c69fd9ae0587ca00da3c312",
  "model": "claude-haiku-5-5",
  "model_version": "claude-haiku-5-5",
  "test_version": "readme-7b45bc806d9264dc108ae6e1f61f5d665e5494413f227ffc7946c638ea53ee2e",
  "pass": true,
  "outcome": "pass",
  "time_to_working_s": 78.2537662209943,
  "total_s": 110.44134402275085,
  "steps": [
    "cd <guest-path> && pwd && ls -la && git status 2>&1 | head -3; id -u; python3 --version; echo CDP=$CDP_URL; cat README.md | head -c 6000",
    "cd <guest-path> && cat README.rst | head -c 7200",
    "cd <guest-path> && ls .coldpass; grep -n -i \"python_requires\\|requires-python\\|scripts\\|docformatter =\" pyproject.toml; ls /inputs 2>&1; ls <guest-path> 2>&1",
    "cd <guest-path> && sed -n 1,30p pyproject.toml; grep -n \"python\" pyproject.toml | head; ls -la .coldpass; python3 -m venv --help >/dev/null 2>&1 && echo venv_ok || echo venv_missing",
    "python3 -m venv <guest-path> && <guest-path> install -q --upgrade pip 2>&1 | tail -3; <guest-path> install <guest-path> 2>&1 | tail -4; <guest-path> --version",
    "mkdir -p <guest-path> && cd <guest-path> && cat > example.py <<'EOF'\n\"\"\"   Here are some examples.\n\n    This module docstring should be dedented.\"\"\"\n\n\ndef factorial(x):\n    '''\n\n    Return x factorial.\n\n    This uses math.factorial.\n\n    '''\n    import math\n    return math.factorial(x)\n\n\ndef print_factorial(x):\n    \"\"\"Print x factorial\"\"\"\n    print(factorial(x))\n\n\ndef main():\n    \"\"\"Main\n    function\"\"\"\n    print_factorial(5)\n    if factorial(10):\n        print_factorial(22)\nEOF\ncp example.py example.orig.py && <guest-path> --in-place example.py; echo rc=$?; cat example.py",
    "cd <guest-path> && grep -rn -i \"exit\\|returncode\\|status code\" <guest-path> --include=*.rst | head -8; printf 'def f(x):\\n    \"\"\"Print x factorial\"\"\"\\n    return x\\n' | <guest-path> -; echo rc=$?; printf 'def f(x):\\n    \"\"\"Print x factorial\"\"\"\\n    return x\\n' > s.py && <guest-path> --check s.py; echo rc=$?",
    "sed -n 103,120p <guest-path>",
    "cd <guest-path> && wc -l check.py && grep -n \"source_file\\|README\\|expected_returncode\\|output_directory\\|stays_running\" check.py | head -40",
    "cd <guest-path> && grep -rn \"stdin\\|docformatter -\\b\" docs/source/*.rst | head -5; grep -n \"PEP 257\\`_\\.\" README.rst",
    "mkdir -p <guest-path> && cd <guest-path> && cat > claims.json <<'EOF'\n[{\"kind\":\"claim\",\"claim\":\"docformatter formats docstrings to follow PEP 257\",\"source\":\"Formats docstrings to follow `PEP 257`_.\",\"source_file\":\"README.rst\",\"input\":\"def main():\\n    \\\"\\\"\\\"Main\\n    function\\\"\\\"\\\"\\n    pass\\n\",\"expected\":\"Docstring summary becomes Main function. on one line\",\"probe_kind\":\"cli\",\"argv\":[\"<guest-path>\",\"-\"],\"stdin\":\"def main():\\n    \\\"\\\"\\\"Main\\n    function\\\"\\\"\\\"\\n    pass\\n\",\"expected_text\":\"Main function.\",\"cwd\":\"<guest-path>\"}]\nEOF\ncat > probe.json <<'EOF'\n{\"kind\":\"cli\",\"argv\":[\"<guest-path>\",\"-\"],\"cwd\":\"<guest-path>\",\"stdin\":\"def main():\\n    \\\"\\\"\\\"Main\\n    function\\\"\\\"\\\"\\n    pass\\n\",\"expected_text\":\"Main function.\"}\nEOF\ncat > examples.json <<'EOF'\n[{\"kind\":\"example\",\"claim\":\"Run docformatter in place on a file, as in the README example\",\"source\":\"README.rst\",\"input\":\"example.py (already formatted by the README example run)\",\"expected\":\"Already formatted file is left unchanged, exit 0\",\"argv\":[\"<guest-path>\",\"--in-place\",\"example.py\"],\"cwd\":\"<guest-path>\",\"env\":{},\"expected_text\":\"\"}]\nEOF\ncat > cycles.json <<'EOF'\n{\"detected\":false,\"reason\":\"Entry points inspected (pyproject.toml scripts: docformatter=docformatter.__main__:main; README.rst). docformatter is a one-shot CLI with no cron, scheduler, loop, webhook or --once/--now mode; its only recurring use is an external PyCharm file watcher (docs/source/usage.rst), which is not a product cycle.\",\"checks\":[]}\nEOF\nfor f in claims.json probe.json examples.json cycles.json; do python3 -I -m json.tool $f >/dev/null && echo \"$f ok\"; done",
    "cd <guest-path> && sed -i 's/,\"expected_text\":\"\"}]/}]/' .coldpass/examples.json && python3 -I -m json.tool .coldpass/examples.json >/dev/null && <env-var>=<guest-path> python3 -I <guest-path> --validate --replay 2>&1 | tail -c 4000",
    "cd <guest-path> && cat > report.json <<'EOF'\n{\"outcome\":\"working\",\"fault_owner\":null,\"operation\":\"Format Python docstrings to PEP 257 style with the docformatter CLI\",\"operation_scope\":\"Local CLI on Python 3.12.3 (pyproject requires ^3.10) in a venv at <guest-path>; no browser, credentials or network service needed. Source is the checked-out snapshot in <guest-path> (no git metadata present, so the pinned commit 82069d7f1e105bd86c69fd9ae0587ca00da3c312 was not independently verified).\",\"steps\":[\"python3 -m venv <guest-path>\",\"<guest-path> install <guest-path>  (built docformatter 1.7.8)\",\"<guest-path> --in-place example.py  (README example; exit 3 = file changed, as documented in docs/source/usage.rst)\",\"printf source | <guest-path> -  (stdin mode; returned formatted docstring 'Main function.')\"],\"deviations\":[\"Installed from the local checkout with pip rather than PyPI 'pip install --upgrade docformatter', so the pinned source was tested.\",\"The /inputs/coldpass-preflight.py path given in the task does not exist; ran <guest-path> as the task's command instructed.\",\"Cycles: none detected (one-shot CLI); recorded detected=false.\"],\"stuck_step\":null,\"main_blocker\":null,\"plain_failure\":null,\"suggested_fix\":null}\nEOF\npython3 -I -m json.tool report.json >/dev/null && echo ok; ls -la <guest-path>"
  ],
  "stuck_step": null,
  "error_excerpt": null,
  "what_it_did": "Format Python docstrings to PEP 257 style with the docformatter CLI",
  "suggested_fix": null,
  "tokens_in": 203358,
  "tokens_out": 8697,
  "cost_usd": 0.0105249,
  "usage_complete": true,
  "checks": [
    {
      "check": "operation",
      "status": "PASS",
      "details": {
        "working": true,
        "argv": [
          "<guest-path>",
          "-"
        ],
        "kind": "cli",
        "returncode": 0,
        "stdout": "def main():\n    \"\"\"Main function.\"\"\"\n    pass",
        "stderr": "",
        "needs_credentials": false,
        "needs_browser": false,
        "scope": "product operation"
      }
    }
  ],
  "safety": {
    "version": "z2x-1",
    "rules_version": "z2x-1",
    "summary": "Review signals: 5 known vulnerability.",
    "expected": "Reviewed as expected for a test run: attempted writes that failed, so nothing was written.",
    "findings": [
      {
        "kind": "known-vulnerability",
        "count": 5,
        "note": "OSV reports a known vulnerability in this dependency version.",
        "location_count": 2
      }
    ],
    "context": [],
    "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."
    ],
    "static": {
      "dependency_note": "OSV scanned supported lockfiles; unpinned dependencies and unsupported formats are outside this check."
    },
    "evidence_url": "/safety/?run=PyCQA--docformatter-claude-haiku-5-5-1793085742012966311",
    "evidence_file": "/data/safety/PyCQA--docformatter-claude-haiku-5-5-1793085742012966311.json.gz"
  },
  "agent_execution": "native_agent",
  "agent_runtime": "claude-code",
  "agent_runtime_version": "2.1.310 (Claude Code)",
  "tool_transport": "mcp-assigned-vm",
  "platform": "linux",
  "reasoning": "low",
  "service_tier": null,
  "resources": {
    "cpus": 2,
    "memory_mib": 4096,
    "disk_mib": 32768
  },
  "native_tool_calls": 13,
  "native_bundle": null,
  "architecture": null,
  "backend": "hyperv",
  "platform_details": {
    "backend": "hyperv",
    "os": "linux"
  },
  "platform_conflicts": null,
  "sandbox_source": null,
  "source_pin": {
    "commit": "82069d7f1e105bd86c69fd9ae0587ca00da3c312",
    "url": "https://github.com/PyCQA/docformatter"
  },
  "purpose": "initial",
  "profile": {
    "model": "claude-haiku-5-5",
    "reasoning": "low"
  },
  "fault": {
    "owner": null,
    "status": "resolved",
    "reason": null
  },
  "fix_id": null,
  "verifies_run_id": null,
  "hosting": null,
  "operation_scope": "product operation",
  "tool_calls": 13,
  "guest_setup": null,
  "runtime": null,
  "runtime_version": null,
  "runtime_revision": null,
  "source_revision": null,
  "evidence_version": null,
  "failure_origin": null,
  "evidence_strength": "readme_checked",
  "works": "yes",
  "install_s": null,
  "first_use_s": null,
  "mcp": "none",
  "needs": [],
  "needs_which": null,
  "agent_interface": [
    "cli"
  ],
  "license": "MIT",
  "repo_url": "https://github.com/PyCQA/docformatter",
  "cost_to_try": "free",
  "hardware": null,
  "what_failed": null,
  "local_or_hosted": "local",
  "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": "Entry points inspected (pyproject.toml scripts: docformatter=docformatter.__main__:main; README.rst). docformatter is a one-shot CLI with no cron, scheduler, loop, webhook or --once/--now mode; its only recurring use is an external PyCharm file watcher (docs/source/usage.rst), which is not a product cycle.",
      "evidence": "Entry points inspected (pyproject.toml scripts: docformatter=docformatter.__main__:main; README.rst). docformatter is a one-shot CLI with no cron, scheduler, loop, webhook or --once/--now mode; its only recurring use is an external PyCharm file watcher (docs/source/usage.rst), which is not a product cycle.",
      "command": ""
    }
  ],
  "claims": [
    {
      "kind": "claim",
      "claim": "docformatter formats docstrings to follow PEP 257",
      "source": "Formats docstrings to follow `PEP 257`_.",
      "input": "def main():\n    \"\"\"Main\n    function\"\"\"\n    pass\n",
      "expected": "Docstring summary becomes Main function. on one line",
      "command": "<guest-path> -",
      "verdict": "yes",
      "outcome": "Real input produced the expected result: Main function.",
      "evidence": "Main function.\"\"\"\n    pass\n",
      "returncode": 0,
      "source_checked": true,
      "source_file": "README.rst"
    }
  ],
  "claims_note": null,
  "example_checks": [
    {
      "kind": "example",
      "claim": "Run docformatter in place on a file, as in the README example",
      "source": "README.rst",
      "input": "example.py (already formatted by the README example run)",
      "command": "<guest-path> --in-place example.py",
      "evidence": "",
      "deferred": false,
      "expected": "Already formatted file is left unchanged, exit 0",
      "returncode": 0,
      "verdict": "yes",
      "outcome": "command completed successfully with no output"
    }
  ],
  "does_what_it_says": "yes",
  "maintenance": {
    "last_commit_at": "2026-10-26T14:35:08Z",
    "commits_90d": 52,
    "merged_prs_90d": 35,
    "open_issues": 20,
    "open_prs": 0,
    "reply_share": 0.05,
    "reply_threads": 40,
    "median_reply_hours": 451.3,
    "last_release_at": "2026-04-21T01:28:13Z",
    "archived": false,
    "verdict": "maintained",
    "note": "actively maintained: last commit 0 days ago; 52 commits and 35 merged PRs in 90 days; 20 open issues, 0 open PRs; 2 of 40 recent threads got a maintainer reply, median first reply 451.3h; latest release 2026-04-21"
  },
  "maintenance_verdict": "maintained",
  "maintenance_note": "actively maintained: last commit 0 days ago; 52 commits and 35 merged PRs in 90 days; 20 open issues, 0 open PRs; 2 of 40 recent threads got a maintainer reply, median first reply 451.3h; latest release 2026-04-21",
  "maintained": "active",
  "maintained_note": "last commit 0 days ago; 1 open issues, 4 answered or closed",
  "last_commit_at": "2026-10-26T14:35:08Z",
  "last_release_at": "2026-04-21T01:28:13Z",
  "open_issues": 1,
  "answered_issues": 4,
  "platforms_claimed": [
    "linux"
  ],
  "topic": "creative",
  "agent_interfaces": [
    {
      "interface": "cli",
      "evidence": "independent checker",
      "observed": true,
      "operation_checked": true
    }
  ],
  "agent_interfaces_note": "README metadata is a discovery hint, not pinned documentation proof. Observed interfaces were exercised in this run. An empty list means unknown.",
  "mcp_context": null,
  "tested_at": "2026-10-27T07:24:12.454372+00:00",
  "tested_commit": "82069d7f1e105bd86c69fd9ae0587ca00da3c312",
  "tested_with": {
    "agent": "claude-code",
    "agent_version": "2.1.310 (Claude Code)",
    "model": "claude-haiku-5-5",
    "model_route": "claude-haiku-5-5",
    "reasoning": "low",
    "os": "linux",
    "backend": "hyperv",
    "transport": "mcp-assigned-vm"
  },
  "setup_identity": {
    "repo": "PyCQA/docformatter",
    "source": "https://github.com/PyCQA/docformatter",
    "commit": "82069d7f1e105bd86c69fd9ae0587ca00da3c312",
    "source_revision": null,
    "os": "linux",
    "architecture": null,
    "backend": "hyperv",
    "model": "claude-haiku-5-5",
    "model_version": "claude-haiku-5-5",
    "agent_execution": "native_agent",
    "agent_runtime": "claude-code",
    "agent_runtime_version": "2.1.310 (Claude Code)",
    "tool_transport": "mcp-assigned-vm",
    "runtime": null,
    "runtime_version": null,
    "runtime_revision": null,
    "sandbox_source": null,
    "guest_setup": null,
    "source_pin": {
      "commit": "82069d7f1e105bd86c69fd9ae0587ca00da3c312",
      "url": "https://github.com/PyCQA/docformatter"
    },
    "platform_details": {
      "os": "linux",
      "backend": "hyperv"
    },
    "platform_conflicts": null,
    "reasoning": "low",
    "service_tier": null,
    "resources": {
      "cpus": 2,
      "memory_mib": 4096,
      "disk_mib": 32768
    },
    "operation": "Format Python docstrings to PEP 257 style with the docformatter CLI",
    "operation_scope": "product operation",
    "hosting": null,
    "kind": "repo",
    "test_version": "readme-7b45bc806d9264dc108ae6e1f61f5d665e5494413f227ffc7946c638ea53ee2e",
    "evidence_version": null
  },
  "other_model": null,
  "other_run_id": null,
  "models_agree": null,
  "furthest_model": null,
  "transcript_url": "/transcripts/PyCQA--docformatter-claude-haiku-5-5-1793085742012966311.txt",
  "report_url": "/reports/PyCQA--docformatter-claude-haiku-5-5-1793085742012966311.json"
}
