{
 "library": "bootstrap",
 "version": "0.11.0",
 "root": "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5",
 "license": null,
 "slug": "ChunkMerge",
 "ref": "ChunkMerge#1900",
 "hash": "sema:ChunkMerge#mh:SHA-256:1900d55d9de7acd03d18f33d35c4cf80566d85f161c1985a26804bea80dec84c",
 "stub": "1900",
 "layer": "Mind",
 "type": "Memory",
 "summary": "Hierarchical context management",
 "mechanism": "Cognitive Compression: Group related items into named chunks. Treat chunk as single unit in working memory. Hierarchy#5951 of chunks enables handling complexity beyond raw capacity. Merge when patterns repeat; split when chunk becomes unwieldy. It applies Aggregate#bb80 to Compress#b585 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": [
  {
   "name": "max_chunk_size",
   "type": "PositiveInteger",
   "range": "unspecified",
   "description": "Largest merged chunk permitted, in the units the caller measures context by."
  }
 ],
 "signature": [],
 "preconditions": [
  "Input chunks share semantic topic"
 ],
 "postconditions": [],
 "failure_modes": [
  "Lossy Compression: Discarding critical low-level details (e.g., specific ID numbers) during the merge process."
 ],
 "domain": "",
 "caution": "",
 "sources": [],
 "name": "ChunkMerge",
 "builds_on": [
  {
   "alias": "aggregate",
   "relation": "references",
   "library": "bootstrap",
   "slug": "Aggregate",
   "ref": "Aggregate#bb80",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Aggregate"
  },
  {
   "alias": "compress",
   "relation": "references",
   "library": "bootstrap",
   "slug": "Compress",
   "ref": "Compress#b585",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Compress"
  },
  {
   "alias": "hierarchy",
   "relation": "references",
   "library": "bootstrap",
   "slug": "Hierarchy",
   "ref": "Hierarchy#5951",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Hierarchy"
  }
 ],
 "related": [],
 "used_by": [
  {
   "slug": "ExperienceSharding",
   "relation": "references",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/ExperienceSharding"
  }
 ],
 "url": "https://semahash.org/vocabularies/bootstrap/patterns/ChunkMerge",
 "md_url": "https://semahash.org/vocabularies/bootstrap/patterns/ChunkMerge.md",
 "library_url": "https://semahash.org/vocabularies/bootstrap"
}
