pub struct ModuleHelloAckBody {
pub negotiated_ver: u8,
pub subc_ops: Vec<String>,
pub subc_capabilities: Vec<String>,
pub storage: Option<Value>,
pub machine_id: Option<String>,
}Expand description
subc-to-module HELLO_ACK body used during module registration.
Fields§
§negotiated_ver: u8§subc_ops: Vec<String>§subc_capabilities: Vec<String>§storage: Option<Value>The module’s resolved storage descriptor, when the daemon’s central config
configures managed storage. Carried opaquely here (subc-protocol stays a
thin wire crate with no storage/database dependency); a module that uses
managed storage deserializes it into cortexkit_store_types::StorageDescriptor
and hands it to cortexkit-store. Absent when no storage is configured, and
serde(default) so an older module simply ignores it.
machine_id: Option<String>The daemon’s machine id (see MachineId): a name for this machine,
never an authority. Nothing may admit a peer, grant trust or skip a check
because two messages carry the same value.
Carried as a plain string so one malformed value cannot fail the whole
registration reply; a module validates it with MachineId::parse.
Absent from a daemon that predates the machine id, which a module must
read as exactly that, never as “no machine” and never as a reason to mint
its own.