#[non_exhaustive]pub enum ModuleControlRequestFromModule {
CatalogUpdate {
provides: Vec<ProviderRole>,
capabilities: Option<CapabilityDeclarations>,
ready: Option<bool>,
},
LiveRoots {},
AgentCommands {
started: Vec<AgentCommandRoot>,
finished: Vec<AgentCommandFinished>,
known: Option<Vec<AgentCommandRoot>>,
},
ScopeSync {
generation: u64,
scopes: Vec<ScopeRecord>,
},
ScopeApply {
generation: u64,
upsert: Vec<ScopeRecord>,
end: Vec<ScopeEnd>,
},
ScopeDescribe {
owner: Principal,
scope_ref: String,
},
}Expand description
Module-originated channel-0 control RPC body.
This is intentionally separate from ModuleControlRequest: that enum is the
daemon-to-module direction (route.bind, health.check), while these bodies
are sent by an already-registered module to subc on a REQUEST frame.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
CatalogUpdate
Fields
provides: Vec<ProviderRole>capabilities: Option<CapabilityDeclarations>An attested replacement for the static capability declaration emitted
by the module’s current manifest. None preserves the prior
declaration so existing role-only catalog updates remain byte-identical.
LiveRoots
AgentCommands
Attribute agent-requested command roots to the declaring module.
Only the module’s supervised connection may send this operation.
known, when present, replaces its complete live root set. The reply
is an empty object; invalid roots are ignored independently.
Fields
started: Vec<AgentCommandRoot>finished: Vec<AgentCommandFinished>known: Option<Vec<AgentCommandRoot>>ScopeSync
Register this module’s full scope set. The owner is the module whose
registered connection sends it; nothing in the body names the owner.
Per-record refusals come back in the reply; a refusal of the whole sync
(not the owner’s sync authority, a stale generation, a bound exceeded)
is an Error frame and changes nothing.
ScopeApply
Change selected scopes after the daemon accepts a full scope.sync from
this connection. Shares the full sync’s generation sequence. Unlike a
full sync, omitting a scope does not end it; expiry processing still runs.
A whole-call refusal is an Error frame and changes nothing.
ScopeDescribe
Read one scope’s current state.