test: keep attempt-cap probe on provider-confirmed fallback

This commit is contained in:
Teknium
2026-09-07 13:26:12 -07:00
parent e9313f6458
commit 73ddf0672c

View File

@@ -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}