fix(ai): stabilize GCP Ollama alert lane
This commit is contained in:
@@ -165,9 +165,11 @@ class GovernanceAgent:
|
||||
auto_deprecated=len(auto_deprecated_ids),
|
||||
kept=len(kept_ids),
|
||||
)
|
||||
drift_ratio = len(drifted) / total if total > 0 else 0.0
|
||||
return {
|
||||
"checked": total,
|
||||
"drifted": len(drifted),
|
||||
"drift_ratio": drift_ratio,
|
||||
"auto_deprecated": len(auto_deprecated_ids),
|
||||
"kept": len(kept_ids),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user