---
library: "bootstrap"
slug: "ExperienceSharding"
name: "ExperienceSharding"
ref: "ExperienceSharding#50ff"
hash: "sema:ExperienceSharding#mh:SHA-256:50ff836c2fc73c18fed683db6e3707a18525da22b100f3db23b6fd7604a8a85e"
type: "Memory"
layer: "Mind"
version: "0.11.0"
root: "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5"
license: null
url: "https://semahash.org/vocabularies/bootstrap/patterns/ExperienceSharding"
---

# ExperienceSharding

Agent bifurcation on context saturation: active vs archival specialists

Mind · Memory

## Mechanism

Applies the [Shard](https://semahash.org/vocabularies/bootstrap/patterns/Shard.md) 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](https://semahash.org/vocabularies/bootstrap/patterns/ChunkMerge.md) 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

- split_threshold: type=Ratio, range=(0.0, 1.0), description=Share of context capacity that triggers the split.
- cross_shard_policy: type=Enum, range={Forbid, Replicate, Broadcast}, description=How a read that spans shards is served.
- routing_key: type=Enum, range={AgentId, TaskType, Random}, description=What decides which shard an experience is assigned to.
- shard_count: type=Integer, range=[2, 64], description=Partitions the history is distributed across, distinct from the active/archival split.

## Preconditions

- Large dataset or experience stream
- Multiple learners

## Postconditions

- Distributed knowledge base

## Failure modes

- Coordination Overhead: Overhead between shards increases as shard count grows.

## Where this came from

—

## Builds on

- [ChunkMerge](https://semahash.org/vocabularies/bootstrap/patterns/ChunkMerge.md) (references)
- [Shard](https://semahash.org/vocabularies/bootstrap/patterns/Shard.md) (references)

## Used by

- [CurriculumReplay](https://semahash.org/vocabularies/bootstrap/patterns/CurriculumReplay.md) (references)
- [FractalIntelligence](https://semahash.org/vocabularies/bootstrap/patterns/FractalIntelligence.md) (references)

## Related

- [FabricSharding](https://semahash.org/vocabularies/bootstrap/patterns/FabricSharding.md)

## Identity

- Library: bootstrap 0.11.0 (root a6a3d1ff0f98)
- Ref: ExperienceSharding#50ff
- Hash: sema:ExperienceSharding#mh:SHA-256:50ff836c2fc73c18fed683db6e3707a18525da22b100f3db23b6fd7604a8a85e

## Links

- Page: https://semahash.org/vocabularies/bootstrap/patterns/ExperienceSharding
- JSON: https://semahash.org/vocabularies/bootstrap/patterns/ExperienceSharding.json
- Library: https://semahash.org/vocabularies/bootstrap
- Library index: https://semahash.org/vocabularies/bootstrap/index.json
