Glossary
Capsule, checkpoint, domain, intent, journal, lease, rehearsal, risk level, state hash, transaction.

The ten terms
| Term | What it means |
|---|---|
| Capsule | A directory of verbatim copies of a repository’s state, taken before an operation runs: refs, reflogs, HEAD, the index, the staged and unstaged patches, the in-progress operation markers, a sanitized copy of the local config, and (in a standard capsule) an archive of untracked files and a git bundle --all. Every entry is checksummed; a corrupt capsule refuses to apply at all rather than applying partly. |
| Checkpoint | The lighter of the two capsule kinds. A light checkpoint carries the same metadata and patches but omits the untracked archive and the bundle, so it is fast and small. Its directory is prefixed chk-; a standard capsule is prefixed cap-. |
| Domain | One restorable part of a capsule. A restore targets domains rather than being all-or-nothing, so you can put back the index without putting back your working-tree changes. The set is listed below. |
| Intent | A named thing you are trying to do, as opposed to a Git command. The command palette resolves free text to an intent, and the intent produces an operation with a preview attached, so what you confirm is a plan, not a guess at which flags you meant. |
| Journal | The durable record of every operation: its plan, its parameters, its risk level, the refs it affected with before and after oids, its validation results, its rollback plan, and how it ended. It is kept forever, because it is the recovery log rather than a history view. |
| Lease | The remote-tracking object id a force push is allowed to overwrite. GitAegis builds the command as --force-with-lease=refs/heads/<branch>:<oid>, verifies that basis against the freshest observable remote state, and re-validates at execution: a stale lease is refused with AEG-REMOTE-0412 and nothing is pushed. |
| Rehearsal | Running the real commands somewhere that is not your repository, to find out what they would do. Where a sandbox can be made, the operation runs on a detached worktree sharing the object database and your workdir, index and refs are never touched. Each result carries an honest confidence label rather than a claim of certainty. |
| Risk level | The classification a plan carries, which decides how much ceremony the operation gets. The values are below. |
| State hash | A digest of a repository’s observable pointers: HEAD, its symbolic ref, every ref name and oid, a digest of the index, a digest of status, the stash list, the registered worktrees, and any in-progress markers. It is not a content hash: two states with identical files hash the same only when all the pointers match. It is what lets the Flight Recorder say that something moved, including when GitAegis did not move it. |
| Transaction | One operation as the engine models it, from plan through to a terminal status. It carries typed input parameters, a risk level, affected refs, validation results, a rollback plan and a status; a failure is a redacted error envelope, never a raw Git error pasted into a dialog. |
Risk levels
| Level | What it means |
|---|---|
| Informational | Nothing in the repository changes. |
| Safe | Reversible, and nothing you have not committed is at stake. These are the only operations eligible for single-click execution. Pull, push and fetch still go through the full journaled path with postconditions, but without the confirmation drawer. |
| Caution | Something could be lost if the assumptions are wrong. Must go through the Operation Preview and be confirmed. |
| Destructive | Work is destroyed by design: reset, discard, clean, force push. Must go through the preview, and the capsule is not optional. |
| Blocked | A precondition refuses the operation; it cannot be confirmed at all. |
Operation Preview shows where the level appears and what else the plan states.
The domains a restore can target
- Refs: branch, tag and remote-tracking pointers, put back with a compare-and-swap so a ref that moved since the capsule was taken is not overwritten silently.
- Index: the staging area, restored from the byte-for-byte copy.
- Staged changes and working changes: the two patches.
- Untracked files, from the archive. Existing files are never overwritten; a collision is written alongside as
<path>.restored. - Operation state: the in-progress markers such as
MERGE_HEADandORIG_HEAD. - Config: captured as evidence, sanitized. It is there to be read, not applied.
- Complete: every domain above at once.
What a capsule does not restore states the boundary exactly.
Transaction statuses
In flight: requested, preflighted, checkpointing, ready, simulating, awaiting-confirmation, executing, validating.
Terminal: succeeded, partially-succeeded, failed, rolled-back, compensated, requires-intervention, cancelled.
requires-intervention is the one worth knowing by name. It means GitAegis stopped rather than guessed, either a postcondition failed, or the application was killed while the operation was still in flight and the journal reconciled it on the next launch. Troubleshooting covers what to do about it.
One word this glossary does not stretch
A lease here means the force-push lease above, and nothing else. Branch leases held by an agent session (one worker holding a branch against another) belong to a module that is not compiled into this build, so there is no such thing to document yet.