The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(relay): call a failed summary attempt failed, not aborted
mnajafian-nv5220f064c6b8
diff --git a/tests/agent/test_compaction_events.py b/tests/agent/test_compaction_events.pyindex 0c822df0363..3915a0678b9 100644--- a/tests/agent/test_compaction_events.py+++ b/tests/agent/test_compaction_events.py@@ -135,7 +135,7 @@ def test_deterministic_fallback_is_a_committed_compaction_with_its_method(publisassert payload["trigger"] == "unknown" # an unlabelled automatic caller-def test_aborted_summary_failure_is_an_attempt_mark_not_a_compaction(published):+def test_failed_summary_is_an_attempt_mark_not_a_compaction(published):agent = _Agent(_compressor())agent.context_compressor.abort_on_summary_failure = Truediff --git a/tests/agent/test_relay_compaction_atof.py b/tests/agent/test_relay_compaction_atof.pyindex b753e3c801f..e19c768b986 100644--- a/tests/agent/test_relay_compaction_atof.py+++ b/tests/agent/test_relay_compaction_atof.py@@ -2,7 +2,7 @@Relay records an LLM start projected to the current user turn while its agent scope is not fresh. A``compaction`` mark on the session's own stack makes the agent fresh again, so the next LLM start-records the full compacted history. An aborted attempt is only a ``compaction.attempt`` mark and must+records the full compacted history. A failed attempt is only a ``compaction.attempt`` mark and mustnot reset anything."""@@ -193,7 +193,7 @@ def test_committed_compaction_mark_resets_freshness_for_the_next_llm_start(tmp_passert after == last_request_len # fresh again after the compaction mark: full history-def test_aborted_attempt_is_an_attempt_mark_and_leaves_freshness_alone(tmp_path, monkeypatch):+def test_failed_attempt_is_an_attempt_mark_and_leaves_freshness_alone(tmp_path, monkeypatch):events, last_request_len = _run_turn_with_compaction(tmp_path, monkeypatch, ABORT)[mark] = _compaction_marks(events)