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

# Handoff

Transfer control and context between agents

Society · Protocols

## Mechanism

Transfers control from one [Agent](https://semahash.org/vocabularies/bootstrap/patterns/Agent.md) to another along with relevant [Context](https://semahash.org/vocabularies/bootstrap/patterns/Context.md). The sending [Agent](https://semahash.org/vocabularies/bootstrap/patterns/Agent.md) explicitly yields authority, passing conversation [State](https://semahash.org/vocabularies/bootstrap/patterns/State.md), [Task](https://semahash.org/vocabularies/bootstrap/patterns/Task.md) [Context](https://semahash.org/vocabularies/bootstrap/patterns/Context.md), and any agent-specific instructions. Used in swarm architectures where specialized [Agent](https://semahash.org/vocabularies/bootstrap/patterns/Agent.md)s handle different aspects of a [Task](https://semahash.org/vocabularies/bootstrap/patterns/Task.md). It extends [Delegate](https://semahash.org/vocabularies/bootstrap/patterns/Delegate.md) by transferring full [Responsibility](https://semahash.org/vocabularies/bootstrap/patterns/Responsibility.md) and authority to the receiving [Agent](https://semahash.org/vocabularies/bootstrap/patterns/Agent.md).

## Invariants

- [Context](https://semahash.org/vocabularies/bootstrap/patterns/Context.md) fully transferred
- [Responsibility](https://semahash.org/vocabularies/bootstrap/patterns/Responsibility.md) atomicity (neither or both hold it briefly, never none)

## Preconditions

- [Agent](https://semahash.org/vocabularies/bootstrap/patterns/Agent.md) A active
- [Agent](https://semahash.org/vocabularies/bootstrap/patterns/Agent.md) B ready

## Postconditions

- [Agent](https://semahash.org/vocabularies/bootstrap/patterns/Agent.md) A released
- [Agent](https://semahash.org/vocabularies/bootstrap/patterns/Agent.md) B in charge

## Failure modes

- [Context](https://semahash.org/vocabularies/bootstrap/patterns/Context.md) Loss: Critical information not passed in handoff.
- Authority Ambiguity: Unclear which [Agent](https://semahash.org/vocabularies/bootstrap/patterns/Agent.md) now owns the [Task](https://semahash.org/vocabularies/bootstrap/patterns/Task.md).
- Handoff Loops: [Agent](https://semahash.org/vocabularies/bootstrap/patterns/Agent.md)s keep passing [Task](https://semahash.org/vocabularies/bootstrap/patterns/Task.md) back and forth.

## Where this came from

—

## Builds on

- [Agent](https://semahash.org/vocabularies/bootstrap/patterns/Agent.md) (references)
- [State](https://semahash.org/vocabularies/bootstrap/patterns/State.md) (references)
- [Delegate](https://semahash.org/vocabularies/bootstrap/patterns/Delegate.md) (composes_with)
- [Context](https://semahash.org/vocabularies/bootstrap/patterns/Context.md) (accepts)
- [Responsibility](https://semahash.org/vocabularies/bootstrap/patterns/Responsibility.md) (accepts)
- [Task](https://semahash.org/vocabularies/bootstrap/patterns/Task.md) (accepts)

## Used by

- [Endsettle](https://semahash.org/vocabularies/bootstrap/patterns/Endsettle.md) (references)
- [Successiongift](https://semahash.org/vocabularies/bootstrap/patterns/Successiongift.md) (references)

## Related

- [Endsettle](https://semahash.org/vocabularies/bootstrap/patterns/Endsettle.md)
- [Successiongift](https://semahash.org/vocabularies/bootstrap/patterns/Successiongift.md)

## Identity

- Library: bootstrap 0.11.0 (root a6a3d1ff0f98)
- Ref: Handoff#1323
- Hash: sema:Handoff#mh:SHA-256:1323eea000780c4fc715bcc90b5ea28d6353c780ad561e86aeff723855650ab5

## Links

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