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:
parent
79f23f76eb
commit
35a3fd88c9
@ -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:]
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user