Skip to content

Publish complete storage migrations without losing legacy data - #2

Merged
SeanShaffer88 merged 1 commit into
mainfrom
fix/audit-storage-migration
Nov 7, 2026
Merged

SeanShaffer88 merged 1 commit into
mainfrom
fix/audit-storage-migration

Conversation

@SeanShaffer88

Copy link
Copy Markdown
Owner

A partial first-run copy could make a later launch choose incomplete portable data and hide legacy history. Migration now copies and flushes the complete known-file set into exclusively owned staging, then publishes without replacing a racing destination. Existing portable data and foreign entries remain authoritative or untouched; failures retain legacy data and report recoverable staging.

The private Windows adapter creates and retains staging/child handles, publishes the same owned directory object, and cleans only objects whose ownership remains proven. Failed publication after child handles close retains staging instead of reopening paths or recursively deleting uncertain content. Legacy paths, overrides and calculator behavior remain compatible.

Validation: 175 tests were covered across worker and parent contexts. The sandbox-denied library and v090 groups passed in the parent context (13 and 16 tests); formatting, strict Clippy, release build and native ownership/collision fixtures passed. Independent review passed source/artifact hashes, retained-handle publication and cleanup. Hosted CI pending. A pre-existing unnecessary unsafe block was removed to satisfy strict Clippy.

Limits: Windows x64 with trusted stable ancestors; malicious same-token reparse rewriting, GUI, other platforms, power-loss durability and installer lifecycle remain unverified. Historical unmarked partial portable folders cannot be distinguished automatically from legitimate portable data; recovery guidance is documented. Existing missing-windres icon warning remains.

@SeanShaffer88
SeanShaffer88 marked this pull request as ready for review November 7, 2026 19:20
@SeanShaffer88
SeanShaffer88 merged commit 6670b63 into main Nov 7, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant