feat: init commint
This commit is contained in:
@@ -154,14 +154,22 @@ def record_support_evaluation_result(
|
||||
if isinstance(analysis.automation_decision, dict)
|
||||
else {}
|
||||
)
|
||||
actual_auto_resolved = (
|
||||
decision.get("status") == "auto_resolved"
|
||||
and decision.get("applied") is True
|
||||
and analysis.applied_solution_id is not None
|
||||
# 一次确认流程把“分析判定可自动复用”和“人工批准后真正解决”拆成两个时点。
|
||||
# 旧字段名继续保留给既有评估数据和接口,但阶段指标按是否到达批准就绪态计算。
|
||||
actual_auto_resolved = decision.get("status") in {
|
||||
"waiting_approval",
|
||||
"auto_resolved",
|
||||
} and bool(
|
||||
decision.get("eligible")
|
||||
or (
|
||||
decision.get("applied") is True
|
||||
and analysis.applied_solution_id is not None
|
||||
)
|
||||
)
|
||||
actual_manual_fallback = decision.get("status") == "manual_recommendation"
|
||||
evaluated_solution_id = analysis.applied_solution_id or decision.get("solution_id")
|
||||
incorrect_auto_reuse = bool(
|
||||
actual_auto_resolved and analysis.applied_solution_id not in expected_ids
|
||||
actual_auto_resolved and evaluated_solution_id not in expected_ids
|
||||
)
|
||||
outcome_correct = (
|
||||
actual_auto_resolved == case.expected_auto_resolve
|
||||
@@ -190,6 +198,7 @@ def record_support_evaluation_result(
|
||||
"expected_auto_resolve": case.expected_auto_resolve,
|
||||
"expected_manual_fallback": case.expected_manual_fallback,
|
||||
"applied_solution_id": analysis.applied_solution_id,
|
||||
"evaluated_solution_id": evaluated_solution_id,
|
||||
"automation_decision": decision,
|
||||
"reference_count": len(analysis.references),
|
||||
"outcome_correct": outcome_correct,
|
||||
|
||||
Reference in New Issue
Block a user