From c2f5d2da211fddf6841aa911a2d79406116203d8 Mon Sep 17 00:00:00 2001 From: Teknium <127238744+teknium1@users.noreply.github.com> Date: Thu, 20 Aug 2026 00:04:39 -0700 Subject: [PATCH] =?UTF-8?q?test:=20vary=20marathon-turn=20fixture=20args?= =?UTF-8?q?=20=E2=80=94=20identical=20calls=20now=20legitimately=20dedupe?= =?UTF-8?q?=20to=20stubs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/run_agent/test_compression_budget_refund.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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}"}}'), )