The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(gateway): drop the non-red unpublished-child /compress fallback test
kshitijk4poored0f66232e56
diff --git a/tests/gateway/test_compress_command.py b/tests/gateway/test_compress_command.pyindex 1718310790f..30c71d45c13 100644--- a/tests/gateway/test_compress_command.py+++ b/tests/gateway/test_compress_command.py@@ -572,45 +572,3 @@ def test_rotated_compress_keeps_atomically_published_foreign_tail(tmp_path, monk]finally:store.close_all_db_handles()---def test_compress_falls_back_to_rewrite_for_unpublished_child(tmp_path, monkeypatch):- """Fail-open contract: when the child is NOT a durably-published compression continuation- (probe False), the original rewrite-then-repoint guard must still run unchanged."""- import hermes_state- from gateway.slash_commands_session import GatewaySessionCommandsMixin- from gateway.session import AsyncSessionStore, SessionStore- from gateway.config import GatewayConfig-- db_path = tmp_path / "state.db"- monkeypatch.setattr(hermes_state, "DEFAULT_DB_PATH", db_path)- store = SessionStore(sessions_dir=tmp_path, config=GatewayConfig())- db = store._db- parent, child = "parent2", "child2"- db.create_session(parent, "discord")- db.create_session(child, "discord") # no compression lineage at all- entry = SessionEntry(- session_key="agent:fallback:discord:thread:9:9", session_id=parent,- created_at=datetime.now(), updated_at=datetime.now(),- platform=Platform.DISCORD, chat_type="thread",- )- rewrite_calls = []-- def _fake_rewrite(session_id, messages, **kwargs):- rewrite_calls.append((session_id, messages))- return True- store.rewrite_transcript = _fake_rewrite-- runner = SimpleNamespace(- async_session_store=AsyncSessionStore(store),- _sync_telegram_topic_binding=MagicMock(),- )- agent = SimpleNamespace(session_id=child)- compressed = [{"role": "assistant", "content": "summary"}]- try:- asyncio.run(GatewaySessionCommandsMixin._persist_manual_compression(- runner, agent, entry, _make_source(), compressed))- assert entry.session_id == child- assert rewrite_calls == [(child, compressed)]- finally:- store.close_all_db_handles()