Store layout

Store layout

.loot/ holds your keys, the sealed objects, the change history and this working directory’s state. Use the verbs to change it. Almost nothing here is safe to edit by hand.

.loot/id is your private key, and nothing else can open your content. Back it up with loot id export <file> the day you run loot init. See known issues.

loot never captures .loot/. A fresh loot init creates most of the entries below; the rest appear when a verb first needs them. Most binary files begin with the two-byte format marker; plain-text files and fixed-width id files such as heads carry none.

Keys and identity

EntryHolds
id, id.pubThe ed25519 keypair, in OpenSSH format; id is mode 0600. With a custody passphrase, id is encrypted.
identityThe identity name. It is a label: changing it opens nothing, but restricted= lists are matched against it.
keyringContent keys this identity holds. Never bundled.
escrowEmbargoed keys waiting for their reveal time.
peersname = pubkey lines, via loot peer.

Content and history

EntryHolds
objects/Sealed objects, one file per content address (64 hex). After loot gc --pack, packs under objects/pack/, one per first address byte.
graphThe change history.
heads, tip, working, working-change, next-change, tree-hashWhere this working directory stands.
opsThe operation log loot undo reads.
conflicts, resolved, abandoned, in-progressOpen conflicts, answers already given, abandoned versions, a stopped verb.

Sharing

EntryHolds
config, config.localNamed remotes, and this repo’s settings. See Config file.
manifest, depositsThe local grant audit trail, and where each grant was delivered.
quarantine/Grants from unregistered senders, for loot grants --quarantined.
burn, purges, quarantine-purges/Burn tombstones, pending burn and revocation requests, and burn requests from unregistered peers awaiting loot purges.
attestationsSigned attestations, landmarks and notes.

Lanes

The primary’s lanes/ registers each lane: its path, owner and heartbeat. A lane’s own .loot/ holds store, the absolute path of the primary’s .loot/ whose objects and history it shares, plus lane-id, its own position files, and its own keyring and escrow, which hold the lane’s keys.

What you may touch

EntryHow
config, config.local, peers, viewThrough loot remote, loot config, loot peer and loot view.
gates, mailmapBy hand. gates declares local checks loot new and loot push run (loot gates lists them); mailmap maps <64-hex pubkey> = <name> for display only.
attestation-ledgerDelete it after a remote is restored from backup, so the next push resends your attestations.
grant-cursorsSafe to delete. The next loot pull-grants at a forge reads the whole mailbox again.
Everything elseLeave it. An edit can strand keys or history.

git-mirror/, made by loot ferry, holds sealed paths in plaintext. Never give it a git remote.

loot records which machine last wrote the working tree. In a .loot/ copied from another machine, verbs that would record the tree refuse until loot rehome settles it here. loot doctor checks the setup, and loot verify rehashes every object.