fix(core): save files store the deal via upstream serializers (schema v6) #171
Reference in New Issue
Block a user
Delete Branch "fix/save-schema-v6-session-recording"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Follow-up to #170:
GameState's save serde had the same latent flaw replays had. Schema v5 persistedseed + saved_movesand re-dealt the board from the seed on load, so any RNG or upstream upgrade that shifts the seed→deal mapping would invalidate every in-progress save. The failure was graceful (validation error → fresh game) but data-losing.Change
SessionRecordingintroduced in #170 (upstreamcard_gamesession serde: config + dealt board + instruction list).seedremains presentation metadata only.saved_moves()removed (dead once serialisation readsrecording()).Tests
seedfield of a v6 save does not change the loaded boardGate:
cargo test --workspacegreen (27 binaries),clippy --all-targets -- -D warningsclean, rustfmt applied.🤖 Generated with Claude Code