ChunkMerge
Hierarchical context management
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.
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`.
Parameters
- max_chunk_size: type=PositiveInteger, range=unspecified, description=Largest merged chunk permitted, in the units the caller measures context by.
Preconditions
- Input chunks share semantic topic
Failure modes
- Lossy Compression: Discarding critical low-level details (e.g., specific ID numbers) during the merge process.
Where this came from
—
Builds on
Used by
- ExperienceSharding references
Identity
- Ref:
ChunkMerge#1900 - Hash: sema:ChunkMerge#mh:SHA-256:1900d55d9de7acd03d18f33d35c4cf80566d85f161c1985a26804bea80dec84c
- Library: bootstrap 0.11.0, root a6a3d1ff0f98
- License: Not stated; check the repository