From 73ddf0672cd7bc5bb7734038d4450ec3cfb155aa Mon Sep 17 00:00:00 2001 From: Teknium <127238744+teknium1@users.noreply.github.com> Date: Mon, 7 Sep 2026 13:26:12 -0700 Subject: [PATCH] test: keep attempt-cap probe on provider-confirmed fallback --- tests/run_agent/test_preflight_compression_cap_e2e.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/run_agent/test_preflight_compression_cap_e2e.py b/tests/run_agent/test_preflight_compression_cap_e2e.py index b952b86e80..52ca3ce3a2 100644 --- a/tests/run_agent/test_preflight_compression_cap_e2e.py +++ b/tests/run_agent/test_preflight_compression_cap_e2e.py @@ -102,6 +102,9 @@ def test_preflight_runs_fourth_compaction_pass_at_cap_six(monkeypatch, tmp_path) # makes material (~10% > the 5% progress floor) headway. compressor = agent.context_compressor compressor.threshold_tokens = 50_000 + # This is the attempt-cap invariant, not first-request deferral: the provider + # is already known to omit usage, so its heuristic fallback may compact. + compressor.note_usage_less_response() estimate_state = {"tokens": 1_000_000.0, "calls": 0}