CAPUT IOn the Untrustworthiness of Agents
Agents are swift at exploratory research, and that is precisely the problem. A figure in a report may come from a script that no longer exists, from data that was quietly modified, or from a run that never happened at all.
hermetic is a small command-line tool that provisions isolated research environments for autonomous agents (Claude Code) and separates working from publishing. Inside its cell the agent explores, writes, tests, and iterates as much as it likes. None of it is believed.
A result becomes scripture only when you, the human, execute the agent's submitted code from outside, in a clean container, with its provenance recorded, and accept what comes out.
CAPUT IIHeresy & Canon
HERESY ยท the workspace
- fully writable git repo
- scratch ClickHouse database
- a disposable container
- anything goes, nothing counts
- "trust me, it worked"
CANON ยท the published run
- exact commit, archived
- image digest + uv.lock
- declared inputs only
- output hashes, logs, timing
- immutable as name@n
CAPUT IIIThe Commandments
- The agent may do anything in its workspace.
- The agent shall never create, modify, or delete a published run.
- Every published run is produced from an exact snapshot of code, with declared inputs, and carries a record of its making.
- Read-only is enforced by the platform, not by convention: Docker read-only mounts, ClickHouse grants. The agent never holds the Docker socket.
- Only declared inputs exist during a run. What is not declared cannot be read.
- Nothing happens on the host until the human runs a command. There are no daemons.
- A revision is simply a new commit and a new submission. What is submitted is frozen.
CAPUT IVThe Ritual
AGENT CONTAINER (untrusted) HOST (human) โโโโโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโ explore, test, commit hermetic-agent submit validate commit and manifest write mailbox/requests/<sha> โโโโโโโโบ hermetic submissions wait for mailbox/responses/<sha> hermetic run <sha> archive commit, run in fresh container failed โโโบ answer written hermetic accept <sha> hermetic reject <sha> --reason โโโโโโโโ answer written to mailbox print answer, exit
Host and agent speak only through files in a mailbox. A request without an answer is pending; a request with an answer is done. Interrupt anything, at any time. Nothing is lost but patience.
CAPUT VWitness
CAPUT VIThe Confessional
Has your agent told you something? Confess it here and receive judgement.