{
  "handle": "SpectralTune",
  "mechanism": "Instead of sending a message and hoping it is understood, the sender transmits a 'tuning {{signal}}'—a sequence of hash-based challenges representing the semantic context (ontology, assumptions, version). The receiver must 'resonate' by proving they hold the matching semantic context.",
  "gloss": "Verifying ontology alignment before data transfer",
  "failure_modes": [
    "Over-strict halt: a benign version skew or encoding difference produces a hash mismatch and halts a channel whose parties would have understood each other. Hash equality admits no partial match, so any difference is total."
  ],
  "invariants": [
    "No payload data is processed before Tune_ACK.",
    "On hash mismatch, halt and escalate rather than retry."
  ],
  "preconditions": [
    "Both agents possess valid hash function H"
  ],
  "postconditions": [
    "Channel is established with matching context hashes, OR connection terminated and escalated"
  ],
  "parameters": [
    {
      "name": "context_chunks",
      "type": "PositiveInteger",
      "range": "unspecified",
      "description": "Prompts to hash"
    },
    {
      "name": "hash_algo",
      "type": "String",
      "range": "{BLAKE3, SHA256}",
      "description": "Hash algorithm for semantic context verification"
    }
  ],
  "_meta": {
    "tier": 1,
    "ring": 1,
    "related": [
      "OntologyHandshake"
    ],
    "supersedes": [
      "sema:SpectralTune#mh:SHA-256:6c65e21711b7203fcd84ed58755cd57239cda2e09a1e66ddf81e407edcd5eeb7",
      "sema:SpectralTune#mh:SHA-256:cb58af48ff79c9623c01cbd6be1998eda0effeb791ca79e98d21022435911f05"
    ],
    "path": [
      "Society",
      "Protocols"
    ]
  },
  "sema_id": "sema:SpectralTune#mh:SHA-256:c0aab008d2cd2f653e56508356987477f9207b4cf6435f4416105b3f37bd544a",
  "sema_ref": "SpectralTune#c0aa",
  "sema_stub": "c0aa",
  "dependencies": {
    "accepts": {
      "signal": "sema:Signal#mh:SHA-256:6eaff8a06e08e75279670bc09d88175d130815240fdfb3a21252c0364769c1fc"
    }
  },
  "sema_layer": "Society",
  "sema_category": "Protocols",
  "used_by": {
    "references": {
      "IdentityHandshake": "sema:IdentityHandshake#mh:SHA-256:43973ed8054341201f5eec5ad6fbed43a31cb178f0180ceadb20c896505b2b32",
      "OntologyHandshake": "sema:OntologyHandshake#mh:SHA-256:a43c954f7a78f74aad3c49b507933cec20cc1dea54ffd5463f3a3054cb344235",
      "SignalReflection": "sema:SignalReflection#mh:SHA-256:6a9a636c81581a8a5d0796881752ecbedb25d94070c2282f2ba810a85cd63e09"
    }
  }
}
