Skip to content
Reference

Glossary

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

GitAegis
The GitAegis Operation Preview drawer for a hard reset, showing the operation's intent, a Destructive risk badge, the recovery capsule that will be taken first and what it covers, and the rollback that will be available afterwards.
The Operation Preview drawer: the intent, the risk, the capsule that will be taken before anything runs, and the way back. The exact command list sits further down the same drawer.

The ten terms

GitAegis vocabulary, defined.
TermWhat it means
CapsuleA 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.
CheckpointThe 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-.
DomainOne 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.
IntentA 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.
JournalThe 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.
LeaseThe 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.
RehearsalRunning 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 levelThe classification a plan carries, which decides how much ceremony the operation gets. The values are below.
State hashA 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.
TransactionOne 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

The risk classification a plan can carry.
LevelWhat it means
InformationalNothing in the repository changes.
SafeReversible, 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.
CautionSomething could be lost if the assumptions are wrong. Must go through the Operation Preview and be confirmed.
DestructiveWork is destroyed by design: reset, discard, clean, force push. Must go through the preview, and the capsule is not optional.
BlockedA 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_HEAD and ORIG_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.

30-day trial · No card required

A recovery capsule before every risky Git operation.

You see the exact commands before they run, and the operation is refused if the capsule cannot be written.

Requires Git 2.38.0 or newer, already installed.

Every risky operation, in this order

  1. Previewthe exact commands, shown before anything runs
  2. Capsulerefs, index, staged and working changes, untracked files, operation state: written to disk first
  3. Executethe commands as shown, or not at all
  4. Journalplan, commands, capsule id, outcome
No capsule, no operation. Restore plans, previews, and takes its own capsule.