{
  "handle": "Handoff",
  "mechanism": "Transfers control from one {{agent}} to another along with relevant {{context}}. The sending {{agent}} explicitly yields authority, passing conversation {{state}}, {{task}} {{context}}, and any agent-specific instructions. Used in swarm architectures where specialized {{agent}}s handle different aspects of a {{task}}. It extends {{delegate}} by transferring full {{responsibility}} and authority to the receiving {{agent}}.",
  "gloss": "Transfer control and context between agents",
  "failure_modes": [
    "{{context}} Loss: Critical information not passed in handoff.",
    "Authority Ambiguity: Unclear which {{agent}} now owns the {{task}}.",
    "Handoff Loops: {{agent}}s keep passing {{task}} back and forth."
  ],
  "invariants": [
    "{{context}} fully transferred",
    "{{responsibility}} atomicity (neither or both hold it briefly, never none)"
  ],
  "preconditions": [
    "{{agent}} A active",
    "{{agent}} B ready"
  ],
  "postconditions": [
    "{{agent}} A released",
    "{{agent}} B in charge"
  ],
  "_meta": {
    "tier": 1,
    "ring": 1,
    "supersedes": [
      "sema:Handoff#mh:SHA-256:38775e2344d8b78c6ff7385c47b247e0f94767c5dfb08aa6b9b7ef8ec1072d20",
      "sema:Handoff#mh:SHA-256:648a58c900cb37b9321e4f35a6d06fd1e38d65ee9661f288d23aa567293d476e",
      "sema:Handoff#mh:SHA-256:4e0fac0fb6328d9aa18ea61e3dc4c7eb01d3ac1b8a6a4705c3e897811f5bd52a",
      "sema:Handoff#mh:SHA-256:9b60bd153be76279a960e7e17283ba86c9ee41ffb031033aaf800c66a2e336e0"
    ],
    "path": [
      "Society",
      "Protocols"
    ],
    "related": [
      "Endsettle#d716",
      "Successiongift#5f2b"
    ]
  },
  "sema_id": "sema:Handoff#mh:SHA-256:1323eea000780c4fc715bcc90b5ea28d6353c780ad561e86aeff723855650ab5",
  "sema_ref": "Handoff#1323",
  "sema_stub": "1323",
  "dependencies": {
    "accepts": {
      "context": "sema:Context#mh:SHA-256:c1b72256dc4732033ee42cc07ff5d9fb60a7f1a3e5634449c343692a33340756",
      "responsibility": "sema:Responsibility#mh:SHA-256:d8ccf6225585313bd3efd0198c588063cb62add74447c15fe5128c0ebfdc1d19",
      "task": "sema:Task#mh:SHA-256:a85010f508f85055170c396c8fa390125c1206888c565ac10651f3969a339f8d"
    },
    "composes_with": {
      "delegate": "sema:Delegate#mh:SHA-256:00fabbb5e33ec9b95dce20eb8c03e6dd3578e59b041dcf0d6a28b8908763ca45"
    },
    "references": {
      "agent": "sema:Agent#mh:SHA-256:e127459069739fffc96a71d54ef6e8c97ca53471d5349c16aa72a092a33756cd",
      "state": "sema:State#mh:SHA-256:4f25e6a16ccd37dc0bc154cccc7055cb504d49daa8b712f372a425eb6c7b8cb2"
    }
  },
  "sema_layer": "Society",
  "sema_category": "Protocols",
  "used_by": {
    "references": {
      "Endsettle": "sema:Endsettle#mh:SHA-256:d7165f9f862f7001866103ac29399bc7dc4e16c2ee5089b43c049dfd22ee473b",
      "Successiongift": "sema:Successiongift#mh:SHA-256:5f2b2d520bc16136ebffcc59b63ed62775d5b32cbd24dd5ffba1ec5a19145432"
    }
  }
}
