This repository has been archived on 2026-05-24. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
AgrarianGameArchive/Scripts/verify_shelter_door_opening_decision.py

30 lines
1.0 KiB
Python

#!/usr/bin/env python3
from pathlib import Path
ROOT = Path(__file__).resolve().parents[1]
ROADMAP = ROOT / "AGRARIAN_DEVELOPMENT_ROADMAP.md"
TECHNICAL_DESIGN = ROOT / "Docs" / "TechnicalDesignDocument.md"
def compact(path: Path) -> str:
return " ".join(path.read_text(encoding="utf-8").split())
def require(path: Path, text: str) -> None:
data = compact(path)
if text not in data:
raise SystemExit(f"FAIL: {path.relative_to(ROOT)} missing required text: {text}")
def main() -> None:
require(ROADMAP, "[x] Add door/opening if needed.")
require(ROADMAP, "MVP primitive shelters use an open entrance")
require(ROADMAP, "door actors, locks, permissions, and modular openings remain deferred")
require(TECHNICAL_DESIGN, "MVP primitive shelters use an open entrance")
require(TECHNICAL_DESIGN, "Door actors, locks, ownership permissions, and modular openings are deferred")
print("PASS: MVP shelter door/opening decision is documented.")
if __name__ == "__main__":
main()