Skip to content

Audit ledger

Markdown

Each agent keeps one SQLite file. Its audit ledger is append-only: every cycle’s status, every model call, every proposal and what became of it, and who approved or rejected it.

  • Query it, don’t dump it. The ledger is a table. Read what you need through the API’s reads, or with SQL, never as a log file pasted into a prompt.
  • Telemetry included. Model calls carry OpenTelemetry gen_ai.* columns: model, tokens, latency.
  • No side channels. Every change to an agent’s behaviour is either a new bundle revision or a gated capability call, and both are on the record.

Because capture is complete, the ledger can be exported as supervised fine-tuning data. A bundle declares named projections in its export block, and every exported row carries where it came from.

By default ./.loom/data/<bundle-name>.sqlite3, relative to where Loom runs. Set storage.options.path to put it elsewhere.