mirror of
https://github.com/ThearchyHelios/AgentLab.git
synced 2026-11-25 16:02:17 +00:00
可验证报告的核对页给分析结论的方法写上中文叫法:服务端在随文件附带的分析结论条目上带 method_label(contract.method_label,和导出页同一份),verifier.js 的数字详情、指标上的可比性两处「方法与版本」照导出页写「变化拆解(可加) · decompose.additive@1」,页面只显示、不另起叫法;条目上没带叫法的只写 id。以前只显示方法 id。测试:分析结论、口径卡指标上的可比性两种条目都带叫法
This commit is contained in:
@@ -106,6 +106,8 @@ def test_the_analysis_and_its_input_travel_with_the_file_and_verify():
|
||||
# 导出时服务端真的复算了一遍:按封存的输入快照(这份文件里哈希对得上的原字节)重算,逐字段相同
|
||||
assert analysis_item["recheck"] == {"status": "same", "method": "decompose.additive@1",
|
||||
"text": "复算一致:按封存的输入重新计算,结论逐项相同"}
|
||||
# 方法的叫法由服务端带上(和导出页同一份),核对页只显示「变化拆解(可加) · decompose.additive@1」
|
||||
assert analysis_item["method_label"] == "变化拆解(可加)"
|
||||
[query] = [x for x in bundle["artifacts"] if x["kind"] == "query"]
|
||||
assert "b64" in query
|
||||
|
||||
@@ -259,7 +261,7 @@ def test_the_comparability_on_a_card_travels_with_the_card_and_is_chained_throug
|
||||
assert "b64" in item(bundle, card_id)
|
||||
comparability = item(bundle, found)
|
||||
assert comparability["kind"] == ARTIFACT_KIND and "b64" in comparability and comparability["node_id"] == "card"
|
||||
assert comparability["recheck"]["status"] == "same"
|
||||
assert comparability["recheck"]["status"] == "same" and comparability["method_label"] == "可比性检查"
|
||||
got = verdicts(bundle)
|
||||
assert all(r == "pass" for key in ("events", "manifest", "artifacts", "chain") for r in got[key]), got["why"]
|
||||
assert {w["kind"] for w in got["why"]["chain"]} >= {"metric_set", ARTIFACT_KIND, "query"}
|
||||
|
||||
Reference in New Issue
Block a user