# WP Waterfall Safe Updates

> A careful run of plugin and theme updates on staging and previews, on days you choose. We compare page pictures, have an AI review, and roll back on a break.

Source: https://docs.wpwaterfall.com/safe-updates

Safe Updates is the careful way to run [automatic updates](https://docs.wpwaterfall.com/plugins#automatic-updates). It runs on the days of the week you choose, takes pictures of your pages before and after the updates, has an AI review the changes, and puts the site back if anything breaks. When a page changes more than you allow, it stops and waits for your confirmation instead of going live. It works on staging and previews, in **Git mode** and in **SFTP mode**. It never writes live code.

Safe Updates needs WordPress on the environment. See [Run a site without WordPress](https://docs.wpwaterfall.com/run-a-site-without-wordpress).

## What it costs

**$5 a month** for the whole site. You buy it once, and it covers live, staging, and every preview environment. There is no free first month. A test site has Safe Updates for free.

## How it relates to automatic updates

Both use the **Automatic updates** card of **Plugins and Themes**. Select **Enable** at the right of the card header to open the settings, then **Save**. Once something is on, the header holds **Run now**, **Change**, and **Disable**. Both use the same restore point and health check.

| | Automatic updates | Safe Updates |
| --- | --- | --- |
| Price | free | a paid add-on for the site (see above) |
| When | once a day, early morning UTC | on the days you choose (Tuesday by default), in a 2 hour window, in your time zone |
| Checks | a restore point, then the home page, the login page, and the PHP error log | the same, plus pictures of your pages and an AI review |
| Modes | Git mode and SFTP mode | Git mode and SFTP mode |

When Safe Updates is on for an environment, its run on your days replaces the daily run there. An environment never has two updaters.

## Turn it on

1. Open the site and choose **Add-ons** in the site menu.
2. On the **WP Waterfall Safe Updates** card, turn it on once for the site. The card appears on live, staging, and every preview, and it shows a red **Disable** button on all of them.
3. Open **Plugins and Themes** on staging or a preview. On the **Automatic updates** card, select **Enable**. The window that opens has four steps: **Select type**, **Settings**, **Dynamic content**, and **Confirmation**. Choose **Safe Updates**, set the days, the time window, the pages, and the match you require, then confirm.

The settings choose which plugins and themes update. Live has no card: live code is a read-only release, and nothing may update it in place. To bring updates to live, use **deploy to live** below, or promote staging.

## What a run does

1. **Looks for updates.** It lists the plugins and themes that have an update and a switch on. A plugin or theme you excluded is skipped, and the run counts it as "Skipped by your settings". One that broke the site on an earlier run, and whose version has not changed, is left out until the next run.
2. **Checks the site before.** The home page, the login page, and the PHP error log must be healthy. A site that already fails is left alone, and the run ends as **Nothing changed**.
3. **Takes a restore point.** It is kept 3 days. If WP Waterfall cannot take it, nothing changes.
4. **Prepares the code.** In Git mode, WP Waterfall makes a working copy of the branch for the run. In SFTP mode, it uses your working copy.
5. **Gets the first pictures.** It uses the pictures kept from your last completed run as the "before" pictures. Only a page that has none yet (a page you just added, or every page after you changed the exclusions or the page capture settings) is shot now, as Desktop (1920 pixels wide) and as Mobile (380 pixels wide), twice, so any part that changes by itself, such as a clock or an ad, is ignored.
6. **Updates one at a time.** After each update, the site check runs again, so the one that breaks the site is known.
7. **Takes the pictures again.** They are prepared the same way as the first ones (see **Page capture** below) and compared with them. Parts you excluded are left out of both.
8. **Asks the AI.** Every Safe Updates run gets this review, even when nothing changed on the pages and the error log stayed quiet. It sees what changed and any new PHP errors, and it looks at the pictures that changed most. It decides whether an update broke the site. It can only make the run stricter. A failed health check is never overruled, and if the AI is not available, the required matches decide. The review runs on a model from Anthropic, which receives the update list, the page addresses and their match, the new PHP error lines, and crops of the pictures that changed most. When your company turns off **Let Nami AI read site content** in Company settings, nothing is sent, the run skips the review, and the required matches decide. See [Nami AI](https://docs.wpwaterfall.com/ai-assistant#what-does-nami-ai-send-to-the-ai-model).
9. **Keeps, waits, or rolls back.** When every page matches by at least the match you require and every check passes, the updates stay (see where below) and the run completes. When a page matches less than its own requirement, or the AI fails the pictures, the run **waits for you** (see below). When the site check fails, WP Waterfall puts the restore point back and holds the update back.

**Where the updates go.** In Git mode the run saves them as one commit by **WP Waterfall Automatic Updates** and the environment switches to a release built from it. In SFTP mode they stay as uncommitted changes in your working copy. See [Automatic updates](https://docs.wpwaterfall.com/plugins#automatic-updates).

## Deploy to live

Safe Updates has the same option as automatic updates, **After updates pass, deploy them to live**, on staging. It is off by default, and a run that fails or rolls back never deploys. See [Automatic updates](https://docs.wpwaterfall.com/plugins#automatic-updates) for what it ships and when it stops. If a deploy fails after the updates passed, staging keeps the updates, and WP Waterfall tells you.

## Settings

Select **Enable** (or **Change** once it is on) on the **Automatic updates** card of **Plugins and Themes**. A window with a progress bar takes you through four steps. **Back** keeps what you entered. While updates run, the button on the card reads "Updating...".

**Select type.** **Automatic updates** is free, runs once a day, and takes no pictures. **Safe Updates** adds the days you choose, the pictures, and the AI review. A site without the add-on can pick Safe Updates, and the last step shows the price.

**Settings.** Each part is a section that opens and closes with a short animation, with its current value in one line on the right. Every section starts closed, several can be open at once, and they stay as you left them when you move between steps.

- **Plugins** and **Themes.** Two sections. Every plugin and theme updates by default; you only exclude. Each section lists your installed ones with a search box and a box to tick for each one automatic updates must skip. The summary says "N excluded" or "None excluded". Excluded items are never updated, deployed, or restored around, and a run that skips some says "Skipped by your settings" with the count.
- **Deploying.** **After updates pass, deploy them to live**, as above.
- **Schedule.** The **testing frequency** (the days of the week a run may start on, at least one; Tuesday is the default), the **testing time window** (a 2 hour window that begins at the hour you pick, such as 02:00 - 04:00, which keeps the same local hour through the change to summer time), and the **time zone** (any name, such as `America/New_York`).
- **Pages we test.** One to 10 pages, found for you. The list starts with the home page and your most visited pages over the last 30 days from your site's analytics. When those are fewer than 10, WP Waterfall fills the rest with pages it finds on your site: it opens your home page in its browser and reads the links, header and footer menus first, leaving out login, admin, feed, and file links. Finding pages can take a few seconds. If neither source has pages yet, the first run of Safe Updates finds them and saves the list once; it never changes a list you edited. Any page can be removed, the home page too, as long as one stays; the **Remove** button is red. Add a page by typing a path such as `/about` or a full address on your own site. **Use recommended pages** finds the pages again. Each page has its **own required match**, a whole percent from 50 to 100 (95 unless you change it), shown next to its visits as "95% match required". For each page you can open **Hide on this page** to list CSS selectors of elements to take out of that page only.

**Dynamic content.** Safe Updates only. Each part is a section, as above.

- **Page capture.** How each page is prepared before its picture, the same for the picture before, the picture after, and the preview. Every page is **always scrolled** down in steps and back to the top, to wake up images and effects that wait for you to scroll, for at most 20 seconds and 30000 pixels. **Wait before capture** (2 seconds, 0 to 15) waits after the page loads and after the scroll. **Enable animations** (on) lets animations and scroll effects play: after the scroll, the picture waits for running animations to finish, then for the wait seconds. A page whose animations never end still gets its picture, and the run says some animations were still running. With it off, animations are finished at once and frozen, videos pause, and the browser is asked for reduced motion. Neither setting can stop an animation that a script draws frame by frame, so remove that part. **Flatten sticky elements** (off) makes fixed and sticky headers part of the page for the picture, so a header does not repeat in a long picture. Changing the elements you remove, the wait, enable animations, or flatten sticky deletes the stored pictures, so the next run takes fresh ones.
- **Hide elements.** Up to 20 CSS selectors, such as `.cookie-banner` or `#chat`, of elements that are always **removed** from the pictures of every page before they are taken. A selector may use letters, numbers, spaces, and the characters of class, id, attribute, child, and list selectors; anything that could close a rule or add a script is refused.
- **Preview.** Choose a page and select **Preview**. WP Waterfall takes two pictures a few seconds apart with the settings in the window (not yet saved) and says "Dynamic content found" or "No dynamic content detected", with the percent that matches. **Show difference** shows the parts that changed by themselves. A company can run 20 previews an hour. A preview changes nothing on your site.

**Confirmation.** Two cards, one below the other. **What will happen** is a paragraph in plain words: when it runs, what it does for each update, how many pages it tests, how many plugins and themes you excluded, that every page must match its picture by at least its own required match (95% unless you changed it), and that a page below its requirement waits for you. **Price details** shows the price for Safe Updates without the add-on. The button reads **Turn on automatic updates**, or **Save changes** in Change.

**Run now** (shown only while automatic updates are on) starts a run at once with the same settings. **Disable** turns every switch and Safe Updates off. Only one change runs on an environment at a time, so Run now is refused while another change is running, and while a run waits for your confirmation.

## When a page changed too much: you confirm

A page **passes** when it matches its picture from before the update by at least **its own** required match (100 minus the percent that changed). A run is successful, and deploys to live when you set that up, only when every page passes and the site check and the error log are clean.

When a page matches less, or the AI fails the pictures, the run does **not** deploy and does **not** put the site back by itself. It stops with the result **Needs confirmation**:

- The updates stay applied on staging, and the restore point is kept. In Git mode the updates sit in the working copy, not yet saved as a commit.
- The pictures are kept, so you can review them: each page shows the match, the before and after pictures, and the difference.
- You get one notification, "Updates need your confirmation", that opens the results. No other run starts on that environment until you answer.
- **Approve and deploy** saves the updates (the commit in Git mode) and, when the run was set up to deploy to live, ships them to live (code only). The run then completes. **Reject and restore** puts the restore point back on staging and holds those updates back until you apply them. Both are one quiet job under the run.
- If nobody answers in **7 days**, WP Waterfall puts the restore point back, marks the run **Not confirmed**, and tells you once.

A fatal error, a failed site check, or a failed update puts the restore point back at once and holds the update back.

## Pictures and the baseline

While a run is going, and after it, WP Waterfall keeps its before, after, and difference pictures, so you can look at them in **View results**. When a run **completes** (it passed on its own, or you approved it), it also copies its **after** pictures as the baseline for the next run: one picture for each page and width, replacing the last. The next run uses the baseline as its before pictures. When a newer run that has pictures finishes, the pictures of the run before it are deleted. A rejected or expired run deletes its pictures and leaves the earlier baseline as it was. A run that put the site back deletes its pictures too. The baseline is for WP Waterfall's own use and is never shown to you. A run keeps its numbers (the match of each page and the match it required) after its pictures are gone.

If a picture cannot be deleted at once, WP Waterfall tries again in its daily cleanup.

## When an update is held back

If the site check fails, or an update fails to run:

1. WP Waterfall puts the restore point back. The whole environment returns to how it was at the start of the run, including the database and uploads, so edits made on staging during a run are lost.
2. The update is held back, with its version and the reason in plain words. It is skipped for 7 days, or until a newer version appears.
3. WP Waterfall tells you once, in the bell and by email as your [notification settings](https://docs.wpwaterfall.com/notifications) choose, naming the update. The same held update is not announced again. A run that passes tells nobody.
4. **View results** on the run opens the full screen view, with the match of each page and the pictures while the run is open (see below).

When several updates are applied and the site check fails after one of them, WP Waterfall applies the others again, at most two more times, to find the cause. If it cannot narrow it down, it holds back the remaining suspects and says "could not tell which".

**Apply anyway.** On a held back update, choose **Apply anyway** if you accept the change. It runs as one update by itself. The health check still runs, and a site that breaks is restored, but the pictures and the AI no longer hold it back.

## Read the last runs

The card lists your last 3 runs in a table with the date, the result, and how many updates were applied. Only the newest run has a button, **View results**. For a run that waits for you, the button reads **Review**. Older runs stay in the table as a short history, without a button.

**View results** opens a full screen view. Select the X at the top, or press Escape, to close it.

- **Left side.** The run in one sentence. Then **Updates**: each plugin or theme with its version before and after and its result. Then the AI review in one sentence with its reason, where the updates went, and the commit. Last, **Pages**: every page that was compared, with its match, for example "98% match". A page under its required match, or that failed, shows its match in colored text with the words "below" or "failed". Select a page to see its pictures on the right. On a phone the list sits above the picture. The date is in the header of the view.
- **Right side.** The picture of the selected page. One slider shows the before picture on its left and the after picture on its right. The picture sits on a canvas. The buttons above it stay in place, and only the picture scrolls. It starts on **Fit**: the whole page, top to bottom, with no scrolling, for **Desktop** and for **Mobile**. Drag the divider from anywhere along its height; it stops wherever you stop, with no steps. Or focus it and use the arrow keys (Shift moves it more, Page Up and Page Down move even more, Home and End go to the ends). To read the details, use **100%**, the plus and minus buttons, or Ctrl or Cmd with the mouse wheel (or a pinch on a trackpad), and the canvas scrolls like the page itself. **Fit** goes back. Choose **Desktop** or **Mobile** with the buttons above the picture. A page that missed the required match also has a **Difference** button.
- Pictures follow the rules in [Pictures and the baseline](#pictures-and-the-baseline). A run from before WP Waterfall kept pictures, or without Safe Updates, says that no pictures were kept.

A page row reads "N% match, 95% required", and the top of the left side says how many pages matched below their required match. A run that needs your confirmation shows two buttons to people who may deploy code: **Approve and deploy** keeps the updates and deploys them to live, and **Reject and restore** puts the restore point back. Each asks you to confirm first. See [When a page changed too much](#when-a-page-changed-too-much-you-confirm).

A run is one job in the activity log, with its steps inside it and an audit entry. It shows as one entry in the bell, not one for each step.

| Result | Meaning |
| --- | --- |
| **Updated** | Every check passed, and the updates were kept. |
| **Held back** | One or more updates failed a check and were left out. The others, if any, were kept. |
| **Rolled back** | A check failed, and the restore point was put back. |
| **Needs your confirmation** | A page matched less than its required match. The updates are on staging and nothing went live. Open **Review** to approve or reject them. |
| **Turned down** | You rejected the updates, and the restore point was put back. |
| **Not confirmed** | Nobody answered in 7 days, and the restore point was put back. |
| **Failed** | The run stopped and WP Waterfall could not confirm the site is as it was. Look at the environment, and use the restore point on the **Backups** tab if you need it. |
| **Nothing to update** | No plugin or theme had an update, so nothing changed. |
| **Nothing changed** | The site already failed its checks before the run, so WP Waterfall left it alone. |

## Good to know

- **With an external repository connected**, Safe Updates and automatic updates are off. See [Automatic updates](https://docs.wpwaterfall.com/plugins#automatic-updates).
- If you turn the add-on off, the run on your days becomes the plain daily run, and your Safe Updates settings stay saved.
- If the server is off or another change is running, the run waits for the next check inside the window. A window that passes with no run is skipped.
- Safe Updates does not update WordPress core. WP Waterfall does that for every site. See [WordPress updates](https://docs.wpwaterfall.com/wordpress-updates).
- Live sites are shielded from known plugin and theme vulnerabilities by [vulnerability protection](https://docs.wpwaterfall.com/vulnerability-protection) while an update waits, but protection does not replace the update.
- A page that needs a login, or that shows different content for every visit, will not compare well. Hide the parts that change, or leave the page out.
- WP Waterfall makes the pictures with its own browser. It never signs in, and it can reach only your environment's public WP Waterfall address. If it cannot take the pictures, the run decides on the health check alone and says so on the last run.

## From the API, MCP, and webhooks

The settings, the last run, Run now, Apply anyway, the preview, and the answer to a run that waits are routes of the public API, so anything the dashboard does, a script or an assistant can do. The state answers with the last 3 runs in `runs`. They are `GET /v1/environments/{id}/auto-updates`, `PUT /v1/environments/{id}/auto-updates` (with `safe_days`, `pages`, `exclude_selectors`, `exclude_mode`, `required_match`, and `capture`), `POST /v1/environments/{id}/auto-updates/run`, `POST /v1/environments/{id}/auto-updates/apply`, `GET /v1/environments/{id}/auto-updates/picture`, `GET /v1/environments/{id}/auto-updates/recommended-pages`, `POST /v1/environments/{id}/auto-updates/preview`, and `POST /v1/sites/{id}/auto-updates/runs/{run_id}/approve` and `.../reject` (send `confirm: true`; they need the permission to deploy code). A run record has `match_percent` for each page, `required_match`, and `pictures_kept`. Run now answers `202` with a job. Live answers `409 live_is_immutable`, an environment with an external repository answers `409 external_repository_connected`, and a Safe Updates setting without the add-on answers `402 safe_updates_required`.

The MCP tools are `get_auto_updates`, `set_auto_update_settings`, `run_auto_updates_now`, `apply_update_anyway`, `approve_auto_update_run`, and `reject_auto_update_run`. The ones that change code always ask you first. The webhook events are `auto_update.completed` and `auto_update.failed` (see [Webhooks](https://docs.wpwaterfall.com/webhooks)).

## Quick answers

**The Safe Updates option is missing on the card.**
The add-on is off for this site, or you are on live. Turn the add-on on from the Add-ons tab, and open the Plugins and themes page of staging. Without the add-on, the card shows a link to add it.

**Can I see Safe Updates on staging when I bought it on live?**
Yes. One purchase covers the whole site, and every environment shows the red **Disable** button.

**A run held back an update. What now?**
Open the last run. The reason and the pictures are there. Choose **Apply anyway** if the change is fine, update it by hand and fix the problem, or wait for a newer version.

**Why not every day?**
Each run takes pictures and asks an AI, which costs real time and money. You choose the days, and Tuesday is the default. Automatic updates without pictures run daily and are free.

## Related

- [Plugins and themes](https://docs.wpwaterfall.com/plugins)
- [Add-ons](https://docs.wpwaterfall.com/add-ons)
- [Staging and preview environments](https://docs.wpwaterfall.com/environments)
- [Backups](https://docs.wpwaterfall.com/backups)
- [Vulnerability protection](https://docs.wpwaterfall.com/vulnerability-protection)
- [Git access](https://docs.wpwaterfall.com/git-access)
