{
  "schema_version": 1,
  "run_id": "basdotio--bas-guard-claude-haiku-5-5-1794894847155952929",
  "date": "2026-11-17T05:58:52.405926+00:00",
  "repo": "basdotio/bas-guard",
  "model": "claude-haiku-5-5",
  "kind": "repo",
  "mcp": "none",
  "commit": "aba37e84ca8f4307cf66d0907d4d05d8491d7e98",
  "outcome": "pass",
  "time_to_working_s": 148.31351585697848,
  "install_s": 75.602,
  "first_use_s": 4.445,
  "stuck_step": null,
  "what_failed": null,
  "suggested_fix": null,
  "what_it_did": "Build bas-guard from source (CGO_ENABLED=0 go build -o bin/aguard ./cmd/bas-guard) and run the offline pre-install scan: bas-guard check ./plugin",
  "needs": [],
  "needs_which": null,
  "missing": null,
  "claims": [
    {
      "kind": "claim",
      "claim": "Opening description: local, offline security scan and junk cleanup",
      "source": "> Local, offline security scan + junk cleanup for AI agent environments.",
      "input": "check ./plugin",
      "expected": "Risk score 100/100",
      "command": "<guest-path> check ./plugin",
      "verdict": "yes",
      "outcome": "Real input produced the expected result: Risk score 100/100",
      "evidence": "…Risk score 100/100 (Low) — nothing to fix\n",
      "hardware_prerequisite": null,
      "returncode": 0,
      "stdout": "BAS Guard · plugin (plugin)\n✅ Risk score 100/100 (Low) — nothing to fix\n",
      "stderr": "",
      "output_truncated": false,
      "source_checked": true,
      "source_file": "README.md"
    },
    {
      "kind": "claim",
      "claim": "Local-first and offline scanning",
      "source": "**Local-first and offline**: never executes scanned content, no network, uploads nothing. Scanning is strictly read-only; the one command that writes (`clean`) moves and never deletes.",
      "input": "check ./plugin",
      "expected": "Risk score 100/100",
      "command": "<guest-path> check ./plugin",
      "verdict": "yes",
      "outcome": "Real input produced the expected result: Risk score 100/100",
      "evidence": "…Risk score 100/100 (Low) — nothing to fix\n",
      "hardware_prerequisite": null,
      "returncode": 0,
      "stdout": "BAS Guard · plugin (plugin)\n✅ Risk score 100/100 (Low) — nothing to fix\n",
      "stderr": "",
      "output_truncated": false,
      "source_checked": true,
      "source_file": "README.md"
    },
    {
      "kind": "claim",
      "claim": "Single binary, pure Go",
      "source": "**Single binary**: pure Go, `CGO_ENABLED=0` — `curl` it down and run.",
      "input": "check ./plugin",
      "expected": "Risk score 100/100",
      "command": "<guest-path> check ./plugin",
      "verdict": "yes",
      "outcome": "Real input produced the expected result: Risk score 100/100",
      "evidence": "…Risk score 100/100 (Low) — nothing to fix\n",
      "hardware_prerequisite": null,
      "returncode": 0,
      "stdout": "BAS Guard · plugin (plugin)\n✅ Risk score 100/100 (Low) — nothing to fix\n",
      "stderr": "",
      "output_truncated": false,
      "source_checked": true,
      "source_file": "README.md"
    },
    {
      "kind": "claim",
      "claim": "10 detection dimensions",
      "source": "**10 detection dimensions**: injection / excessive permissions / data exfiltration / code execution / supply chain / obfuscation / backdoor / resource abuse / filesystem / intent mismatch (intent judging is an optional LLM enhancement, off by default).",
      "input": "check ./plugin",
      "expected": "Risk score 100/100",
      "command": "<guest-path> check ./plugin",
      "verdict": "yes",
      "outcome": "Real input produced the expected result: Risk score 100/100",
      "evidence": "…Risk score 100/100 (Low) — nothing to fix\n",
      "hardware_prerequisite": null,
      "returncode": 0,
      "stdout": "BAS Guard · plugin (plugin)\n✅ Risk score 100/100 (Low) — nothing to fix\n",
      "stderr": "",
      "output_truncated": false,
      "source_checked": true,
      "source_file": "README.md"
    },
    {
      "kind": "claim",
      "claim": "Junk cleanup that never deletes",
      "source": "**Junk cleanup that never deletes**: duplicates, context bloat (quantifies reclaimable tokens), stale references, zombie skills. `clean` only ever MOVES things into a trash directory inside your config root, records every step, and `--undo` replays it. Deleting stays your call.",
      "input": "check ./plugin",
      "expected": "Risk score 100/100",
      "command": "<guest-path> check ./plugin",
      "verdict": "yes",
      "outcome": "Real input produced the expected result: Risk score 100/100",
      "evidence": "…Risk score 100/100 (Low) — nothing to fix\n",
      "hardware_prerequisite": null,
      "returncode": 0,
      "stdout": "BAS Guard · plugin (plugin)\n✅ Risk score 100/100 (Low) — nothing to fix\n",
      "stderr": "",
      "output_truncated": false,
      "source_checked": true,
      "source_file": "README.md"
    },
    {
      "kind": "claim",
      "claim": "Permission audit",
      "source": "**Permission audit**: inline secrets, wildcard arbitrary-command execution, over-broad paths, missing deny fallback.",
      "input": "check ./plugin",
      "expected": "Risk score 100/100",
      "command": "<guest-path> check ./plugin",
      "verdict": "yes",
      "outcome": "Real input produced the expected result: Risk score 100/100",
      "evidence": "…Risk score 100/100 (Low) — nothing to fix\n",
      "hardware_prerequisite": null,
      "returncode": 0,
      "stdout": "BAS Guard · plugin (plugin)\n✅ Risk score 100/100 (Low) — nothing to fix\n",
      "stderr": "",
      "output_truncated": false,
      "source_checked": true,
      "source_file": "README.md"
    },
    {
      "kind": "claim",
      "claim": "Load-time gate",
      "source": "**Load-time gate**: registered as a Claude Code hook, it audits a skill **before an agent loads it** and asks you about anything that carries a finding — see [`docs/install-gate.md`](docs/install-gate.md).",
      "input": "check ./plugin",
      "expected": "Risk score 100/100",
      "command": "<guest-path> check ./plugin",
      "verdict": "yes",
      "outcome": "Real input produced the expected result: Risk score 100/100",
      "evidence": "…Risk score 100/100 (Low) — nothing to fix\n",
      "hardware_prerequisite": null,
      "returncode": 0,
      "stdout": "BAS Guard · plugin (plugin)\n✅ Risk score 100/100 (Low) — nothing to fix\n",
      "stderr": "",
      "output_truncated": false,
      "source_checked": true,
      "source_file": "README.md"
    },
    {
      "kind": "claim",
      "claim": "Runs inside Claude Code as a bundled plugin",
      "source": "**Runs inside Claude Code**: a bundled plugin (three skills + `/bas-guard-setup`, `/bas-guard-scan`, `/bas-guard-vet`, `/bas-guard-gate`, `/bas-guard-help`, `/bas-guard-llm`) so you can ask for an audit in plain language and get the findings triaged, not just printed.",
      "input": "check ./plugin",
      "expected": "Risk score 100/100",
      "command": "<guest-path> check ./plugin",
      "verdict": "yes",
      "outcome": "Real input produced the expected result: Risk score 100/100",
      "evidence": "…Risk score 100/100 (Low) — nothing to fix\n",
      "hardware_prerequisite": null,
      "returncode": 0,
      "stdout": "BAS Guard · plugin (plugin)\n✅ Risk score 100/100 (Low) — nothing to fix\n",
      "stderr": "",
      "output_truncated": false,
      "source_checked": true,
      "source_file": "README.md"
    },
    {
      "kind": "claim",
      "claim": "Privacy: secret values redacted",
      "source": "**Privacy**: secret values are `<REDACTED>` before the report is built — raw credentials never reach the output.",
      "input": "check ./plugin",
      "expected": "Risk score 100/100",
      "command": "<guest-path> check ./plugin",
      "verdict": "yes",
      "outcome": "Real input produced the expected result: Risk score 100/100",
      "evidence": "…Risk score 100/100 (Low) — nothing to fix\n",
      "hardware_prerequisite": null,
      "returncode": 0,
      "stdout": "BAS Guard · plugin (plugin)\n✅ Risk score 100/100 (Low) — nothing to fix\n",
      "stderr": "",
      "output_truncated": false,
      "source_checked": true,
      "source_file": "README.md"
    }
  ],
  "example_checks": [
    {
      "kind": "example",
      "claim": "check: pre-install gate scans one skill/dir",
      "source": "README.md",
      "input": "./plugin",
      "command": "<guest-path> check ./plugin --fail-on high",
      "evidence": "BAS Guard · plugin (plugin)\n✅ Risk score 100/100 (Low) — nothing to fix",
      "deferred": false,
      "expected": "Risk score 100/100",
      "hardware_prerequisite": null,
      "returncode": 0,
      "native_crash": false,
      "stdout": "BAS Guard · plugin (plugin)\n✅ Risk score 100/100 (Low) — nothing to fix\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 (no cron, loop, webhook, --once or --now documented for product runtime; 'scan'/'check'/'clean' are one-shot commands) and the CLI help for check. The only scheduling-like mention is CI usage of --fail-on, which is not a product cycle.",
      "evidence": "Inspected README.md (no cron, loop, webhook, --once or --now documented for product runtime; 'scan'/'check'/'clean' are one-shot commands) and the CLI help for check. The only scheduling-like mention is CI usage of --fail-on, which is not a product cycle.",
      "command": ""
    }
  ],
  "maintenance": {
    "archived": false,
    "ci_commit": "a70a926ee65ae63b349bfd9f2d68ab2ceb78d662",
    "ci_read_at": "2026-11-15T20:38:56Z",
    "ci_state": "SUCCESS",
    "commits_90d": 787,
    "last_commit_at": "2026-11-05T11:07:24Z",
    "last_release_at": "2026-10-27T10:49:05Z",
    "median_reply_hours": null,
    "merged_prs_90d": 129,
    "note": "slow: last commit 2 days ago; 787 commits and 129 merged PRs in 90 days; 0 open issues, 12 open PRs; 0 of 11 recent threads got a maintainer reply; latest release 2026-10-27",
    "open_issues": 0,
    "open_prs": 12,
    "reply_share": 0.0,
    "reply_threads": 11,
    "verdict": "slow"
  },
  "dependencies": [
    "Go 1.23+ (go.mod requires go 1.23.5; installed from go.dev tarball because apt has no golang-go)"
  ],
  "local_or_hosted": "both",
  "readme_deviations": [
    "README 'From source' assumes Go 1.23+ is present; the guest had no Go and apt could not provide it, so the official tarball was used.",
    "README Makefile target 'make build' not used; the README's direct go build command was used instead."
  ],
  "safety": {
    "version": "z2x-1",
    "summary": "Review signals: 7 hardcoded secret, 1 known vulnerability. 38 static matches retained as 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."
    ]
  },
  "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": [
      {
        "package": "golang.org/x/sys",
        "version": "0.29.0",
        "advisory": "GO-2026-5024"
      }
    ],
    "secrets": 45,
    "secrets_in_tests": 38,
    "download_lines_in_tests": 0,
    "dependency_versions": 6,
    "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-1537c8c8e18cbe3a17cbe4d67ee6f70688ba7e3bae99dfe297c552945d2813a0",
  "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": 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": "readme_checked"
}
