fix: reject unprovenanced ML artifacts

This commit is contained in:
Hermes Agent
2026-07-26 23:07:24 +00:00
parent 62bff348bf
commit eb8c01611c
6 changed files with 198 additions and 8 deletions
+2 -1
View File
@@ -59,5 +59,6 @@ def test_score_all_ml_preserves_classic_fallback_when_weights_missing(monkeypatc
scored = engine.score_all_ml(_complete_metrics())
assert scored["ml_mode"] is False
assert scored["ml_error"] == "ML weights not found — run ml/optimizer.py"
assert scored["ml_error"]
assert scored["ml_artifact"]["valid"] is False
assert "classic_score" not in scored