FAITH20/SECULAR20 verbatim from exp52 (test keeps them identical). faith is built against the matched secular centroid rather than neutral, at the same 1x scale as every other valence; "secular" is only its reference, never a valence. Relay, worker and mixes pick it up through VALENCES/MIX_KEYS. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KkLuf2FYZUkVyoLue4wyoe
25 lines
929 B
Python
25 lines
929 B
Python
"""The live faith valence must be built from exactly exp52's batteries, so the
|
|
chamber's faith matches the measured one. Parsed with ast: no model load."""
|
|
import unittest
|
|
from pathlib import Path
|
|
|
|
from impossible_states.chamber_control import literal_constants
|
|
|
|
ROOT = Path(__file__).resolve().parents[1]
|
|
|
|
|
|
class FaithBatteryTests(unittest.TestCase):
|
|
def test_server_batteries_match_exp52(self):
|
|
exp = literal_constants(ROOT / "exp52_faith.py", ("FAITH", "SECULAR"))
|
|
live = literal_constants(ROOT / "live" / "server.py",
|
|
("FAITH20", "SECULAR20", "VALENCES"))
|
|
self.assertEqual(live["FAITH20"], exp["FAITH"])
|
|
self.assertEqual(live["SECULAR20"], exp["SECULAR"])
|
|
self.assertEqual(len(exp["FAITH"]), 20)
|
|
self.assertIn("faith", live["VALENCES"])
|
|
self.assertNotIn("secular", live["VALENCES"])
|
|
|
|
|
|
if __name__ == "__main__":
|
|
unittest.main()
|