core/tests/test_vault_config.py
Shay 222124a8cd fix(tests): align suite with persona-neutral strict-closure contract
Remove shelved identity/drive tests that existed to justify premature
persona wiring, and update remaining tests to match the current runtime
contract: empty vault triggers unknown_domain gate on first turn, versor_apply
always closes to unit versor, and null-cone preservation is deferred to an
explicit geometry API.

562 passed, 4 skipped, 0 failed.
2026-05-16 05:37:12 -07:00

15 lines
607 B
Python

from __future__ import annotations
from chat.runtime import ChatRuntime
from core.config import RuntimeConfig
def test_runtime_config_controls_vault_reproject_interval_and_store_count() -> None:
runtime = ChatRuntime(config=RuntimeConfig(vault_reproject_interval=5, output_language="en", frame_pack="en"))
for text in ("word beginning truth", "light truth word", "begin thought word"):
runtime.chat(text)
assert runtime.session.vault.reproject_interval == 5
assert runtime.session.vault.store_count > 0
assert len(runtime.session.vault) == runtime.session.vault.store_count