Skip to content

refactor(persistence): add FakePersistence target for zero-IO previews + tests #261

Closed

Description

@wei18

Surfaced in PR #259 CR (Phase 3 MS monetization wire).

MS MinesweeperAppComposition.preview() currently uses LivePersistence(ckConfig: .minesweeper). Verified safe today via LivePersistence's lazy gateway init — no IO until first call. Latent footgun: any future Preview path that calls bootstrap() / latestInProgress() etc. traps.

Sudoku Preview uses FakePersistence from PersistenceTesting. MS should mirror once a fake exists.

Action: add FakePersistence (or rename PersistenceTesting fake to be MS-usable) in PersistenceKit, swap MS .preview() to use it. ~30 LOC.

Not urgent — defer until next significant MS Preview work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    architecturebacklog

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions