The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(memory): one invariant per test in the batch-abort pins
kshitijk4poor6882320d5909
diff --git a/tests/tools/test_memory_tool.py b/tests/tools/test_memory_tool.pyindex 7941b0e9f6c..c32cdcc13aa 100644--- a/tests/tools/test_memory_tool.py+++ b/tests/tools/test_memory_tool.py@@ -258,8 +258,6 @@ class TestMemoryConsolidationGracefulDegrade:for _ in range(cap):r = store.apply_batch("memory", bad_batch)assert r["success"] is False- assert "current_entries" not in r- assert "No operations were applied" in r["error"]r = store.apply_batch("memory", bad_batch)assert r["success"] is Falseassert r["done"] is True@@ -816,7 +814,7 @@ class TestBatchRefusesToEmptyNonEmptyStore:assert result["success"] is Falseassert "current_entries" not in result # batch abort never echoes the store (#97316)- assert "usage" in result # still counts toward the degrade budget+ assert store._consolidation_failures == 1 # still counts toward the degrade budgetassert "remove" in result["error"] # points at the deliberate-wipe pathassert path.read_text(encoding="utf-8") == before # nothing written