The four verdicts
- Each tool call is split into actions (a command, each file, each host).
- Each action is tried against
deny, thenallow, thenreview, thendefer; the first list with a match decides, anddefaultsdecides when none does. - The call gets the strictest answer of its actions:
deny > review > defer > allow.
A repository’s review rules, and a pack’s, are tried right after the deny rules, before your allow rules (Repository policies).
Deny: never, whatever else matches. A deny cannot be overridden by an allow, by openmoat allow or by a repository.
deny: - id: no-prod-config reason: production settings stay with the release pipeline fs.write: ["${project}/deploy/prod/**"]Allow: runs without your agent’s prompt. Allow only what you would approve every time.
allow: - id: company-registry net: ["npm.internal.example.com", "pypi.internal.example.com"]Review: OpenMoat holds the call for a person, tagged with the rule, even where your agent would not ask. Your agent shows its own prompt with the reason; an agent that cannot prompt gets a deny you approve with openmoat allow --last.
review: - id: push shell: ["git push *"]Policies written before 0.14.0 say ask: (and ask as a default). They still load and decide as before; openmoat policy lint warns about the old name, and openmoat policy upgrade renames it in its diff. A policy with both ask: and review: is refused. Step by step: Upgrading from ask to review.
Defer: your agent’s own permission prompt decides, as without OpenMoat. The default for anything no rule names.
defaults: "*": defer # everything else: your agent decides net: deny # outbound network from shell commands to unlisted hosts: deniedWhen no rule matches, the rule shown is the default’s: default (for example no rule matched shell "git push origin main"), default.net for a host, default.fetch for a fetch. What each verdict looks like in your agent: How it decides.