pub struct ScopeAttributes {
pub agent_id: Option<String>,
pub delegates: bool,
pub flow_id: Option<String>,
}Expand description
The attributes the daemon stamps without interpreting. They bear authority,
so only an owner module named in the daemon config’s scope_authority_owners
list (by default the module that owns agent sessions) may set them; a scope
owned by any other module must leave them empty.
Fields§
§agent_id: Option<String>The agent the scope’s session belongs to. Identity, never permission.
delegates: boolWhether a provider may act as agent_id. Refused without agent_id.
flow_id: Option<String>This scope belongs to the named flow, an automated workflow run on an
agent’s behalf. Set only by an authority owner (see above), validated
with validate_flow_id, and stamped verbatim. It needs neither
agent_id nor delegates. Providers treat a module other than the
owner that opens a route under a flow scope as the flow’s carrier.
Like an agent_id change, changing this within the same scope epoch is
accepted: the scope’s content version increases (the number providers
compare to notice a change), and every route under the scope is closed
with the reason scope_delegation_changed, so no live route keeps the
old identity.