Skip to content

Checklist before apply_deployment ​

As of: November 15, 2026

A plan says what will happen. This page is the checklist an agent should work through before every apply_deployment, so nothing runs along that the human did not want. Then continue with Check after the deploy.

Short version for the agent ​

  1. Read the starting point: in a new chat first list_projects, then get_project; never guess a project name. Derive the contract from the running revision, not from memory.
  2. Check changes: every service with action: "update" is rolled out again. If a service is listed that you did not want to change, that is an error in the contract, not a detail.
  3. Take IMAGE_TAG_MOVED seriously: a tag without a digest (such as postgres:17-alpine) may meanwhile be another image. If the service should stay as it is, pin the image to the previous digest from suggestion and plan again. Always pin databases with a digest.
  4. Read VOLUME_REPLACE and VOLUME_REMOVAL: with a volume the old instance stops before the new one (short interruption), a rollback does not reset data and migrations. A removed volume needs an approval of the human.
  5. Declare dependencies through connects_to: a service waits up to 3 minutes until its targets are healthy (WAITING_FOR_DEPENDENCY). Without connects_to there is no connection and no start order.
  6. Set access deliberately: the default is account (only with login, curl gets 401). Websites, APIs and webhooks need "access": "public". Own domains go under domains.custom, the plan names the DNS records.
  7. Check the costs: if get_balance is in next_actions, call it; extra_eur_month is already set there. Tell the human about warnings like BUDGET_SOFT_EXCEEDED or CAPACITY_LIMITED.
  8. No secrets in the contract: never passwords and tokens in env, use set_secrets instead; the contract names only their names under secrets.

Example: change only access ​

A project has web (connects_to: ["db"]) and db (Postgres with a volume, image postgres:17-alpine). The human wants to make web public. The agent changes access of web and plans. If the plan also lists db with action: "update" and the warning IMAGE_TAG_MOVED, the tag has moved: db would restart with a new image and a short interruption. The right thing is to pin db to the previous digest ("image": "docker.io/library/postgres@sha256:…" from suggestion) and plan again until only web appears as update. An update of the database belongs in its own, announced step with a backup (backup_volume).

What are not errors of the app ​

  • 403 with WAF_BLOCKED: the edge's protective filter rejected an unambiguously malicious request (.., .git, .env …), the app never saw it. For real requests that get caught, set "waf": "detect" (Protective filter).
  • 401 with curl: the service has access: account; check_service still gets through.
  • Exit code 128 for a job that ends after a few milliseconds: the sandbox could not determine the real exit code; the message names the run time and the remedy (Jobs).
  • Empty list_vulnerabilities right after the build: the match runs within 5 minutes; note says that it is still pending (Vulnerabilities).