diff --git a/tests/run_agent/test_compression_budget_refund.py b/tests/run_agent/test_compression_budget_refund.py index b3d464d2e4..4235cd1c7d 100644 --- a/tests/run_agent/test_compression_budget_refund.py +++ b/tests/run_agent/test_compression_budget_refund.py @@ -72,7 +72,12 @@ def _tool_call(i: int): return SimpleNamespace( id=f"call_{i}", type="function", - function=SimpleNamespace(name="web_search", arguments='{"query": "x"}'), + # Vary the query per call: a real marathon turn issues distinct + # lookups, and identical (args, result) pairs are now legitimately + # deduped into reference stubs by the stall-guard subsystem — + # zero-variance args here would deflate the very context pressure + # this test exists to exercise. + function=SimpleNamespace(name="web_search", arguments=f'{{"query": "x{i}"}}'), )