A video game where you play as a misaligned AI, deceiving and building power. An experiment in spec-driven development. cameron.tngl.io/misaligned

Fsync rotated save backups and the parent directory. master

write_save_atomically only synced the staging temp, so a crash after bak copy or rename could lose recovery material or the directory entry. Defense: player-contract continuity requires durable prior-save rotation and a durable replace, not only a synced payload. Co-authored-by: Cursor <cursoragent@cursor.com> (cherry picked from commit fb8462ecf0b17d8256c269c316e8f00760181be3)


+78 -14
4 changed files