feat(core): add task queue, retry loop, and basic approval gate
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user