Skip to content
Recovery

Doctor

Running a scan, reading a finding's evidence, and applying a repair that takes a capsule first.

GitAegis
GitAegis Doctor showing a repository finding, the evidence behind it, and the proposed repair with its capsule step visible in the plan.
Every finding carries its evidence, and every repair takes a capsule before it runs.

Where everything else lives

Doctor (⌘5) is where the recovery mechanisms are surfaced. Its tabs: Overview, Findings, Repair Plans, Capsules, Lost Work, Flight Recorder, Performance, Credentials, Repair History and Export.

Running a scan

Doctor’s overview is served from the last saved scan, so opening the tab is instant and shows you what was true when it last ran. Use Run health scan for a fresh one: that button also runs git fsck --connectivity-only, which the cached view does not.

A scan reads files and runs read-only Git commands. It is safe on a repository that is already broken (that is what it is for) and it runs in Safe Mode, where mutating controls are locked out. The report is written into GitAegis’s own store, not into your repository.

The deep connectivity check is the slow one and runs under a bound. A bound that was reached lowers the confidence the report states for itself rather than being quietly dropped.

Reading a finding

Every finding carries the same anatomy, in this order:

  • What was checked, and what it found: a title and one sentence.
  • The raw evidence, labelled values in the mono face and copyable: the index version and entry count, the exact git status error, the lock path with the process evidence behind the verdict, the captured tip oid, the config key with its value. Never summarised into prose.
  • A severity and a confidence, separately. Severity is info, warning, error or critical; confidence is its own axis, because a serious problem the scanner is not certain about should not be dressed as a certain one.
  • The likely root cause, and what it implies: which operations are blocked, refused or risky while it holds.
  • The work at risk: the specific paths and refs, rather than a general warning.
  • Where recovery could come from: local data, the remote, a sibling clone, a capsule, a manual route, each marked available or not for this repository.
  • A repair recipe, where a safe one exists. Where none exists the finding says so and points at the manual route instead of inventing a button.
A Doctor finding with its raw evidence, severity, likely root cause and the repair attached to it.
Evidence first. The repair is the last line of the finding, not the first.

Applying a repair

A repair is an ordinary GitAegis operation. It opens the Operation Preview with its own plan, it takes a capsule before the first command, and if that capsule cannot be written the repair does not run. That rule matters more here than anywhere else, because a repair operates on a repository that is already damaged.

Success is reported only after postconditions pass. A partial repair stays visibly incomplete and says which findings remain, rather than being rounded up to done.

There is no fix-everything button. Each repair addresses one finding. A batch of repairs run blind against a damaged repository is how a recoverable problem becomes an unrecoverable one.

Rules the repair engine holds itself to

  • No repair without evidence, and never without a checkpoint first.
  • Never gc, never prune, never reflog expiry. The operations that would destroy recoverable work are not in the repertoire at all. The one place the word prune appears in a command GitAegis runs is git maintenance run --task=worktree-prune, which removes registration metadata for worktrees that no longer exist on disk, and nothing else.
  • No hidden network access.
  • Success is only reported after postconditions pass.
  • A partial repair stays visibly incomplete.

What Doctor will not do

  • Repair object corruption. If an object will not resolve, the bytes are damaged. Doctor reports it with the failing probe and points at recovery: a capsule, a refs/aegis/ ref, another clone, the remote. It will not fabricate a replacement.
  • Delete objects. The repairs that remove something remove a registration or quarantine a lock file, and quarantine means the file is moved, not destroyed.
  • Rewrite history. No repair rebases, squashes, filters or amends.
  • Touch the remote. Every repair is local.
  • Certify health. A clean scan means no findings, not “verified healthy”, and a scan whose probes partly failed says so.

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.