feat(core): add task queue, retry loop, and basic approval gate

This commit is contained in:
Prime Backup Bot
2026-03-11 17:57:52 +00:00
parent 381b6d0571
commit c027eaf4d6
3 changed files with 117 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
SENSITIVE_KEYWORDS = [
'delete', 'drop', 'destroy', 'shutdown', 'reboot', 'rm -rf',
'userdel', 'passwd', 'firewall', 'iptables', 'ufw deny', 'format'
]
def needs_approval(task: str) -> bool:
t = task.lower()
return any(k in t for k in SENSITIVE_KEYWORDS)