pub enum ClientControlResponse {
Show 15 variants
DaemonShutdownIntent {
intent: String,
expires_at_ms: u64,
},
ServerDescribe {
protocol_ver: u8,
subc_ops: Vec<String>,
capabilities: Vec<String>,
connected_clients: u64,
counters: Option<Value>,
build_git_sha: Option<String>,
build_lock_digest: Option<String>,
capability_requirements: Vec<CapabilityRequirementStatus>,
machine_id: Option<String>,
config_path: Option<PathBuf>,
},
CatalogList {
generation: u64,
modules: Vec<CatalogEntry>,
subc_ops: Vec<String>,
},
RouteOpen {
route_channel: u16,
route_epoch: u32,
request_window: Option<usize>,
watch_window: Option<usize>,
},
RoutePoll {
route_channel: u16,
route_epoch: u32,
status: Option<String>,
live: Option<bool>,
},
SupervisorList {
generation: u64,
modules: Vec<SupervisorEntry>,
daemon: Option<DaemonResources>,
agent_commands: Option<Vec<AgentCommandResources>>,
},
SupervisorSpawnSnapshot {
snapshot: SpawnSnapshot,
},
SupervisorAck {
module_id: String,
applied: bool,
},
SupervisorRescan {
result: SupervisorRescanResult,
},
SupervisorHealthProbe {
module_id: String,
status: HealthStatus,
detail: Option<String>,
metrics: Option<Value>,
},
SupervisorHealth {
generation: u64,
modules: Vec<SupervisorHealthEntry>,
},
SupervisorRoutes {
modules: Vec<SupervisorRouteModule>,
},
SupervisorProvenance {
daemon: SupervisorDaemonProvenance,
modules: Vec<SupervisorModuleProvenance>,
},
SupervisorStderrTail {
module_id: String,
tail: StderrTail,
},
SupervisorTerminals {
module_id: String,
terminals: TerminalHistory,
},
}Expand description
subc’s channel-0 response body for client control RPCs.
Variants§
DaemonShutdownIntent
ServerDescribe
Fields
build_git_sha: Option<String>Git commit the daemon was built from, or “unavailable” when the build could not read it. The crate version cannot discriminate a skewed daemon/CLI pair (it moves per release, not per commit), so this is the identity a consumer compares against its own embedded commit to detect that it is talking to an older build than it was compiled with. Absent from daemons predating the field.
build_lock_digest: Option<String>sha256 of the workspace Cargo.lock at build time, or “unavailable”. Answers “which dependency set” where the commit answers “which source”; a commit match with a digest mismatch means a rebuild against edited dependencies. Absent from daemons predating the field.
capability_requirements: Vec<CapabilityRequirementStatus>Daemon-evaluated capability requirements. Present when the configured fleet has declarations to evaluate, so operators can inspect an absent required capability without parsing daemon logs.
machine_id: Option<String>The daemon’s machine id (subc_protocol::MachineId), the same value
every module receives on HELLO_ACK. A name for this machine, never
an authority: nothing may grant trust because two parties report the
same value. Absent from daemons predating the field.
config_path: Option<PathBuf>The configuration file the daemon reads and supervisor.rescan
rescans, exactly as the daemon names it: never canonicalized, so a
symlinked file is reported as the link. Sent only when that path is
absolute; a relative one (no home variable set, or a relative
XDG_CONFIG_HOME) depends on the daemon’s working directory and
would name a different file for the reader. Absent from daemons
predating the field and from daemons started without a reloadable
config file.
CatalogList
RouteOpen
Fields
RoutePoll
SupervisorList
Fields
modules: Vec<SupervisorEntry>daemon: Option<DaemonResources>agent_commands: Option<Vec<AgentCommandResources>>SupervisorSpawnSnapshot
Fields
snapshot: SpawnSnapshotSupervisorAck
SupervisorRescan
Fields
result: SupervisorRescanResultSupervisorHealthProbe
SupervisorHealth
SupervisorRoutes
Fields
modules: Vec<SupervisorRouteModule>