diff --git a/README.md b/README.md index bc5422c..879b5ea 100644 --- a/README.md +++ b/README.md @@ -165,4 +165,9 @@ dotnet build -p:CultLibRoot= # or set CULTLIB_ROOT= Without an override the sibling `..\CultLib` checkout is used and must itself be at that revision. -**Stores are one-way, and rolling back is dangerous.** Since the pin move (#35) list elements carry ids. A store holding any element id has header v3 (v5 for a directory store); a store with none keeps its old header. CultLib 1.x pins (`cultlib-unity-v1.0.61`, `cultlib-v1.0.32`) do not refuse such a store: they read the header string without comparing it, so a rolled-back build silently drops the ids and can rewrite elements without them. Refusal by name starts only at `cultlib-unity-v2.0.0`. So: keep a copy of any store taken before the upgrade, upgrade every reader before any writer, and do not roll the pin back after writing. Stores written before the move still open; ids are minted on load. +**Stores are one-way, and rolling back can lose data.** Since the pin move (#35) list elements carry ids, and a store holding any element id is stamped with a newer header. What an older build does with it depends on the store kind: + +- **Single-file stores** (header v3 with ids): the patch catalog (`patches/aquasynth-patch-cultcache.cc`), the speech training store and the daemon store. Pins before `cultlib-unity-v2.0.0` / `caching-unity-v2.0.0`, including NuGet `cultlib-v1.0.32`, read these without complaint, silently drop the ids, and can rewrite elements without them. Only v2.0.0 and later refuse by name. +- **Directory stores** (header v5 with ids): the IPA trial results store (`ipa-trial-results.cc`, `UseDirectoryStore`). These are refused by name from `cultlib-unity-v1.0.57` / `caching-unity-v1.2.0`. + +So: take a copy of any store before the upgrade and restore from it if you roll back, never write with the new pin and then read with an old one, and upgrade every reader before any writer. Stores written before the move still open; ids are minted on load.