{
  "schema_version": 1,
  "run_id": "mostlind--sqlm-gpt-6-luna-1796528955443227232",
  "date": "2026-12-06T04:01:32.178594+00:00",
  "repo": "mostlind/sqlm",
  "model": "gpt-6-luna",
  "kind": "repo",
  "mcp": "none",
  "commit": "7ecdd5bf8d0701cb3f456373f1e61e58ebaad259",
  "outcome": "pass",
  "time_to_working_s": 675.2486799139879,
  "install_s": 259.732,
  "first_use_s": 12.709,
  "stuck_step": null,
  "what_failed": null,
  "suggested_fix": null,
  "what_it_did": "Build the included top_pro_customers SQLM query into plain Postgres SQL.",
  "needs": [],
  "needs_which": null,
  "missing": null,
  "claims": [
    {
      "kind": "claim",
      "claim": "SQLM compiles the documented top-pro customer query to plain Postgres SQL.",
      "source": "A small superset of Postgres SQL that adds parameterized functions, file-based modules, static type & nullability checking against `schema.sql`, typed Python/TypeScript codegen, and an LSP language server — compiling down to plain, readable Postgres SQL.",
      "input": "tests/fixtures/reports/top_pro_customers.sqlm",
      "expected": "SELECT u.email, s.spend, s.order_count",
      "command": "<guest-path> build --schema tests/fixtures/schema.sql tests/fixtures/reports/top_pro_customers.sqlm",
      "verdict": "yes",
      "outcome": "Real input produced the expected result: SELECT u.email, s.spend, s.order_count",
      "evidence": "SELECT u.email, s.spend, s.order_count\nFROM (\n  SELECT o.user_id, sum(o.total) AS spend, count(*) AS order_count\n  FROM (\n    SELECT id, user_id, total\n    FROM orders\n    WHERE status = 'paid' AND placed_at >= DATE '2026-11-01' AND placed_at < DATE '2026-12-01'\n  ) AS o\n  GROUP BY o.user_id\n) AS s\nJOIN (\n  SELECT id, email, plan\n  FROM users\n  WHERE deleted_at IS NULL AND last_seen_at >= now() - INTERVAL '30 days'\n) AS u ON u.id = s.user_id\nWHERE u.plan = 'pro'\nORDER BY s.spend DESC\nLIMIT 20;\n\n",
      "cwd": "<guest-path>",
      "hardware_prerequisite": null,
      "returncode": 0,
      "stdout": "-- top_pro_customers: top_pro_customers() → {email text!, spend numeric!, order_count bigint!}\nSELECT u.email, s.spend, s.order_count\nFROM (\n  SELECT o.user_id, sum(o.total) AS spend, count(*) AS order_count\n  FROM (\n    SELECT id, user_id, total\n    FROM orders\n    WHERE status = 'paid' AND placed_at >= DATE '2026-11-01' AND placed_at < DATE '2026-12-01'\n  ) AS o\n  GROUP BY o.user_id\n) AS s\nJOIN (\n  SELECT id, email, plan\n  FROM users\n  WHERE deleted_at IS NULL AND last_seen_at >= now() - INTERVAL '30 days'\n) AS u ON u.id = s.user_id\nWHERE u.plan = 'pro'\nORDER BY s.spend DESC\nLIMIT 20;\n\n",
      "stderr": "",
      "output_truncated": false,
      "source_checked": true,
      "source_file": "README.md"
    }
  ],
  "example_checks": [
    {
      "kind": "example",
      "claim": "Compile a query to plain Postgres SQL",
      "source": "README.md CLI build example",
      "input": "tests/fixtures/reports/top_pro_customers.sqlm and tests/fixtures/schema.sql",
      "command": "<guest-path> build --schema tests/fixtures/schema.sql tests/fixtures/reports/top_pro_customers.sqlm",
      "evidence": "-- top_pro_customers: top_pro_customers() → {email text!, spend numeric!, order_count bigint!}\nSELECT u.email, s.spend, s.order_count\nFROM (\n  SELECT o.user_id, sum(o.total) AS spend, count(*) AS order_count\n  FROM (\n    SELECT id, user_id, total\n    FROM orders\n    WHERE status = 'paid' AND placed_at >= DATE '2026-11-01' AND placed_at < DATE '2026-12-01'\n  ) AS o\n  GROUP BY o.user_id\n) AS s\nJOIN (\n  SELECT id, email, plan\n  FROM users\n  WHERE deleted_at IS NULL AND last_seen_at >= now() - INTERVAL '30 days'\n) AS u ON u.id = s.user_id\nWHERE u.plan = 'pro'\nORDER BY s.spend DESC\nLIMIT 20;",
      "deferred": false,
      "expected": "plain SQL containing the selected columns",
      "hardware_prerequisite": null,
      "returncode": 0,
      "native_crash": false,
      "stdout": "-- top_pro_customers: top_pro_customers() → {email text!, spend numeric!, order_count bigint!}\nSELECT u.email, s.spend, s.order_count\nFROM (\n  SELECT o.user_id, sum(o.total) AS spend, count(*) AS order_count\n  FROM (\n    SELECT id, user_id, total\n    FROM orders\n    WHERE status = 'paid' AND placed_at >= DATE '2026-11-01' AND placed_at < DATE '2026-12-01'\n  ) AS o\n  GROUP BY o.user_id\n) AS s\nJOIN (\n  SELECT id, email, plan\n  FROM users\n  WHERE deleted_at IS NULL AND last_seen_at >= now() - INTERVAL '30 days'\n) AS u ON u.id = s.user_id\nWHERE u.plan = 'pro'\nORDER BY s.spend DESC\nLIMIT 20;\n\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 crates/sqlm source and README CLI entrypoints. The README documents check, build, gen, and the persistent stdio LSP; no scheduled job, cron, loop, webhook, --once, or --now cycle is described.",
      "evidence": "Inspected crates/sqlm source and README CLI entrypoints. The README documents check, build, gen, and the persistent stdio LSP; no scheduled job, cron, loop, webhook, --once, or --now cycle is described.",
      "command": ""
    }
  ],
  "maintenance": {
    "archived": false,
    "ci_commit": "7ecdd5bf8d0701cb3f456373f1e61e58ebaad259",
    "ci_read_at": "2026-12-06T03:46:22Z",
    "ci_state": "FAILURE",
    "commits_90d": 15,
    "last_commit_at": "2026-12-06T03:21:55Z",
    "last_release_at": "2026-12-06T03:28:03Z",
    "median_reply_hours": null,
    "merged_prs_90d": 0,
    "note": "actively maintained: last commit 0 days ago; 15 commits and 0 merged PRs in 90 days; 0 open issues, 0 open PRs; latest release 2026-12-06",
    "open_issues": 0,
    "open_prs": 0,
    "reply_share": null,
    "reply_threads": 0,
    "verdict": "maintained"
  },
  "dependencies": [
    "Rust stable 1.100.1 / Cargo 1.100.1"
  ],
  "local_or_hosted": "local",
  "readme_deviations": [
    "README CLI examples show default config/schema discovery. This checkout has no root sqlm.toml or schema.sql, so the operation uses the included tests/fixtures/schema.sql explicitly."
  ],
  "safety": {
    "version": "z2x-1",
    "summary": "Review signals: 1 outside write.",
    "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": [
          "http"
        ],
        "names": [
          "_http._tcp.archive.ubuntu.com",
          "archive.ubuntu.com",
          "security.ubuntu.com",
          "our local network"
        ]
      }
    ],
    "credential_reads": [],
    "outside_writes": 1,
    "download_and_run_lines": 0,
    "malware_advisories": [],
    "vulnerabilities": [],
    "secrets": 0,
    "secrets_in_tests": 0,
    "download_lines_in_tests": 0,
    "dependency_versions": 166,
    "scanned": {
      "secrets": true,
      "dependencies": true,
      "source": true
    },
    "capped_kinds": [],
    "findings_capped": false,
    "malware_checked": true,
    "scan_skips": {},
    "compiled": {
      "counts": {},
      "paths": []
    },
    "installed": {
      "packages": 0,
      "malicious": [],
      "vulnerabilities": []
    },
    "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": [
        "archive.ubuntu.com"
      ],
      "blocked_hosts": [],
      "canary_checked": true,
      "canary_sent": false,
      "canary_sent_to": [],
      "hosts": [
        "archive.ubuntu.com"
      ],
      "package_registries": [
        "archive.ubuntu.com"
      ],
      "private_address_attempts": 0,
      "recorded": true,
      "repo_hosts": [],
      "unanswered_hosts": [],
      "unattributed": [],
      "hosts_withheld": 8
    },
    "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"
}
