Files
adlee-was-taken da4b4aee3e test: pin the never-lowers guard
Append test_never_lowers_pins_reason_null to tests/test_tool_error_escalation.py.
Asserts that with cached tier 3 and escalation.max_tier = 3, and
with cached tier 3 and escalation.max_tier = 2, the persisted tier
stays 3 and escalation_reason IS NULL.

MUTATION EVIDENCE: removing the if new_tier <= tier: return tier,
None guard from _apply_tool_error_bump causes the test to FAIL at
tests/test_tool_error_escalation.py:732 with escalation_reason
='tool_errors:3:3->3' instead of NULL. Guard restored, git diff
empty.
2026-10-18 04:06:13 -04:00
..