{
 "library": "bootstrap",
 "version": "0.11.0",
 "root": "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5",
 "license": null,
 "slug": "ExperienceSharding",
 "ref": "ExperienceSharding#50ff",
 "hash": "sema:ExperienceSharding#mh:SHA-256:50ff836c2fc73c18fed683db6e3707a18525da22b100f3db23b6fd7604a8a85e",
 "stub": "50ff",
 "layer": "Mind",
 "type": "Memory",
 "summary": "Agent bifurcation on context saturation: active vs archival specialists",
 "mechanism": "Applies the Shard#4d41 primitive to agent memory. When context fills, the agent splits into two specialized agents (active vs archival) rather than forgetting. It segments history into discrete blocks via ChunkMerge#1900 before distributing them across the agent cluster.",
 "invariants": [
  "Splits when context reaches `split_threshold`, rather than forgetting.",
  "Splits into an active agent and an archival one; both retain their history.",
  "Every experience has exactly one owning shard; access copies create no second owner.",
  "Recombining the shards reconstructs the global pattern."
 ],
 "parameters": [
  {
   "name": "split_threshold",
   "type": "Ratio",
   "range": "(0.0, 1.0)",
   "description": "Share of context capacity that triggers the split."
  },
  {
   "name": "cross_shard_policy",
   "type": "Enum",
   "range": "{Forbid, Replicate, Broadcast}",
   "description": "How a read that spans shards is served."
  },
  {
   "name": "routing_key",
   "type": "Enum",
   "range": "{AgentId, TaskType, Random}",
   "description": "What decides which shard an experience is assigned to."
  },
  {
   "name": "shard_count",
   "type": "Integer",
   "range": "[2, 64]",
   "description": "Partitions the history is distributed across, distinct from the active/archival split."
  }
 ],
 "signature": [],
 "preconditions": [
  "Large dataset or experience stream",
  "Multiple learners"
 ],
 "postconditions": [
  "Distributed knowledge base"
 ],
 "failure_modes": [
  "Coordination Overhead: Overhead between shards increases as shard count grows."
 ],
 "domain": "",
 "caution": "",
 "sources": [],
 "name": "ExperienceSharding",
 "builds_on": [
  {
   "alias": "chunk_merge",
   "relation": "references",
   "library": "bootstrap",
   "slug": "ChunkMerge",
   "ref": "ChunkMerge#1900",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/ChunkMerge"
  },
  {
   "alias": "shard",
   "relation": "references",
   "library": "bootstrap",
   "slug": "Shard",
   "ref": "Shard#4d41",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Shard"
  }
 ],
 "related": [
  {
   "alias": null,
   "relation": "related",
   "library": "bootstrap",
   "slug": "FabricSharding",
   "ref": "FabricSharding#6c36",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/FabricSharding"
  }
 ],
 "used_by": [
  {
   "slug": "CurriculumReplay",
   "relation": "references",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/CurriculumReplay"
  },
  {
   "slug": "FractalIntelligence",
   "relation": "references",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/FractalIntelligence"
  }
 ],
 "url": "https://semahash.org/vocabularies/bootstrap/patterns/ExperienceSharding",
 "md_url": "https://semahash.org/vocabularies/bootstrap/patterns/ExperienceSharding.md",
 "library_url": "https://semahash.org/vocabularies/bootstrap"
}
