Files
intercept/utils/drone/policy.py
2026-02-20 17:02:16 +00:00

12 lines
308 B
Python

"""Drone Ops policy helpers."""
from __future__ import annotations
def required_approvals_for_action(action_type: str) -> int:
"""Return required approvals for a given action type."""
action = (action_type or '').strip().lower()
if action.startswith('passive_'):
return 1
return 2