{
  "schema_version": 1,
  "run_id": "Analytically-ai--truequery-gpt-6-luna-1795240623202526303",
  "date": "2026-11-21T06:06:07.197948+00:00",
  "repo": "Analytically-ai/truequery",
  "model": "gpt-6-luna",
  "kind": "repo",
  "mcp": "none",
  "commit": "07f6c32df4f1161241fa68c4039cf4359c918c25",
  "outcome": "pass",
  "time_to_working_s": 508.3346399659931,
  "install_s": 31.29,
  "first_use_s": 420.277,
  "stuck_step": null,
  "what_failed": null,
  "suggested_fix": null,
  "what_it_did": "truequery detect on SQL containing a nullable NOT IN subquery",
  "needs": [],
  "needs_which": null,
  "missing": null,
  "claims": [
    {
      "kind": "claim",
      "claim": "Check real SQL for a silent wrong answer",
      "source": "AI agents write data code that runs without errors. That doesn't mean the numbers are right. TrueQuery holds the agent to your team's definitions, checks its work with plain code, and tells you exactly what it checked and what it didn't.",
      "input": ".coldpass/not_in_nullable.sql",
      "expected": "sql/not-in-nullable-subquery warning and zero errors",
      "command": "<guest-path> detect .coldpass/not_in_nullable.sql",
      "verdict": "yes",
      "outcome": "Real input produced the expected result: sql/not-in-nullable-subquery",
      "evidence": "…sql/not-in-nullable-subquery — a NULL in the subquery makes NOT IN return zero rows\n    fix: rewrite as NOT EXISTS, or add WHERE col IS NOT NULL\n0 errors, 1 warning in 1 file checked offline\n",
      "hardware_prerequisite": null,
      "returncode": 0,
      "stdout": ".coldpass/not_in_nullable.sql:2:7 [warning] sql/not-in-nullable-subquery — a NULL in the subquery makes NOT IN return zero rows\n    fix: rewrite as NOT EXISTS, or add WHERE col IS NOT NULL\n0 errors, 1 warning in 1 file checked offline\n",
      "stderr": "",
      "output_truncated": false,
      "source_checked": true,
      "source_file": "README.md"
    },
    {
      "kind": "claim",
      "claim": "Detect the nullable NOT IN SQL error shown in the README",
      "source": "The checker catches a different kind of mistake: SQL that runs without errors and still returns the wrong answer. It looks for 41 kinds of it (21 in SQL, 4 in dbt and orchestration, 7 in pandas code, 9 that read your contracts), offline and with no AI involved, while the agent works:",
      "input": ".coldpass/not_in_nullable.sql",
      "expected": "sql/not-in-nullable-subquery warning and zero errors",
      "command": "<guest-path> detect .coldpass/not_in_nullable.sql",
      "verdict": "yes",
      "outcome": "Real input produced the expected result: sql/not-in-nullable-subquery",
      "evidence": "…sql/not-in-nullable-subquery — a NULL in the subquery makes NOT IN return zero rows\n    fix: rewrite as NOT EXISTS, or add WHERE col IS NOT NULL\n0 errors, 1 warning in 1 file checked offline\n",
      "hardware_prerequisite": null,
      "returncode": 0,
      "stdout": ".coldpass/not_in_nullable.sql:2:7 [warning] sql/not-in-nullable-subquery — a NULL in the subquery makes NOT IN return zero rows\n    fix: rewrite as NOT EXISTS, or add WHERE col IS NOT NULL\n0 errors, 1 warning in 1 file checked offline\n",
      "stderr": "",
      "output_truncated": false,
      "source_checked": true,
      "source_file": "README.md"
    }
  ],
  "example_checks": [
    {
      "kind": "example",
      "claim": "Run the checker on SQL in a terminal",
      "source": "README.md: The checker",
      "input": ".coldpass/not_in_nullable.sql",
      "command": "<guest-path> detect .coldpass/not_in_nullable.sql",
      "evidence": ".coldpass/not_in_nullable.sql:2:7 [warning] sql/not-in-nullable-subquery — a NULL in the subquery makes NOT IN return zero rows\n    fix: rewrite as NOT EXISTS, or add WHERE col IS NOT NULL\n0 errors, 1 warning in 1 file checked offline",
      "deferred": false,
      "expected": "sql/not-in-nullable-subquery warning",
      "hardware_prerequisite": null,
      "returncode": 0,
      "native_crash": false,
      "stdout": ".coldpass/not_in_nullable.sql:2:7 [warning] sql/not-in-nullable-subquery — a NULL in the subquery makes NOT IN return zero rows\n    fix: rewrite as NOT EXISTS, or add WHERE col IS NOT NULL\n0 errors, 1 warning in 1 file checked offline\n",
      "stderr": "",
      "output_truncated": false,
      "verdict": "yes",
      "outcome": "command completed successfully"
    },
    {
      "kind": "example",
      "claim": "Run a clean SQL check",
      "source": "README.md: Any agent, terminal or CI",
      "input": "samples/good_orders.sql",
      "command": "<guest-path> detect samples/good_orders.sql",
      "evidence": "clean: 1 file checked offline, no findings",
      "deferred": false,
      "expected": "clean: 1 file checked offline, no findings",
      "hardware_prerequisite": null,
      "returncode": 0,
      "native_crash": false,
      "stdout": "clean: 1 file checked offline, no findings\n",
      "stderr": "",
      "output_truncated": false,
      "verdict": "yes",
      "outcome": "command completed successfully"
    }
  ],
  "cycle_checks": [
    {
      "kind": "cycle",
      "claim": "Run the enabled checks at the end of an agent turn",
      "source": "README.md",
      "input": "PostToolUse edit followed by Stop for a fresh session and .coldpass/not_in_nullable.sql",
      "expected": "sql/not-in-nullable-subquery finding in the Stop result",
      "command": "bash -c 'sid=coldpass-cycle-$$; printf \"%s\" \"{\\\"hook_event_name\\\":\\\"PostToolUse\\\",\\\"session_id\\\":\\\"$sid\\\",\\\"cwd\\\":\\\"<guest-path>\\\",\\\"tool_name\\\":\\\"Write\\\",\\\"tool_input\\\":{\\\"file_path\\\":\\\".coldpass/not_in_nullable.sql\\\"}}\" | <guest-path> hook --harness claude; printf \"%s\" \"{\\\"hook_event_name\\\":\\\"Stop\\\",\\\"session_id\\\":\\\"$sid\\\",\\\"cwd\\\":\\\"<guest-path>\\\"}\" | <guest-path> hook --harness claude'",
      "schedule": "Stop event at the end of each agent turn after file edits",
      "method": "manual synthetic PostToolUse then Stop hook events",
      "verdict": "yes",
      "outcome": "Triggered one cycle by hand (manual synthetic PostToolUse then Stop hook events; normal trigger: Stop event at the end of each agent turn after file edits): {\"hookSpecificOutput\": {\"hookEventName\": \"Stop\", \"additionalContext\": \"[TrueQuery] stop pass \\u00b7 1 file(s) touched\\n- .coldpass/not_in_nullable.sql:2 [sql/not-in-nullable-subquery] a NULL in the subquery makes NOT IN return zero rows (fix: rewrite as NOT EXISTS, or add WHERE col IS NOT NULL) (can't tell if new: no git history)\"}}",
      "evidence": "{\"hookSpecificOutput\": {\"hookEventName\": \"Stop\", \"additionalContext\": \"[TrueQuery] stop pass \\u00b7 1 file(s) touched\\n- .coldpass/not_in_nullable.sql:2 [sql/not-in-nullable-subquery] a NULL in the subquery makes NOT IN return zero rows (fix: rewrite as NOT EXISTS, or add WHERE col IS NOT NULL) (can't tell if new: no git history)\"}}",
      "returncode": 0,
      "failure_output": "{\"hookSpecificOutput\": {\"hookEventName\": \"Stop\", \"additionalContext\": \"[TrueQuery] stop pass \\u00b7 1 file(s) touched\\n- .coldpass/not_in_nullable.sql:2 [sql/not-in-nullable-subquery] a NULL in the subquery makes NOT IN return zero rows (fix: rewrite as NOT EXISTS, or add WHERE col IS NOT NULL) (can't tell if new: no git history)\"}}",
      "stdout": "{\"hookSpecificOutput\": {\"hookEventName\": \"Stop\", \"additionalContext\": \"[TrueQuery] stop pass \\u00b7 1 file(s) touched\\n- .coldpass/not_in_nullable.sql:2 [sql/not-in-nullable-subquery] a NULL in the subquery makes NOT IN return zero rows (fix: rewrite as NOT EXISTS, or add WHERE col IS NOT NULL) (can't tell if new: no git history)\"}}\n",
      "stderr": "",
      "output_truncated": false
    }
  ],
  "maintenance": {
    "archived": false,
    "ci_commit": "07f6c32df4f1161241fa68c4039cf4359c918c25",
    "ci_read_at": "2026-11-15T20:25:50Z",
    "ci_state": "SUCCESS",
    "commits_90d": 24,
    "last_commit_at": "2026-11-07T20:23:43Z",
    "last_release_at": "2026-11-07T20:28:20Z",
    "median_reply_hours": null,
    "merged_prs_90d": 23,
    "note": "slow: last commit 0 days ago; 24 commits and 23 merged PRs in 90 days; 3 open issues, 1 open PRs; 0 of 18 recent threads got a maintainer reply; latest release 2026-11-07",
    "open_issues": 3,
    "open_prs": 1,
    "reply_share": 0.0,
    "reply_threads": 18,
    "verdict": "slow"
  },
  "dependencies": [
    "Python 3.12.3",
    "uv",
    "sqlglot 30.22.0",
    "PyYAML 6.0.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",
          "uv"
        ],
        "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": 14,
      "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-2183ca3ba45856a2a75c24acd570485e9c42d58f914ebae12e78db52d669f67b",
  "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"
}
