Module srv_spawner

Module srv_spawner 

Source

Structs§

EstartFields ðŸ”’
Parsed fields out of a AGENTMUXSRV-ESTART line. Same shape as the host’s parse_estart (sidecar.rs:404-420).
SrvSpawnResult
What the launcher learns about srv after it signals ready. Held by the launcher and used to populate env vars the host reads.

Enums§

SrvSpawnError
Errors during srv spawn — granular enough that the launcher can log the right diagnostic.

Functions§

assign_pid_to_job
Assign a process to the launcher’s Job Object J0. Used by spawn_srv for srv and exported for main.rs to use for the host. Separated from job creation because both children join the SAME job (only one J0 ever exists per launcher run).
parse_estart ðŸ”’
resolve_srv_binary ðŸ”’
Resolve the agentmux-srv binary path from the LAUNCHER’s vantage point.
spawn_srv
Spawn srv as a child of the launcher, assigned to launcher’s Job Object J0 so it dies cleanly with the launcher tree.