Delegation Tasks
Chain Hub delegation tasks enable structured task assignment across the agent network.
State Machine
Created ──→ Active ──→ Completed
│ │
└→ Cancelled └→ ExpiredInstructions
| Instruction | Description |
|---|---|
create_delegation_task | Create task with skill, protocol, agent, judge |
activate_delegation_task | Transition Created → Active |
record_delegation_execution | Record execution, increment counter |
complete_delegation_task | Mark as completed |
cancel_delegation_task | Cancel task |
Account Layout
DelegationTaskAccount: 253 bytes, stores task_id, skill, protocol, agent, judge, deadline, execution_count, status.