Spaces:
Sleeping
Sleeping
Update scoring_engine.py
Browse files- scoring_engine.py +14 -0
scoring_engine.py
CHANGED
|
@@ -64,6 +64,20 @@ def compute_final_score(
|
|
| 64 |
final_score += 15
|
| 65 |
reasoning.append("High-confidence behavioral attack → +15")
|
| 66 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 67 |
# -------------------------
|
| 68 |
# CLAMP SCORE
|
| 69 |
# -------------------------
|
|
|
|
| 64 |
final_score += 15
|
| 65 |
reasoning.append("High-confidence behavioral attack → +15")
|
| 66 |
|
| 67 |
+
# -------------------------
|
| 68 |
+
# BEHAVIORAL HARD OVERRIDES
|
| 69 |
+
# -------------------------
|
| 70 |
+
if any("sextortion" in f.lower() for f in behavior_findings):
|
| 71 |
+
final_score = max(final_score, 75)
|
| 72 |
+
reasoning.append("Sextortion behavior detected → force score ≥ 75")
|
| 73 |
+
|
| 74 |
+
elif behavior_score >= 70:
|
| 75 |
+
final_score = max(final_score, 65)
|
| 76 |
+
reasoning.append("Strong behavioral attack detected → force score ≥ 65")
|
| 77 |
+
|
| 78 |
+
|
| 79 |
+
|
| 80 |
+
|
| 81 |
# -------------------------
|
| 82 |
# CLAMP SCORE
|
| 83 |
# -------------------------
|