Skip to content
Recovery

After a crash

How recover_incomplete reconciles unfinished transactions, and what requires-intervention means.

What runs at the next launch

Every time GitAegis starts, before it serves anything, the journal reconciles operations that were still in flight when the process ended. An entry sitting in ready, checkpointing, simulating, executing or validating is moved to requires-intervention, stamped with a completion time, and given an explanation in place of a result: the app stopped while this operation was in flight. Its steps up to the last journaled command completed; anything after that did not run.

A plan you never confirmed is not touched by this. Nothing had run, so there is nothing to reconcile.

What requires-intervention means

It means the engine will not decide for you. It is not a claim that the operation failed, and not a claim that it succeeded. It is a claim that the outcome was never observed, so continuing, aborting and rolling back are all still on the table and only you can pick.

GitAegis does not auto-continue. Nothing resumes on its own at startup, because a resumed operation against a repository whose state nobody has looked at is exactly how a recoverable interruption becomes a real loss.

The timeline records it too

When reconciliation finds unfinished work it writes a crash-incomplete event to the Flight Recorder for the repositories involved. The timeline then shows the operation starting, the commands that ran, and the fact that it never reported an outcome, next to whatever else moved in that repository around the same time.

The capsule is still there

The capsule the operation took before it started is on disk, and the retention sweep will not remove it: a capsule referenced by an operation that never finished is exempt until that operation resolves, whatever its expiry stamp says. That is the point of writing the capsule before the first command rather than after the last one.

What to do, in order

  1. Read the entry. Open the journal with ⌘J and expand the operation. The step list shows which planned steps completed and which never started; the command records show the exact argv that ran.
  2. Look at the repository. Run a fresh health scan from Doctor → Overview. An interrupted operation often leaves an ordinary, recognisable state (a stale lock, a MERGE_HEAD still sitting there, an index that needs rebuilding), and Doctor has a recipe for those.
  3. Choose one route. Continue through Git’s sequencer if it is still holding the operation open; roll back to the capsule the operation took; or restore that capsule by domain if you want part of the state back rather than all of it.
  4. Do not re-run the operation first. Plan it again only after the repository state is one you recognise. A retry is a new operation with a new id and a new capsule; it is not a resumption of the old one.

If the interruption was the machine, not the app

The same reconciliation runs. It is keyed on the journal, not on how the process ended. What changes is the Flight Recorder: a power loss means the filesystem watcher was not running for whatever happened next, so external changes in that window may be recorded on the next reconciliation as inferred rather than observed. Compare the state hashes of the events either side of the gap before assuming nothing moved.

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.