Add production safety controls
This commit is contained in:
@@ -27,6 +27,8 @@ class DecisionEngineV2:
|
||||
blockers.append(f"Domain {domain} ist nicht fuer Active-Control freigegeben.")
|
||||
if control.manual_block:
|
||||
blockers.append("Manuelle Sicherheitssperre ist aktiv.")
|
||||
if control.stage is SafetyStage.ACTIVE and not control.active_ready:
|
||||
blockers.append("Active ist noch nicht freigegeben. Erst Dry-run-Reife erreichen.")
|
||||
best = None
|
||||
for pattern in learning.patterns:
|
||||
if pattern.trigger_entity_id != trigger_entity_id:
|
||||
@@ -63,4 +65,3 @@ class DecisionEngineV2:
|
||||
blockers=blockers,
|
||||
trigger_entity_id=trigger_entity_id,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user