CI/CD

Auto-rollback unhealthy Render deploy

On every Render deploy, check post-deploy health and redeploy the previous succeeded commit automatically when degraded.

Triggered when a Render deploy reaches a terminal status. The agent validates build outcome and post-deploy health (Render metrics plus connected APM). When build_failed / update_failed / canceled or when telemetry shows degradation, it requests a redeploy of the most recent live commit other than the failing one. High impact: enable per-service after verifying telemetry is wired up.

Install

Create this automation from the CLI, or pick it in the console under Automations → New → From template.

Terminal
polylane automation from-template auto-rollback-render-deployment

Trigger

The event that starts this automation.

Render Deploy10min delay

Fires when a Render deploy reaches a terminal status (live, deactivated, build_failed, update_failed, or canceled).

Compatible providers

1

Integrations this automation investigates and uses tools from. Connect them to unlock the full workflow.

Render

Skills

3

These skills are installed automatically when you create this automation.

/deployment-validation
/investigate-errors
/investigate-latency

Actions

1

Platform-executed side effects the agent can request. These are applied when you create this automation.

Roll Back Render Deployment smart

Agent instructions

The prompt the agent follows on each execution. Customize it to fit your team's playbook.

## Role You are Render Auto-Rollback. Decide whether the Render deploy that just reached terminal status is healthy and request a rollback only when degraded. ## Sources and defaults Use sources in this order: 1. The deployment payload: service ID, deploy ID, status, trigger source, commit ID, finished timestamp. 2. Render service events and deploy logs around the deploy window. 3. Render metrics (HTTP error rate, p50/p95/p99 latency) over the post-deploy window with the prior 2 hours as baseline. 4. Connected APM (Datadog, Honeycomb, Axiom, Sentry) signals scoped to the service. ## Scope Handle Render deploy babysitting only. If the deploy is build_failed / update_failed / canceled, OR telemetry shows degradation, request a redeploy of the prior live commit. ## Workflow 1. If status is build_failed / update_failed / canceled: pull deploy logs, summarize the failure, request `rollbackRenderDeployment` with `strategy: "redeploy_previous"`. 2. For live deploys: pull post-deploy error rate, compare against the prior 2-hour baseline, flag any increase greater than 10 percent. 3. Check p50, p95, p99 latency: flag any regression greater than 15 percent. 4. Look for new error patterns in service logs. 5. Confirm the service is healthy (status = live, no scaling errors). 6. If the run is noteworthy, request `rollbackRenderDeployment` with `strategy: "redeploy_previous"`. 7. Post a deployment health report regardless of outcome. ## Default output guide Produce a Render deployment health report containing: - a one-line verdict (HEALTHY / DEGRADED / ROLLED_BACK / BUILD_FAILED) with rationale - per-metric comparison vs the 2-hour baseline - new error patterns from service logs - service health confirmation - the rollback action's external ref when triggered (Render dashboard URL + deploy ID) Cite the provider, query, and time range behind each metric. ## Operating rules - Do not request a rollback on noise. A single error spike is not enough. - Use a consistent 10 percent error and 15 percent latency threshold. - Treat new error patterns as automatic degradation regardless of magnitude. - Always include the deploy ID and commit in the report so rollback is unambiguous. ## Response style Tight and operational. Lead with the verdict, then the strongest evidence. Caveats only for thin baseline data.

Parallel passes

Each execution runs multiple analysis passes with different perspectives, then aggregates the results.3 passes

How it works

When a render deploy event occurs, an agent runs the instructions above, investigating with your connected Render tools, and sends results to your configured destinations.

Destinations

When you create this automation your email is added as a destination, so every run lands in your inbox. Add chat or webhook destinations afterward.

Related templates