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
This commit is contained in:
Claude 2026-02-19 23:24:59 +00:00
parent 79f23f76eb
commit 35a3fd88c9
No known key found for this signature in database

View File

@ -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:]