Document MVP persistence limitations

This commit is contained in:
2026-05-18 19:42:20 -07:00
parent 31e781d7cf
commit 5a381ad8a0
3 changed files with 69 additions and 1 deletions
+43
View File
@@ -0,0 +1,43 @@
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()