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_deeper_question_timing.py
2026-05-19 15:45:57 -07:00

41 lines
1.1 KiB
Python

#!/usr/bin/env python3
"""Verify deeper-question timing rules are documented."""
from pathlib import Path
ROOT = Path(__file__).resolve().parents[1]
DOC = ROOT / "Docs" / "KnowledgeAndSkillFoundation.md"
ROADMAP = ROOT / "AGRARIAN_DEVELOPMENT_ROADMAP.md"
REQUIRED = {
DOC: [
"## When Deeper Questions Matter",
"Quality improvements:",
"Safer work:",
"Complex crafting:",
"Teaching others:",
"Advanced branches:",
"Depth rule:",
],
ROADMAP: [
"[x] Define when deeper questions should matter: quality improvements, safer work, complex crafting, teaching others, and advanced branches.",
],
}
def main() -> None:
missing: list[str] = []
for path, snippets in REQUIRED.items():
text = path.read_text(encoding="utf-8")
for snippet in snippets:
if snippet not in text:
missing.append(f"{path.relative_to(ROOT)} missing {snippet!r}")
if missing:
raise SystemExit("FAILED: " + "; ".join(missing))
print("OK: deeper-question timing rules are documented.")
if __name__ == "__main__":
main()