{
  "schema_version": 1,
  "run_id": "chyong--mainspring-gpt-6-luna-1796535902212183704",
  "date": "2026-12-06T05:48:27.131268+00:00",
  "repo": "chyong/mainspring",
  "model": "gpt-6-luna",
  "kind": "repo",
  "mcp": "none",
  "commit": "c9340f8fe2a42921303eddde967692bbb729f0ea",
  "outcome": "pass",
  "time_to_working_s": 161.07411838200642,
  "install_s": null,
  "first_use_s": 90.104,
  "stuck_step": null,
  "what_failed": null,
  "suggested_fix": null,
  "what_it_did": "Run examples/data_qa.py with its default recorded-response replay.",
  "needs": [],
  "needs_which": null,
  "missing": null,
  "claims": [
    {
      "kind": "claim",
      "claim": "Open-source Python agent framework with a core of two runtime packages.",
      "source": "mainspring is an open-source Python agent framework whose core depends on exactly two runtime packages: `pydantic` and `httpx`.",
      "input": "Run the documented offline replay agent example.",
      "expected": "status=finished finish_reason=stop",
      "command": "<guest-path> examples/data_qa.py",
      "verdict": "yes",
      "outcome": "Real input produced the expected result: status=finished finish_reason=stop",
      "evidence": "status=finished finish_reason=stop\nusage={'input_tokens': 709, 'output_tokens': 769, 'cache_creation_tokens': 0, 'cache_read_tokens': 0, 'reasoning_tokens': 0}\n\n回答:\nQ3华东大区销售额1,284万元（环比+6.2%），华南大区销售额968万元（环比+3.8%）。临时表tmp_q3已成功清理。\n[run=run_d2f5f11d41614c1aa8c819cc333615a7 step=1] hook seq=5 hook_name=approval-required verdict=require_approval reason=删除临时表不可逆,需人工确认表名 call_id=call_74it1m6x\n[run=run_d2f5f11d41614c1aa8c819cc333615a7 step=1] approval_pending seq=6 call_id=call_74it1m6x reason=删除临时表不可逆,需人工确认表名\n",
      "cwd": "<guest-path>",
      "hardware_prerequisite": null,
      "returncode": 0,
      "stdout": "== 挂起现场(工具尚未执行)==\nrun_id=run_d2f5f11d41614c1aa8c819cc333615a7\n  tool_call query_sales\n  tool_call query_sales\n  hook      approval-required → require_approval\n  挂起      待审批 call_74it1m6x\n\n== 人工裁决 ==\n  待审批: purge_temp_table({\"name\":\"tmp_q3\"})\n  挂起理由: 删除临时表不可逆,需人工确认表名\n  裁决      approve\n  tool_call purge_temp_table\n\n== 恢复后的终态 ==\nstatus=finished finish_reason=stop\nusage={'input_tokens': 709, 'output_tokens': 769, 'cache_creation_tokens': 0, 'cache_read_tokens': 0, 'reasoning_tokens': 0}\n\n回答:\nQ3华东大区销售额1,284万元（环比+6.2%），华南大区销售额968万元（环比+3.8%）。临时表tmp_q3已成功清理。\n",
      "stderr": "[run=run_d2f5f11d41614c1aa8c819cc333615a7 step=1] hook seq=5 hook_name=approval-required verdict=require_approval reason=删除临时表不可逆,需人工确认表名 call_id=call_74it1m6x\n[run=run_d2f5f11d41614c1aa8c819cc333615a7 step=1] approval_pending seq=6 call_id=call_74it1m6x reason=删除临时表不可逆,需人工确认表名\n",
      "output_truncated": false,
      "source_checked": true,
      "source_file": "README.md"
    },
    {
      "kind": "claim",
      "claim": "Declarative agent control with budgets, guardrails, and human approval.",
      "source": "**Control is declarative** | Turn, token, wall-clock, and no-progress budgets; tool allowlists; input and output guardrails; and human-in-the-loop approve/deny/resume are declaration slots on `Agent`, not `if` statements scattered through business code.",
      "input": "Run the data QA replay through an approval pause and resume.",
      "expected": "require_approval",
      "command": "<guest-path> examples/data_qa.py",
      "verdict": "yes",
      "outcome": "Real input produced the expected result: require_approval",
      "evidence": "…require_approval\n  挂起      待审批 call_74it1m6x\n\n== 人工裁决 ==\n  待审批: purge_temp_table({\"name\":\"tmp_q3\"})\n  挂起理由: 删除临时表不可逆,需人工确认表名\n  裁决      approve\n  tool_call purge_temp_table\n\n== 恢复后的终态 ==\nstatus=finished finish_reason=stop\nusage={'input_tokens': 709, 'output_tokens': 769, 'cache_creation_tokens': 0, 'cache_read_tokens': 0, 'reasoning_tokens': 0}\n\n回答:\nQ3华东大区销售额1,284万元（环比+6.2%），华南大区销售额968万元（环比+3.8%）。临时表tmp_q3已成功清理。\n[run=run_89a4a10356e048a59485fd3e55bb3e99 step=1] hook seq=5 hook_name=approval-required verdict=require_approval reason=删除临时表不可逆,需人工确认表名 call_id=call_74it1m6x\n[run=run_89a4a10356e048a5",
      "cwd": "<guest-path>",
      "hardware_prerequisite": null,
      "returncode": 0,
      "stdout": "== 挂起现场(工具尚未执行)==\nrun_id=run_89a4a10356e048a59485fd3e55bb3e99\n  tool_call query_sales\n  tool_call query_sales\n  hook      approval-required → require_approval\n  挂起      待审批 call_74it1m6x\n\n== 人工裁决 ==\n  待审批: purge_temp_table({\"name\":\"tmp_q3\"})\n  挂起理由: 删除临时表不可逆,需人工确认表名\n  裁决      approve\n  tool_call purge_temp_table\n\n== 恢复后的终态 ==\nstatus=finished finish_reason=stop\nusage={'input_tokens': 709, 'output_tokens': 769, 'cache_creation_tokens': 0, 'cache_read_tokens': 0, 'reasoning_tokens': 0}\n\n回答:\nQ3华东大区销售额1,284万元（环比+6.2%），华南大区销售额968万元（环比+3.8%）。临时表tmp_q3已成功清理。\n",
      "stderr": "[run=run_89a4a10356e048a59485fd3e55bb3e99 step=1] hook seq=5 hook_name=approval-required verdict=require_approval reason=删除临时表不可逆,需人工确认表名 call_id=call_74it1m6x\n[run=run_89a4a10356e048a59485fd3e55bb3e99 step=1] approval_pending seq=6 call_id=call_74it1m6x reason=删除临时表不可逆,需人工确认表名\n",
      "output_truncated": false,
      "source_checked": true,
      "source_file": "README.md"
    }
  ],
  "example_checks": [
    {
      "kind": "example",
      "claim": "Replay recorded data QA model responses, execute read only queries, and require approval before destructive cleanup.",
      "source": "examples/data_qa.md",
      "input": "The documented default replay command (uv run python examples/data_qa.py).",
      "command": "<guest-path> examples/data_qa.py",
      "evidence": "_q3\"})\n  挂起理由: 删除临时表不可逆,需人工确认表名\n  裁决      approve\n  tool_call purge_temp_table\n\n== 恢复后的终态 ==\nstatus=finished finish_reason=stop\nusage={'input_tokens': 709, 'output_tokens': 769, 'cache_creation_tokens': 0, 'cache_read_tokens': 0, 'reasoning_tokens': 0}\n\n回答:\nQ3华东大区销售额1,284万元（环比+6.2%），华南大区销售额968万元（环比+3.8%）。临时表tmp_q3已成功清理。\n[run=run_afd1469de042477db8531324e5f919b5 step=1] hook seq=5 hook_name=approval-required verdict=require_approval reason=删除临时表不可逆,需人工确认表名 call_id=call_74it1m6x\n[run=run_afd1469de042477db8531324e5f919b5 step=1] approval_pending seq=6 call_id=call_74it1m6x reason=删除临时表不可逆,需人工确认表名",
      "deferred": false,
      "expected": "status=finished finish_reason=stop after approval and resume",
      "hardware_prerequisite": null,
      "returncode": 0,
      "native_crash": false,
      "stdout": "== 挂起现场(工具尚未执行)==\nrun_id=run_afd1469de042477db8531324e5f919b5\n  tool_call query_sales\n  tool_call query_sales\n  hook      approval-required → require_approval\n  挂起      待审批 call_74it1m6x\n\n== 人工裁决 ==\n  待审批: purge_temp_table({\"name\":\"tmp_q3\"})\n  挂起理由: 删除临时表不可逆,需人工确认表名\n  裁决      approve\n  tool_call purge_temp_table\n\n== 恢复后的终态 ==\nstatus=finished finish_reason=stop\nusage={'input_tokens': 709, 'output_tokens': 769, 'cache_creation_tokens': 0, 'cache_read_tokens': 0, 'reasoning_tokens': 0}\n\n回答:\nQ3华东大区销售额1,284万元（环比+6.2%），华南大区销售额968万元（环比+3.8%）。临时表tmp_q3已成功清理。\n",
      "stderr": "[run=run_afd1469de042477db8531324e5f919b5 step=1] hook seq=5 hook_name=approval-required verdict=require_approval reason=删除临时表不可逆,需人工确认表名 call_id=call_74it1m6x\n[run=run_afd1469de042477db8531324e5f919b5 step=1] approval_pending seq=6 call_id=call_74it1m6x reason=删除临时表不可逆,需人工确认表名\n",
      "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 and documented entrypoints in examples/data_qa.md and examples/data_qa.py; the documented replay is a finite invocation, and no cron, loop, webhook, --once, or --now cycle behavior is advertised.",
      "evidence": "Inspected README.md and documented entrypoints in examples/data_qa.md and examples/data_qa.py; the documented replay is a finite invocation, and no cron, loop, webhook, --once, or --now cycle behavior is advertised.",
      "command": ""
    }
  ],
  "maintenance": {
    "archived": false,
    "ci_commit": "22954973ffc017038c656159c844f4aa2cb3590e",
    "ci_read_at": "2026-12-06T05:04:51Z",
    "ci_state": "FAILURE",
    "commits_90d": 217,
    "last_commit_at": "2026-12-06T04:00:43Z",
    "last_release_at": "2026-12-06T05:03:45Z",
    "median_reply_hours": null,
    "merged_prs_90d": 0,
    "note": "actively maintained: last commit 0 days ago; 217 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": [
    "Python 3.12.3",
    "uv 0.13.13",
    "workspace virtual environment created by uv sync"
  ],
  "local_or_hosted": "local",
  "readme_deviations": [
    "The README quickstart uses a live Ollama model, but the separately documented examples/data_qa.py default replay uses recorded model responses and completed without Ollama or credentials.",
    "uv's installer chose <guest-path> in this guest; the first attempted follow-up at /root/.local/bin/uv was the wrong path. The installed executable then ran uv sync successfully."
  ],
  "safety": {
    "version": "z2x-1",
    "summary": "Review signals: 1 connection review, 2 hardcoded secret, 17 known vulnerability.",
    "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": true,
    "lookups_recorded": true,
    "unsorted_blocked_ports": [],
    "contacts": [
      {
        "to": "104.26.13.77",
        "port": "443",
        "rule": null,
        "programs": [
          "curl"
        ],
        "names": [
          "astral.sh",
          "releases.astral.sh"
        ]
      },
      {
        "to": "172.67.68.3",
        "port": "443",
        "rule": null,
        "programs": [
          "curl"
        ],
        "names": [
          "astral.sh",
          "releases.astral.sh"
        ]
      }
    ],
    "contacts_not_listed": 0,
    "lookups": [
      {
        "owner": "installer",
        "programs": [
          "http"
        ],
        "names": [
          "_http._tcp.archive.ubuntu.com",
          "archive.ubuntu.com",
          "security.ubuntu.com",
          "our local network"
        ]
      },
      {
        "owner": "installer",
        "programs": [
          "uv"
        ],
        "names": [
          "files.pythonhosted.org",
          "pypi.org"
        ]
      },
      {
        "owner": "repo",
        "programs": [
          "curl"
        ],
        "names": [
          "astral.sh",
          "releases.astral.sh"
        ]
      }
    ],
    "credential_reads": [],
    "outside_writes": 0,
    "download_and_run_lines": 0,
    "malware_advisories": [],
    "vulnerabilities": [
      {
        "package": "@vitest/mocker",
        "version": "3.2.7",
        "advisory": "GHSA-82fw-gwwq-j7x9"
      },
      {
        "package": "@vitest/mocker",
        "version": "3.2.7",
        "advisory": "GHSA-qxg6-89mg-rqv8"
      },
      {
        "package": "diskcache",
        "version": "5.6.3",
        "advisory": "GHSA-w8v5-vhqr-4h9v"
      },
      {
        "package": "diskcache",
        "version": "5.6.3",
        "advisory": "PYSEC-2026-2447"
      },
      {
        "package": "starlette",
        "version": "0.50.0",
        "advisory": "GHSA-82w8-qh3p-5jfq"
      },
      {
        "package": "starlette",
        "version": "0.50.0",
        "advisory": "GHSA-86qp-5c8j-p5mr"
      },
      {
        "package": "starlette",
        "version": "0.50.0",
        "advisory": "GHSA-jp82-jpqv-5vv3"
      },
      {
        "package": "starlette",
        "version": "0.50.0",
        "advisory": "GHSA-wqp7-x3pw-xc5r"
      },
      {
        "package": "starlette",
        "version": "0.50.0",
        "advisory": "GHSA-x746-7m8f-x49c"
      },
      {
        "package": "starlette",
        "version": "0.50.0",
        "advisory": "PYSEC-2026-161"
      },
      {
        "package": "starlette",
        "version": "0.50.0",
        "advisory": "PYSEC-2026-2280"
      },
      {
        "package": "starlette",
        "version": "0.50.0",
        "advisory": "PYSEC-2026-2281"
      },
      {
        "package": "starlette",
        "version": "0.50.0",
        "advisory": "PYSEC-2026-248"
      },
      {
        "package": "starlette",
        "version": "0.50.0",
        "advisory": "PYSEC-2026-249"
      },
      {
        "package": "tinypool",
        "version": "1.1.1",
        "advisory": "GHSA-5gmw-xhrv-c9v3"
      },
      {
        "package": "tinypool",
        "version": "1.1.1",
        "advisory": "GHSA-85c8-ppgw-ccpr"
      },
      {
        "package": "vitest",
        "version": "3.2.7",
        "advisory": "GHSA-82fw-gwwq-j7x9"
      }
    ],
    "secrets": 2,
    "secrets_in_tests": 0,
    "download_lines_in_tests": 0,
    "dependency_versions": 474,
    "scanned": {
      "secrets": true,
      "dependencies": true,
      "source": true
    },
    "capped_kinds": [],
    "findings_capped": false,
    "malware_checked": true,
    "scan_skips": {},
    "compiled": {
      "counts": {},
      "paths": []
    },
    "installed": {
      "packages": 71,
      "malicious": [],
      "vulnerabilities": [
        {
          "package": "starlette",
          "version": "0.50.0",
          "advisory": "GHSA-82w8-qh3p-5jfq"
        },
        {
          "package": "starlette",
          "version": "0.50.0",
          "advisory": "GHSA-86qp-5c8j-p5mr"
        },
        {
          "package": "starlette",
          "version": "0.50.0",
          "advisory": "GHSA-jp82-jpqv-5vv3"
        },
        {
          "package": "starlette",
          "version": "0.50.0",
          "advisory": "GHSA-wqp7-x3pw-xc5r"
        },
        {
          "package": "starlette",
          "version": "0.50.0",
          "advisory": "GHSA-x746-7m8f-x49c"
        },
        {
          "package": "starlette",
          "version": "0.50.0",
          "advisory": "PYSEC-2026-161"
        },
        {
          "package": "starlette",
          "version": "0.50.0",
          "advisory": "PYSEC-2026-2280"
        },
        {
          "package": "starlette",
          "version": "0.50.0",
          "advisory": "PYSEC-2026-2281"
        },
        {
          "package": "starlette",
          "version": "0.50.0",
          "advisory": "PYSEC-2026-248"
        },
        {
          "package": "starlette",
          "version": "0.50.0",
          "advisory": "PYSEC-2026-249"
        }
      ]
    },
    "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",
        "astral.sh",
        "files.pythonhosted.org",
        "pypi.org",
        "releases.astral.sh"
      ],
      "blocked_hosts": [],
      "canary_checked": true,
      "canary_sent": false,
      "canary_sent_to": [],
      "hosts": [
        "archive.ubuntu.com",
        "astral.sh",
        "files.pythonhosted.org",
        "pypi.org",
        "releases.astral.sh"
      ],
      "package_registries": [
        "archive.ubuntu.com",
        "files.pythonhosted.org",
        "pypi.org"
      ],
      "private_address_attempts": 0,
      "recorded": true,
      "repo_hosts": [],
      "unanswered_hosts": [],
      "unattributed": [
        "astral.sh",
        "releases.astral.sh"
      ],
      "hosts_withheld": 3
    },
    "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"
}
