code-to10 v6 A12: scorecard example renamed to 2026-10-31 snapshot with timeliness fields

(cherry picked from commit 633cdbc94e7a7b0c5d3b0b135189faf3de6673f4)

Reconcile-port: handler_admin.py hunks redirected into cloud/server.py _audit_scorecard (target keeps 6-mixin split; scorecard module itself applied cleanly).
This commit is contained in:
host committed 2026-11-03 02:49:26 +00:00
1 parent e131e8658d
commit e32391fd85
4 files changed
+39 -19

No files matched your search

+14 -7
View File
@@ -467,13 +467,16 @@ def build_scorecard(evidence, thresholds=None):
}
def example_scorecard_current_state():
"""用当前真实状态证据跑出来的系统评分卡(不是上一轮判断分)。
def example_scorecard_as_of_2026_10_31():
"""2026-10-31 快照示例卡(历史示例,不是当前系统得分)。
证据口径:生产仍跑 v0.2、main 仍 aebc623、CI 账单模式、
#238/#240/#244/#241/#247/#249/#253/#255/#256/#258/#259/#260/#261
全部只到 PR OPEN。凡是只到 PR、未合并部署、未真实验证的,
在这里都记为未知或已知未强制,不估算、不写成判断分。
证据是本函数 2026-10-31 落笔时记录的快照值(生产 v0.2、
main aebc623、覆盖率 0.7787 等),此后未重新实测;调用方
绝不能把它读成当前系统得分。要当前分数,须显式把新证据
传给 build_scorecard()。凡是只到 PR、未合并部署、未真实
验证的,在这里都记为未知或已知未强制,不估算、不写成
判断分。阈值仍为测试默认值
(source="test_default_unapproved"),未拍板。
总体结论必然是不达标。
"""
evidence = {
@@ -513,4 +516,8 @@ def example_scorecard_current_state():
"parallel_scale_proven": 18,
},
}
return build_scorecard(evidence)
report = build_scorecard(evidence)
report["evidence_as_of"] = "2026-10-31"
report["evidence_kind"] = "historical_example_snapshot"
report["not_current_system_score"] = True
return report