Expand description
Canonical protocol contract for durable communication between Codewhale tasks.
Agent Mail is distinct from same-session subagent control messages. An envelope is persisted by the runtime, scoped to an owner and workspace, and projected into a destination turn only at an explicit safe boundary. The summary is the complete model-visible payload: runtimes must sanitize it before constructing an envelope, and this module enforces the wire-size and control-character boundary.
Structs§
- Agent
Mail Address - Durable ownership and routing scope resolved by the receiving runtime.
- Agent
Mail Envelope - Agent
Mail Event Payload - Canonical payload placed in every Agent Mail runtime event.
- Agent
Mail Evidence Ref - Bounded pointer to evidence already authorized by the destination runtime.
- Agent
Mail Failure Receipt - Agent
Mail Message Id - Stable, caller-supplied idempotency key for an Agent Mail envelope.
- Agent
Mail Send Request - Agent
Mail Send Response - Agent
Mail Sender - Agent
Mail Validation Error
Enums§
Constants§
- AGENT_
MAIL_ EVENT_ DELIVERED - AGENT_
MAIL_ EVENT_ DELIVERING - AGENT_
MAIL_ EVENT_ DELIVERY_ FAILED - AGENT_
MAIL_ EVENT_ QUEUED - AGENT_
MAIL_ EVENT_ READ - AGENT_
MAIL_ SCHEMA_ VERSION - MAX_
AGENT_ MAIL_ DELIVERY_ ATTEMPTS - MAX_
AGENT_ MAIL_ DISPLAY_ LABEL_ BYTES - MAX_
AGENT_ MAIL_ EVIDENCE_ LABEL_ BYTES - MAX_
AGENT_ MAIL_ EVIDENCE_ REFS - MAX_
AGENT_ MAIL_ FAILURE_ MESSAGE_ BYTES - MAX_
AGENT_ MAIL_ HOPS - MAX_
AGENT_ MAIL_ MESSAGE_ ID_ BYTES - MAX_
AGENT_ MAIL_ OPAQUE_ ID_ BYTES - MAX_
AGENT_ MAIL_ SUMMARY_ BYTES