From c284067d75eec2d58b924913ef5ef563b8343d68 Mon Sep 17 00:00:00 2001 From: Erosika Date: Fri, 4 Sep 2026 16:20:34 -0400 Subject: [PATCH] test(honcho): declare a peerName in the cache-bounds test the manager under test had no peerName and no runtime identity. that cohort now fails closed instead of minting a fallback peer, so the test names an owner the way the auth-recovery tests do. --- tests/test_honcho_session_cache_bounds.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_honcho_session_cache_bounds.py b/tests/test_honcho_session_cache_bounds.py index 54be4ac7ea..afd5ae2795 100644 --- a/tests/test_honcho_session_cache_bounds.py +++ b/tests/test_honcho_session_cache_bounds.py @@ -266,6 +266,7 @@ def test_sdk_object_hit_moves_the_key_to_the_recent_end(): def test_get_or_create_stores_observation_flags_with_the_entry_and_eviction_drops_them(): mgr = _manager() mgr._config.ai_peer = "hermes" + mgr._config.peer_name = "operator" # unnamed peers now fail closed instead of minting a fallback flags = {"user_observe_me": True, "user_observe_others": True, "ai_observe_me": True, "ai_observe_others": False} mgr._get_or_create_peer = lambda peer_id: object() mgr._get_or_create_honcho_session = lambda sid, user, assistant: (object(), [], dict(flags))