Add elementary survival question bank

This commit is contained in:
2026-05-19 15:44:34 -07:00
parent 7b1f9b81c0
commit b5416e0453
3 changed files with 104 additions and 1 deletions
@@ -0,0 +1,41 @@
#!/usr/bin/env python3
"""Verify the MVP elementary survival question bank is documented."""
from pathlib import Path
ROOT = Path(__file__).resolve().parents[1]
DOC = ROOT / "Docs" / "KnowledgeAndSkillFoundation.md"
ROADMAP = ROOT / "AGRARIAN_DEVELOPMENT_ROADMAP.md"
REQUIRED = {
DOC: [
"## MVP Elementary Survival Question Bank",
"id: fire.clearance.001",
"id: water.potable.001",
"id: exposure.cold.001",
"id: shelter.drainage.001",
"id: injury.bleeding.001",
"id: resource.fiber.001",
"Question-bank rule:",
],
ROADMAP: [
"[x] Add a small MVP question bank for elementary survival knowledge.",
],
}
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: elementary survival question bank is documented.")
if __name__ == "__main__":
main()