GROK_FOLDER_TRUST=0 grok inspect exited 0 in a git repository that had never been granted. The human summary said Project trusted: yes. The JSON field projectTrusted was true. The skill that lived only in that repository was listed, and so was its AGENTS.md. The trust file under the same GROK_HOME still named a different repository. Its trusted value and its decided_at time were the values written by an earlier grant. The second repository was not a row.
That is not a grant you can audit later. A job that exports the variable to skip a trust prompt, then reads projectTrusted as proof the folder was accepted, will accept a repository the store does not name. Exit 0 does not write the missing row.
The same binary, with the variable unset, makes a second mistake on a shared skill name. In the repository that was still untrusted, shared-name was listed with the user skill’s description. The project file of that name was on disk and was not the row. After a real grant, the same name was the project description, and the user row was gone.
What the two repositories held
The binary was Grok Build 1.0.67, build 2fe064390d07, on Linux x86_64, on 25 November 2026. grok --version printed grok 1.0.67 (2fe064390d07). The SHA-256 of the executable was ce33b1a29e37901f56fe59916cda7a1149e6fd377118f918e90d89f9abb52a51. The changelog page fetched the same night listed 1.0.92, dated 19 November 2026, above this build. This run did not take the update. The 1.0.92 note says grok inspect shows the hooks a headless run would load, with a note for hooks that still need folder trust. It does not describe GROK_FOLDER_TRUST or a skill name. The notes below are 1.0.67 only.
HOME and GROK_HOME were new directories created for the run. Inspect’s config source was the new home, not an existing account home. A leader socket under that home was passed on every command so the run did not attach to a leader already on the machine. No grok login was run. No prompt was sent. No TUI session was started. Each repository was a new git checkout with one empty commit. Nothing in either tree was a copy of a working project.
The first repository held project skills named probe-local, shared-name, ignored-skill, probe-agents, and probe-claude, plus a flat command file .grok/commands/probe-cmd.md. .gitignore ignored ignored-skill. The user home held probe-user and a second shared-name whose description was User copy of the colliding skill. The project copy’s description was Project copy of the colliding skill. A third skill, side-skill, sat outside both trees. The first config file pointed at that outside directory with [paths] extra_skill_dirs only.
The second repository was created after the first grant. It held one project skill, other-only, and an AGENTS.md. It was not passed to --trust.
What the documents assign to the gate
The Skills chapter shipped with this binary says startup discovery skips project skills and commands in untrusted folders. It says a higher-priority location overrides a lower one, and it lists the project tree above the user home. It says [paths] extra_skill_dirs is written by /import-claude and does not inject skills. It says extra directories belong in [skills] paths. It says grok inspect labels a path entry as config. It says discovery does not use .gitignore. The SHA-256 of that chapter, as installed beside the binary and as copied into the disposable home, was 4afcd002489982e069e02dbb0d07fb490216035707fab208b36c434fe6852f1c.
The permissions chapter in the same install says folder trust gates project permission rules, project instructions, and project skills. It says headless startup with those sources requires --trust or a prior grant. It does not say grok inspect exits 0 when the grant is missing. It does not name GROK_FOLDER_TRUST. Its SHA-256 was fdba89c72148c184a606034e82d98e0e5181c1bb34d5cc75bfc67f7ff2a3e192.
A string in this binary says disabling folder trust with GROK_FOLDER_TRUST=0, or with [folder_trust] enabled = false, ungates those surfaces together. Ungate means the project files load. The string does not say the inspect report will print the folder as trusted. It does not say the trust file is left unchanged.
The public skills page, fetched the same night, lists .grok/skills/, ~/.grok/skills/, plugin skills, and [skills] paths. It says Claude skills are read with no extra setup. It does not mention a trust gate, extra_skill_dirs, or projectTrusted. The public CLI reference lists grok inspect and does not list --trust in its common flags. The settings reference fetched the same night lists many GROK_ variables and does not list GROK_FOLDER_TRUST. grok --help on this binary is 119 lines and does not contain the word trust.
grok inspect --trust is the form a script will try, because the subcommand help is where flags for inspect usually go. It exited 2:
error: unexpected argument '--trust' found
Usage: grok inspect [OPTIONS]
The flag is accepted only before the subcommand. grok --trust inspect in the first repository exited 0, set projectTrusted to true, and wrote the trust file. That is the grant the later comparison uses. It is not what GROK_FOLDER_TRUST=0 does.
The bit that flipped without a grant
Before the variable was set, inspect in the second repository exited 0. projectTrusted was false. The human line was Project trusted: no. other-only was absent. projectInstructions was an empty array, even though AGENTS.md was on disk. The permissions block said 0 loaded, 0 skipped. That skipped count is permission rules, not skills. The skill list was not empty. It held three rows: probe-user as user, shared-name as user, and side-skill as config. Standard error on the first untrusted inspect, in the first repository, was empty. A clean exit plus a short skill list is not a statement that the project files were read.
With GROK_FOLDER_TRUST=0 set for one inspect in the second repository, the same command exited 0 and the summary changed:
Project trusted: yes
Project Instructions (1)
Skills (4)
└ other-only project
└ probe-user user
└ shared-name user
└ side-skill config
JSON agreed. projectTrusted was true. other-only was present, with the description Skill in a second repository and source type project. The instructions array had one entry, the second repository’s AGENTS.md. shared-name was still the user description. There is no project file of that name in the second repository, so the user row is the row that should remain. The change that matters is other-only appearing, and the trusted bit flipping, while the store did not grow a row.
The trust file after that command was still the one row written for the first repository:
[folders."<repo-a>"]
trusted = true
decided_at = 1795665877
The path in the real file was the first repository’s root. It is omitted here. The second repository’s root was not a key. decided_at was the time of the earlier grok --trust inspect, not the time of the ungate. A reader who opens the file can see which roots were granted. A reader who stops at projectTrusted cannot.
Do not treat the human word yes as a synonym for that file. On this binary the word follows the effective gate. The gate is open when the store says trusted, and it is also open when the variable turns the gate off. Those two opens print the same word. The file is what separates them. This run did not test [folder_trust] enabled = false in a config file. The binary string pairs that key with the variable. The measured case is the variable.
A subdirectory of the already granted repository was not part of this question. The store names repository roots. The second repository was a separate git root, created after the grant, and the grant did not cover it until the variable opened the gate for the process.
The name that stays a user skill
The first repository is the case where both copies exist.
With no grant and the variable unset, grok inspect --json exited 0, projectTrusted was false, and the skills array had two objects. Both were user skills. shared-name carried User copy of the colliding skill. probe-local, ignored-skill, probe-agents, probe-claude, and probe-cmd were absent. side-skill was also absent, which is the extra_skill_dirs result in the next section. The project file for shared-name was on disk the whole time. Inspect did not mention the file it skipped, and it did not mark the user row as a stand-in.
After grok --trust inspect, projectTrusted was true and shared-name carried Project copy of the colliding skill, with source type project. The user copy of that name was not in the array. probe-user remained. ignored-skill was listed even though git ignored it. probe-cmd was listed from the flat command file. probe-claude was listed with vendor set to claude and compatibilityStatus set to enabled. The priority rule in the shipped chapter matches this granted report. It does not match the untrusted report, because the project copy was not in the set being ordered. The user copy is not an override. It is the only copy that loaded.
An earlier measurement on this same binary, in a repository that held only project skills, saw an empty skills array while projectTrusted was false. That empty array is the special case. Add a user skill of the same name, or a [skills] paths entry, and the untrusted report is no longer empty. A script that treats an empty list as the untrusted signal will miss this run. The signal is projectTrusted, plus the source.type and description of each name you care about.
GROK_CLAUDE_SKILLS_ENABLED=false, set on a later inspect of the granted repository, did not drop probe-claude. The row stayed, with compatibilityStatus set to disabled, and the compatibility cell for Claude skills was false with source env. A disabled vendor surface is a tag. It is not the omission the untrusted folder uses for project files. Read the status field. Do not infer it from whether the name is present.
A config path is not a project skill
side-skill is the control for the path table.
While the disposable config contained only [paths] extra_skill_dirs, pointing at the directory that held side-skill, the skill was absent from the untrusted report and absent from the granted report. The shipped chapter says that key does not inject skills. This binary agreed, on both sides of the grant. A job that copies an /import-claude config and then looks for those skills in grok inspect will not find them. The key can be present in the file inspect lists under config sources and still add nothing to the skills array.
Adding [skills] paths for the same directory, and leaving extra_skill_dirs in place, changed the report. side-skill appeared. The human label was config. The JSON source type was configToml, not the word config. The shipped chapter’s human label matches the summary. A parser that looks for a JSON type named config will not find this row. The type string on this binary is configToml.
That path row is not behind the project-trust gate. In the second repository, before GROK_FOLDER_TRUST was set, projectTrusted was false and side-skill was already in the list. The project skill other-only was not. A config path and a project skill are not the same load. Trust, or the variable that disables trust, is what brings in the project skill. The path entry comes in either way.
[skills] ignore, pointed at the ignored-skill directory, removed that name from a later granted report. Gitignore had not removed it. [skills] disabled, set to probe-local, kept that name and set a disabled flag. The human line was probe-local project [disabled]. The shipped chapter describes both of those keys. They behaved as written. They are not a substitute for reading projectTrusted. An ignore entry hides a file you named. It does not tell you whether the folder gate is open.
What to verify
Run inspect from the repository whose skills you intend to trust, with GROK_HOME pointed at the home you will later audit. Do not export GROK_FOLDER_TRUST for that check. A value of 0 on this binary makes the report say the folder is trusted and loads the project skill without adding a row.
grok inspect --json
Read projectTrusted before you read skill names. False means project skills and AGENTS.md were not loaded, even if the exit status is 0 and the skills array is not empty. If a name you expected from .grok/skills/ is present with source type user, you are looking at the user copy. The project copy was not in the ordering. Compare the description to the file on disk before you treat the row as the project’s text.
If you need the project copy, grant the folder with the flag before the subcommand:
grok --trust inspect --json
grok inspect --trust exits 2 on this binary. After a real grant, read the trust file and confirm the repository root is a key with trusted = true. Then run inspect again without the flag. projectTrusted should stay true, and the shared name should carry the project description. Open the trust file again after any run that set GROK_FOLDER_TRUST=0. If the root you just inspected is missing, the true bit was the variable, not a grant.
A [skills] paths skill can appear while projectTrusted is false. Its JSON type on this run was configToml. Do not count it as evidence the project tree was read. [paths] extra_skill_dirs did not add a skill on either side of the grant. If an imported config uses only that key, move the directory to [skills] paths and inspect again.
This comparison did not send a prompt and did not watch a skill run. A listed skill is a discovery result. It is not proof that a later session will invoke it, and a trusted bit set by GROK_FOLDER_TRUST=0 is not a decision recorded for the next process. The next process, with the variable unset, will read the file. Write the grant you want that process to see.
Sources
- Skills chapter shipped with Grok Build 1.0.67, SHA-256
4afcd002489982e069e02dbb0d07fb490216035707fab208b36c434fe6852f1c: untrusted folders skip project skills, priority order,extra_skill_dirs,[skills] paths, and the inspect source label - Permissions chapter shipped with the same binary, SHA-256
fdba89c72148c184a606034e82d98e0e5181c1bb34d5cc75bfc67f7ff2a3e192: folder trust gates project skills and project instructions, and headless startup is described as requiring--trustor a prior grant - Skills, Plugins and Marketplaces, fetched 25 November 2026: discovery locations and Claude skill compatibility, with no trust gate
- CLI reference, fetched 25 November 2026:
grok inspectin the subcommand table,--trustabsent from the common flags - Settings reference, fetched 25 November 2026:
GROK_variables, withGROK_FOLDER_TRUSTnot listed - Grok Build changelog, fetched 25 November 2026: 1.0.92 on 19 November 2026 notes an inspect change for hooks and folder trust; the tested binary remains 1.0.67