A Civilization-style strategy game about governing Israel from 15 May 1948. Real ministers, real map, every fact sourced. Unity + deterministic C# sim.
"""Original building sources stay outside Unity's importer and retain exact bytes."""
from pathlib import Path
import hashlib
import json
ROOT = Path(__file__).resolve().parents[2]
def test_original_building_archive_matches_every_admission_receipt():
rows = json.loads((ROOT / 'docs/generated-buildings-props-admission.json').read_text())
assert len(rows) == 11
assert not list((ROOT / 'unity/Assets/Editor/Generated1948Review').rglob('*.glb'))
for row in rows:
path = ROOT / row['source_archive_path']
assert path == ROOT / 'asset-sources/generated-1948' / row['id'] / (row['id'] + '.glb')
data = path.read_bytes()
assert len(data) == row['source_glb_bytes']
assert hashlib.sha256(data).hexdigest() == row['source_glb_sha256']
# A model placed in the game lives in the 1948 Collection's folder (owner, 27 October 2026, "Sign off all 19").
review = ROOT / 'unity/Assets/Editor/Generated1948Review' / row['id'] / 'provenance.json'
placed = [ROOT / 'unity/Assets/Art/Collection' / row['id'] / 'provenance.json',
ROOT / 'unity/Assets/Art/Settlements/Prototype/Models' / row['id'] / 'provenance.json']
found = [p for p in [review] + placed if p.exists()]
assert len(found) == 1, row['id']
provenance = found[0]
assert json.loads(provenance.read_text())['source_archive_path'] == row['source_archive_path']