The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(sessions): drop two tests that pass without the feature (constant membership, dict clone)
kshitijk4poor336c5a2b112e
diff --git a/tests/agent/test_context_engine_message_uid.py b/tests/agent/test_context_engine_message_uid.pyindex 1eb3b6da843..11dfeda5b85 100644--- a/tests/agent/test_context_engine_message_uid.py+++ b/tests/agent/test_context_engine_message_uid.py@@ -184,24 +184,6 @@ def test_persist_override_keeps_the_uid(db):assert (row[0], row[1]) == ("what the user typed", uid)-def test_on_turn_complete_clones_carry_the_uid():- from agent.conversation_loop import _notify_context_engine_turn_complete-- engine = _CapturingEngine()-- class _Agent:- context_compressor = engine- session_id = "s"-- messages = [{"role": "user", "content": "q", "message_uid": "a" * UID_LEN},- {"role": "assistant", "content": "r", "message_uid": "b" * UID_LEN}]- _notify_context_engine_turn_complete(_Agent(), messages, usage=None, logger=logging.getLogger("t"))-- seen = engine.turn_complete_messages- assert [m["message_uid"] for m in seen] == ["a" * UID_LEN, "b" * UID_LEN]- assert all(clone is not original for clone, original in zip(seen, messages))--def test_consecutive_user_merge_keeps_the_first_uid_and_records_the_absorbed_ones():from agent.agent_runtime_helpers import _merge_consecutive_users@@ -318,12 +300,6 @@ def test_assistant_merge_keeps_the_absorbed_turns_tool_call_uids():assert first["_tool_call_uids"] == {"call_1": "1" * UID_LEN, "call_2": "2" * UID_LEN}-def test_the_uid_never_reaches_the_provider_copy():- from agent.message_metadata import PERSISTENCE_ONLY_MESSAGE_FIELDS-- assert {"message_uid", "_absorbed_message_uids", "_tool_call_uids", "_tool_call_uid"} <= PERSISTENCE_ONLY_MESSAGE_FIELDS--def test_a_select_context_selection_is_stripped_before_the_provider():"""The request copy is stripped BEFORE ``select_context``; an engine that hands back the``conversation_messages`` clones must not put the ids back on the wire."""