Expand description
Container-exec turn spawn (spawn_container_turn) for SubprocessController.
Docker-exec analog of host_spawn::spawn_turn, used for container agents.
Drives the exec via bollardโs Docker socket API instead of a host
std::process child (P1a: no secrets in argv โ env vars travel through
CreateExecOptions.env, never process argv / /proc/<pid>/cmdline).
spawn_container_turn is one continuous, non-trivially-ordered state
machine and is moved here WHOLE rather than decomposed further.
publish_line is its private output-line helper (used only here).
Functionsยง
- container_
turn_ ๐exec - Wrap the CLI argv so it reads the turn prompt from
prompt_path, a file already written into the container by [ContainerManager::upload_turn_prompt].