The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(compression): sibling asserts the grounded task heading, not the legacy alias
teknium1ffe69fd71101
diff --git a/tests/agent/test_compression_small_ctx_threshold_floor.py b/tests/agent/test_compression_small_ctx_threshold_floor.pyindex 11797c55454..abaf2407070 100644--- a/tests/agent/test_compression_small_ctx_threshold_floor.py+++ b/tests/agent/test_compression_small_ctx_threshold_floor.py@@ -83,7 +83,10 @@ class TestReasoningExcludedFromSummarizer:out = comp._generate_summary([{"role": "user", "content": "hi"}])assert out is not Noneassert "OUTPUT_TRACE" not in out- assert "## Active Task" in out+ # Snapshot grounding rewrites the legacy "## Active Task" alias into the canonical, grounded+ # section instead of prepending a second task section next to it.+ assert cc.HISTORICAL_TASK_HEADING in out+ assert "## Active Task" not in out# The iterative-update seed must be clean too, or the trace compounds# across every subsequent compaction.assert "OUTPUT_TRACE" not in (comp._previous_summary or "")