{
  "schema_version": 1,
  "run_id": "Kane610--aiounifi-gpt-6-luna-1796067953677297584",
  "date": "2026-11-30T19:48:40.774402+00:00",
  "repo": "Kane610/aiounifi",
  "model": "gpt-6-luna",
  "kind": "repo",
  "mcp": "none",
  "commit": "71f453f006fdb87eadcdaf5b11ec38f249d063fa",
  "outcome": "needs_credentials",
  "time_to_working_s": null,
  "install_s": 33.497,
  "first_use_s": null,
  "stuck_step": "README CLI invocation",
  "what_failed": "Console script calls main() with no arguments; observed TypeError before API connection.",
  "suggested_fix": "Add a no-argument CLI wrapper that parses arguments and calls the asynchronous main function.",
  "what_it_did": "Run README CLI against a UniFi controller",
  "needs": [
    "credentials"
  ],
  "needs_which": "an account or key",
  "missing": "key_or_login",
  "claims": [
    {
      "kind": "claim",
      "claim": "Asynchronous library to communicate with Unifi Controller",
      "source": "Asynchronous library to communicate with Unifi Controller",
      "input": [
        "<guest-path>",
        "<internal-ip>",
        "-p",
        "443",
        "-k",
        "<api-key>"
      ],
      "expected": "TypeError: main() missing 5 required positional arguments: 'host', 'username', 'password', 'port', and 'site'",
      "command": "<guest-path> <internal-ip> -p 443 -k '<api-key>'",
      "verdict": "blocked",
      "outcome": "The README's documented CLI command crashes before exercising a controller request; CLI invocation produces the recorded TypeError.",
      "evidence": "The README's documented CLI command crashes before exercising a controller request; CLI invocation produces the recorded TypeError.",
      "source_checked": true,
      "source_file": "README.md"
    },
    {
      "kind": "claim",
      "claim": "The official Network Integration API client offers v1 info lookup and site assignment",
      "source": "`Controller.network` is a client of the official UniFi Network Integration\nAPI, the versioned API under `/proxy/network/integration/v1` on the console.\nIt authenticates with an API key made in the console under\n*Network → Integrations*, and needs no user, password or login. On consoles\njoined to a UniFi fabric that is the only option, as those cannot hold local\nusers.",
      "input": "",
      "expected": "",
      "command": "",
      "verdict": "blocked",
      "outcome": "The documented CLI crashes before calling the API; exercising the API also requires a controller and API key.",
      "evidence": "The documented CLI crashes before calling the API; exercising the API also requires a controller and API key.",
      "needs": "controller and API key",
      "source_checked": true,
      "source_file": "README.md"
    },
    {
      "kind": "claim",
      "claim": "The v1 API has no websocket and update fetches paginated results while pruning removed records",
      "source": "The v1 API has no websocket. `update()` fetches every page of a list and then\nremoves cached items the console no longer returns, signalling `DELETED`.",
      "input": "",
      "expected": "",
      "command": "",
      "verdict": "blocked",
      "outcome": "The README's documented CLI command crashes before calling the API; the behavior requires a controller.",
      "evidence": "The README's documented CLI command crashes before calling the API; the behavior requires a controller.",
      "source_checked": true,
      "source_file": "README.md"
    },
    {
      "kind": "claim",
      "claim": "CLI command runs against a controller",
      "source": "Try it from the command line:\n\n```sh\naiounifi <internal-ip> -p 443 -k <api-key>\n```",
      "input": "<internal-ip> -p 443 -k <api-key>",
      "expected": "CLI connects to a UniFi controller",
      "command": "<guest-path> <internal-ip> -p 443 -k '<api-key>'",
      "verdict": "blocked",
      "outcome": "Probe stopped at a missing prerequisite: TypeError: main() missing 5 required positional arguments: 'host', 'username', 'password', 'port', and 'site'\n",
      "evidence": "TypeError: main() missing 5 required positional arguments: 'host', 'username', 'password', 'port', and 'site'\n",
      "cwd": "<guest-path>",
      "hardware_prerequisite": null,
      "returncode": 1,
      "stdout": "",
      "stderr": "Traceback (most recent call last):\n  File \"<guest-path>\", line 10, in <module>\n    sys.exit(main())\n             ~~~~^^\nTypeError: main() missing 5 required positional arguments: 'host', 'username', 'password', 'port', and 'site'\n",
      "output_truncated": false,
      "source_checked": true,
      "source_file": "README.md"
    }
  ],
  "example_checks": [
    {
      "kind": "example",
      "claim": "README CLI quickstart",
      "source": "README.md:45-49",
      "input": "<internal-ip> -p 443 -k <api-key>",
      "command": "<guest-path> <internal-ip> -p 443 -k '<api-key>'",
      "evidence": "Traceback (most recent call last):\n  File \"<guest-path>\", line 10, in <module>\n    sys.exit(main())\n             ~~~~^^\nTypeError: main() missing 5 required positional arguments: 'host', 'username', 'password', 'port', and 'site'",
      "deferred": false,
      "expected": "connects to the controller",
      "hardware_prerequisite": null,
      "returncode": 1,
      "native_crash": false,
      "stdout": "",
      "stderr": "Traceback (most recent call last):\n  File \"<guest-path>\", line 10, in <module>\n    sys.exit(main())\n             ~~~~^^\nTypeError: main() missing 5 required positional arguments: 'host', 'username', 'password', 'port', and 'site'\n",
      "output_truncated": false,
      "verdict": "blocked",
      "outcome": "command output contains a crash diagnostic: Traceback (most recent call last):\n  File \"<guest-path>\", line 10, in <module>\n    sys.exit(main())\n             ~~~~^^\nTypeError: main() missing 5 required positional arguments: 'host', 'username', 'password', 'port', and 'site'"
    }
  ],
  "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 aiounifi/__main__.py. They document one-shot API fetches and a legacy websocket loop, but no scheduled cycle, cron trigger, webhook, --once, or --now entry point is documented.",
      "evidence": "Inspected README.md and aiounifi/__main__.py. They document one-shot API fetches and a legacy websocket loop, but no scheduled cycle, cron trigger, webhook, --once, or --now entry point is documented.",
      "command": ""
    }
  ],
  "maintenance": {
    "archived": false,
    "ci_commit": "47d7b325e59898a3aeba935d1ac46a79c3f12a3b",
    "ci_read_at": "2026-11-30T18:04:06Z",
    "ci_state": "SUCCESS",
    "commits_90d": 53,
    "last_commit_at": "2026-11-30T17:48:57Z",
    "last_release_at": "2026-11-30T17:53:14Z",
    "median_reply_hours": 21.5,
    "merged_prs_90d": 53,
    "note": "actively maintained: last commit 0 days ago; 53 commits and 53 merged PRs in 90 days; 21 open issues, 4 open PRs; 20 of 26 recent threads got a maintainer reply, median first reply 21.5h; latest release 2026-11-30",
    "open_issues": 21,
    "open_prs": 4,
    "reply_share": 0.77,
    "reply_threads": 26,
    "verdict": "maintained"
  },
  "dependencies": [
    "Python >=3.13",
    "uv",
    "aiohttp",
    "orjson",
    "pyotp",
    "segno",
    "UniFi Network controller",
    "Network API key"
  ],
  "local_or_hosted": "local",
  "readme_deviations": null,
  "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"
        ]
      },
      {
        "owner": "installer",
        "programs": [
          "http"
        ],
        "names": [
          "_http._tcp.archive.ubuntu.com",
          "archive.ubuntu.com",
          "security.ubuntu.com",
          "our local network"
        ]
      },
      {
        "owner": "installer",
        "programs": [
          "uv"
        ],
        "names": [
          "files.pythonhosted.org",
          "pypi.org",
          "releases.astral.sh"
        ]
      }
    ],
    "credential_reads": [],
    "outside_writes": 0,
    "download_and_run_lines": 0,
    "malware_advisories": [],
    "vulnerabilities": [],
    "secrets": 6,
    "secrets_in_tests": 6,
    "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": 17,
      "malicious": [],
      "vulnerabilities": []
    },
    "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": [
        "archive.ubuntu.com",
        "files.pythonhosted.org",
        "pypi.org",
        "releases.astral.sh"
      ],
      "blocked_hosts": [],
      "canary_checked": true,
      "canary_sent": false,
      "canary_sent_to": [],
      "hosts": [
        "archive.ubuntu.com",
        "files.pythonhosted.org",
        "pypi.org",
        "releases.astral.sh"
      ],
      "package_registries": [
        "archive.ubuntu.com",
        "files.pythonhosted.org",
        "pypi.org"
      ],
      "private_address_attempts": 0,
      "recorded": true,
      "repo_hosts": [],
      "unanswered_hosts": [],
      "unattributed": [],
      "hosts_withheld": 5
    },
    "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": "partly_checked"
}
