HMDeveloper
All articles
agents
agentshermessecuritysandbox

The Agent Said It Was Done. The File Was Missing.

What real Hermes incidents show about isolation, verification, served models, and human merges.

Between September 2 and 12, 2026, the agent said “done” and returned exit 0. The file was not on the host.

With exit 0, the process reported no error. Since that incident, “the agent said it did it” is a claim, not evidence.

A terminal container does not contain the agent

The terminal boundary does not automatically include the process coordinating the agent. If the terminal runs in a container, only the terminal session is inside it. To contain the agent too, the system boundary must include that process.

A container and a sandbox can be part of the same design, but they cover different processes and access. Check what each layer limits. If Docker runs the terminal, check the mount source before every run.

A mounted folder can be the wrong folder

An old mount can send new work to the wrong place. On September 2, 2026, a reused container kept its previous mount. The run finished without error but wrote to the old folder.

In another case, an absolute host path wrote the file only inside the container. The success message did not catch it. Checking the project folder on the host revealed the error. A report, exit code, and observable change are different kinds of evidence.

Check changes, branch, and remote state. If the container keeps state, check the mount source again. A task name in the prompt does not change an old mount.

Temporary profile and smaller environment

A temporary profile and an environment with only the needed variables reduce inherited state in child processes.

If authentication is needed, expose only the required material, read-only. Do not put a secret in an argument. These steps do not prevent reads of other files available to the user or block the network.

What each isolation option showed

These are dated evaluations. They do not describe which option is active on the machine today.

Where the agent runs

What the process can access

Start with what is allowed

Blocking a name does not always block the resource. The trials showed three failures: a symlink had another name and escaped the literal rule; a helper program provided a credential without touching the blocked path; and the folder list missed other CLIs.

On October 25, 2026, a trial replaced forbidden paths with a list of what was allowed to be read in the user profile. Four previously readable credential folders became inaccessible. The proof passed 29 of 29 checks, then 35 of 35. In a separate profile, it denied 11 of 11 forbidden attempts and allowed 13 of 13 permitted reads.

The proof confirms the cases tested, not a universal block rate.

Instructions ask. Limits enforce.

Instructions can ask the agent to work in one folder, avoid continuous-integration files, or stop when a human decision is needed. They do not revoke permissions. For example:

Work only in this task folder. Do not edit continuous-integration files. If only a responsible person can decide, write the question and stop.

The prompt communicates intent and gives the agent a way to stop. It does not technically prevent an action. If an edit must be impossible, the limit must be in the layer that runs or publishes it.

Incidents the prompt cannot explain alone

Four cases from 2026 point to useful checks before accepting a result:

I check what ran: version, full description, effective permissions, and call configuration. Intent helps; observed state decides.

Verify the model and the test

On October 16, 2026, 14 of 18 runs used a different model from the one requested, without warning. Exit 0 does not catch that. Record the requested and served model with the result.

The November 1, 2026 benchmark had nine runs per model on difficult tests. The November 5 v3b run was separate and cannot be compared directly.

Results and median time on the hard-fixture benchmark

Bench v3, November 1, 2026: hard fixtures, nine runs per model. Bench v3b, November 5, 2026: a separate run. Versions v3 and v3b are not a direct comparison. The report explicitly labels DeepSeek and Kimi as clean; other descriptions stay as measured.

Show data
DeepSeek, v38/9 clean; median 51 s; served as requested 9/9
GLM, v37/9; median 63 s
Qwen, v34/7 valid; median 402 s; 2 silent substitutions
Kimi, v3b9/9 clean; median 126 s; served as requested 9/9

Kimi recorded 9/9 clean runs in v3b; DeepSeek recorded 8/9 in v3. These separate rounds do not rank the models. “Clean” and “valid” are different counts.

The agent does not choose the test that decides whether the work passed. The recipe must be registered with a hash of its file contents. Before approval, the reviewer compares that hash with the recipe that was executed. If the registered hash is missing or does not match, the result stays pending, never approved by default.

Drafts go to review; a person merges

The agent can prepare a draft PR on a task branch. A different reviewer checks the change and test recipe; a person decides whether to merge. The author does not validate their own work. Before merging, the responsible person checks the change and evidence on the machine.

Checklist before granting autonomy

Summary

Define which processes, folders, environment, network, and publishing actions each limit controls. I would start with a small mount, temporary profile, allowed-access list, and checks on the machine. The agent prepares the PR; review and merge stay separate.

I did not measure Hermes leak or escape rates, or count blocked attacks. This checklist comes from observed incidents and is not a security certification.

I help teams use AI agents in daily software work. If your team does that, let's talk.

See consulting