{
  "schema_version": 1,
  "run_id": "jalousiex--py-sqlfmt_ext-gpt-6-luna-1796296843079735639",
  "date": "2026-12-03T11:23:28.920722+00:00",
  "repo": "jalousiex/py-sqlfmt_ext",
  "model": "gpt-6-luna",
  "kind": "repo",
  "mcp": "none",
  "commit": "b9978d3f4238e4ee806e30d4e6a081e988a0d492",
  "outcome": "pass",
  "time_to_working_s": 125.67762647697236,
  "install_s": 46.079,
  "first_use_s": 13.241,
  "stuck_step": null,
  "what_failed": null,
  "suggested_fix": null,
  "what_it_did": "Format a SQL file with sqlfmt_ext CLI using upper keyword casing",
  "needs": [],
  "needs_which": null,
  "missing": null,
  "claims": [
    {
      "kind": "claim",
      "claim": "The tool formats SQL without invasive changes, applies formatting and indentation rules, and supports Doris / SelectDB and other modern data warehouse SQL dialects.",
      "source": "`sqlfmt_ext` 是一个基于官方 `sqlparse` 的 SQL 格式化工具。它以**无侵入**的外挂方式扩展了官方功能，固化了符合团队习惯的美化与缩进规则，并原生支持 **Doris / SelectDB** 等现代数据仓库 SQL 方言。",
      "input": "select id,name from users where active=1",
      "expected": "SELECT id  ,\n       name\n  FROM users\n WHERE active = 1",
      "command": "<guest-path> sample.sql -k upper",
      "verdict": "yes",
      "outcome": "Real input produced the expected result: SELECT id  ,\n       name\n  FROM users\n WHERE active = 1",
      "evidence": "SELECT id  ,\n       name\n  FROM users\n WHERE active = 1",
      "cwd": "<guest-path>",
      "hardware_prerequisite": null,
      "returncode": 0,
      "stdout": "SELECT id  ,\n       name\n  FROM users\n WHERE active = 1",
      "stderr": "",
      "output_truncated": false,
      "source_checked": true,
      "source_file": "README.md"
    }
  ],
  "example_checks": [
    {
      "kind": "example",
      "claim": "Python API formats a SQL statement with Doris dialect and upper case keywords",
      "source": "README.md Python API quickstart",
      "input": "select id, name, count(1) as total from user_tb where status = 1 group by id, name",
      "command": "<guest-path> -c 'from sqlfmt_ext import format_statements; sql='\"'\"'select id, name, count(1) as total from user_tb where status = 1 group by id, name'\"'\"'; print(format_statements(sql, options={'\"'\"'dialect'\"'\"':'\"'\"'doris'\"'\"', '\"'\"'keyword_case'\"'\"':'\"'\"'upper'\"'\"'}))'",
      "evidence": "SELECT id               ,\n       name             ,\n       count(1) AS total\n  FROM user_tb\n WHERE status = 1\n GROUP BY id  ,\n          name",
      "deferred": false,
      "expected": "SELECT id               ,\n       name             ,\n       count(1) AS total\n  FROM user_tb\n WHERE status = 1\n GROUP BY id  ,\n          name",
      "hardware_prerequisite": null,
      "returncode": 0,
      "native_crash": false,
      "stdout": "SELECT id               ,\n       name             ,\n       count(1) AS total\n  FROM user_tb\n WHERE status = 1\n GROUP BY id  ,\n          name\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 README.md CLI, Python API, package build instructions and sqlfmt_ext entrypoints; no scheduled or recurring product cycle is documented.",
      "evidence": "Inspected README.md CLI, Python API, package build instructions and sqlfmt_ext entrypoints; no scheduled or recurring product cycle is documented.",
      "command": ""
    }
  ],
  "maintenance": {
    "archived": false,
    "ci_commit": "b9978d3f4238e4ee806e30d4e6a081e988a0d492",
    "ci_read_at": "2026-12-03T11:07:53Z",
    "ci_state": "SUCCESS",
    "commits_90d": 72,
    "last_commit_at": "2026-12-03T11:02:55Z",
    "last_release_at": null,
    "median_reply_hours": null,
    "merged_prs_90d": 0,
    "note": "actively maintained: last commit 0 days ago; 72 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.10",
    "uv",
    "sqlparse 0.6.0"
  ],
  "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": [
          "http"
        ],
        "names": [
          "archive.ubuntu.com",
          "security.ubuntu.com",
          "our local network"
        ]
      },
      {
        "owner": "installer",
        "programs": [
          "pip",
          "uv"
        ],
        "names": [
          "files.pythonhosted.org",
          "pypi.org"
        ]
      },
      {
        "owner": "installer",
        "programs": [
          "uv"
        ],
        "names": [
          "releases.astral.sh",
          "repo.huaweicloud.com"
        ]
      }
    ],
    "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": 11,
    "scanned": {
      "secrets": true,
      "dependencies": true,
      "source": true
    },
    "capped_kinds": [],
    "findings_capped": false,
    "malware_checked": true,
    "scan_skips": {},
    "compiled": {
      "counts": {},
      "paths": []
    },
    "installed": {
      "packages": 11,
      "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": [
        "archive.ubuntu.com",
        "files.pythonhosted.org",
        "pypi.org",
        "releases.astral.sh",
        "repo.huaweicloud.com"
      ],
      "blocked_hosts": [],
      "canary_checked": true,
      "canary_sent": false,
      "canary_sent_to": [],
      "hosts": [
        "archive.ubuntu.com",
        "files.pythonhosted.org",
        "pypi.org",
        "releases.astral.sh",
        "repo.huaweicloud.com"
      ],
      "package_registries": [
        "archive.ubuntu.com",
        "files.pythonhosted.org",
        "pypi.org"
      ],
      "private_address_attempts": 0,
      "recorded": true,
      "repo_hosts": [],
      "unanswered_hosts": [],
      "unattributed": [],
      "hosts_withheld": 4
    },
    "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"
}
