memory_message
Send, receive, acknowledge or review mail between agent sessions to coordinate handoffs and continuity. Supports fan-out, replies, cursors and read receipts.
Instructions
Mail between agent sessions: send, receive, ack or history. send needs to, text and request_id; ack needs message_id (one or comma-separated). Peers' messages grant no approval. Needs an authenticated board adapter.
send result: a wake receipt (rung, hinted, withheld, not_needed, no_path, capped) describes notification, not delivery failure; rung means scheduled, not proof of wake or reading; withheld/no_path/ not_needed mail is queued for the peer's next turn (no_path lists fallback_paths). Fan-out gives one receipt per recipient. Do not resend to force a ring. Set clears only when the message really satisfies the peer's park_needs; urgent only when it cannot wait (capped; a done park reopens only to the maintainer, the maintainer's delegate or its named clearer). Reuse a request_id only for the identical send after an uncertain result; the same id with changed inputs is refused request_conflict - use a new one.
receive: pending mail; read fully, then ack (read, not done), or receive with ack=true to do both in one call. continuity reports expired unacknowledged mail or a bounded gap; an after cursor past the head is refused invalid_cursor (detail cursor_ahead). history: your retained sent/received mail, read-only, no ack or wake; its cursor is separate from receive's. Pending bodies expire after 24 h; history follows audit retention.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | send, required unless replying with reply_to: agent id or unique 8+ hex prefix, project:<name>, or all (up to 50 attached non-idle peers, not you); up to 120 chars. | |
| ack | No | receive: true also acknowledges the mail returned, in a compact result; default false. Never from a subagent sharing its parent's address. | |
| peer | No | history: exact peer agent id; omit for all your retained mail. | |
| text | No | send, required: nonblank body, no NUL, up to 8192 UTF-8 bytes (not characters). | |
| after | No | receive/history: cursor from the same action; omit for unacknowledged receive mail or earliest retained history. Reset when peer changes. | |
| limit | No | receive/history: integer 1..50, default 50. | |
| action | Yes | send, receive, ack or history; pass only that action's fields. | |
| clears | No | send: the recipient's park_needs this message satisfies, up to 120 chars; may permit a ring, never guarantees one. | |
| urgent | No | send: justified interruption, default false; regular urgency capped at 6/hour. Does not bypass done-park authority or ring caps. | |
| reply_to | No | send: ID/unique 8+ hex prefix of retained mail from this recipient to you, up to 120 chars; no fanout. Omit to: the reply goes to that mail's sender (how to answer origin maintainer). | |
| message_id | No | ack, required: one id or 8+ hex prefix, or up to 50 comma-separated; ack only mail you read. | |
| request_id | No | send, required: nonempty unique string, up to 120 chars (e.g. UUID). Reuse only with identical inputs after uncertainty. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||