Mind · Memory

ExperienceSharding

Agent bifurcation on context saturation: active vs archival specialists

Definition

Mechanism

Applies the Shard 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 before distributing them across the agent cluster.

Preconditions

  1. Large dataset or experience stream
  2. Multiple learners

Postconditions

  1. Distributed knowledge base

Invariants

  1. Splits when context reaches `split_threshold`, rather than forgetting.
  2. Splits into an active agent and an archival one; both retain their history.
  3. Every experience has exactly one owning shard; access copies create no second owner.
  4. Recombining the shards reconstructs the global pattern.

Risks

Failure modes

  1. Coordination Overhead

    Overhead between shards increases as shard count grows.

Relationships

Builds on

References

Infrastructure

Shard

Deterministic partitioning of state

Used by

References

FractalIntelligence

Expansion of cognitive capability through recursive decomposition of concepts into contract-bounded sub-concepts

Reference

Parameters

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

Identity

Ref
ExperienceSharding#c8a1
Sema ID
sema:ExperienceSharding#mh:SHA-256:c8a197339886a6bbec3201ead589ad7fd37bbfcde46d6470df59ded8aaa80153
Ring
0
Tier
1
Updated
2026-11-11
Supersedes
  • sema:ExperienceSharding#mh:SHA-256:d9208f9cae52b448379b20118d47ed597e138e0a1015adc03598d65699d2dd8f
  • sema:ExperienceSharding#mh:SHA-256:3be09a0c57f793ab33a1efbd6773feac4bd2fc1dda5ec3b6beb56a7230793188
  • sema:ExperienceSharding#mh:SHA-256:5b42f1a5f5bb2a81220deba6845460081eff9834fe3e176181f7774310f821cd