mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-11-05 14:53:38 -05:00
First R-slice groundwork for docs/plans/2026-09-15-source-runtime-reliability.md, pulled ahead of R1/R2 because both paths can destroy unreproducible data today. Opening a source store whose records predate parent addressing dropped the record, content, edge, and facet tables so a walk could rebuild them. That assumed the origin is reproducible, which source durability forbids: content rows carry integrity evidence that cannot be recomputed once the drive is in a drawer. The store now refuses to open with a typed UnsupportedGeneration error and stays intact until a data-preserving migration converts it. Assertions already survived; now the evidence the migration needs does too. A restart snapshot whose saved root disagreed with the resolved root was deleted before reindexing. The disagreement can mean a remount, but the live Mac log shows it also fires when the root resolver changes its answer, and a resolution bug must not destroy the only artifact. The snapshot now moves aside to a .mismatched-root file, keeping the oldest aside copy when the mismatch repeats.