---
title: "Store layout"
url: https://docs.loot.build/reference/store
group: "Reference"
status: written
summary: "What is inside .loot/, for the curious and the recovering."
---

# Store layout

> What is inside .loot/, for the curious and the recovering.

`.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](https://loot.build/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](https://docs.loot.build/reference/formats); plain-text files and fixed-width id files such as `heads` carry none.

## Keys and identity

| Entry | Holds |
| --- | --- |
| `id`, `id.pub` | The ed25519 keypair, in OpenSSH format; `id` is mode 0600. With a custody passphrase, `id` is encrypted. |
| `identity` | The identity name. It is a label: changing it opens nothing, but `restricted=` lists are matched against it. |
| `keyring` | Content keys this identity holds. Never bundled. |
| `escrow` | Embargoed keys waiting for their reveal time. |
| `peers` | `name = pubkey` lines, via `loot peer`. |

## Content and history

| Entry | Holds |
| --- | --- |
| `objects/` | Sealed objects, one file per content address (64 hex). After `loot gc --pack`, packs under `objects/pack/`, one per first address byte. |
| `graph` | The change history. |
| `heads`, `tip`, `working`, `working-change`, `next-change`, `tree-hash` | Where this working directory stands. |
| `ops` | The operation log `loot undo` reads. |
| `conflicts`, `resolved`, `abandoned`, `in-progress` | Open conflicts, answers already given, abandoned versions, a stopped verb. |

## Sharing

| Entry | Holds |
| --- | --- |
| `config`, `config.local` | Named remotes, and this repo’s settings. See [Config file](https://docs.loot.build/reference/config). |
| `manifest`, `deposits` | The 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`. |
| `attestations` | Signed 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

| Entry | How |
| --- | --- |
| `config`, `config.local`, `peers`, `view` | Through `loot remote`, `loot config`, `loot peer` and `loot view`. |
| `gates`, `mailmap` | By 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-ledger` | Delete it after a remote is restored from backup, so the next push resends your attestations. |
| `grant-cursors` | Safe to delete. The next `loot pull-grants` at a forge reads the whole mailbox again. |
| Everything else | Leave 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.
