Tighten agent validation gates
This commit is contained in:
@@ -134,10 +134,19 @@ def evaluate_project() -> dict:
|
||||
if not suggestions:
|
||||
suggestions.append("Current platform covers the requested control-plane features, uploaded YOLO dataset train/predict/heatmap actions, live uploaded-data YOLO predict/heatmap acceptance, real workspace data acceptance, and synthetic deep training acceptance; next focus is a longer operator-run task on a full dataset.")
|
||||
|
||||
score = sum(1 for item in checks if item["passed"]) / max(len(checks), 1)
|
||||
passed_count = sum(1 for item in checks if item["passed"])
|
||||
total_count = max(len(checks), 1)
|
||||
score = passed_count / total_count
|
||||
passed = passed_count == len(checks)
|
||||
return {
|
||||
"agent": "evaluation_suggestion_agent",
|
||||
"passed": passed,
|
||||
"score": round(score, 3),
|
||||
"summary": {
|
||||
"passed_checks": passed_count,
|
||||
"total_checks": len(checks),
|
||||
"missing_checks": [item["name"] for item in checks if not item["passed"]],
|
||||
},
|
||||
"checks": checks,
|
||||
"suggestions": suggestions,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user