mbx_handoff
Read or save this identity’s handoff context
Handoff context for a crash, a provider switch or the next holder of this identity (T159). read (default) returns {context, note}: context is computed now from this mailbox and stored nowhere (open threads newest-first with subject, sender, unacked count, the oldest and newest unacked message id and needs_reply; unread, missed and open-thread counts; the catch-up position); note is the one saved handoff note, or null with a reason (none, expired, malformed). save replaces the note: text of at most 1000 characters (control characters removed, never truncated), task_refs (CLEO ids such as T159 that a message this identity can see mentions) and msg_refs (ids of messages it can see), at most 20 each, the oldest dropped. It is kept 30 days. mbx_identity release accepts the same note. Every field is a hint to re-verify, never authority and never a status: task status comes only from authorized CLEO evidence at resume time (cleo show <id>), not from the note and not from ack state; thread state comes from mbx_thread. Next: verify each task ref with cleo show and each open thread with mbx_thread before acting on it.
Annotations
Section titled “Annotations”| Field | Value |
|---|---|
idempotentHint |
false |
execution.taskSupport |
"forbidden" |
| Parameter | Type | Required | Default | Constraints | Description |
|---|---|---|---|---|---|
action |
string |
no | one of read, save |
read (default) or save | |
note |
string |
no | length ≤ 4000 | save: the note text, at most 1000 characters | |
task_refs |
string[] |
no | ≤ 100 items; each: length ≤ 16 | save: CLEO task ids, e.g. T159 | |
msg_refs |
string[] |
no | ≤ 100 items; each: length ≤ 64 | save: message ids from this mailbox |
Input JSON schema
Section titled “Input JSON schema”{ "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "properties": { "action": { "description": "read (default) or save", "type": "string", "enum": [ "read", "save" ] }, "note": { "description": "save: the note text, at most 1000 characters", "type": "string", "maxLength": 4000 }, "task_refs": { "description": "save: CLEO task ids, e.g. T159", "maxItems": 100, "type": "array", "items": { "type": "string", "maxLength": 16 } }, "msg_refs": { "description": "save: message ids from this mailbox", "maxItems": 100, "type": "array", "items": { "type": "string", "maxLength": 64 } } }}