from pathlib import Path ROOT = Path(__file__).resolve().parents[1] EXPECTED = { ROOT / "Docs" / "PersistenceDesignDocument.md": [ "## MVP Persistence Limitations", "no database-backed world state yet", "no account-provider identity binding yet", "no save migration framework", "no automated corrupted-save validator yet", "no placed-container actor capture yet", "no full offline player simulation or family/generational simulation yet", "no cross-server persistence or shard transfer yet", "no external backup replication", "no player-facing save/load UI yet", "no compatibility guarantee for pre-MVP experimental save files", ], ROOT / "AGRARIAN_DEVELOPMENT_ROADMAP.md": [ "[x] Document persistence limitations.", "`Docs/PersistenceDesignDocument.md`", "pre-MVP save compatibility", ], } def main() -> None: missing = [] for path, snippets in EXPECTED.items(): text = path.read_text(encoding="utf-8") for snippet in snippets: if snippet not in text: missing.append(f"{path.relative_to(ROOT)}: {snippet}") if missing: raise RuntimeError("Persistence limitations verification failed: " + "; ".join(missing)) print("PASS: MVP persistence limitations are documented.") if __name__ == "__main__": main()