Security
Trusted folders
frontier trust, untrust, and FOLDER_NOT_TRUSTED.
You clone a stranger's repository and run frontier in it. The repository can ship .frontier/settings.json, CLAUDE.md, AGENTS.md and FRONTIER.md. Those files steer the model, and in settings they can pre approve commands. Without a gate, a hostile repository could authorize run_command(*).
So Relief asks.
The commands
frontier trust # trust the project you are in
frontier trust ~/code/app # or name a folder
frontier untrust # stop trusting itInside the cockpit, /trust yes and /trust no do the same, and /trust shows the current answer. The first time you run the cockpit in a folder, it asks Trust this folder? and lists the steering files it found, so the question is concrete.
Trust is recorded for the project root, the nearest folder with .git. The answer is stored in ~/.frontier/trust.json, a file a repository cannot write to. A missing or damaged file means nothing is trusted: it fails closed, and a damaged one is reported so you know why a trusted folder asks again.
Until a folder is trusted
- Its settings can only make Relief stricter.
- Its instruction files are not loaded into the prompt.
- An MCP client such as Claude Code or Codex cannot point Relief's agent at it.
Who may set what
| Key | Untrusted folder | Trusted folder |
|---|---|---|
permissions.deny, and a stricter permissions.defaultMode | Applied. They can only make Relief safer. | Applied. |
model, mode, routing, agent, context, memory, permissions.allow | Ignored. | Applied from the project file. |
providers, baseUrl, apiKeyEnv, headers (at any depth), mcpServers, plugins, agents, update, shell, budget, review, baton, permissions.passEnv, permissions.additionalDirectories, permissions.allowLifecycleScripts, routing.freeLane and its two companions | Ignored. | Still ignored. Only your user settings can set them. |
Anything in settings.local.json | As the project file. | As the project file, except permissions.allow and a looser defaultMode: it may only narrow permissions. |
Why the third row stays user only even in a trusted folder: those keys decide where your API keys and code go, and which programs start. A repository that you trust to build with npm test should still not be able to point your DeepSeek key at another server. When something is ignored, a one line notice names the keys and the fix.
Pinned, not just trusted
Trusting a folder records a SHA-256 of each instruction file and each settings file that exists at that moment. If one is later added or changed, for example by a git pull, it is not applied until you have seen a redacted line diff and approved it. Until then, a changed settings file is read as if the folder were untrusted. /memory review shows the diff and asks. A change of line endings alone does not count, and a change you make yourself through /config stays approved.
The pin proves a file did not change after you approved it. It does not prove the version you approved was harmless, which is why the trust question lists the files so you can read them first.
When nobody can be asked
Scripts, frontier -p and MCP clients cannot answer a question. An unknown folder simply stays restricted until you run frontier trust. For MCP, a tool that works in a folder is refused outright with one of these codes, at no model cost:
| Code | When |
|---|---|
FOLDER_NOT_TRUSTED | The folder is not trusted. The message gives the exact command: frontier trust "<folder>". |
UNSAFE_DIRECTORY | The folder is a drive root, your home folder, the folder that holds all home folders, or a system folder. Refused even if trusted. |
OUTSIDE_CLIENT_ROOTS | The MCP client declared its workspace roots and the folder is outside them. Roots narrow the trust decision and never replace it. |