{
  "python": "3.13.5",
  "platform": "Linux-6.18.55-x86_64-with-glibc2.41",
  "test_count": 49,
  "failures": 0,
  "errors": 0,
  "skipped": 0,
  "seconds": 2.2111925299996074,
  "live_llm": "NOT_RUN",
  "gpu_benchmark": "NOT_RUN",
  "production_security_audit": "NOT_RUN",
  "scope": "机制/协议/真实本地文件及子进程；所有任务与数值数据为作者构建",
  "capstone": {
    "kind": "脚本动作控制+真实文件与测试；非LLM效果评测",
    "initial_passed": false,
    "after_patch_passed": true,
    "completed": true,
    "patch_applied": true,
    "diff": "--- a/matcher.py\n+++ b/matcher.py\n@@ -1,7 +1,22 @@\n from pathlib import PurePosixPath\n \n def should_exclude(path, patterns):\n-    # 契约：路径相对仓库根；末尾/代表目录及后代；其他项精确匹配。\n-    # 历史错误：只比较basename，导致nested路径失配，也误排除同名文件。\n-    path = PurePosixPath(path).name\n-    return path in patterns\n+    if not isinstance(path, str) or not all(isinstance(p, str) for p in patterns):\n+        raise TypeError(\"path和patterns必须是字符串\")\n+    normalized = path.replace(\"\\\\\", \"/\")\n+    parts = PurePosixPath(normalized).parts\n+    if PurePosixPath(normalized).is_absolute() or \"..\" in parts:\n+        raise ValueError(\"只支持仓库相对路径，拒绝父级跳转\")\n+    value = str(PurePosixPath(normalized))\n+    for pattern in patterns:\n+        rule = pattern.replace(\"\\\\\", \"/\")\n+        rule_parts = PurePosixPath(rule).parts\n+        if PurePosixPath(rule).is_absolute() or \"..\" in rule_parts:\n+            raise ValueError(\"排除规则不能越界\")\n+        if rule.endswith(\"/\"):\n+            prefix = str(PurePosixPath(rule))\n+            if value == prefix or value.startswith(prefix + \"/\"):\n+                return True\n+        elif value == str(PurePosixPath(rule)):\n+            return True\n+    return False\n",
    "trace": [
      {
        "call": {
          "id": "t0",
          "name": "test",
          "args": {}
        },
        "result": {
          "version": "9889901cd19183eb5a6fcdb45fd82538ad8e85ed15c768678af5dfe7ea1a6b4d",
          "passed": false,
          "exit_code": 1,
          "log": "F..FFF.F\n======================================================================\nFAIL: test_directory (__main__.MatchingTests.test_directory)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n  File \"test_matcher.py\", line 7, in test_directory\n    def test_directory(self): self.assertTrue(f(\"vendor/a.py\",[\"vendor/\"]))\n                              ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nAssertionError: False is not true\n\n======================================================================\nFAIL: test_nested (__main__.MatchingTests.test_nested)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n  File \"test_matcher.py\", line 5, in test_nested\n    def test_nested(self): self.assertTrue(f(\"src/a.py\",[\"src/a.py\"]))\n                           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nAssertionError: False is not true\n\n======================================================================\nFAIL: test_parent (__main__.MatchingTests.test_parent)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n  File \"test_matcher.py\", line 12, in test_parent\n    with self.assertRaises(ValueError): f(\"../a.py\",[\"a.py\"])\n         ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^\nAssertionError: ValueError not raised\n\n======================================================================\nFAIL: test_same_name (__main__.MatchingTests.test_same_name)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n  File \"test_matcher.py\", line 6, in test_same_name\n    def test_same_name(self): self.assertFalse(f(\"src/a.py\",[\"a.py\"]))\n                              ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^\nAssertionError: True is not false\n\n======================================================================\nFAIL: test_windows (__main__.MatchingTests.test_windows)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n  File \"test_matcher.py\", line 9, in test_windows\n    def test_windows(self): self.assertTrue(f(\"src\\\\a.py\",[\"src/a.py\"]))\n                            ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nAssertionError: False is not true\n\n----------------------------------------------------------------------\nRan 8 tests in 0.001s\n\nFAILED (failures=5)\n"
        }
      },
      {
        "call": {
          "id": "r1",
          "name": "read",
          "args": {
            "path": "matcher.py"
          }
        },
        "result": {
          "text": "from pathlib import PurePosixPath\n\ndef should_exclude(path, patterns):\n    # 契约：路径相对仓库根；末尾/代表目录及后代；其他项精确匹配。\n    # 历史错误：只比较basename，导致nested路径失配，也误排除同名文件。\n    path = PurePosixPath(path).name\n    return path in patterns\n",
          "version": "9889901cd19183eb5a6fcdb45fd82538ad8e85ed15c768678af5dfe7ea1a6b4d"
        }
      },
      {
        "call": {
          "id": "p1",
          "name": "replace",
          "args": {
            "expected": "[源码内容]",
            "new": "[源码内容]"
          }
        },
        "result": {
          "status": "applied",
          "wrote": true,
          "version": "383da239221fd2a5d1d19cfc232ebe6403e3730c9ed9ae15f1f58322a9e8b769"
        }
      },
      {
        "call": {
          "id": "t1",
          "name": "test",
          "args": {}
        },
        "result": {
          "version": "383da239221fd2a5d1d19cfc232ebe6403e3730c9ed9ae15f1f58322a9e8b769",
          "passed": true,
          "exit_code": 0,
          "log": "........\n----------------------------------------------------------------------\nRan 8 tests in 0.000s\n\nOK\n"
        }
      }
    ],
    "symbols": [
      {
        "name": "should_exclude",
        "kind": "FunctionDef",
        "start": 3,
        "end": 22
      }
    ],
    "stale_completion_rejected": true
  },
  "retrieval": {
    "kind": "权限过滤先于评分的真实词项检索",
    "result": [
      [
        "current",
        0.8630462173553426
      ]
    ],
    "denied": [],
    "symbols": [
      {
        "name": "choose",
        "kind": "FunctionDef",
        "start": 1,
        "end": 2
      }
    ],
    "rrf": [
      [
        "current",
        0.03252247488101534
      ],
      [
        "old",
        0.03252247488101534
      ]
    ]
  },
  "context_memory": {
    "kind": "确定性元数据约束，不证明自然语言语义保真",
    "pack": {
      "selected": [
        "definition",
        "policy",
        "usage"
      ],
      "cost": 70,
      "budget": 75
    },
    "historically_unknown": {
      "status": "not_found",
      "claims": []
    },
    "now_known": {
      "status": "found",
      "claims": [
        "repository-relative"
      ]
    }
  },
  "sse": {
    "kind": "协议字节分片实验，非真实网络请求",
    "calls": [
      {
        "id": "c1",
        "name": "read_file",
        "args": {
          "path": "中文.py"
        }
      }
    ]
  },
  "statistics": {
    "kind": "合成评测数据",
    "bootstrap": {
      "difference": 0.2222222222222222,
      "interval_95": [
        -1.850371707708594e-17,
        0.3333333333333333
      ],
      "resampling_unit": "task"
    },
    "pass_at_3": 0.5333333333333333,
    "wilson_8_of_10": [
      0.49016247153665027,
      0.943317848545623
    ],
    "mcnemar_b1_c4": 0.375,
    "independent_p08_all3": 0.5120000000000001
  },
  "numerics": {
    "kind": "数值机制实验；非商用模型评测",
    "cache_max_error": 1.5543122344752192e-15,
    "wrong_rope_offset_error": 3.1744545678365306,
    "online_softmax_error": 3.552713678800501e-15,
    "speculative": {
      "empirical": [
        0.5978666666666667,
        0.30333333333333334,
        0.0988
      ],
      "target": [
        0.6,
        0.3,
        0.1
      ],
      "acceptance": 0.6037333333333333,
      "trials": 30000
    },
    "byte_bpe_roundtrip": "工程lower"
  },
  "attention_backward": {
    "kind": "解析反向与有限差分；非训练能力/非GPU性能评测",
    "max_absolute_errors": {
      "dQ": 9.143890158935797e-11,
      "dK": 1.9576201770732382e-10,
      "dV": 1.1711515091050728e-10
    }
  }
}