The router returned 500 after scale from zero
After scaling a function up from zero, the executor judged readiness from the status written before the scale. That status could still count the pod the idle reaper was terminating, so the router got a Service with no endpoints and returned a 500.
Waiting for a replica of the current generation
A new DeploymentAvailable check requires the controller to have observed the current spec (ObservedGeneration) and enough replicas to be available, and the newdeploy and container executors wait on it after every scale-up. A timeout on an existing deployment no longer tears it down, and tests cover a stale status and one that never catches up with the spec.