---
library: "bootstrap"
slug: "Nucleate"
name: "Nucleate"
ref: "Nucleate#1126"
hash: "sema:Nucleate#mh:SHA-256:1126b2b438c6b60289ef38fb2527bcc947b0fcb07ebc8e407d0c1484e6e85ef2"
type: "Protocols"
layer: "Society"
version: "0.11.0"
root: "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5"
license: null
url: "https://semahash.org/vocabularies/bootstrap/patterns/Nucleate"
---

# Nucleate

Emergent working groups from activity density

Society · Protocols

## Mechanism

Agents coordinate indirectly via [Trace](https://semahash.org/vocabularies/bootstrap/patterns/Trace.md) (stigmergy). [System](https://semahash.org/vocabularies/bootstrap/patterns/System.md) tracks trace-density per location. When density crosses threshold, site becomes supersaturated. Any agent at supersaturated site may invoke 'NUCLEATE', broadcasting crystal purpose. Agents at site receive signal and may 'BOND' to join direct channel. It monitors [Trace](https://semahash.org/vocabularies/bootstrap/patterns/Trace.md) density, triggering [Rally](https://semahash.org/vocabularies/bootstrap/patterns/Rally.md) to gather agents and [Crystallize](https://semahash.org/vocabularies/bootstrap/patterns/Crystallize.md) to form a stable group.

## Invariants

- [Conservation](https://semahash.org/vocabularies/bootstrap/patterns/Conservation.md) of Mass: Nucleation cannot create agents; it only aggregates existing [Trace](https://semahash.org/vocabularies/bootstrap/patterns/Trace.md) density.
- Critical Mass: Process starts only when N > SeedThreshold
- Nucleation ONLY at supersaturated sites.

## Preconditions

- Field of agents/particles is present

## Postconditions

- [PhaseTransition](https://semahash.org/vocabularies/bootstrap/patterns/PhaseTransition.md) complete (Liquid → Solid)

## Failure modes

- Threshold miscalibration: too low = constant nucleation overhead; too high = never crystallizes.
- Zombie crystals: anchor disappears but crystal persists in broken state (mitigate with heartbeat).
- Crystal fragmentation: participants leave in waves, causing repeated dissolve/reform cycles.

## Where this came from

—

## Builds on

- [PhaseTransition](https://semahash.org/vocabularies/bootstrap/patterns/PhaseTransition.md) (references)
- [Conservation](https://semahash.org/vocabularies/bootstrap/patterns/Conservation.md) (references)
- [System](https://semahash.org/vocabularies/bootstrap/patterns/System.md) (references)
- [Trace](https://semahash.org/vocabularies/bootstrap/patterns/Trace.md) (references)
- [Crystallize](https://semahash.org/vocabularies/bootstrap/patterns/Crystallize.md) (references)
- [Rally](https://semahash.org/vocabularies/bootstrap/patterns/Rally.md) (references)

## Identity

- Library: bootstrap 0.11.0 (root a6a3d1ff0f98)
- Ref: Nucleate#1126
- Hash: sema:Nucleate#mh:SHA-256:1126b2b438c6b60289ef38fb2527bcc947b0fcb07ebc8e407d0c1484e6e85ef2

## Links

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