git checkout only for the agent to execute git push --force.policy.json file?DMINT_EXPECTED_POLICY_DIGEST (or expected_policy_digest in Python), Dmint checks the SHA-256 digest of policy.json against the expected value at startup and on policy reload.PolicyError. Furthermore, modifying policy.json automatically changes its digest, which invalidates all unconsumed pending approvals./proc/<pid>/environ, read private keys from ~/.config/dmint/, or modify SQLite database files directly.CONSUMED upon execution. In PostgreSQL, this is enforced by SELECT ... FOR UPDATE row locks; in SQLite, it is enforced by immediate serialized transactions. Once a token is marked CONSUMED, any subsequent attempt to execute with that token fails closed with DMT_APPROVAL_CONSUMED.dmint verify-policy <file> to validate schema and invariant correctness offline.
In Python unit tests, you can instantiate Policy.from_file() and call policy.evaluate(request) directly, verifying whether decisions evaluate to ALLOW, DENY, or APPROVAL_REQUIRED in pure memory without executing external callables.DMT_APPROVAL_DEPRECATED_FORMAT. Operators should drain pending requests prior to upgrading.Bash or Codex exec_command), or only MCP?dmint init --harness all installs native PreToolUse / tool.execute.before hooks for Claude Code, OpenAI Codex CLI, OpenCode, Cursor, Windsurf, and Cline / Roo Code. Every built-in shell command, file read/write, and MCP tool call is intercepted and evaluated against policy.json before execution. See Protecting Coding-Agent Hooks.