Policy Modes¶
Policy controls are configured through environment variables and applied during validation.
Risk levels¶
Each command family carries a risk level:
safewritedangerous
Mode semantics¶
OTERMINUS_POLICY_MODE:
safe: onlysafecommands are allowed.write:safe+writecommands are allowed.dangerous:safe+write+ potentially dangerous commands (with additional gate).
OTERMINUS_ALLOW_DANGEROUS:
- must be
trueand mode must bedangerousfor dangerous operations to pass policy.
Path scope restriction¶
OTERMINUS_ALLOWED_ROOTS can restrict path operands to an allowlisted set of root directories.
If a path operand resolves outside allowed roots, validation rejects the command.
Confirmation strength¶
Confirmation is stricter for higher-risk or less deterministic flows:
- standard confirmation for normal safe/write structured flows
- strong confirmation for dangerous risk
- very strong confirmation for experimental mode