The runtime layer ships bash, git and tar for the shells the agent runs, but no HTTP client: a turn asked to fetch a URL had nothing to fetch with. curl joins the same apt line in both images; ca-certificates was already in the list, so HTTPS needs nothing else. Checked against debian:stable-slim: the line installs curl 8.14.1 and an HTTPS fetch resolves.