The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(compaction): trim the redundant fallback-streak gate tests
kshitijk4poor50b57ffeff0e
diff --git a/tests/agent/test_compression_anti_thrash_recovery.py b/tests/agent/test_compression_anti_thrash_recovery.pyindex d29e074ff02..4edfbd5abdb 100644--- a/tests/agent/test_compression_anti_thrash_recovery.py+++ b/tests/agent/test_compression_anti_thrash_recovery.py@@ -72,12 +72,6 @@ class TestRecoveryWindow:assert cc._ineffective_compression_count == 0assert cc._anti_thrash_recovery_deadline == 0.0- def test_fallback_streak_alone_does_not_block_compaction(self):- cc = _compressor()- cc._fallback_compression_streak = 2- assert cc.should_compress(cc.threshold_tokens + 1) is True- assert cc._fallback_compression_streak == 2-def test_fallback_boundaries_wait_for_real_effectiveness_verdict(self):cc = _compressor()for prompt_tokens in (4_000, 5_000):diff --git a/tests/agent/test_compression_rotation_state.py b/tests/agent/test_compression_rotation_state.pyindex cd813336d7f..3b036d9b02c 100644--- a/tests/agent/test_compression_rotation_state.py+++ b/tests/agent/test_compression_rotation_state.py@@ -1179,7 +1179,7 @@ class TestAutomaticCompressionStateRefreshAfterLock:class TestGateLevelGuardRefresh:"""The pre-gate uses the measured ineffective count, not summary type."""- def test_should_compress_unblocks_after_another_agent_clears_streak(+ def test_durable_fallback_streak_does_not_block_should_compress(self,refresh_state_db: SessionDB,):@@ -1192,11 +1192,6 @@ class TestGateLevelGuardRefresh:# A previous run's fallback streak is diagnostic, so it never blocks.assert compressor.should_compress(10**9) is True- # Another agent's healthy boundary clears the durable diagnostic count.- db.set_compression_fallback_streak(session_id, 0)- compressor._load_fallback_compression_streak()- assert compressor.should_compress(10**9) is True- assert compressor._fallback_compression_streak == 0