{
  "handle": "OntologyHandshake",
  "mechanism": "Before exchanging data, agents exchange 'definition hashes' for key terms using {{compatibility_check}}. If hashes mismatch, they enter a negotiation phase to map their internal ontologies to a temporary shared dictionary (a 'pidgin' {{protocol}}). It uses {{spectral_tune}} to rapidly identify semantic divergence before negotiating definitions.",
  "gloss": "Negotiating shared definitions",
  "failure_modes": [
    "Failure to converge on a mapping.",
    "High negotiation overhead.",
    "Dictionary mismatch risks semantic errors."
  ],
  "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."
  ],
  "_meta": {
    "tier": 2,
    "ring": 1,
    "supersedes": [
      "sema:OntologyHandshake#mh:SHA-256:ead055e44f108319ace229e30005ea5a3aaf8df540ccf1c1cf0f855aed45e613",
      "sema:OntologyHandshake#mh:SHA-256:fc51f85504eb23c4c11a7cd502fbd97c2a0d9b145a22baeaa8f1cb776f138d6e"
    ],
    "path": [
      "Society",
      "Coordination"
    ]
  },
  "sema_id": "sema:OntologyHandshake#mh:SHA-256:a43c954f7a78f74aad3c49b507933cec20cc1dea54ffd5463f3a3054cb344235",
  "sema_ref": "OntologyHandshake#a43c",
  "sema_stub": "a43c",
  "dependencies": {
    "composes_with": {
      "compatibility_check": "sema:CompatibilityCheck#mh:SHA-256:7f70838f05f3aad069b89dcbc705283872f66fde4bc95c6bfa0dc917955e050d"
    },
    "references": {
      "protocol": "sema:Protocol#mh:SHA-256:f583ad96f598ecf0c9068f5c1390bdf247d2eb67bd7a14c7ce615c357b957b46",
      "spectral_tune": "sema:SpectralTune#mh:SHA-256:c0aab008d2cd2f653e56508356987477f9207b4cf6435f4416105b3f37bd544a"
    }
  },
  "sema_layer": "Society",
  "sema_category": "Coordination",
  "used_by": {
    "references": {
      "ConstructOntology": "sema:ConstructOntology#mh:SHA-256:85c860b88345b59e2b69770da818ddcdf65160d4c8c4e97f00b3e7874e28a6f4",
      "IdentityHandshake": "sema:IdentityHandshake#mh:SHA-256:43973ed8054341201f5eec5ad6fbed43a31cb178f0180ceadb20c896505b2b32",
      "OntologyAdapt": "sema:OntologyAdapt#mh:SHA-256:a541f46f3c1ffe236a27dfaafaffd0d3dc76bf7c3fa086b5e9bcf1a945c85e63",
      "TranslationProxy": "sema:TranslationProxy#mh:SHA-256:1db28b5e69a017012cdbdbe4355c97fba4dcd8e3522a82f9eb9dc5613bc293af"
    },
    "composes_with": {
      "SynergisticMode": "sema:SynergisticMode#mh:SHA-256:0ec733cad8aec135dae1a1efb3ea244eb6e1d36a470492abccaaf5f8b121541d"
    }
  }
}
