2026-11-19

An agent alert system should mostly stay quiet

Four things an agent alert system refuses to do. A failing job is one row whose state moves, not three red rows. A dismissed finding stays dismissed until the memory behind it changes. A job declares up to three buttons and the relay runs the job, with no agent involved. The alert log is append-only and state is an overlay. A background check reads only files that moved and keeps its last 56 runs.

Agents that run on their own need a way to reach you. Sending alerts was the easy part. Getting them to stay quiet at the right moments took four decisions.

Once agents run on schedules, they have a lot to tell you. Jobs finish, jobs fail, something needs a decision. An alert system gets judged by what it refuses to say, and four decisions made mine usable.

A failing job is one row, not three. The cron worker retries a failed run after 60 seconds, then after 300. Every attempt posts under the same alert id, so a run that fails three times is one row whose state moves. While it retries, the row shows a spinner instead of a red mark. If a later attempt works, it becomes a normal row. If they all fail, it turns red. I can also swipe Retry on a failed alert, and the row turns to recovered when the job works. Without this, a flaky job would post a red row for every attempt.

A dismissal stays dismissed. A background check scans agent memory for things that deserve my attention, and it only reads files that changed since the last scan. My first draft let a dismissed finding come back if it got more severe. That would have undone the whole feature. Three of the four checks work out severity from how long something has sat untouched, so every dismissal would have resurrected itself at 14 days and again at 30, with nothing about the underlying note changed. Now a dismissal holds until the memory behind it actually changes.

That check also keeps a record of its last 56 runs, which is a fortnight at its six-hour cadence, and whether each run spoke or stayed silent. Most runs say nothing, on purpose. If it spoke on four of the last four, the bar is too low, and I want to see that in days rather than on the day I mute it.

Buttons run code, not a model. A job can put up to three buttons on its own alert, like Post review or Drop. Tapping one makes the relay run that same job with the action in its environment, and the job does that one thing. No agent is involved. Only one action runs per alert, and once it starts the others close. The ones that post something outward are buttons I press myself.

The log never gets edited. Alerts are appended to a log that keeps the newest 5000 in memory, and the retry and action state sits beside it as an overlay. A row can change what it shows without the history being rewritten.

None of this is clever. It is a list of ways an alert system annoys you, with a fix for each, and the feed is better for what it leaves out.