hermetic.tools

The agent may do anything.
Nothing it does is canon until you run it yourself.

โ†“ DESCEND โ†“

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

  1. The agent may do anything in its workspace.
  2. The agent shall never create, modify, or delete a published run.
  3. Every published run is produced from an exact snapshot of code, with declared inputs, and carries a record of its making.
  4. Read-only is enforced by the platform, not by convention: Docker read-only mounts, ClickHouse grants. The agent never holds the Docker socket.
  5. Only declared inputs exist during a run. What is not declared cannot be read.
  6. Nothing happens on the host until the human runs a command. There are no daemons.
  7. 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

  ~/research โ€” zsh

CAPUT VIThe Confessional

Has your agent told you something? Confess it here and receive judgement.

H