Define knowledge action effects

This commit is contained in:
2026-05-19 15:34:21 -07:00
parent 0c48022464
commit 4e72a76b2a
3 changed files with 86 additions and 1 deletions
@@ -0,0 +1,40 @@
#!/usr/bin/env python3
"""Verify knowledge effects on survival actions 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: [
"## Knowledge Effects On Survival Actions",
"Fewer mistakes:",
"Safer attempts:",
"Better yields:",
"Lower injury risk:",
"More reliable outcomes:",
"Action-effect rule:",
],
ROADMAP: [
"[x] Define how knowledge affects survival actions: fewer mistakes, safer attempts, better yields, lower injury risk, and more reliable outcomes.",
],
}
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: knowledge effects on survival actions are documented.")
if __name__ == "__main__":
main()