{
  "run_id": "jirikuncar--sqlty-claude-haiku-5-5-1793111945401158219",
  "date": "2026-10-27T14:41:46.626808+00:00",
  "repo": "jirikuncar/sqlty",
  "kind": "repo",
  "source": "https://github.com/jirikuncar/sqlty",
  "commit": "0ccad9d0c2b48925dc1b02cd4408846ef5132d52",
  "model": "claude-haiku-5-5",
  "model_version": "claude-haiku-5-5",
  "test_version": "readme-d5b140d3c0f8b95c2dd6fe6fc381a303cacb92679582c22317d8e78b572f0cf2",
  "pass": true,
  "outcome": "pass",
  "time_to_working_s": 118.67031920299996,
  "total_s": 161.22547459602356,
  "steps": [
    "cd <guest-path> && pwd && ls -la && git status 2>&1 | head -3; id -u; python3 --version; cat README.md 2>/dev/null | head -150",
    "cd <guest-path> && sed -n 150,260p README.md; cat .python-version; ls .coldpass; which uv; uv --version 2>&1; grep -n requires-python pyproject.toml",
    "cd <guest-path> && mkdir -p <guest-path> && uv venv --python 3.14 <guest-path> 2>&1 | tail -5; <guest-path> --version 2>&1",
    "cd /tmp && <guest-path> -m ensurepip >/dev/null 2>&1; uv pip install --python <guest-path> \"sqlty[psycopg]\" 2>&1 | tail -8; ls <guest-path> | grep sqlty",
    "mkdir -p <guest-path> && cd <guest-path> && printf '[project]\\nname = \"demo\"\\nversion = \"0.0.0\"\\n' > pyproject.toml && printf '%s\\n' 'q = \"--sql\\nSELECT id::INTEGER, name::TEXT FROM users\"' > queries.py && cat queries.py && <guest-path> rewrite -v . 2>&1; echo \"rc=$?\"; cat queries.py",
    "cd <guest-path> && <guest-path> check . 2>&1; echo \"check rc=$?\"; <guest-path> strip . 2>&1; echo \"strip rc=$?\"; cat queries.py",
    "mkdir -p <guest-path> && cd <guest-path> && printf '[project]\\nname = \"demo2\"\\nversion = \"0.0.0\"\\n\\n[tool.sqlty]\\nschema = \"schema.sql\"\\n' > pyproject.toml && printf 'CREATE TABLE users (id INTEGER PRIMARY KEY, email TEXT);\\n' > schema.sql && printf 'from sqlty import SQL\\n\\nquery = SQL[tuple[int, str]](\"--sql\\\\nSELECT id, email FROM users\")\\n' > queries.py && cat queries.py && <guest-path> check . 2>&1; echo \"rc=$?\"",
    "cd <guest-path> && <guest-path> check --fix . 2>&1; echo \"fix rc=$?\"; cat queries.py; <guest-path> check . 2>&1; echo \"recheck rc=$?\"",
    "cd <guest-path> && ls examples; ls examples/* | head -40; grep -rniE \"cron|schedul|--once|--now|daemon|watch loop|webhook|while True\" src --include=*.py | head -20; ls src/*; grep -n \"version\" pyproject.toml | head -3",
    "cd <guest-path> && cat 01_quick_start/README.md; echo ----; cat 01_quick_start/queries.py; echo ----; cat 02_schema_inference/README.md | head -60",
    "mkdir -p <guest-path> && cp -r <guest-path> <guest-path> && cp -r <guest-path> <guest-path> && S=<guest-path>; for d in 01 02; do cd <guest-path> && echo \"== $d check\" && $S check . 2>&1; echo \"rc=$?\"; $S strip . && $S rewrite . 2>&1; echo \"== $d roundtrip rc=$?\"; done; cd <guest-path> && diff -r <guest-path> 01 && echo same01; diff -r <guest-path> 02 && echo same02",
    "cd <guest-path> && <guest-path> --help 2>&1 | head -40; <guest-path> rewrite --help 2>&1 | head -30; cd <guest-path> && grep -n \"sqlty rewrite -v\" README.md; grep -n \"narrow-type\\` is an error\" README.md; grep -n \"by the --fix\\|check --fix\" README.md",
    "mkdir -p <guest-path> <guest-path> && cd <guest-path> && printf '[project]\\nname = \"plain\"\\nversion = \"0.0.0\"\\n' > pyproject.toml && printf 'q = \"--sql\\\\nSELECT id::INTEGER, name::TEXT FROM users\"\\n' > queries.py && cd <guest-path> && cp <guest-path> <guest-path> . && printf 'from sqlty import SQL\\n\\nquery = SQL[tuple[int, str]](\"--sql\\\\nSELECT id, email FROM users\")\\n' > queries.py && S=<guest-path> && cd <guest-path> && $S rewrite --diff . ; echo \"rc=$?\"; cat queries.py; cd <guest-path> && $S check . ; echo \"rc=$?\"",
    "cd <guest-path> && S=<guest-path> && cat > probe.json <<EOF\n{\"kind\":\"cli\",\"argv\":[\"$S\",\"check\",\".\"],\"cwd\":\"<guest-path>\",\"expected_returncode\":1,\"expected_text\":\"[narrow-type] SQL[tuple[int, str]] should be SQL[tuple[int, str | None]]\"}\nEOF\ncat > claims.json <<EOF\n[\n{\"kind\":\"claim\",\"claim\":\"sqlty check reports a narrow-type error and exits non-zero when an annotation is too narrow for the schema\",\"source\":\"\\`narrow-type\\` is an error, so CI fails on\",\"input\":\"queries.py annotates email as str but schema has it nullable\",\"expected\":\"finding printed and exit code 1\",\"probe_kind\":\"cli\",\"argv\":[\"$S\",\"check\",\".\"],\"cwd\":\"<guest-path>\",\"expected_returncode\":1,\"expected_text\":\"[narrow-type] SQL[tuple[int, str]] should be SQL[tuple[int, str | None]]\"},\n{\"kind\":\"claim\",\"claim\":\"rewrite only touches the wrapper and never the SQL string\",\"source\":\"\\`rewrite\\` and \\`strip\\` only touch the wrapper, never the SQL, so you can adopt\",\"input\":\"queries.py with q = \\\"--sql\\\\\\\\nSELECT id::INTEGER, name::TEXT FROM users\\\" (plain string)\",\"expected\":\"diff adds SQL[tuple[int, str]] wrapper around the unchanged SQL text\",\"probe_kind\":\"cli\",\"argv\":[\"$S\",\"rewrite\",\"--diff\",\".\"],\"cwd\":\"<guest-path>\",\"expected_returncode\":1,\"expected_text\":\"SQL[tuple[int, str]](\\\"--sql\\\\\\\\nSELECT id::INTEGER, name::TEXT FROM users\\\")\"}\n]\nEOF\npython3 -I -m json.tool probe.json >/dev/null && python3 -I -m json.tool claims.json && cat claims.json | head -3",
    "cd <guest-path> && S=<guest-path> && cat > examples.json <<EOF\n[\n{\"kind\":\"example\",\"claim\":\"quick start project passes sqlty check\",\"source\":\"examples/01_quick_start/README.md\",\"input\":\"sqlty check . in a copy of examples/01_quick_start\",\"expected\":\"exit 0, no findings\",\"argv\":[\"$S\",\"check\",\".\"],\"cwd\":\"<guest-path>\",\"expected_returncode\":0},\n{\"kind\":\"example\",\"claim\":\"schema inference project passes sqlty check without casts\",\"source\":\"examples/02_schema_inference/README.md\",\"input\":\"sqlty check . in a copy of examples/02_schema_inference\",\"expected\":\"exit 0, no findings\",\"argv\":[\"$S\",\"check\",\".\"],\"cwd\":\"<guest-path>\",\"expected_returncode\":0}\n]\nEOF\ncat > cycles.json <<EOF\n{\"detected\":false,\"reason\":\"Entry points inspected: sqlty has subcommands rewrite, strip, check, breaking, rule, skill, version (sqlty --help). Each runs once and exits; grep of src/sqlty for cron, schedule, --once, --now, daemon, webhook and while-loops found no scheduler or loop. No product cycle exists, so nothing was triggered.\",\"checks\":[]}\nEOF\npython3 -I -m json.tool examples.json >/dev/null && python3 -I -m json.tool cycles.json >/dev/null && echo ok; cd <guest-path> && $S check . ; echo rc=$?",
    "cd <guest-path> && ls <guest-path> 2>&1; ls /inputs/ 2>&1; <env-var>=<guest-path> python3 -I <guest-path> --validate --replay 2>&1 | tail -60",
    "cd <guest-path> && cat > report.json <<'EOF'\n{\"outcome\":\"working\",\"fault_owner\":null,\"operation\":\"Type-check raw SQL strings with the sqlty CLI: sqlty check reports a narrow-type mismatch against a schema, sqlty rewrite wraps --sql strings in SQL[T], and check --fix updates the annotation\",\"operation_scope\":\"Linux x86_64 guest, Python 3.14.9 (installed via uv because the README requires 3.14+; guest default is 3.12.3), sqlty 0.2.2 from PyPI with the psycopg extra, no database connection needed\",\"steps\":[\"uv venv --python 3.14 <guest-path>\",\"uv pip install --python <guest-path> \\\"sqlty[psycopg]\\\"\",\"sqlty rewrite -v . (fresh project in <guest-path>)\",\"sqlty check . (exit 0)\",\"sqlty strip . (back to plain string)\",\"sqlty check . on schema fixture (narrow-type finding, exit 1)\",\"sqlty check --fix . (annotation became SQL[tuple[int, str | None]], recheck exit 0)\",\"examples/01_quick_start and examples/02_schema_inference: sqlty check . (exit 0) on copies\"],\"deviations\":[\"README requires Python 3.14+; guest default python3 is 3.12.3, so installed CPython 3.14.9 with uv (uv venv --python 3.14). Repo .python-version says 3.15; README is followed.\",\"Installed sqlty from PyPI as the README documents (pip install \\\"sqlty[psycopg]\\\"), not from the pinned checkout source.\",\"examples/02_schema_inference round trip (strip then rewrite) is not a no-diff: rewrite reflowed one long wrapped SQL[...] call onto a single line. Source README says 'round trip, no diff'. Cosmetic only.\",\"check --fix was verified by hand in a scratch project but is not a replayed claim, because it mutates files and would not be repeatable on replay.\",\"Checker path /inputs/coldpass-preflight.py does not exist in this VM; ran <guest-path> with the same --validate --replay flags instead.\",\"Examples were run on copies under <guest-path> so the checkout stays unmodified; claim and probe fixtures live under <guest-path>\"],\"stuck_step\":null,\"main_blocker\":null,\"plain_failure\":null,\"suggested_fix\":\"None required for the tested behavior. Optional: make example 02's round trip match its 'no diff' wording, or have rewrite keep the original line wrapping.\"}\nEOF\npython3 -I -m json.tool report.json >/dev/null && echo valid; cd <guest-path> && <env-var>=<guest-path> python3 -I <guest-path> --validate --replay 2>&1 | head -c 300"
  ],
  "stuck_step": null,
  "error_excerpt": null,
  "what_it_did": "Type-check raw SQL strings with the sqlty CLI: sqlty check reports a narrow-type mismatch against a schema, sqlty rewrite wraps --sql strings in SQL[T], and check --fix updates the annotation",
  "suggested_fix": null,
  "tokens_in": 345556,
  "tokens_out": 14719,
  "cost_usd": 0.016913690000000002,
  "usage_complete": true,
  "checks": [
    {
      "check": "operation",
      "status": "PASS",
      "details": {
        "working": true,
        "argv": [
          "<guest-path>",
          "check",
          "."
        ],
        "kind": "cli",
        "returncode": 1,
        "stdout": "queries.py:3: [narrow-type] SQL[tuple[int, str]] should be SQL[tuple[int, str | None]]\nFound 1 error(s)",
        "stderr": "",
        "needs_credentials": false,
        "needs_browser": false,
        "scope": "product operation"
      }
    }
  ],
  "safety": {
    "version": "z2x-1",
    "rules_version": "z2x-1",
    "summary": "Review signals: 2 known vulnerability.",
    "findings": [
      {
        "kind": "known-vulnerability",
        "count": 2,
        "note": "OSV reports a known vulnerability in this dependency version.",
        "location_count": 1,
        "path": "pygments"
      }
    ],
    "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."
    ],
    "static": {
      "dependency_note": "OSV scanned supported lockfiles; unpinned dependencies and unsupported formats are outside this check."
    },
    "evidence_url": "/safety/?run=jirikuncar--sqlty-claude-haiku-5-5-1793111945401158219",
    "evidence_file": "/data/safety/jirikuncar--sqlty-claude-haiku-5-5-1793111945401158219.json.gz"
  },
  "agent_execution": "native_agent",
  "agent_runtime": "claude-code",
  "agent_runtime_version": "2.1.310 (Claude Code)",
  "tool_transport": "mcp-assigned-vm",
  "platform": "linux",
  "reasoning": "low",
  "service_tier": null,
  "resources": {
    "cpus": 2,
    "memory_mib": 4096,
    "disk_mib": 32768
  },
  "native_tool_calls": 17,
  "native_bundle": null,
  "architecture": null,
  "backend": "hyperv",
  "platform_details": {
    "backend": "hyperv",
    "os": "linux"
  },
  "platform_conflicts": null,
  "sandbox_source": null,
  "source_pin": {
    "commit": "0ccad9d0c2b48925dc1b02cd4408846ef5132d52",
    "url": "https://github.com/jirikuncar/sqlty"
  },
  "purpose": "initial",
  "profile": {
    "model": "claude-haiku-5-5",
    "reasoning": "low"
  },
  "fault": {
    "owner": null,
    "status": "resolved",
    "reason": null
  },
  "fix_id": null,
  "verifies_run_id": null,
  "hosting": null,
  "operation_scope": "product operation",
  "tool_calls": 17,
  "guest_setup": null,
  "runtime": null,
  "runtime_version": null,
  "runtime_revision": null,
  "source_revision": null,
  "evidence_version": null,
  "failure_origin": null,
  "evidence_strength": "readme_checked",
  "works": "yes",
  "install_s": null,
  "first_use_s": null,
  "mcp": "none",
  "needs": [],
  "needs_which": null,
  "agent_interface": [
    "cli"
  ],
  "license": "MIT",
  "repo_url": "https://github.com/jirikuncar/sqlty",
  "cost_to_try": "free",
  "hardware": null,
  "what_failed": null,
  "local_or_hosted": "local",
  "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": "Entry points inspected: sqlty has subcommands rewrite, strip, check, breaking, rule, skill, version (sqlty --help). Each runs once and exits; grep of src/sqlty for cron, schedule, --once, --now, daemon, webhook and while-loops found no scheduler or loop. No product cycle exists, so nothing was triggered.",
      "evidence": "Entry points inspected: sqlty has subcommands rewrite, strip, check, breaking, rule, skill, version (sqlty --help). Each runs once and exits; grep of src/sqlty for cron, schedule, --once, --now, daemon, webhook and while-loops found no scheduler or loop. No product cycle exists, so nothing was triggered.",
      "command": ""
    }
  ],
  "claims": [
    {
      "kind": "claim",
      "claim": "sqlty check reports a narrow-type error and exits non-zero when an annotation is too narrow for the schema",
      "source": "`narrow-type` is an error, so CI fails on",
      "input": "queries.py annotates email as str but schema has it nullable",
      "expected": "finding printed and exit code 1",
      "command": "<guest-path> check .",
      "verdict": "yes",
      "outcome": "Real input produced the expected result: [narrow-type] SQL[tuple[int, str]] should be SQL[tuple[int, str | None]]",
      "evidence": "[narrow-type] SQL[tuple[int, str]] should be SQL[tuple[int, str | None]]\nFound 1 error(s)\n",
      "returncode": 1,
      "source_checked": true,
      "source_file": "README.md"
    },
    {
      "kind": "claim",
      "claim": "rewrite only touches the wrapper and never the SQL string",
      "source": "`rewrite` and `strip` only touch the wrapper, never the SQL, so you can adopt",
      "input": "queries.py with q = \"--sql\\nSELECT id::INTEGER, name::TEXT FROM users\" (plain string)",
      "expected": "diff adds SQL[tuple[int, str]] wrapper around the unchanged SQL text",
      "command": "<guest-path> rewrite --diff .",
      "verdict": "yes",
      "outcome": "Real input produced the expected result: SQL[tuple[int, str]](\"--sql\\nSELECT id::INTEGER, name::TEXT FROM users\")",
      "evidence": "SQL[tuple[int, str]](\"--sql\\nSELECT id::INTEGER, name::TEXT FROM users\")\n",
      "returncode": 1,
      "source_checked": true,
      "source_file": "README.md"
    }
  ],
  "claims_note": null,
  "example_checks": [
    {
      "kind": "example",
      "claim": "quick start project passes sqlty check",
      "source": "examples/01_quick_start/README.md",
      "input": "sqlty check . in a copy of examples/01_quick_start",
      "command": "<guest-path> check .",
      "evidence": "",
      "deferred": false,
      "expected": "exit 0, no findings",
      "returncode": 0,
      "verdict": "yes",
      "outcome": "command completed successfully with no output"
    },
    {
      "kind": "example",
      "claim": "schema inference project passes sqlty check without casts",
      "source": "examples/02_schema_inference/README.md",
      "input": "sqlty check . in a copy of examples/02_schema_inference",
      "command": "<guest-path> check .",
      "evidence": "",
      "deferred": false,
      "expected": "exit 0, no findings",
      "returncode": 0,
      "verdict": "yes",
      "outcome": "command completed successfully with no output"
    }
  ],
  "does_what_it_says": "yes",
  "maintenance": {
    "last_commit_at": "2026-10-27T14:26:35Z",
    "commits_90d": 392,
    "merged_prs_90d": 343,
    "open_issues": 4,
    "open_prs": 3,
    "reply_share": null,
    "reply_threads": 0,
    "median_reply_hours": null,
    "last_release_at": "2026-10-27T13:20:36Z",
    "archived": false,
    "verdict": "maintained",
    "note": "actively maintained: last commit 0 days ago; 392 commits and 343 merged PRs in 90 days; 4 open issues, 3 open PRs; latest release 2026-10-27"
  },
  "maintenance_verdict": "maintained",
  "maintenance_note": "actively maintained: last commit 0 days ago; 392 commits and 343 merged PRs in 90 days; 4 open issues, 3 open PRs; latest release 2026-10-27",
  "maintained": "active",
  "maintained_note": "last commit 0 days ago; 4 open issues, 10 answered or closed",
  "last_commit_at": "2026-10-27T14:27:39Z",
  "last_release_at": "2026-10-27T13:20:36Z",
  "open_issues": 4,
  "answered_issues": 10,
  "platforms_claimed": [
    "linux",
    "mac",
    "windows"
  ],
  "topic": "data",
  "agent_interfaces": [
    {
      "interface": "cli",
      "evidence": "independent checker",
      "observed": true,
      "operation_checked": true
    }
  ],
  "agent_interfaces_note": "README metadata is a discovery hint, not pinned documentation proof. Observed interfaces were exercised in this run. An empty list means unknown.",
  "mcp_context": null,
  "tested_at": "2026-10-27T14:41:46.626808+00:00",
  "tested_commit": "0ccad9d0c2b48925dc1b02cd4408846ef5132d52",
  "tested_with": {
    "agent": "claude-code",
    "agent_version": "2.1.310 (Claude Code)",
    "model": "claude-haiku-5-5",
    "model_route": "claude-haiku-5-5",
    "reasoning": "low",
    "os": "linux",
    "backend": "hyperv",
    "transport": "mcp-assigned-vm"
  },
  "setup_identity": {
    "repo": "jirikuncar/sqlty",
    "source": "https://github.com/jirikuncar/sqlty",
    "commit": "0ccad9d0c2b48925dc1b02cd4408846ef5132d52",
    "source_revision": null,
    "os": "linux",
    "architecture": null,
    "backend": "hyperv",
    "model": "claude-haiku-5-5",
    "model_version": "claude-haiku-5-5",
    "agent_execution": "native_agent",
    "agent_runtime": "claude-code",
    "agent_runtime_version": "2.1.310 (Claude Code)",
    "tool_transport": "mcp-assigned-vm",
    "runtime": null,
    "runtime_version": null,
    "runtime_revision": null,
    "sandbox_source": null,
    "guest_setup": null,
    "source_pin": {
      "commit": "0ccad9d0c2b48925dc1b02cd4408846ef5132d52",
      "url": "https://github.com/jirikuncar/sqlty"
    },
    "platform_details": {
      "os": "linux",
      "backend": "hyperv"
    },
    "platform_conflicts": null,
    "reasoning": "low",
    "service_tier": null,
    "resources": {
      "cpus": 2,
      "memory_mib": 4096,
      "disk_mib": 32768
    },
    "operation": "Type-check raw SQL strings with the sqlty CLI: sqlty check reports a narrow-type mismatch against a schema, sqlty rewrite wraps --sql strings in SQL[T], and check --fix updates the annotation",
    "operation_scope": "product operation",
    "hosting": null,
    "kind": "repo",
    "test_version": "readme-d5b140d3c0f8b95c2dd6fe6fc381a303cacb92679582c22317d8e78b572f0cf2",
    "evidence_version": null
  },
  "other_model": null,
  "other_run_id": null,
  "models_agree": null,
  "furthest_model": null,
  "transcript_url": "/transcripts/jirikuncar--sqlty-claude-haiku-5-5-1793111945401158219.txt",
  "report_url": "/reports/jirikuncar--sqlty-claude-haiku-5-5-1793111945401158219.json"
}
