research(jev-intent): fix2 把来源 B 现行与高置信错误补进报告
Independent Staging Quality Gate / validate (push) Failing after 9m3s
Independent Staging Quality Gate / publish (push) Skipped

离线从 cache 聚合,不重跑模型。无焦点层 Flash 69.7% 低于 Jev 78.8%。采集层相对门槛标不可判。
This commit is contained in:
jesse-ux
2026-09-19 12:28:43 +08:00
parent 33367fb081
commit 507ef959f5
6 changed files with 455 additions and 18 deletions
+10
View File
@@ -132,6 +132,16 @@ class JevIntentCorpusTests(unittest.TestCase):
for name in names:
self.assertNotIn(name, message)
def test_report_json_includes_current_source_b(self) -> None:
path = ROOT / "docs" / "research" / "jev_intent_2026_09_19.json"
if not path.is_file():
self.skipTest("report json not generated yet")
payload = json.loads(path.read_text(encoding="utf-8"))
current = (payload.get("metrics") or {}).get("current_source_b")
self.assertIsNotNone(current)
self.assertEqual(current["n"], payload["meta"]["source_b_n"])
self.assertIn("source_b_none_confusion", payload["metrics"])
if __name__ == "__main__":
unittest.main()