Blogguide10 min read

Can an AI SRE Write Its Own Monitoring Checks?

Yes, if the model only writes the check and never judges a run. How Aurora SRE admits, grades, demotes and retires the checks its agent writes.

Ben Gervais
Ben Gervais, Engineer at Arvo AILinkedInGitHub

An AI SRE can write its own monitoring checks if the model only writes them and never judges a run. In Aurora SRE a check is a read-only command plus a fixed comparison on its output, run on a schedule with no model call. A check the agent writes after an incident starts silent. If it reads logs or metrics over a time span, it is replayed over that incident before it is saved. It may open an incident only after its kind of check has been right about three real ones. Two false fires in a row take that right away, and a nightly pass retires checks that have only ever been wrong.

We built the trust rules expecting too many checks. The first release (v1.5.27) had the opposite problem. The only step that wrote a check was the postmortem, the postmortem runs when someone clicks Resolve, and a team that reads its root cause analysis in Slack and never clicks Resolve got no checks at all. Two releases later a follow-up moved the step to the end of every investigation and added a scan for assets that never had an incident.

What is an AI-written monitoring check, if not anomaly detection?

Aurora has no anomaly detection, no learned baselines and no model scoring metrics. A check is two things a language model writes once: a command and a healthy condition. This one is the fixture our replay tests use:

_CHECK = {
    "provider": "gcp",
    "command": "logging read 'severity>=ERROR AND timestamp>={from} AND timestamp<={to}' --format=json | jq length",
    "assertion": {"expect": "number", "op": "lt", "value": 50},
    "window_seconds": 900,
}

Aurora fills {from} and {to} on every run with the last window_seconds. The check passes while the output, read as a number, is below 50. The operators are a closed list (lt, lte, gt, gte, eq, ne for numbers and line counts; contains, not_contains, eq, ne, empty, not_empty for text), and no pattern supplied by a model is evaluated.

A scheduler ticks every minute and starts at most 20 due checks per organization. Each goes through the same executor, command policy and read-only gate as a person's read-only question, with a 30 second timeout. Check runs have a queue of their own, listed last on the workers, so a backlog of checks never sits in front of an investigation. The default interval is 15 minutes, the minimum is 5, and an organization holds at most 200 active checks. These are constants, not settings.

An error is never a pass, and a number check that prints nothing is a failure. From assertion.py:

    elif assertion["expect"] == EXPECT_NUMBER:
        if not text:
            # The command ran and printed nothing where a number was expected.
            # That is what "gone" looks like: Kubernetes omits readyReplicas at
            # zero replicas. Calling it an error would hide the full outage the
            # check exists for, and calling it zero could pass `lt` checks, so
            # it is a failure whatever the condition.
            return Verdict(STATUS_FAIL, "", "the command printed nothing")

The comment's Kubernetes claim holds: readyReplicas is omitempty in the Deployment status type, so a read of it prints nothing when no replica is ready.

The threshold (the 50 above) is the model's choice, made from what it saw in the investigation. That is a weaker basis than a statistical baseline, so nothing the model writes is trusted on day one.

Who approves an AI-generated alert, and who deletes it?

In a monitoring repo a reviewed rule pages from the day it merges and is rarely deleted, because nobody is sure that is safe. Here nobody approves a check, a new one reaches no one, and its record decides whether it stays.

TierWhat a failure doesHow a check gets thereHow it leaves
SilentWrites a row in the database. Nobody is told.Every check Aurora wrote starts herePromoted or retired
Worth a look (still silent)One post in the incidents channel. No @mention, no investigation.Failing for 2 hours, and the channel has weekly budget leftThe failure clears, or someone answers the post
ProvenOpens an incident with a normal investigation, or joins an open one on the same asset from the last 60 minutesIts kind of check has 3 hits at 0.8 precision, or a person asked for it or vouched for it, or the coverage scan wrote it for an unwatched assetTwo false fires in a row, or a failed fire drill
RetiredNever runs. Its record is kept and its name is not reused.The nightly pass, the review action, or a personIt does not come back

Alert correlation groups alerts that already fired, so it has nothing to say about a failure no rule covers. A check store adds coverage and then has to prove each addition. That comparison is in AI SRE vs traditional AIOps.

How is an AI-written check tested before it is admitted?

When a check is written for an incident and its command names both ends of a time span, Aurora runs it before saving: once over the incident, then over the same hours on up to three of the previous seven days that had no incident. replay.py refuses it on either count:

def refusal(result: ReplayResult) -> str:
    """Why a replayed check is not admitted, or '' when it is."""
    if result.caught is False:
        return ("Replayed over the incident it was written for, this check stayed healthy. "
                "It would not have caught it, so it measures the wrong thing.")
    if result.quiet_fails:
        return ("Replayed over the same hours on %d earlier day(s) with no incident, this check "
                "failed on %d. It fires on quiet history." % (result.quiet_runs, result.quiet_fails))
    return ""

A check that passes is credited with one hit. A check that reads the present, such as a pod count from kubectl, cannot be pointed at last Tuesday. It is saved silent and proves itself forward.

The first version of replay was wrong in two ways, both caught in review:

  • Zero quiet days still earned a hit. Where there is an incident every day, no quiet day exists, and a check that always fails looked the same as one that caught the incident. At least two quiet days must now be readable, or the replay counts for nothing.
  • The agent could tune until it passed. A refusal returns the reason, so the model could move a threshold until the check fit that one incident and then be credited with the incident it was fitted to. An incident now gets three replays a day, a replay stops after 90 seconds, and once any check written for an incident has been refused, later ones can be admitted but are never credited with it.

How does a check earn the right to open an incident?

The whole policy is a few constants in record.py, which the file itself calls starting values:

PROMOTE_MIN_HITS = 3
PROMOTE_MIN_PRECISION = 0.8
DEMOTE_AFTER_CONSECUTIVE_FALSE = 2
# ...
GRADE_WINDOW_HOURS = 24
GRADE_LOOKBACK_HOURS = 1
# ...
GRADE_GRACE_HOURS = 2
RETIRE_AFTER_DAYS = 90
MAX_ACTIVE_CHECKS_PER_ASSET = 8

A fire is the moment a check starts failing, so an hour of failing is one fire. It is a hit when an incident on the same asset, one that no check opened, exists between one hour before the fire and two hours after it cleared (24 hours at most). It is false when that window closes with none. Hits are counted per incident: a check that flaps three times through one outage has been right once.

One check sees too few incidents to prove itself, so trust is pooled by pattern, the kind of check (pod-crashloop, table-freshness), across the organization. Three hits at 0.8 precision promote every silent check of that pattern whose current revision has never fired on nothing. Demotion is per check: two false fires in a row, and if a revision caused them, the previous revision is restored. A check a person asks for in a live conversation starts proven, and an editor can vouch for a silent one.

Asset matching is exact after trimming and lowercasing, so a check on api takes no credit for an incident on api-gateway. The cost: a check whose asset is spelled differently from how alerts name the service is graded false while being right.

One case would have punished a check for being early: when a proven check fires first, our correlator attaches the monitor's later alert to the check's incident, so no independent incident exists. Grading now also counts an alert on the same asset that joined the check's own incident.

Do AI-generated alerts add to alert fatigue?

They add to it unless speaking has a price. A silent check that has been failing for two hours may be mentioned once. No model writes the post. It is this template from attention.py:

    return "\n".join((
        "*Worth a look:* my check `%s` on *%s* has been failing for %s."
        % (name, asset, _duration(candidate["hours_failing"])),
        "It predicts: %s" % slack_text(candidate["prediction"]),
        "Healthy when: %s" % slack_text(healthy_condition(candidate["assertion"])),
        "Value seen: %s" % (slack_text(candidate["observed"]) or "(empty)"),
        "Why I watch this: %s." % slack_text(origin_sentence(candidate["origin"])),
        "I have not opened an incident, because this check has not proven itself yet. "
        "I post at most %d of these a week here, and fewer when they turn out to be nothing." % budget,
    ))

A channel starts with three of these a week. A post that pointed at a real incident raises the budget, up to 10, and a kind of check whose posts pointed at nothing lowers it, down to 0. Posts wait for a weekday between 08:00 and 20:00 in the Slack installer's timezone. Each carries two buttons: "Not a problem" grades the fire false on the spot, and "Stop this check" retires the check.

Retirement needs no person. Every night at 04:10 UTC a pass with no model retires exact duplicates, silent checks that have fired only on nothing for 90 days, and the weakest silent checks past eight per asset. A check that has never fired is left alone. One that fires on nothing twice in a row, or errors five runs in a row, goes back to the agent to fix or retire. Whether an agent reduces alert fatigue overall is a wider question, answered in our alert fatigue guide.

Fire drills: does a proven check still catch its own incident?

A log format changes or a metric is renamed, and a check passes forever. Every Sunday at 06:10 UTC Aurora re-runs, for each proven check a replay admitted, the command over its incident. One that no longer fails there goes back to silent and is queued for review.

As first written, drills would have demoted every replayed check about a month after its incident. Sources drop old data (30 days by default for a Google Cloud project's _Default log bucket, 15 days for 1-minute CloudWatch data points), an empty span counts as zero lines, and zero lines reads as healthy. Drills now stop 14 days after the replayed span, and an empty answer is unknown, not a pass.

Monitoring coverage gaps: assets that never had an incident

The Monitoring Coverage Scan is a built-in action, on by default, that runs weekly and right after discovery maps a newly connected integration. Every command it runs is read-only. The agent lists the assets, finds what already monitors each one (provider monitors and alarms, and Aurora's own checks), and saves a check for each failure nothing watches, at most 20 per run. A muted, broken or unrouted alert counts as a blind spot. A working one is never duplicated.

A check for an unwatched asset would sit silent for weeks, which is the blind spot again. So inside the scan's own session a check marked unmonitored starts proven, if its command passes when Aurora runs it at save time. A check aimed at the wrong namespace would otherwise open an incident on its first run.

The scan itself reached nobody at first. Built-in actions were added to an organization only when someone loaded the action list or resolved an incident, so no existing organization had it until v1.5.31 backfilled them.

What went wrong on the way

The command gate had nothing to judge a scheduled run against. Aurora's gate includes a model that compares a command with the conversation that asked for it, and a scheduled run has no conversation. The full gate now runs when a check is saved. Scheduled runs skip only that judge, only for the exact saved command string (a hash match). The read-only classifier, the signature matcher and the organization's command policy still run every time.

Interval schedules would never have fired. Celery beat keeps last run times in a local file and sends an interval task one interval after it starts. Our Helm chart puts that file in the pod's /tmp, so every deploy restarts the count, and deploying more often than weekly means a weekly drill never runs. The drill and the cleanup are fixed times of day now.

What is still unsolved

  • Checks the scan starts as proven cannot be confirmed. Grading counts an incident no check opened, or an alert on the same asset that joined the check's own incident. On an asset nothing else watches, neither exists, so two real failures in a row are graded false and demote the check.
  • We have no measurement of how often these checks are right. The 3, 0.8 and 2 above are starting values, not tuned ones.
  • Replay covers only windowed log and metric checks, and our tests do not prove it against a real source. Every replay test in the repo injects a stand-in for the executor.

Try it

Checks are on by default since v1.5.27, including on a self-hosted install.

  1. Ask Aurora in a conversation to watch something (editor role). That check starts proven.
  2. Monitoring (/checks) shows each check's record and last value. "Open incidents when it fires" vouches for a silent check. "Stop this check" retires it.
  3. The Monitoring Coverage Scan has a switch under Activity, Features, and can be run by hand from /actions.
  4. DETECTION_CHECKS_ENABLED=false turns the whole feature off: no check runs and the agent has no check tools.

The code is at github.com/Arvo-AI/aurora, the hosted version is at aurora-ai.net, and you can book a demo.

Verified against Aurora v1.5.31 on 2026-12-02.

Questions

Try Aurora for free

Open source, AI-powered incident management. Deploy in minutes.