Skip to content

The agent that grows with you

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.py
index 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 False
assert r["done"] is True
@@ -816,7 +814,7 @@ class TestBatchRefusesToEmptyNonEmptyStore:
assert result["success"] is False
assert "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 budget
assert "remove" in result["error"] # points at the deliberate-wipe path
assert path.read_text(encoding="utf-8") == before # nothing written