{
  "schema_version": 1,
  "run_id": "Ahmed-Gomaa1--bqguard-gpt-6-luna-1796425890775988116",
  "date": "2026-12-04T23:15:35.813596+00:00",
  "repo": "Ahmed-Gomaa1/bqguard",
  "model": "gpt-6-luna",
  "kind": "repo",
  "mcp": "none",
  "commit": "f5548eef4c9b75fabe0a18b97925c57f657a5b39",
  "outcome": "pass",
  "time_to_working_s": 202.40780537895625,
  "install_s": null,
  "first_use_s": 142.106,
  "stuck_step": null,
  "what_failed": null,
  "suggested_fix": null,
  "what_it_did": "Analyze a SQL file against offline table metadata using bqguard check.",
  "needs": [],
  "needs_which": null,
  "missing": null,
  "claims": [
    {
      "kind": "claim",
      "claim": "BigQuery-first metadata-aware SQL and dbt FinOps guardrail",
      "source": "**BigQuery-first, metadata-aware SQL & dbt FinOps guardrail** (with Snowflake and Databricks SQL/Delta Lake support) — built for local development, `pre-commit`, GitHub Code Scanning (SARIF), and CI/CD Pull Requests.",
      "input": [
        "<guest-path>",
        "check",
        "examples/sql/good_hourly_checkouts.sql",
        "--metadata",
        "examples/metadata.yaml"
      ],
      "expected": "Status: PASSED | Queries: 1 | Errors: 0 | Warnings: 0",
      "command": "<guest-path> check examples/sql/good_hourly_checkouts.sql --metadata examples/metadata.yaml",
      "verdict": "yes",
      "outcome": "Real input produced the expected result: Status: PASSED | Queries: 1 | Errors: 0 | Warnings: 0",
      "evidence": "Status: PASSED | Queries: 1 | Errors: 0 | Warnings: 0\nMetadata snapshot age: 1d (generated_at: 2026-12-03)\n",
      "cwd": "<guest-path>",
      "hardware_prerequisite": null,
      "returncode": 0,
      "stdout": "bqguard — BigQuery SQL Cost & Performance Guardrail\n--------------------------------------------------------------------\n\nPASS examples/sql/good_hourly_checkouts.sql\n  No cost or performance issues detected.\n\n====================================================================\nStatus: PASSED | Queries: 1 | Errors: 0 | Warnings: 0\nMetadata snapshot age: 1d (generated_at: 2026-12-03)\n",
      "stderr": "",
      "output_truncated": false,
      "source_checked": true,
      "source_file": "README.md"
    }
  ],
  "example_checks": [
    {
      "kind": "example",
      "claim": "Quickstart: check SQL against offline metadata",
      "source": "README.md Quickstart step 2",
      "input": "<guest-path> check examples/sql/good_hourly_checkouts.sql --metadata examples/metadata.yaml",
      "command": "<guest-path> check examples/sql/good_hourly_checkouts.sql --metadata examples/metadata.yaml",
      "evidence": "bqguard — BigQuery SQL Cost & Performance Guardrail\n--------------------------------------------------------------------\n\nPASS examples/sql/good_hourly_checkouts.sql\n  No cost or performance issues detected.\n\n====================================================================\nStatus: PASSED | Queries: 1 | Errors: 0 | Warnings: 0\nMetadata snapshot age: 1d (generated_at: 2026-12-03)",
      "deferred": false,
      "expected": "documented command completes successfully",
      "hardware_prerequisite": null,
      "returncode": 0,
      "native_crash": false,
      "stdout": "bqguard — BigQuery SQL Cost & Performance Guardrail\n--------------------------------------------------------------------\n\nPASS examples/sql/good_hourly_checkouts.sql\n  No cost or performance issues detected.\n\n====================================================================\nStatus: PASSED | Queries: 1 | Errors: 0 | Warnings: 0\nMetadata snapshot age: 1d (generated_at: 2026-12-03)\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 run_bqguard.py, src/bqguard/cli.py and README CLI entrypoints; this is an on-demand CLI analyzer with no scheduled loop, cron, webhook, or --once/--now cycle to trigger.",
      "evidence": "Inspected run_bqguard.py, src/bqguard/cli.py and README CLI entrypoints; this is an on-demand CLI analyzer with no scheduled loop, cron, webhook, or --once/--now cycle to trigger.",
      "command": ""
    }
  ],
  "maintenance": {
    "archived": false,
    "ci_commit": "f5548eef4c9b75fabe0a18b97925c57f657a5b39",
    "ci_read_at": "2026-12-04T23:06:44Z",
    "ci_state": "SUCCESS",
    "commits_90d": 54,
    "last_commit_at": "2026-12-04T19:03:30Z",
    "last_release_at": "2026-12-04T19:04:20Z",
    "median_reply_hours": null,
    "merged_prs_90d": 19,
    "note": "actively maintained: last commit 0 days ago; 54 commits and 19 merged PRs in 90 days; 0 open issues, 0 open PRs; latest release 2026-12-04",
    "open_issues": 0,
    "open_prs": 0,
    "reply_share": null,
    "reply_threads": 0,
    "verdict": "maintained"
  },
  "dependencies": [
    "Python 3.12.3",
    "pip",
    "editable package dependencies: sqlglot, click, pydantic, pyyaml, colorama, tabulate"
  ],
  "local_or_hosted": "local",
  "readme_deviations": [
    "The README Quickstart demonstrates checking examples/sql, whose bundled bad query causes the CLI to return 1. The README does not document this exit-code contract; the clean Quickstart SQL check returns 0."
  ],
  "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": [
          "python"
        ],
        "names": [
          "files.pythonhosted.org",
          "pypi.org"
        ]
      }
    ],
    "credential_reads": [],
    "outside_writes": 0,
    "download_and_run_lines": 0,
    "malware_advisories": [],
    "vulnerabilities": [],
    "secrets": 0,
    "secrets_in_tests": 0,
    "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": 13,
      "malicious": [],
      "vulnerabilities": [
        {
          "package": "pip",
          "version": "24.0",
          "advisory": "GHSA-4xh5-x5gv-qwph"
        },
        {
          "package": "pip",
          "version": "24.0",
          "advisory": "GHSA-58qw-9mgm-455v"
        },
        {
          "package": "pip",
          "version": "24.0",
          "advisory": "GHSA-6vgw-5pg2-w6jp"
        },
        {
          "package": "pip",
          "version": "24.0",
          "advisory": "GHSA-jp4c-xjxw-mgf9"
        },
        {
          "package": "pip",
          "version": "24.0",
          "advisory": "GHSA-qwm4-qh6w-59xr"
        },
        {
          "package": "pip",
          "version": "24.0",
          "advisory": "GHSA-wf93-45jw-7689"
        },
        {
          "package": "pip",
          "version": "24.0",
          "advisory": "PYSEC-2026-1795"
        },
        {
          "package": "pip",
          "version": "24.0",
          "advisory": "PYSEC-2026-1796"
        },
        {
          "package": "pip",
          "version": "24.0",
          "advisory": "PYSEC-2026-196"
        },
        {
          "package": "pip",
          "version": "24.0",
          "advisory": "PYSEC-2026-2875"
        },
        {
          "package": "pip",
          "version": "24.0",
          "advisory": "PYSEC-2026-2876"
        },
        {
          "package": "pip",
          "version": "24.0",
          "advisory": "PYSEC-2026-3721"
        }
      ]
    },
    "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": [
        "files.pythonhosted.org",
        "pypi.org"
      ],
      "blocked_hosts": [],
      "canary_checked": true,
      "canary_sent": false,
      "canary_sent_to": [],
      "hosts": [
        "files.pythonhosted.org",
        "pypi.org"
      ],
      "package_registries": [
        "files.pythonhosted.org",
        "pypi.org"
      ],
      "private_address_attempts": 0,
      "recorded": true,
      "repo_hosts": [],
      "unanswered_hosts": [],
      "unattributed": [],
      "hosts_withheld": 2
    },
    "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"
}
