core/tests/test_vault_config.py
Shay aadaf11612
Add ADR-0008 salience attention
Add salience and attention operators, wire salience-gated candidate selection into generation, expose vault/salience trace telemetry, and add tests proving non-placeholder salience behavior.
2026-05-13 22:40:36 -07:00

16 lines
606 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"))
turns = 3
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 == turns * 3
assert len(runtime.session.vault) == turns * 3