Mind · Memory
ChunkMerge
Hierarchical context management
Definition
Mechanism
Cognitive Compression: Group related items into named chunks. Treat chunk as single unit in working memory. Hierarchy of chunks enables handling complexity beyond raw capacity. Merge when patterns repeat; split when chunk becomes unwieldy. It applies Aggregate to Compress multiple working memory items into a single labeled unit.
Preconditions
- Input chunks share semantic topic
Invariants
- The chunk's name states the criterion by which its items were grouped.
- The merged chunk retains a retrieval hook for each part.
- The merged chunk fits within `max_chunk_size`.
Risks
Failure modes
Lossy Compression
Discarding critical low-level details (e.g., specific ID numbers) during the merge process.
Relationships
Builds on
Used by
References
Agent bifurcation on context saturation: active vs archival specialists
Reference
Parameters
max_chunk_sizePositiveInteger, unspecified- Largest merged chunk permitted, in the units the caller measures context by.
