From 35a3fd88c9ab692f99b0f9976e8bb15c3998c4ea Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 19 Feb 2026 23:24:59 +0000 Subject: [PATCH] fix(ra2/context_engine): use ledger.MAX_BLOCKERS for blocker list limit Was incorrectly slicing blockers by token_gate.MAX_TOKENS (6000) instead of the ledger's MAX_BLOCKERS (10). https://claude.ai/code/session_01K7BWJY2gUoJi6dq91Yc7nx --- ra2/context_engine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ra2/context_engine.py b/ra2/context_engine.py index 6e0404f7fea..4ecf02b312c 100644 --- a/ra2/context_engine.py +++ b/ra2/context_engine.py @@ -115,7 +115,7 @@ def _run_compression(messages: list, stream_id: str) -> None: if latest: updates["latest"] = latest if blockers: - updates["blockers"] = blockers[-token_gate.MAX_TOKENS:] # bounded + updates["blockers"] = blockers[-ledger.MAX_BLOCKERS:] # bounded if open_questions: updates["open"] = open_questions[-10:]