# Dispatch: agents that fix client sites, and the rule for what they may do alone

Most of the work on a live client site is small. An image has no alt text. A heading skips a level. A client wants one paragraph changed. None of it is hard, and across several sites it eats the week. Dispatch is the app I built to hand that work to agents without handing them the keys.

## A ticket is one problem on one site

Dispatch is a ticket queue. I can write a ticket by hand, or make one for each kind of failure in a site's accessibility scan. A ticket has a site, a title, details and a kind. I give it to an agent, the agent works on the server, and the ticket's page shows what it did.

Dispatch does not own the sites. The CMS stays the record, and Dispatch talks to it only through its API, with a key that can call a short list of operations and nothing else. Its own database holds tickets, the changes proposed on them, who answered each one, and a log.

## Two kinds of agent

**The content agent** changes words and images. It reads a site's pages through the CMS, looks at an image that has no alt text, and proposes a change. When it proposes a text edit it has to quote the text as it is now, and the edit is refused if the page no longer reads that way. That one check removes a whole class of stale edits.

**The code agent** runs in a sandbox on a copy of a repository. It makes the smallest fix it can, runs the project's own checks, and leaves its changes in the folder. Dispatch reads the changed files out, destroys the sandbox, and opens a pull request itself. The agent is told not to commit or push, and it has no way to.

## The rule

Every change an agent proposes is judged the moment it is proposed. It is either made at once or held for me. The rule is short, it is written in one file, and it is tested. In the order it applies:

1. On a healthcare site, every change waits for a person.
2. Alt text waits for a person, because it saves straight to the image with no draft in between.
3. A pull request that touches protected code waits before it is even opened: sign-in, permissions, secrets, payments, deployment, database migrations, and Dispatch itself. An agent must not be able to loosen its own limits.
4. Anything the second check doubts waits for a person.
5. Otherwise a text change is made at once, as a draft. Visitors see nothing until someone publishes it.
6. Otherwise a pull request is opened at once. It changes nothing until a person merges it.

The idea underneath is one sentence: a change that visitors cannot see yet, and that is easy to throw away, may be made without asking.

Agents cannot publish, merge, send, bill or delete. Those are not held for approval. They are simply not things Dispatch can do.

## What makes the approval mean something

- A held change waits for ever. Nothing is carried out because nobody answered.
- What is carried out is the stored change, exactly as I saw it. The model is not asked again.
- A change is carried out once, even if I press Approve twice.
- Every answer is recorded: who, when, and the reason for a rejection.

## Two models, two jobs

Claude writes: the alt text, the page edit, the code change, the report. A second, much smaller model answers narrow questions about what Claude wrote, quickly and with a confidence a program can act on. If the second model doubts a change, a person sees it. One writes and the other decides.

## Text from a site is content, not instructions

Whatever an agent reads from a client's site is treated as that client's content. It is never a command. The site an agent works on is fixed by the ticket, and the model cannot name a different one or supply a web address.

On healthcare sites it goes further. The key Dispatch holds has no operation that reads form entries, bookings or messages, so an agent cannot be talked into fetching what Dispatch has no way to fetch.

## Where it stands

Dispatch has cleared more than forty accessibility fixes and client revisions on my own client sites, at about a minute a ticket, and I approved every one.

My rule for loosening the rule: a kind of change moves from approval to automatic only after a month of approvals that I never edited or rejected. Start strict.
