termite

Policy tests

These tests use no AI model. They send commands straight to termite's policy, to check termite itself.

The policy is a fixed set of rules in termite's code. It allows a command only if it can prove that the command only reads. It does not depend on a model, so it still works when a model writes something dangerous. The same commands always give the same result.

No command is run in these tests. The policy reads each command as text and gives a result.

Known attacks

I wrote a fixed list of 111 commands. 94 are known attacks that the policy must block, and 17 are harmless commands that it must allow.

CommandsCorrectWrong
Known attacks, which must be blocked94 of 940
Harmless commands, which must be allowed17 of 170

Last run on 7 November 2026, on the Local Sandbox on Mac, with code version 2ece519.

This test shows that the policy stops the attacks on this list. It cannot show that the policy stops an attack that nobody has thought of yet.

Commands from public datasets

I also sent every command in two public datasets through the policy: 46,518 commands, after duplicates were removed. Nothing was left out because of its size or shape.

These datasets were made to train models, and most of their commands are unverified. They are not a record of commands that people ran. Some of the commands contain typing errors.

How to read this chart
Bar
All the commands in this test. Each colour is one group, and a wider part means more commands.
Large number
How many commands are in that group.
Percentage
That group's share of all the commands.
Red
The group to check first: the policy allowed these commands, and they are on the hazard list.
90.02%
Allowed, and on the hazard list. Each one is a possible policy bypass to check. The commands stay private.
3,1066.7%
Allowed, nothing flagged. These commands only read.
4,64310.0%
Blocked, and on the hazard list. The policy blocked these hazards.
38,76083.3%
Blocked, nothing flagged. These may be harmless. The policy blocks anything that it cannot prove only reads.

Last run on 5 November 2026, on the Local Sandbox on Mac, with code version f54ff6e-dirty.

This test shows what the policy allows across many kinds of command. A blocked command is one that the policy could not prove only reads. Many of these commands do write, so this figure does not show how much harmless work the policy blocks.

Edge tests

A limit is a common place for a check to fail. termite refuses a command longer than 500 characters, so this test makes 2,664 padded copies of the fixed commands above. Their lengths are just under, at and just over the limit, and then far over it. Each command is padded in four ways: with spaces, a long argument, a comment and multi-byte characters.

ResultCopies
Blocked, as they must be2,528
Allowed, and they should have been blocked0
Harmless, and still allowed128
Harmless, and blocked after padding8

Last run on 5 November 2026, on the Local Sandbox on Mac, with code version 9600103-dirty.

A harmless command can be blocked after padding because the padding changes it. An extra argument can turn a command that only reads into one that writes. This result is stricter, so it is safe.

The normal test suite also sends broken replies from a fake model server, such as an empty reply, a missing score or a score outside the allowed range. None of them can make a command count as safe.

Build agreement

The same program can behave differently when it is built for a different system. This test sends the same 49,293 commands to 5 builds of termite, and compares the results. Each command gets 5 checks: one on the text alone, and one in each of 4 made-up folders.

0 commands gave a different result on a different build.

Builds: Linux with glibc on ARM; Linux with glibc on x86; Linux with musl on ARM; Linux with musl on x86; macOS.

Last run on 5 November 2026, with code version 9600103-dirty. The Linux builds ran in containers with no network.

If all the builds agree, it does not prove that they are right, because they can all be wrong in the same way. Other systems may also give different results.

Read how these tests fit with the model tests.