Proofline

Rollback and pre-switch recovery replace the old receipt even when it already matches the verified executable.

khan-dev-labs/cli#1Reviewed commit e5d1e41

Serious · Error handling

Impact

A reader that denies delete sharing makes recovery abort before clearing the journal, blocking installer retries while the handle remains open.

Recommended action

Reuse the `passed` branch’s matching-receipt check in both old-version recovery paths and skip replacement when the version and hash match.

Cited code

Checked
Pull request code. The environment was not checked.
Status
Completed
Started
Completed