{
  "schema_version": 1,
  "run_id": "AbigailWilliams1692--data_infrastructure-gpt-6-luna-1796312239908343233",
  "date": "2026-12-03T15:40:58.487468+00:00",
  "repo": "AbigailWilliams1692/data_infrastructure",
  "model": "gpt-6-luna",
  "kind": "repo",
  "mcp": "none",
  "commit": "4c426d860b30c2240046ef36fa2540bbf6ca21e6",
  "outcome": "pass",
  "time_to_working_s": 182.06012670201017,
  "install_s": 45.195,
  "first_use_s": 31.296,
  "stuck_step": null,
  "what_failed": null,
  "suggested_fix": null,
  "what_it_did": "Run the documented CSV quickstart to fetch local typed rows, convert to a DataFrame, aggregate values, and append/read back a CSV row.",
  "needs": [],
  "needs_which": null,
  "missing": null,
  "claims": [
    {
      "kind": "claim",
      "claim": "CSV quickstart reads typed, provenance-bearing batches and writes them back",
      "source": "from datainfra.sources import CsvFileSource\n\nsource = CsvFileSource(\"examples/data\")\nbatch = source.fetch(\"file.bars\")  # → 带 schema 与出处的行集\n\nframe = batch.to_dataframe()  # 需要 pandas 时再装上\nrows = batch.to_records()  # 零依赖：列名 → 值的映射\ntext = batch.to_json()  # 或 to_jsonl()：一行一个对象",
      "input": "examples/data/bars.csv",
      "expected": "rows=9  source=csv_file",
      "command": ".venv/bin/python examples/01_csv_quickstart.py",
      "verdict": "yes",
      "outcome": "Real input produced the expected result: rows=9  source=csv_file",
      "evidence": "rows=9  source=csv_file\nrequested_at=2026-12-03T15:40:41.788409+00:00\nduration_ms=2.3\nphysical_requests=1\n\nsymbol                        ts   open   high    low  close  volume\n  AAPL 2026-11-25 14:30:00+00:00 231.10 231.85 230.40 231.62 1842300\n  AAPL 2026-11-25 14:31:00+00:00 231.62 232.05 231.20 231.88  923400\n  AAPL 2026-11-25 14:32:00+00:00 231.88 232.40 231.70 232.31 1102500\n  MSFT 2026-11-25 14:30:00+00:00 428.20 428.90 427.55 428.66  742100\n  MSFT 2026-11-25 14:31:00+00:00 428.66 429.10 428.40 428.95  401800\n  MSFT 2026-11-25 14:32:00+00:00 428.95 429.40 428.70 429.22  388600\n  NVDA 202",
      "cwd": "<guest-path>",
      "hardware_prerequisite": null,
      "returncode": 0,
      "stdout": ":00 428.20 428.90 427.55 428.66  742100\n  MSFT 2026-11-25 14:31:00+00:00 428.66 429.10 428.40 428.95  401800\n  MSFT 2026-11-25 14:32:00+00:00 428.95 429.40 428.70 429.22  388600\n  NVDA 2026-11-25 14:30:00+00:00 138.40 139.05 138.10 138.92 5120400\n  NVDA 2026-11-25 14:31:00+00:00 138.92 139.30 138.60 139.05 2633800\n  NVDA 2026-11-25 14:32:00+00:00 139.05 139.55 138.85 139.41 2901100\n\nAAPL 均价: 231.9367  成交量合计: 3868200\n\n--- 写回同一份 CSV ---\n写入 1 行，1 批，模式 append\n行数 9 -> 10\n表头出现次数 1\n最后一行 ('MSFT', datetime.datetime(2026, 12, 1, 9, 30, tzinfo=datetime.timezone.utc), 420.1, 421.0, 419.9, 420.5, 2100000)\n",
      "stderr": "",
      "output_truncated": true,
      "source_checked": true,
      "source_file": "README.md"
    },
    {
      "kind": "claim",
      "claim": "The README quickstart fetches local CSV data",
      "source": "同一个接口，接所有数据源。传输、鉴权、分页、编解码、限流、重试全部收进管道，新增数据源只新增文件。",
      "input": "examples/data/bars.csv",
      "expected": "rows=9  source=csv_file",
      "command": ".venv/bin/python examples/01_csv_quickstart.py",
      "verdict": "yes",
      "outcome": "Real input produced the expected result: rows=9  source=csv_file",
      "evidence": "rows=9  source=csv_file\nrequested_at=2026-12-03T15:40:43.561452+00:00\nduration_ms=2.2\nphysical_requests=1\n\nsymbol                        ts   open   high    low  close  volume\n  AAPL 2026-11-25 14:30:00+00:00 231.10 231.85 230.40 231.62 1842300\n  AAPL 2026-11-25 14:31:00+00:00 231.62 232.05 231.20 231.88  923400\n  AAPL 2026-11-25 14:32:00+00:00 231.88 232.40 231.70 232.31 1102500\n  MSFT 2026-11-25 14:30:00+00:00 428.20 428.90 427.55 428.66  742100\n  MSFT 2026-11-25 14:31:00+00:00 428.66 429.10 428.40 428.95  401800\n  MSFT 2026-11-25 14:32:00+00:00 428.95 429.40 428.70 429.22  388600\n  NVDA 202",
      "cwd": "<guest-path>",
      "hardware_prerequisite": null,
      "returncode": 0,
      "stdout": ":00 428.20 428.90 427.55 428.66  742100\n  MSFT 2026-11-25 14:31:00+00:00 428.66 429.10 428.40 428.95  401800\n  MSFT 2026-11-25 14:32:00+00:00 428.95 429.40 428.70 429.22  388600\n  NVDA 2026-11-25 14:30:00+00:00 138.40 139.05 138.10 138.92 5120400\n  NVDA 2026-11-25 14:31:00+00:00 138.92 139.30 138.60 139.05 2633800\n  NVDA 2026-11-25 14:32:00+00:00 139.05 139.55 138.85 139.41 2901100\n\nAAPL 均价: 231.9367  成交量合计: 3868200\n\n--- 写回同一份 CSV ---\n写入 1 行，1 批，模式 append\n行数 9 -> 10\n表头出现次数 1\n最后一行 ('MSFT', datetime.datetime(2026, 12, 1, 9, 30, tzinfo=datetime.timezone.utc), 420.1, 421.0, 419.9, 420.5, 2100000)\n",
      "stderr": "",
      "output_truncated": true,
      "source_checked": true,
      "source_file": "README.md"
    }
  ],
  "example_checks": [
    {
      "kind": "example",
      "claim": "SQLite read and write round trip",
      "source": "README.md: python examples/02_sqlite_read_write.py",
      "input": "SQLite in-memory database",
      "command": ".venv/bin/python examples/02_sqlite_read_write.py",
      "evidence": "写入回执\n  dataset     : chinook.tracks\n  mode        : append\n  batches     : 1\n  rows_written: 3\n  requests    : 1\n\n读回 3 行（page_size=2，所以发了 2 次请求）\n   1  So What              0.99\n   2  Freddie Freeloader   0.99\n   3  Blue in Green        1.29\n\n只读数据集拒绝写入: 'file.bars.readonly' does not declare support for 'write' | dataset=file.bars.readonly | source=csv_file | stage=spec",
      "deferred": false,
      "expected": "读回 3 行",
      "hardware_prerequisite": null,
      "returncode": 0,
      "native_crash": false,
      "stdout": "写入回执\n  dataset     : chinook.tracks\n  mode        : append\n  batches     : 1\n  rows_written: 3\n  requests    : 1\n\n读回 3 行（page_size=2，所以发了 2 次请求）\n   1  So What              0.99\n   2  Freddie Freeloader   0.99\n   3  Blue in Green        1.29\n\n只读数据集拒绝写入: 'file.bars.readonly' does not declare support for 'write' | dataset=file.bars.readonly | source=csv_file | stage=spec\n",
      "stderr": "",
      "output_truncated": false,
      "verdict": "yes",
      "outcome": "command completed successfully"
    },
    {
      "kind": "example",
      "claim": "Custom offline source",
      "source": "README.md: python examples/05_custom_source.py",
      "input": "start=2026-12-01",
      "command": ".venv/bin/python examples/05_custom_source.py",
      "evidence": "3 天数据 -> 6 行，3 次请求\n  2026-12-01T10:00:00  AAPL  101.5\n  2026-12-01T16:00:00  AAPL  102.25\n  2026-12-02T10:00:00  AAPL  101.5\n  2026-12-02T16:00:00  AAPL  102.25\n  2026-12-03T10:00:00  AAPL  101.5\n  2026-12-03T16:00:00  AAPL  102.25\n\n注意：源码里没有一行计算日期窗口以外的请求逻辑——\n      切窗在 plan()，发送、重试、观测都在内核。",
      "deferred": false,
      "expected": "3 天数据 -> 6 行",
      "hardware_prerequisite": null,
      "returncode": 0,
      "native_crash": false,
      "stdout": "3 天数据 -> 6 行，3 次请求\n  2026-12-01T10:00:00  AAPL  101.5\n  2026-12-01T16:00:00  AAPL  102.25\n  2026-12-02T10:00:00  AAPL  101.5\n  2026-12-02T16:00:00  AAPL  102.25\n  2026-12-03T10:00:00  AAPL  101.5\n  2026-12-03T16:00:00  AAPL  102.25\n\n注意：源码里没有一行计算日期窗口以外的请求逻辑——\n      切窗在 plan()，发送、重试、观测都在内核。\n",
      "stderr": "",
      "output_truncated": false,
      "verdict": "yes",
      "outcome": "command completed successfully"
    },
    {
      "kind": "example",
      "claim": "Catalog and CLI example",
      "source": "README.md: python examples/06_catalog_and_cli.py",
      "input": "file.bars local CSV",
      "command": ".venv/bin/python examples/06_catalog_and_cli.py",
      "evidence": "nute bars stored as a CSV file.\",\n  \"inputSchema\": {\n    \"type\": \"object\",\n    \"properties\": {\n      \"symbol\": {\n        \"type\": \"string\",\n        \"description\": \"Ticker.\"\n      }\n    },\n    \"required\": [],\n    \"additionalProperties\": false\n  },\n  \"annotations\": {\n    \"readOnlyHint\": false,\n    \"destructiveHint\": true\n  }\n}\n\nfiles 源取到 9 行\n\n== 等价命令行 ==\n  python -m datainfra --module examples.06_catalog_and_cli catalog\n  python -m datainfra --module examples.06_catalog_and_cli tools\n  python -m datainfra --module examples.06_catalog_and_cli fetch --source files --dataset file.bars --format jsonl",
      "deferred": false,
      "expected": "files 源取到 9 行",
      "hardware_prerequisite": null,
      "returncode": 0,
      "native_crash": false,
      "stdout": "ute bars stored as a CSV file.\",\n  \"inputSchema\": {\n    \"type\": \"object\",\n    \"properties\": {\n      \"symbol\": {\n        \"type\": \"string\",\n        \"description\": \"Ticker.\"\n      }\n    },\n    \"required\": [],\n    \"additionalProperties\": false\n  },\n  \"annotations\": {\n    \"readOnlyHint\": false,\n    \"destructiveHint\": true\n  }\n}\n\nfiles 源取到 9 行\n\n== 等价命令行 ==\n  python -m datainfra --module examples.06_catalog_and_cli catalog\n  python -m datainfra --module examples.06_catalog_and_cli tools\n  python -m datainfra --module examples.06_catalog_and_cli fetch --source files --dataset file.bars --format jsonl\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 and examples/*.py entrypoints; they are finite scripts and document no scheduled cycles, cron, loops, webhooks, --once, or --now trigger.",
      "evidence": "Inspected README and examples/*.py entrypoints; they are finite scripts and document no scheduled cycles, cron, loops, webhooks, --once, or --now trigger.",
      "command": ""
    }
  ],
  "maintenance": {
    "archived": false,
    "ci_commit": "4c426d860b30c2240046ef36fa2540bbf6ca21e6",
    "ci_read_at": "2026-12-03T15:36:45Z",
    "ci_state": "SUCCESS",
    "commits_90d": 13,
    "last_commit_at": "2026-12-03T15:21:48Z",
    "last_release_at": null,
    "median_reply_hours": null,
    "merged_prs_90d": 1,
    "note": "actively maintained: last commit 0 days ago; 13 commits and 1 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",
    "pip",
    "pandas 3.1.2 for documented DataFrame conversion"
  ],
  "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",
        "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"
}
