test(ohmo): harden memory prompt isolation coverage

This commit is contained in:
tjb-tech
2026-04-29 08:51:02 +00:00
parent cc825efb83
commit 1bcdc62a50
3 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -134,7 +134,7 @@ async def submit_follow_up(
latest_user_prompt=prompt_seed,
extra_skill_dirs=bundle.extra_skill_dirs,
extra_plugin_roots=bundle.extra_plugin_roots,
include_project_memory=bundle.include_project_memory,
include_project_memory=getattr(bundle, "include_project_memory", True),
)
bundle.engine.set_system_prompt(system_prompt)
try:
+1
View File
@@ -625,6 +625,7 @@ async def test_runtime_pool_prompt_excludes_project_memory(tmp_path, monkeypatch
workspace = tmp_path / ".ohmo-home"
initialize_workspace(workspace)
add_ohmo_memory_entry(workspace, "personal", "ohmo-only personal fact")
monkeypatch.delenv("CLAUDE_CODE_COORDINATOR_MODE", raising=False)
monkeypatch.setenv("OPENHARNESS_CONFIG_DIR", str(tmp_path / "config"))
monkeypatch.setenv("OPENHARNESS_DATA_DIR", str(tmp_path / "data"))
add_project_memory_entry(tmp_path, "project", "project memory should not leak")
+1
View File
@@ -36,6 +36,7 @@ def test_ohmo_prompt_includes_persona_and_memory(tmp_path: Path):
def test_ohmo_runtime_prompt_can_exclude_project_memory(tmp_path: Path, monkeypatch):
monkeypatch.delenv("CLAUDE_CODE_COORDINATOR_MODE", raising=False)
monkeypatch.setenv("OPENHARNESS_DATA_DIR", str(tmp_path / "data"))
workspace = tmp_path / ".ohmo-home"
initialize_workspace(workspace)