store_recovery counter paired with a 0600 .recovery sidecar file protected by cross-process flock locking. If the database counter ever lags behind the sidecar counter, Dmint fails closed with ApprovalRollbackDetectedError (DMT_APPROVAL_ROLLBACK_DETECTED).approval_ttl (e.g. 5 minutes) so old approvals expire quickly.DMINT_DEPLOYMENT_EPOCH invalidates approvals from prior deployment lifecycles..dmint/ and .recovery sidecar files owned by a separate service user (0600).PRAGMA journal_mode=WAL) and busy timeouts (PRAGMA busy_timeout = 5000), high-concurrency environments with dozens of simultaneous agents requesting approvals may experience lock contention.DMINT_DATABASE_URL in production for row-level locking (SELECT ... FOR UPDATE).yield) and asynchronous generators (yield in async def) cannot be decorated with @dmint.protect. Because generators yield control iteratively, atomic pre-execution authorization cannot be enforced across multiple resumed yields. Dmint raises RequestValidationError if you attempt to decorate a generator.path resource matcher performs strict lexical normalization (resolving . and .., stripping trailing slashes, rejecting percent-encoded traversal and NUL bytes). However, lexical normalization cannot inspect the underlying filesystem to resolve symbolic links.os.path.realpath() before passing the resource to Dmint.tool_schema_hash in mcp_protection.json. When configured, Dmint compares the discovered schema digest against the pinned hash and fails closed if they differ.| Scenario | Dmint Protection | Required External Defense |
| Prompt injection instructing tool execution | Protected (Fails closed on DENY or halts on APPROVAL_REQUIRED) | None. |
| Altering approved arguments before retry | Protected (RFC 8785 hash mismatch $\to$ DMT_APPROVAL_REQUEST_MISMATCH) | None. |
| Replaying a consumed approval token | Protected (Atomic single-use $\to$ DMT_APPROVAL_CONSUMED) | None. |
Agent modifying local policy.json | Protected (SHA-256 digest pinning $\to$ PolicyError) | Set DMINT_EXPECTED_POLICY_DIGEST. |
| Agent reading private key file under same OS user | Not Protected (OS privilege boundary violation) | Run agent in separate container or user UID. |
| Host restoring full database file backup | Partially Protected (Short TTL expires old tokens) | Secure filesystem permissions; short TTLs. |