Files
timmy-home/tests/test_evennia_mind_palace_doc.py
2026-04-15 00:15:27 -04:00

33 lines
1.1 KiB
Python

from pathlib import Path
ISSUE_NUMBERS = (508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 534, 535, 536, 537, 538, 539)
def test_evennia_mind_palace_doc_exists_with_required_sections() -> None:
doc = Path("evennia-mind-palace.md").read_text(encoding="utf-8")
assert "# Evennia as Agent Mind Palace — Spatial Memory Architecture" in doc
assert "## GrepTard Memory Layers as Spatial Primitives" in doc
assert "## Milestone 1 — One Room, One Object, One Mutable Fact" in doc
assert "## Proof of Room Entry Injecting Context" in doc
assert "Hall of Knowledge" in doc
assert "The Ledger" in doc
assert "Timmy burn cycle" in doc
def test_evennia_mind_palace_doc_maps_all_16_tracked_issues() -> None:
doc = Path("evennia-mind-palace.md").read_text(encoding="utf-8")
for issue_number in ISSUE_NUMBERS:
assert f"#{issue_number}" in doc
assert "| Layer | Spatial primitive |" in doc
assert "| Issue | State | Layer | Spatial role | Why it matters |" in doc
assert "L1" in doc
assert "L2" in doc
assert "L3" in doc
assert "L4" in doc
assert "L5" in doc