fn resolve_workdir(cmd: &CommandWriteAgentConfigData) -> Result<String, String>Expand description
The final on-disk path. An auto-generated instance path (auto_allocate: true) uses the atomic <base>-N
allocator so concurrent same-hour launches don’t share a workdir. A user-specified path is mkdir -p’d and
never rewritten.