pub struct CommunicationMandate {Show 13 fields
pub id: String,
pub delegation_mandate_id: Option<String>,
pub human_principal_did: String,
pub agent_did: String,
pub channel_kind: ChannelKind,
pub recipient_addressing: Value,
pub content_class: ContentClass,
pub body_sha256: String,
pub body_size: u64,
pub policy_decision: PolicyDecision,
pub issued_at: String,
pub expires_at: String,
pub notary_signature: String,
}Expand description
Single-use, per-message authorization derived from a standing
DelegationMandate (or issued directly for a one-shot AskEveryTime
decision). Signed by the notary.
Fields§
§id: Stringurn:uuid:... mandate identifier.
delegation_mandate_id: Option<String>Parent DelegationMandate.id (or None for one-shot AskEveryTime flow).
human_principal_did: StringDID of the human principal (re-stated for tamper-detect).
agent_did: StringDID of the agent sender (re-stated).
channel_kind: ChannelKindChannel kind, drawn from the closed set (§7.1.5).
Typed to match the envelope’s field for the same reason as
content_class below: §6.2 requires this value EQUAL the value
the resulting envelope carries, and that equality is only
checkable by the compiler if both sides are the same type.
recipient_addressing: ValueRecipient addressing (channel-shaped JSON; opaque to APH core).
content_class: ContentClassContent classification, drawn from the closed set (§7.1.6).
Typed to match the envelope’s field: §6.2 requires the mandate value
EQUAL the value the resulting envelope carries, and an equality between
two Strings that are meant to be the same closed vocabulary is an
equality the compiler cannot help with.
body_sha256: StringSHA-256 hex of the outbound message body bytes (lowercase, no 0x).
body_size: u64Body size in bytes.
policy_decision: PolicyDecisionPolicy decision the human made (AlwaysAllow, AskEveryTime, NeverAllow).
issued_at: StringRFC 3339 issuance timestamp.
expires_at: StringRFC 3339 expiry timestamp.
notary_signature: StringNotary service signature over the canonical JCS form MINUS notary_signature.