feat: per-POV summary and edge summary update on scene close

This commit is contained in:
Joseph Doherty
2026-04-26 13:53:12 -04:00
parent 0997562e75
commit b5175aefaa
6 changed files with 601 additions and 12 deletions
+9
View File
@@ -87,6 +87,7 @@ def client(tmp_path, monkeypatch):
# 3. state_update bot->you
# 4. state_update you->bot
# 5. detect_scene_close (runs AFTER assistant_turn — see turns.py)
# 6. summarize_scene (T27, runs only when scene-close fires)
parse_canned = json.dumps(
{"segments": [{"kind": "dialogue", "text": "hello"}]}
)
@@ -101,6 +102,13 @@ def client(tmp_path, monkeypatch):
"new_container_hint": "park",
}
)
pov_summary_canned = json.dumps(
{
"summary": "BotA noticed you leaving the office.",
"knowledge_facts": [],
"relationship_summary": "BotA wonders where you're headed.",
}
)
from chat.web.kickoff import get_llm_client
@@ -111,6 +119,7 @@ def client(tmp_path, monkeypatch):
state_update_canned,
state_update_canned,
scene_close_canned,
pov_summary_canned,
]
)
app.dependency_overrides[get_llm_client] = lambda: mock