pub struct Delegation {
pub member: String,
pub agent_id: String,
pub manifest_version: String,
pub kind: String,
pub input: PayloadRef,
pub effect: Effect,
pub deadline: Option<DateTime<Utc>>,
}Expand description
One member assignment inside a pattern (R0.7 wave 3): which agent, pinned
to which exact manifest version, running which declared message kind,
over which input. There is deliberately no caller-supplied idempotency
key — the runtime derives coordination:{coordination_id}:{member} so
a retried submission converges on the same member task instead of
forking duplicates.
Fields§
§member: StringThe member’s name inside this pattern. Labels dispositions, member task ids, and trace nodes; unique within one contract.
agent_id: StringThe target agent’s id (external form; the server namespaces it per tenant like every other id).
manifest_version: StringThe exact manifest version the delegation is pinned to. The server refuses anything but an exact match against the registered record — the agent-level form of R0.6’s worker version pinning.
kind: StringThe message kind submitted to the member’s mailbox; must be declared
in the pinned manifest’s accepts.
input: PayloadRefThe member’s input, inline or referenced per the journal’s payload discipline.
effect: EffectThe declared effect class of the work. Defaults to
Effect::NonIdempotent — the safe assumption, and the one that
makes the race gate fail closed: an undeclared effect is never
eligible to race.
deadline: Option<DateTime<Utc>>An optional member deadline. Composed with the target agent’s budget deadline at submission (the earlier wins), exactly like direct mailbox sends.