---
library: "bootstrap"
slug: "OntologyHandshake"
name: "OntologyHandshake"
ref: "OntologyHandshake#a43c"
hash: "sema:OntologyHandshake#mh:SHA-256:a43c954f7a78f74aad3c49b507933cec20cc1dea54ffd5463f3a3054cb344235"
type: "Coordination"
layer: "Society"
version: "0.11.0"
root: "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5"
license: null
url: "https://semahash.org/vocabularies/bootstrap/patterns/OntologyHandshake"
---

# OntologyHandshake

Negotiating shared definitions

Society · Coordination

## Mechanism

Before exchanging data, agents exchange 'definition hashes' for key terms using [CompatibilityCheck](https://semahash.org/vocabularies/bootstrap/patterns/CompatibilityCheck.md). If hashes mismatch, they enter a negotiation phase to map their internal ontologies to a temporary shared dictionary (a 'pidgin' [Protocol](https://semahash.org/vocabularies/bootstrap/patterns/Protocol.md)). It uses [SpectralTune](https://semahash.org/vocabularies/bootstrap/patterns/SpectralTune.md) to rapidly identify semantic divergence before negotiating definitions.

## Invariants

- Every mapping states its cardinality: one-to-one, many-to-one, or one-to-many.
- A term with no faithful mapping is flagged unmappable rather than coerced onto the nearest one.

## Preconditions

- Both agents have ontologies.
- Communication channel open.
- Ontology serializable.

## Postconditions

- Shared terms mapped.
- Unmappable terms flagged.
- Communication can proceed with known precision.

## Failure modes

- Failure to converge on a mapping.
- High negotiation overhead.
- Dictionary mismatch risks semantic errors.

## Where this came from

—

## Builds on

- [Protocol](https://semahash.org/vocabularies/bootstrap/patterns/Protocol.md) (references)
- [SpectralTune](https://semahash.org/vocabularies/bootstrap/patterns/SpectralTune.md) (references)
- [CompatibilityCheck](https://semahash.org/vocabularies/bootstrap/patterns/CompatibilityCheck.md) (composes_with)

## Used by

- [ConstructOntology](https://semahash.org/vocabularies/bootstrap/patterns/ConstructOntology.md) (references)
- [IdentityHandshake](https://semahash.org/vocabularies/bootstrap/patterns/IdentityHandshake.md) (references)
- [OntologyAdapt](https://semahash.org/vocabularies/bootstrap/patterns/OntologyAdapt.md) (references)
- [SynergisticMode](https://semahash.org/vocabularies/bootstrap/patterns/SynergisticMode.md) (composes_with)
- [TranslationProxy](https://semahash.org/vocabularies/bootstrap/patterns/TranslationProxy.md) (references)

## Identity

- Library: bootstrap 0.11.0 (root a6a3d1ff0f98)
- Ref: OntologyHandshake#a43c
- Hash: sema:OntologyHandshake#mh:SHA-256:a43c954f7a78f74aad3c49b507933cec20cc1dea54ffd5463f3a3054cb344235

## Links

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