pub fn materialize_host(dir: &Path) -> Result<PathBuf>
Write host files into dir (idempotent overwrite — embed is authoritative).
dir