# History

Experimental. Ask when a dependency, symbol or finding entered the architecture, and when it left.

> Web page: https://enola.tech/docs/history
> All pages: https://enola.tech/llms.txt

## Ask when it happened

> **Experimental.** The history commands and their on-disk format may change between releases.

A snapshot describes the code as it is now. The history answers questions about the past: when a package started importing another, which change introduced a cycle, what a week of work did.

What has this architecture done?:

```shell
enola log
enola log --graph
```

Oldest first:

```
e8847af  2026-08-03 17:54  (d2293a18, main)   +1 facts · ~1 changed · +6 edges
c1caa0a  2026-08-03 17:57  (8db49777, main)   no architectural change
3cdf107  2026-08-03 18:07  (8db49777, main)   1 new finding · +36 facts · +127/-1 edges
```

| Command | Question |
| --- | --- |
| `enola log` | What has this architecture done over time? |
| `enola show` | What did this revision add and remove? |
| `enola diff` | What happened between two points, as `a..b`? |
| `enola blame` | When did this appear, and when did it go? |
| `enola gc` | What is stored, and what can go? |

A revision is a snapshot id or its prefix, a git commit, `HEAD~3`, `@7`, a ref name, or `latest`. Agents ask the same questions with `architecture_history` and `architecture_blame`.

## Find when something appeared

A dependency, a symbol, or a finding:

```shell
enola blame "internal/engine -> internal/history"
enola blame App.render
enola blame --findings cycle
```

The pattern matches a name, a file path, or both ends of a dependency. A changed symbol is reported by what happened to its code:

| Change | Meaning |
| --- | --- |
| shifted | Same code on a new line, because something above it changed |
| rewritten | Its code changed |
| moved | Same code and name, in another file or package |
| changed | One side has no version of its code to compare |

## Build a past you did not record

Recording is on by default: every snapshot adds a revision. To read history from before you used Enola, build it from git:

One snapshot per day of history:

```shell
enola log --backfill --sample=daily --dry-run
enola log --backfill --sample=daily
```

`--sample` takes `all`, `merges`, `tags` or `daily`, and `--since` limits the range. A backfill writes nothing into the repository, and running it again resumes it. Old commits are read with today's Enola and configuration.

## Where it lives

The history is in `~/.enola/graphs/`, outside your repository. Each revision is stored as a patch against the one before. `enola gc` reports what is there and removes only garbage unless you ask for more. Set `history.enabled: false` to stop recording, or `history.dir` to move it.

`enola history push` and `pull` share it between machines through a directory, such as a git repository or a synced folder.

## What it cannot tell you

- **Only what was recorded.** It knows the commits somebody snapshotted or backfilled.
- **A new Enola can look like a change.** The log marks where the version or configuration changed, and revisions on either side are not comparable.
- **It grades nothing.** `enola check` reads only the current snapshot and the baseline, so deleting the history changes no verdict.

Cluster histories, retention and sharing are in [HISTORY.md](https://github.com/enola-labs/enola/blob/main/docs/HISTORY.md).
