poolsplit
Pool-split retrieval is a retrieval scheme for agent memory, designed to solve the problem that under a single scoring function and a single token budget, high-priority entries monopolize the context while low-priority entries never appear. It assigns each type group an independently reserved budget (called a pool, independent retrieval), and makes always-scope entries (such as behavioral corrections) load unconditionally, completely bypassing budget competition. Its core motivation is: one scorer plus one budget leads to starvation, where types with high base priority win every slot; and the more dangerous converse is that a batch of new content may push important behavioral corrections out of scope, exactly when the agent is about to repeat a mistake. poolsplit is a dependency-free Python module that can be embedded by copying poolsplit.py into a project and importing it.