Answers why the build failed
get_step_logs returns the output of the step that broke, decoded from the base64 chunks the API actually sends, in line order, with its exit code — and from the end of the log by default, because that is where the error is.
