What a capsule does not restore
Rebase state, configuration (kept as evidence only), and .gitattributes filters, stated exactly.

Rebase state is recorded, not replayed
When a rebase is in progress the capsule records that fact and nothing more. The contents of rebase-merge / rebase-apply are not captured (only a presence marker) and the sequencer’s todo list is not captured at all.
Restoring the operation-state domain puts back MERGE_HEAD, CHERRY_PICK_HEAD, REVERT_HEAD, ORIG_HEAD and MERGE_MSG. It does not put back a rebase, and BISECT_LOG is captured but not restored either. The operation says so while it runs rather than afterwards.
After a restore you continue, skip or abort through Git’s sequencer yourself. Treat rebase state as evidence, not as a resumable process.
Configuration is evidence, and is never written back
config.sanitized is git config --local --list with credential-bearing lines stripped. It exists so you can see what your configuration looked like before the operation and compare it with now. It is not restored in this version. Restoring it automatically would be a reliable way to silently undo an unrelated change you made on purpose, which is worse than not doing it.
Content filters still run during a restore
If your repository declares a filter driver in its own .gitattributes (LFS, a smudge/clean pair, a custom formatter) Git applies it when GitAegis writes working-tree content, and a restore writes working-tree content. GitAegis pins its GIT_CONFIG_* environment and blocks hooks in Safe Mode, but attribute-driven filters are Git’s own path and there is no way to disable them wholesale from the command line. If a filter is lossy, a restore inherits that. If a repository’s filters are themselves suspect, repair it from a shell instead.
The untracked archive is bounded
The archive is built from git ls-files --others --exclude-standard, so anything your .gitignore excludes was never in it. On top of that:
- a single untracked file larger than 32 MiB is skipped;
- any untracked file that would push the archive past 128 MiB in total is skipped.
Both caps are fixed in the build and not configurable per repository. Every path left out is named in the capsule’s manifest.json under skippedUntracked, and a note appears on the capsule, so what was skipped is a fact you can read now, not something you discover during a restore.
Untracked files are captured by standard capsules only. A light checkpoint has no untracked domain, and the restore dialog marks it not captured.
On a damaged repository, a domain can be present but empty
If git diff --cached fails because the repository is damaged (the case Doctor exists for) the capsule writes an empty staged.patch and records the loss in its manifest rather than pretending the capture succeeded or failing the whole capture. Refs, HEAD, the index file and the untracked archive still protect you. Read the manifest note before assuming a domain has content in it.
What a capsule was never going to cover
- Anything that was not on disk. An unsaved editor buffer is not in the capsule, because it was not in the working tree when the capsule was written. No Git tool can help with that one.
- Anything outside the repository. A capsule is a repository snapshot, not a filesystem snapshot: other repositories, files above the worktree, and whatever your build system wrote elsewhere are not in it.
- A push. A capsule restores your local refs. It cannot un-push. Force pushes default to
--force-with-lease, and GitAegis writesrefs/aegis/recover/<branch>-pre-force-pushbefore one, so putting the old state back is possible, but it is a new operation with its own plan, and it depends on the remote still holding the objects. - A disk failure, an
rm -rf, or a stolen laptop. Capsules protect you from operations. Keep your actual backups. - A capsule past its expiry. Ninety days after capture, the sweep deletes it permanently unless it is pinned or referenced by an unfinished operation.
What it does restore
Refs and HEAD, the index including conflict stages, the staged patch, the working patch, the untracked archive, and the merge, cherry-pick and revert markers: each chosen independently, each verified against the capsule’s checksums before anything is written, and each reversible because the restore takes a capsule of its own first. The mechanics are in “Recovery capsules”.