{
  "schema_version": 1,
  "run_id": "wangshuyongyhm--nexusos-gate-gpt-6-luna-1795798849576719220",
  "date": "2026-11-27T17:03:51.033518+00:00",
  "repo": "wangshuyongyhm/nexusos-gate",
  "model": "gpt-6-luna",
  "kind": "repo",
  "mcp": "none",
  "commit": "483d5a2061471b5ff217e19dd9de291a1c221107",
  "outcome": "pass",
  "time_to_working_s": 143.2467518930789,
  "install_s": null,
  "first_use_s": 101.552,
  "stuck_step": null,
  "what_failed": null,
  "suggested_fix": null,
  "what_it_did": "Run the bundled minimal gate scenario against a ten-line report file",
  "needs": [],
  "needs_which": null,
  "missing": null,
  "claims": [
    {
      "kind": "claim",
      "claim": "Gate scenario execution",
      "source": "--- title: NEXUS Gate 引擎 description: 声明式门禁：场景YAML+checks插件池 updated: 2026-11-27 ---",
      "input": "minimal scenario with a ten-line report file",
      "expected": "gate returns passed true and reports both minimal checks as pass",
      "command": "<guest-path> -m nexusos_gate.gate_engine minimal '{\"report_path\":\"<guest-path>\"}' --agent coldpass",
      "verdict": "yes",
      "outcome": "Real input produced the expected result: \"passed\": true",
      "evidence": "…\"passed\": true,\n  \"failures\": [\n    {\n      \"id\": \"M1\",\n      \"name\": \"产物存在\",\n      \"status\": \"pass\",\n      \"severity\": \"REJECT\",\n      \"detail\": \"存在: <guest-path>\"\n    },\n    {\n      \"id\": \"M2\",\n      \"name\": \"产物非敷衍\",\n      \"status\": \"pass\",\n      \"severity\": \"REJECT\",\n      \"detail\": \"10 行(<guest-path>)\"\n    }\n  ],\n  \"hard_fails\": [],\n  \"warns\": [],\n  \"manual\": []\n}\n[gate_engine] WARNING: gate 事件未落流(GATE_GRACE 将看不到本次) scenario=minimal agent=coldpass: ModuleNotFoundError: No module named 'nexusos_xdr'\n[Task609",
      "cwd": "<guest-path>",
      "hardware_prerequisite": null,
      "returncode": 0,
      "stdout": "{\n  \"passed\": true,\n  \"failures\": [\n    {\n      \"id\": \"M1\",\n      \"name\": \"产物存在\",\n      \"status\": \"pass\",\n      \"severity\": \"REJECT\",\n      \"detail\": \"存在: <guest-path>\"\n    },\n    {\n      \"id\": \"M2\",\n      \"name\": \"产物非敷衍\",\n      \"status\": \"pass\",\n      \"severity\": \"REJECT\",\n      \"detail\": \"10 行(<guest-path>)\"\n    }\n  ],\n  \"hard_fails\": [],\n  \"warns\": [],\n  \"manual\": []\n}\n",
      "stderr": "[gate_engine] WARNING: gate 事件未落流(GATE_GRACE 将看不到本次) scenario=minimal agent=coldpass: ModuleNotFoundError: No module named 'nexusos_xdr'\n[Task609] gate 事件写入失败 scenario=minimal agent=coldpass: No module named 'nexusos_xdr'\n",
      "output_truncated": false,
      "source_checked": true,
      "source_file": "README.md"
    },
    {
      "kind": "claim",
      "claim": "Declarative YAML scenarios",
      "source": "- **声明式场景定义**：每个门禁场景一个 YAML（示例见随包的 etc/checks/examples/），含 required_context 校验 + 检查项列表",
      "input": "minimal scenario with a ten-line report file",
      "expected": "gate returns passed true and reports both minimal checks as pass",
      "command": "<guest-path> -m nexusos_gate.gate_engine minimal '{\"report_path\":\"<guest-path>\"}' --agent coldpass",
      "verdict": "yes",
      "outcome": "Real input produced the expected result: \"passed\": true",
      "evidence": "…\"passed\": true,\n  \"failures\": [\n    {\n      \"id\": \"M1\",\n      \"name\": \"产物存在\",\n      \"status\": \"pass\",\n      \"severity\": \"REJECT\",\n      \"detail\": \"存在: <guest-path>\"\n    },\n    {\n      \"id\": \"M2\",\n      \"name\": \"产物非敷衍\",\n      \"status\": \"pass\",\n      \"severity\": \"REJECT\",\n      \"detail\": \"10 行(<guest-path>)\"\n    }\n  ],\n  \"hard_fails\": [],\n  \"warns\": [],\n  \"manual\": []\n}\n[gate_engine] WARNING: gate 事件未落流(GATE_GRACE 将看不到本次) scenario=minimal agent=coldpass: ModuleNotFoundError: No module named 'nexusos_xdr'\n[Task609",
      "cwd": "<guest-path>",
      "hardware_prerequisite": null,
      "returncode": 0,
      "stdout": "{\n  \"passed\": true,\n  \"failures\": [\n    {\n      \"id\": \"M1\",\n      \"name\": \"产物存在\",\n      \"status\": \"pass\",\n      \"severity\": \"REJECT\",\n      \"detail\": \"存在: <guest-path>\"\n    },\n    {\n      \"id\": \"M2\",\n      \"name\": \"产物非敷衍\",\n      \"status\": \"pass\",\n      \"severity\": \"REJECT\",\n      \"detail\": \"10 行(<guest-path>)\"\n    }\n  ],\n  \"hard_fails\": [],\n  \"warns\": [],\n  \"manual\": []\n}\n",
      "stderr": "[gate_engine] WARNING: gate 事件未落流(GATE_GRACE 将看不到本次) scenario=minimal agent=coldpass: ModuleNotFoundError: No module named 'nexusos_xdr'\n[Task609] gate 事件写入失败 scenario=minimal agent=coldpass: No module named 'nexusos_xdr'\n",
      "output_truncated": false,
      "source_checked": true,
      "source_file": "README.md"
    },
    {
      "kind": "claim",
      "claim": "Automatic check plugin discovery",
      "source": "- **插件池自动发现**：`etc/gates/_checks/` 下 46 个检查插件按文件名自动装载，覆盖对抗式审查、README 同步、MEM 查询留痕、验证证据等维度",
      "input": "minimal scenario with a ten-line report file",
      "expected": "gate returns passed true and reports both minimal checks as pass",
      "command": "<guest-path> -m nexusos_gate.gate_engine minimal '{\"report_path\":\"<guest-path>\"}' --agent coldpass",
      "verdict": "yes",
      "outcome": "Real input produced the expected result: \"passed\": true",
      "evidence": "…\"passed\": true,\n  \"failures\": [\n    {\n      \"id\": \"M1\",\n      \"name\": \"产物存在\",\n      \"status\": \"pass\",\n      \"severity\": \"REJECT\",\n      \"detail\": \"存在: <guest-path>\"\n    },\n    {\n      \"id\": \"M2\",\n      \"name\": \"产物非敷衍\",\n      \"status\": \"pass\",\n      \"severity\": \"REJECT\",\n      \"detail\": \"10 行(<guest-path>)\"\n    }\n  ],\n  \"hard_fails\": [],\n  \"warns\": [],\n  \"manual\": []\n}\n[gate_engine] WARNING: gate 事件未落流(GATE_GRACE 将看不到本次) scenario=minimal agent=coldpass: ModuleNotFoundError: No module named 'nexusos_xdr'\n[Task609",
      "cwd": "<guest-path>",
      "hardware_prerequisite": null,
      "returncode": 0,
      "stdout": "{\n  \"passed\": true,\n  \"failures\": [\n    {\n      \"id\": \"M1\",\n      \"name\": \"产物存在\",\n      \"status\": \"pass\",\n      \"severity\": \"REJECT\",\n      \"detail\": \"存在: <guest-path>\"\n    },\n    {\n      \"id\": \"M2\",\n      \"name\": \"产物非敷衍\",\n      \"status\": \"pass\",\n      \"severity\": \"REJECT\",\n      \"detail\": \"10 行(<guest-path>)\"\n    }\n  ],\n  \"hard_fails\": [],\n  \"warns\": [],\n  \"manual\": []\n}\n",
      "stderr": "[gate_engine] WARNING: gate 事件未落流(GATE_GRACE 将看不到本次) scenario=minimal agent=coldpass: ModuleNotFoundError: No module named 'nexusos_xdr'\n[Task609] gate 事件写入失败 scenario=minimal agent=coldpass: No module named 'nexusos_xdr'\n",
      "output_truncated": false,
      "source_checked": true,
      "source_file": "README.md"
    },
    {
      "kind": "claim",
      "claim": "REJECT and WARN severity results",
      "source": "- **CLI + Python API 双入口**：脚本可 `python3 -m nexusos_gate.gate_engine <scenario> <json> [--agent <name>]`（CLI 落流身份，见下），代码可 `from nexusos_gate import gate_check`",
      "input": "minimal scenario with a ten-line report file",
      "expected": "gate returns passed true and reports both minimal checks as pass",
      "command": "<guest-path> -m nexusos_gate.gate_engine minimal '{\"report_path\":\"<guest-path>\"}' --agent coldpass",
      "verdict": "yes",
      "outcome": "Real input produced the expected result: \"passed\": true",
      "evidence": "…\"passed\": true,\n  \"failures\": [\n    {\n      \"id\": \"M1\",\n      \"name\": \"产物存在\",\n      \"status\": \"pass\",\n      \"severity\": \"REJECT\",\n      \"detail\": \"存在: <guest-path>\"\n    },\n    {\n      \"id\": \"M2\",\n      \"name\": \"产物非敷衍\",\n      \"status\": \"pass\",\n      \"severity\": \"REJECT\",\n      \"detail\": \"10 行(<guest-path>)\"\n    }\n  ],\n  \"hard_fails\": [],\n  \"warns\": [],\n  \"manual\": []\n}\n[gate_engine] WARNING: gate 事件未落流(GATE_GRACE 将看不到本次) scenario=minimal agent=coldpass: ModuleNotFoundError: No module named 'nexusos_xdr'\n[Task609",
      "cwd": "<guest-path>",
      "hardware_prerequisite": null,
      "returncode": 0,
      "stdout": "{\n  \"passed\": true,\n  \"failures\": [\n    {\n      \"id\": \"M1\",\n      \"name\": \"产物存在\",\n      \"status\": \"pass\",\n      \"severity\": \"REJECT\",\n      \"detail\": \"存在: <guest-path>\"\n    },\n    {\n      \"id\": \"M2\",\n      \"name\": \"产物非敷衍\",\n      \"status\": \"pass\",\n      \"severity\": \"REJECT\",\n      \"detail\": \"10 行(<guest-path>)\"\n    }\n  ],\n  \"hard_fails\": [],\n  \"warns\": [],\n  \"manual\": []\n}\n",
      "stderr": "[gate_engine] WARNING: gate 事件未落流(GATE_GRACE 将看不到本次) scenario=minimal agent=coldpass: ModuleNotFoundError: No module named 'nexusos_xdr'\n[Task609] gate 事件写入失败 scenario=minimal agent=coldpass: No module named 'nexusos_xdr'\n",
      "output_truncated": false,
      "source_checked": true,
      "source_file": "README.md"
    },
    {
      "kind": "claim",
      "claim": "CLI and Python API entry points",
      "source": "- **CLI + Python API 双入口**：脚本可 `python3 -m nexusos_gate.gate_engine <scenario> <json> [--agent <name>]`（CLI 落流身份，见下），代码可 `from nexusos_gate import gate_check`",
      "input": "minimal scenario with a ten-line report file",
      "expected": "gate returns passed true and reports both minimal checks as pass",
      "command": "<guest-path> -m nexusos_gate.gate_engine minimal '{\"report_path\":\"<guest-path>\"}' --agent coldpass",
      "verdict": "yes",
      "outcome": "Real input produced the expected result: \"passed\": true",
      "evidence": "…\"passed\": true,\n  \"failures\": [\n    {\n      \"id\": \"M1\",\n      \"name\": \"产物存在\",\n      \"status\": \"pass\",\n      \"severity\": \"REJECT\",\n      \"detail\": \"存在: <guest-path>\"\n    },\n    {\n      \"id\": \"M2\",\n      \"name\": \"产物非敷衍\",\n      \"status\": \"pass\",\n      \"severity\": \"REJECT\",\n      \"detail\": \"10 行(<guest-path>)\"\n    }\n  ],\n  \"hard_fails\": [],\n  \"warns\": [],\n  \"manual\": []\n}\n[gate_engine] WARNING: gate 事件未落流(GATE_GRACE 将看不到本次) scenario=minimal agent=coldpass: ModuleNotFoundError: No module named 'nexusos_xdr'\n[Task609",
      "cwd": "<guest-path>",
      "hardware_prerequisite": null,
      "returncode": 0,
      "stdout": "{\n  \"passed\": true,\n  \"failures\": [\n    {\n      \"id\": \"M1\",\n      \"name\": \"产物存在\",\n      \"status\": \"pass\",\n      \"severity\": \"REJECT\",\n      \"detail\": \"存在: <guest-path>\"\n    },\n    {\n      \"id\": \"M2\",\n      \"name\": \"产物非敷衍\",\n      \"status\": \"pass\",\n      \"severity\": \"REJECT\",\n      \"detail\": \"10 行(<guest-path>)\"\n    }\n  ],\n  \"hard_fails\": [],\n  \"warns\": [],\n  \"manual\": []\n}\n",
      "stderr": "[gate_engine] WARNING: gate 事件未落流(GATE_GRACE 将看不到本次) scenario=minimal agent=coldpass: ModuleNotFoundError: No module named 'nexusos_xdr'\n[Task609] gate 事件写入失败 scenario=minimal agent=coldpass: No module named 'nexusos_xdr'\n",
      "output_truncated": false,
      "source_checked": true,
      "source_file": "README.md"
    },
    {
      "kind": "claim",
      "claim": "Fail-open PostgreSQL warning logging",
      "source": "- **Fail-open 告警写 PG**：psycopg2 为可选依赖，缺失时门禁仍可用，仅失去告警落库能力",
      "input": "minimal scenario with a ten-line report file",
      "expected": "gate returns passed true and reports both minimal checks as pass",
      "command": "<guest-path> -m nexusos_gate.gate_engine minimal '{\"report_path\":\"<guest-path>\"}' --agent coldpass",
      "verdict": "yes",
      "outcome": "Real input produced the expected result: \"passed\": true",
      "evidence": "…\"passed\": true,\n  \"failures\": [\n    {\n      \"id\": \"M1\",\n      \"name\": \"产物存在\",\n      \"status\": \"pass\",\n      \"severity\": \"REJECT\",\n      \"detail\": \"存在: <guest-path>\"\n    },\n    {\n      \"id\": \"M2\",\n      \"name\": \"产物非敷衍\",\n      \"status\": \"pass\",\n      \"severity\": \"REJECT\",\n      \"detail\": \"10 行(<guest-path>)\"\n    }\n  ],\n  \"hard_fails\": [],\n  \"warns\": [],\n  \"manual\": []\n}\n[gate_engine] WARNING: gate 事件未落流(GATE_GRACE 将看不到本次) scenario=minimal agent=coldpass: ModuleNotFoundError: No module named 'nexusos_xdr'\n[Task609",
      "cwd": "<guest-path>",
      "hardware_prerequisite": null,
      "returncode": 0,
      "stdout": "{\n  \"passed\": true,\n  \"failures\": [\n    {\n      \"id\": \"M1\",\n      \"name\": \"产物存在\",\n      \"status\": \"pass\",\n      \"severity\": \"REJECT\",\n      \"detail\": \"存在: <guest-path>\"\n    },\n    {\n      \"id\": \"M2\",\n      \"name\": \"产物非敷衍\",\n      \"status\": \"pass\",\n      \"severity\": \"REJECT\",\n      \"detail\": \"10 行(<guest-path>)\"\n    }\n  ],\n  \"hard_fails\": [],\n  \"warns\": [],\n  \"manual\": []\n}\n",
      "stderr": "[gate_engine] WARNING: gate 事件未落流(GATE_GRACE 将看不到本次) scenario=minimal agent=coldpass: ModuleNotFoundError: No module named 'nexusos_xdr'\n[Task609] gate 事件写入失败 scenario=minimal agent=coldpass: No module named 'nexusos_xdr'\n",
      "output_truncated": false,
      "source_checked": true,
      "source_file": "README.md"
    }
  ],
  "example_checks": [
    {
      "kind": "example",
      "claim": "README documented minimal scenario operation",
      "source": "README.md, 快速上手 CLI example and examples/gates/minimal.yaml",
      "input": "ten-line report file",
      "command": "<guest-path> -m nexusos_gate.gate_engine minimal '{\"report_path\":\"<guest-path>\"}' --agent coldpass",
      "evidence": ",\n      \"status\": \"pass\",\n      \"severity\": \"REJECT\",\n      \"detail\": \"存在: <guest-path>\"\n    },\n    {\n      \"id\": \"M2\",\n      \"name\": \"产物非敷衍\",\n      \"status\": \"pass\",\n      \"severity\": \"REJECT\",\n      \"detail\": \"10 行(<guest-path>)\"\n    }\n  ],\n  \"hard_fails\": [],\n  \"warns\": [],\n  \"manual\": []\n}\n[gate_engine] WARNING: gate 事件未落流(GATE_GRACE 将看不到本次) scenario=minimal agent=coldpass: ModuleNotFoundError: No module named 'nexusos_xdr'\n[Task609] gate 事件写入失败 scenario=minimal agent=coldpass: No module named 'nexusos_xdr'",
      "deferred": false,
      "expected": "\"passed\": true",
      "hardware_prerequisite": null,
      "returncode": 0,
      "native_crash": false,
      "stdout": "{\n  \"passed\": true,\n  \"failures\": [\n    {\n      \"id\": \"M1\",\n      \"name\": \"产物存在\",\n      \"status\": \"pass\",\n      \"severity\": \"REJECT\",\n      \"detail\": \"存在: <guest-path>\"\n    },\n    {\n      \"id\": \"M2\",\n      \"name\": \"产物非敷衍\",\n      \"status\": \"pass\",\n      \"severity\": \"REJECT\",\n      \"detail\": \"10 行(<guest-path>)\"\n    }\n  ],\n  \"hard_fails\": [],\n  \"warns\": [],\n  \"manual\": []\n}\n",
      "stderr": "[gate_engine] WARNING: gate 事件未落流(GATE_GRACE 将看不到本次) scenario=minimal agent=coldpass: ModuleNotFoundError: No module named 'nexusos_xdr'\n[Task609] gate 事件写入失败 scenario=minimal agent=coldpass: No module named 'nexusos_xdr'\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 entrypoints and gate_engine CLI; the repository documents request-driven gate checks and scenarios, with no cron, loop, webhook, --once, or --now cycle trigger.",
      "evidence": "Inspected README entrypoints and gate_engine CLI; the repository documents request-driven gate checks and scenarios, with no cron, loop, webhook, --once, or --now cycle trigger.",
      "command": ""
    }
  ],
  "maintenance": {
    "archived": false,
    "ci_commit": "483d5a2061471b5ff217e19dd9de291a1c221107",
    "ci_read_at": "2026-11-27T16:44:15Z",
    "ci_state": null,
    "commits_90d": 3,
    "last_commit_at": "2026-11-27T08:39:15Z",
    "last_release_at": null,
    "median_reply_hours": null,
    "merged_prs_90d": 0,
    "note": "actively maintained: last commit 0 days ago; 3 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.12.3",
    "PyYAML >=5.4",
    "nexusos-common >=1.0,<2"
  ],
  "local_or_hosted": "local",
  "readme_deviations": [
    "pyproject.toml also declares nexusos-common>=1.0,<2 although the README calls PyYAML the sole hard runtime dependency."
  ],
  "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": 7,
      "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-21f3e76b7b4b5ced49d354a8a41ada97bae2cb87108f1fac428765f1a3585cbc",
  "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"
}
