# Agent QA, budgets and the digest

> LVNDR checks every agent run's work, groups it by pattern, spots tugs of war, enforces run budgets, plans undos from plain words and mails a daily digest.

## What agent QA checks

A few minutes after a change is recorded and attributed, LVNDR checks it. Each check that finds something leaves a finding on the change, the run, the batch and the change log, and in the daily digest. Nothing is ever changed by a check.

| Check | On | What it flags |
| --- | --- | --- |
| Price at zero or below | Every change | A price set to 0 or negative |
| Price moved a lot | Every change | A price up more than 900% or down more than 90% |
| Price against the task | Runs | A price that moved more than the run's task says (“raise prices 10%”), or far from the run's median move when the task names no percentage |
| Text emptied | Every change | A title, description, page or post body emptied |
| Broken HTML | Every change | A description or body whose tags no longer close |
| Duplicated text | Runs and batches | The same text written to several records, or a sentence repeated in one |
| Language switched | Runs and batches | Text that changed language (a cheap word and script check) |
| SEO length | Runs and batches | An SEO title over 70 characters or description over 320 |
| Codes out of pattern | Runs and batches | A SKU or barcode shaped differently from its siblings |
| Stock zeroed | Runs and batches | Stock set to 0 on many records at once |
| Review | Ended runs | When your LVNDR has a model key, Claude reads the task and the diffs together and flags what does not fit |

On a run or batch page, **Undo only the flagged** opens the undo preview with only the flagged changes ticked. Everything else stays as it is and stays undoable.

## Patterns

The same pages group the changes by what they did to each kind of field: “Price +10%, 40 changes”, “Price +100%, 20 changes”, “Tags “sale” added”. A group smaller than the biggest group of its kind is marked **Odd one out**, often the mistake. **Undo only these** previews the undo of just that group and that kind of field.

## Tug of war

When two actors keep putting the same field back and forth (a sync app against staff, or two agents), LVNDR raises one alert naming both and how often it happened. The change page offers **Keep A's value** and **Keep B's value**; each opens the undo preview of that one field. Turn off the sync that loses, or it will flip the field again.

## Run budgets

An agent can declare what its run will do when it starts it: at most so many records, only some kinds of field, no price moved more than a percentage. A change over the budget raises a finding and an alert within a minute. With automatic undo on, LVNDR also undoes the excess: changes beyond the record limit whole, otherwise only the fields that broke the budget, through the normal undo with a snapshot first.

```
lvndr run start --task "Raise winter prices 10%" --max-records 50 --only Price --max-price-change 15 --auto-undo
```

The same budget is `budget` on `POST /api/v1/runs` and on the MCP tool `lvndr_start_run`. Automatic undo needs a key with the Undo scope.

## What do you want to undo?

Type it on the change log: “Undo the price changes Claude made yesterday, except on snowboards”. LVNDR says how it read the request (who, when, which records, which kinds of field, what it leaves out) and opens the undo preview with exactly that ticked. Nothing is written until you confirm there. Agents use `lvndr_plan_undo`, `POST /api/v1/plan-undo` or `lvndr plan`; the request is read by fixed rules, with the model helping only when the rules understood nothing.

## Daily digest

Settings > Daily digest sends one message a day, by email, to a Slack channel through an incoming webhook (https only), or both, at the hour you choose (UTC): what agents and apps changed in the last day, which runs ran, what QA flagged, each with a link to the preview. “Send today's digest now” sends it at once to check the setup.
