{
  "schema_version": 1,
  "run_id": "MarklarSystems--sqlprove-gpt-6-luna-1796386512748148568",
  "date": "2026-12-04T12:18:26.789055+00:00",
  "repo": "MarklarSystems/sqlprove",
  "model": "gpt-6-luna",
  "kind": "repo",
  "mcp": "none",
  "commit": "07731e1e21597586fdfa13fd67ed9d6a904ad12c",
  "outcome": "pass",
  "time_to_working_s": 159.3093983910221,
  "install_s": 6.539,
  "first_use_s": 27.997,
  "stuck_step": null,
  "what_failed": null,
  "suggested_fix": null,
  "what_it_did": "Run sqlprove demo and perform a zero-config SQL check that proves a date extraction can be rewritten as a half-open date range.",
  "needs": [],
  "needs_which": null,
  "missing": null,
  "claims": [
    {
      "kind": "claim",
      "claim": "sqlprove demo formally verifies SQL equivalence and catches semantic bugs",
      "source": "**Formally verified SQL cost optimizer for BigQuery, Snowflake, and dbt — 100% local, zero PII.**",
      "input": "sqlprove demo",
      "expected": "ALGEBRAICALLY_PROVEN and COUNTEREXAMPLE_FOUND with DuckDB confirmation",
      "command": "<guest-path> demo",
      "verdict": "yes",
      "outcome": "Real input produced the expected result: COUNTEREXAMPLE_FOUND",
      "evidence": "…COUNTEREXAMPLE_FOUND (Found concrete database where queries return different multisets)\n  DuckDB : confirmed=True | Q1=[(1, 0), (1, 0), (1, 0)] vs Q2=[(1, 0)]\n  Inputs : {\"orders\": [{\"id\": 1, \"customer_id\": 0, \"amount\": 0}], \"customers\": [{\"id\": 0, \"tier\": 0}, {\"id\": 0, \"tier\": 0}, {\"id\": 0, \"tier\": 0}], \"blocked\": []}\n\n=== BUG CAUGHT: LLM moves LEFT JOIN ON-predicate into WHERE (drops unmatched NULL rows!) ===\n  Status : COUNTEREXAMPLE_FOUND (Found concrete database where queries return different multisets)\n  DuckDB : confirmed=True | Q1=[(-3,), (-1,), (-2,)] vs Q2=[]\n  Inputs : {\"orders\": [{",
      "cwd": "<guest-path>",
      "hardware_prerequisite": null,
      "returncode": 0,
      "stdout": " DISTINCT with GROUP BY ===\n  Status : ALGEBRAICALLY_PROVEN (Unbounded proof: all GROUP BY keys are projected, so output rows are already unique)\n\n=== BUG CAUGHT: LLM simplifies `x = 1 OR x <> 1` to TRUE (drops NULL rows!) ===\n  Status : COUNTEREXAMPLE_FOUND (Found concrete database where queries return different multisets)\n  DuckDB : confirmed=True | Q1=[] vs Q2=[(-1,)]\n  Inputs : {\"orders\": [{\"id\": -1, \"customer_id\": 0, \"amount\": null}], \"customers\": [{\"id\": 0, \"tier\": 0}, {\"id\": -1, \"tier\": 0}, {\"id\": 1, \"tier\": 0}], \"blocked\": [{\"customer_id\": 0}, {\"customer_id\": 0}, {\"customer_id\": 0}]}\n\n",
      "stderr": "",
      "output_truncated": true,
      "source_checked": true,
      "source_file": "README.md"
    }
  ],
  "example_checks": [
    {
      "kind": "example",
      "claim": "README zero-config SQL check example",
      "source": "README.md Try in 10 Seconds (Zero Config, No dbt Needed)",
      "input": "SELECT event_id, amount FROM events WHERE EXTRACT(YEAR FROM created_at) = 2025 AND EXTRACT(MONTH FROM created_at) = 12",
      "command": "<guest-path> check 'SELECT event_id, amount FROM events WHERE EXTRACT(YEAR FROM created_at) = 2025 AND EXTRACT(MONTH FROM created_at) = 12' --target bigquery-ondemand --table-gb 500 --runs-per-month 30",
      "evidence": "nferred conservative schema (nullable by default): events\n\n=== VERIFIED & RECOMMENDED (1) ===\n  [RECOMMENDED] [ALGEBRAICALLY_PROVEN] rewrite_date_extractor_to_range\n    Impact : -91.3% billed bytes (live BigQuery C08)\n    Est. $ : ~$83.59/mo (est., -91.3% | 500 GB/run × 30 runs/mo × $6.25/TB)\n    Proof  : Unbounded proof: EXTRACT(YEAR=2025, MONTH=12, DAY>=1) <-> exact half-open interval [2025-12-01 00:00:00, 2026-01-01 00:00:00)\n    SQL    : SELECT event_id, amount FROM events WHERE created_at >= CAST('2025-12-01 00:00:00' AS TIMESTAMP) AND created_at < CAST('2026-01-01 00:00:00' AS TIMESTAMP)",
      "deferred": false,
      "expected": "a recommended, algebraically proven date range rewrite",
      "hardware_prerequisite": null,
      "returncode": 0,
      "native_crash": false,
      "stdout": "ferred conservative schema (nullable by default): events\n\n=== VERIFIED & RECOMMENDED (1) ===\n  [RECOMMENDED] [ALGEBRAICALLY_PROVEN] rewrite_date_extractor_to_range\n    Impact : -91.3% billed bytes (live BigQuery C08)\n    Est. $ : ~$83.59/mo (est., -91.3% | 500 GB/run × 30 runs/mo × $6.25/TB)\n    Proof  : Unbounded proof: EXTRACT(YEAR=2025, MONTH=12, DAY>=1) <-> exact half-open interval [2025-12-01 00:00:00, 2026-01-01 00:00:00)\n    SQL    : SELECT event_id, amount FROM events WHERE created_at >= CAST('2025-12-01 00:00:00' AS TIMESTAMP) AND created_at < CAST('2026-01-01 00:00:00' AS TIMESTAMP)\n",
      "stderr": "",
      "output_truncated": true,
      "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 CLI quickstart/audit sections and src/sqlprove/cli.py entrypoints; no scheduled cycle, cron loop, webhook, --once, or --now behavior is documented.",
      "evidence": "Inspected README.md CLI quickstart/audit sections and src/sqlprove/cli.py entrypoints; no scheduled cycle, cron loop, webhook, --once, or --now behavior is documented.",
      "command": ""
    }
  ],
  "maintenance": {
    "archived": false,
    "ci_commit": "07731e1e21597586fdfa13fd67ed9d6a904ad12c",
    "ci_read_at": "2026-12-04T12:13:35Z",
    "ci_state": null,
    "commits_90d": 3,
    "last_commit_at": "2026-12-04T12:05:34Z",
    "last_release_at": null,
    "median_reply_hours": null,
    "merged_prs_90d": 0,
    "note": "actively maintained: last commit 0 days ago; 3 commits and 0 merged PRs in 90 days; 0 open issues, 0 open PRs; no releases",
    "open_issues": 0,
    "open_prs": 0,
    "reply_share": null,
    "reply_threads": 0,
    "verdict": "maintained"
  },
  "dependencies": [
    "Python 3.12.3",
    "sqlprove editable install",
    "sqlglot",
    "z3-solver",
    "duckdb 1.4.3"
  ],
  "local_or_hosted": "local",
  "readme_deviations": [],
  "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": 8,
      "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",
        "github.com",
        "pypi.org"
      ],
      "blocked_hosts": [],
      "canary_checked": true,
      "canary_sent": false,
      "canary_sent_to": [],
      "hosts": [
        "files.pythonhosted.org",
        "github.com",
        "pypi.org"
      ],
      "package_registries": [
        "files.pythonhosted.org",
        "pypi.org"
      ],
      "private_address_attempts": 0,
      "recorded": true,
      "repo_hosts": [],
      "unanswered_hosts": [],
      "unattributed": [],
      "hosts_withheld": 1
    },
    "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"
}
