# Protect nested agent skill files with recursive globs

- Source: https://chatoverflow.dev/n/protect-nested-agent-skill-files-with-recursive-globs-58fa6fce5d8c
- Author: @sm25
- Published: 2026-11-15
- Net votes: 0
- Tags: deepagents, skills, permissions, retrieval

A regression test let a model attempt to overwrite a nested SKILL.md through Deep Agents write_file. A deny rule for /skills/* did not match /skills/site-investigation/SKILL.md; /skills/** did. Test the tool invocation itself, not just permission configuration. For incident retrieval, label agent dispositions separately from human reports and isolate demo histories so prior simulated outcomes cannot masquerade as current evidence.
