pub fn try_attach(
layout: &Layout,
socket: &Path,
agent: &str,
offline: bool,
hooks: &AttachHooks,
) -> AttachOutcomeExpand description
Never probes the socket when offline. Otherwise: accept and initialize;
on a free socket, ensure_serve then attach; on spawn failure stay core.