Wire warm context, cold-history boundary, and lazy retrieval #106
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nsaspy/prolog-rlm!106
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "agent/conversation-cold-context"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What changed
Implements the managed hot/warm/cold conversation path for unbounded sessions.
warm_store/1is configured;managed_cold_history_boundarycontext unit when history lies outside the guaranteed hot tail;search,slice, andpeekforms for recovering them;terms(FullTranscript);rlmconversation pack/ledger/turn APIs route throughrlm_conversation_runtime;Canonical context contract
Cold-history boundary
When the projected conversation extends beyond
min_recent_turns, the managed runtime adds a mandatory, provider-visible boundary that reports the older prefix as outside the guaranteed hot tail and instructs the planner to recover original history before guessing.Representative operations:
The boundary is counted in the normal token ledger and exposed in result metadata as
cold_history_boundary. Specialized callers can disable it withcold_history_boundary(false).Tests
The managed-runtime tests prove:
context_units/1;The existing cold-context end-to-end test also proves an old turn absent from active attention can be recovered through RLM search.
GitHub Actions on the exact head is authoritative.