Skip to content

[B1] Crash-safe rewind: journal originals before applying workspace restore #1349

Description

@dennisonbertram

[parent] #1337

Problem

RestoreRewindPoint writes files before tx open (~719-731); crash mid-loop corrupts file↔history correspondence.

Outcome

Journal originals before applying restore; idempotent w.r.t. crash between file apply and DB truncate; second attempt completes.

Acceptance criteria

  • Injected mid-loop failure leaves recoverable state; retry completes correctly.

Test-first plan

Test: injected mid-loop failure then recovery (expected red).

Impact analysis

Rewind path only; atomic from API consumer view.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions