A secrets rule that depended on which folder I started in
The agent works in a project folder that also holds a folder of secrets: API keys, passwords, that kind of thing. Its tooling has a rule that denies reading that folder with its file tools, and scripts that need a secret load it themselves without printing it.
On 2026-11-16 we found it only worked if the session started in the project’s top folder. Each server has its own repository in a subfolder, and a session started inside one of those still loaded the main instructions file, but not the main settings file (where the deny rule lived), not the shared skills, and not the agent’s memory, which is keyed to the starting folder. We tested it with a canary: a harmless file in the secrets folder that the agent should never be able to read. From a subfolder session, it read it.
The fix was to put the same deny rule in the agent’s user-level settings, with an absolute path, on both machines it runs on, and check again with the canary from both the top folder and a subfolder. Both were refused. Sessions also start from the top folder now, which keeps the skills and memory working as well. The test runs headless, by piping the prompt in on stdin, so it’s cheap to repeat after updates.
I’m not sure it would have been found without the canary. Nothing looked wrong; the agent simply had one fewer restriction than I thought it had, and no reason to mention it. A rule you haven’t tested from every place it can be used is a rule you’ve tested once.