When an AI SRE tool does not find the real root cause, check first whether the investigation finished. Ours failed to finish in five ways: a run hit a time limit, a watchdog stopped it, the model errored, the worker died, or the alert was never picked up. In Aurora SRE each of those used to end as "Investigation Failed" with the evidence thrown away. As of v1.5.31 an interrupted investigation ends with a partial report that opens with "Investigation incomplete", can be continued up to three times, and an alert over budget is queued instead of dropped.
The bug that started this work came from our own test deployment (issue #682). An investigation ran 19 of 19 tool calls with zero errors. Partway through, Slack posted "Investigation worker died unexpectedly", the incident flipped to an error state, and the agent kept working and wrote its findings into a session already marked failed. Nothing had crashed. Our cleanup job had declared a healthy run dead.
Our Kubernetes lab report grades finished investigations. This post is about the ones that never got that far.
Why isn't my AI SRE tool finding the real root cause of incidents?
Before blaming the model's reasoning, find out how the run ended. Ours stopped early in five ways, none of them a reasoning failure:
| What stopped it | What the user saw before | What happens on v1.5.31 | Setting and default |
|---|---|---|---|
| Wall-clock time limit | "Investigation Failed" at a hardcoded 30 minutes | Partial report, reason time_limit, can be continued | INVESTIGATION_TIMEOUT_SECONDS, 3600, clamped to 120 to 10800 |
| Cleanup sweep misreads a quiet run | "Investigation worker died unexpectedly" on a healthy run | Worker writes a heartbeat every 30 seconds; only missed beats count as dead | Not configurable |
| A call that never returns | The run held a worker slot until the time limit | Stopped after 10 minutes without progress, partial report, reason stalled | INVESTIGATION_STALL_SECONDS, 600, minimum 120, 0 turns it off |
| Model error or dead worker | "Investigation Failed" | Partial report, reason error or interrupted | None |
| Alert over the rate limit | No investigation at all, then "Investigation Failed" 20 minutes later | Queued as "Not Investigated Yet" with a reason, started automatically | 5 per 5 minutes, 30 per hour, 6 running, per org. Constants in code |
A sixth, the step limit, has no handling of its own. This paragraph is a reading of the code at v1.5.31, not a tested behavior: no test in the repo covers it and we did not run it. AGENT_RECURSION_LIMIT (240 in .env.example and the Helm values) is passed to LangGraph as recursion_limit, and LangGraph raises an error when a graph "reached the maximum number of steps before hitting a stop condition". In agent.py nothing catches that error by name. It reaches the general exception handler, which records it on the agent state, and the background task turns a recorded agent error on an incident's investigation into an early stop with reason error: a partial report if any evidence was gathered, "Investigation Failed" if not.
The time limit was 30 minutes, hardcoded
Slower models were being killed mid-investigation by a 30-minute wall. PR #760 made it INVESTIGATION_TIMEOUT_SECONDS, default one hour. Three details matter if you run any long agent task on Celery:
- Celery has two limits. The soft one "raises an exception the task can catch to clean up before the hard time limit kills it". Ours fires 60 seconds before the hard one, and that minute is all the cleanup gets.
- The value is read at import, so changing it needs a restart of the worker and chatbot.
- Everything around the task has to outlast it. The Helm chart sets the worker's
terminationGracePeriodSecondsto 3660 and Compose setsstop_grace_period: 3660s, so a rolling update does not SIGKILL a running investigation.
The watchdog that killed healthy investigations
This took three attempts.
Attempt one (v1.5.14): the running investigation refreshed its session timestamp every 5 minutes, so a 20-minute stall sweep would leave it alone. But a second check in the same sweep judged a task dead after 3 quiet minutes, using side effects of progress as evidence: a saved thought, a tool call marked running. None of those move during one long model step. A 5-minute refresh against a 3-minute window is issue #682.
Attempt two (PR #829, v1.5.22): a thread in the worker touches the session every 30 seconds. It is a thread, not an asyncio task, so a blocked event loop cannot stop it. The PR description reports one comparison, a single run on main and a single run on the branch, made by the PR author on a locally booted stack with a real Celery worker and a stand-in model server that answered the only model step after 6 minutes. We did not rerun it for this post. On main, the first sweep past 3 minutes reported the task dead; the task then succeeded in 373.6 seconds with its session marked failed. On the branch, 23 sweeps during the quiet step reported zero dead tasks and the session ended completed.
That fix created the opposite failure. A run hung on a call that never returns now looked alive until the time limit, because a heartbeat only proves the process exists.
Attempt three, same PR: two signals. Liveness is the heartbeat, written to its own heartbeat_at column. Progress is reported by the work: every event from the agent stream counts, and a command or sub-agent that enforces its own timeout registers as a bounded call, which pushes the stall deadline out to that timeout plus a 120-second grace. From progress_watch.py:
if now <= idle_deadline or (latest_bound and now <= latest_bound[1]):
return None
if latest_bound:
started, deadline, label = latest_bound
limit = deadline - started - BOUND_GRACE_SECONDS
return f"{label} ran {int(now - started)}s, past its {int(limit)}s limit"
return f"no progress for {int(now - last_progress)}s"
A 20-minute query with a 20-minute timeout is not a stall; 10 silent minutes with nothing bounded in flight is. The heartbeat thread cancels the run. If the cancel cannot land because a synchronous call is blocking the loop, after 60 seconds the thread stops beating, so the sweep sees a dead worker, and raises Celery's soft time limit to interrupt the call (liveness.py).
We then broke it once more. The stall check cancelled models that think for many minutes before their first token. The first fix gave every model call its own 30-minute allowance and told the agent to wrap up 5 minutes before the time limit. Both were removed before merge (PR #839): the allowance only lengthened the stall window, and the wrap-up notice never reached a model that was mid-think. What we kept: a stall is allowed to happen, and it ends in a report.
An interrupted investigation ends with a report
The evidence was always there: each tool call is written to an execution_steps table as it starts and ends. The run just never reached the code that summarized it.
PR #839 and #841 route every early stop to the summary if at least one evidence tool call returned output. The summary prompt gets this in front of it (summarization.py):
return (
"IMPORTANT: this investigation did not finish; " + why + ". The evidence below is "
"everything it gathered before it stopped.\n"
"- Start the report with this line: \"Investigation incomplete: " + why + "; the "
"findings below are partial.\"\n"
"- Report only what the evidence establishes. Do not present an unconfirmed "
"hypothesis as the root cause: if it was not established, say \"Root cause not "
"determined\", then give the most likely candidates and what would confirm each.\n"
"- In the Not Checked section, list the areas the investigation had not reached."
)
why is one of four fixed strings: "it reached its time limit", "it stopped making progress and was halted", "it hit an error it could not recover from", "the worker running it stopped unexpectedly".
What did not work: the first version saved the agent's context when the run was interrupted, so the summary could cite it. Mid-run the workflow only holds the latest graph step, so the save stored nothing, or could overwrite a good history with a fragment. It was removed. The report is now rebuilt from execution_steps, which also covers a worker that died and never ran any cleanup.
A partial report is treated as less than a finding. It is not used to fold recurring incidents together, it is not added to the Incident Index, and it updates the Slack, Teams and email cards without posting back to PagerDuty, incident.io or ServiceNow. "Investigation Failed" remains for a run that gathered nothing.
Continuing an unfinished investigation
A partial report carries a "Continue investigating" button on the incident page and the Slack card. It calls POST /api/incidents/<id>/continue, which requires incidents:write; the Slack button checks the same permission for the person who clicked.
The continuation runs in the same session, as the incident owner, in read-only Ask mode, with a fresh time budget. It receives the last 150 recorded tool calls as one text block (each output cut at 2,000 characters, 150,000 in total), plus the partial report, with the instruction to start from the areas listed as Not Checked and not to repeat checks that already returned results (continuation.py).
Two things failed here first. Replaying the earlier evidence as synthetic tool-call messages was rejected by one of the model providers we run, so it became plain text, framed as recorded data that must not be followed as instructions. And our own input guardrail flagged the continuation prompt, because it contained Aurora's report. Only the fixed sentence "Continue this investigation." goes through the rail now.
An incident can be continued 3 times (MAX_CONTINUATIONS). The description of PR #839 reports one live run by its author, on a local stack with the limit set to 3 minutes: the investigation stopped after 23 tool calls, a continuation ran 27 more and hit the limit again, and the report was rewritten over all 50. That is a single run, not a benchmark, and we did not repeat it for this post.
Alerts that never got an investigation
Each alert webhook used to check a Redis counter: 5 background runs per user per 5 minutes, shared with actions, postmortems and chat-triggered runs. Over the limit it logged "rate limited" and returned. No task, no session, nothing on the incident. Twenty minutes later the stale sweep found an incident with no session and marked it failed. A burst of alerts from a newly connected monitoring source could end as a list of "Investigation Failed" for alerts nothing had looked at.
PR #873 sends all 17 alert sources through one function with a per-org budget, checked in the order concurrency, hourly, window (rca_dispatch.py):
WINDOW_SECONDS = 300
MAX_PER_WINDOW = 5
MAX_PER_HOUR = 30
MAX_CONCURRENT = 6
Over budget, the incident is set to queued with the reason and the exact prompt it would have run. A beat task drains the queue every 60 seconds, most severe first, then oldest, taking one row at a time with FOR UPDATE SKIP LOCKED, which PostgreSQL documents as a way "to avoid lock contention with multiple consumers accessing a queue-like table". An incident whose start fails 3 times in a row is shown as an error. "Run investigation now" starts a queued incident by hand and skips the budget, because a person chose to spend it.
The first version also grouped a settled burst from one source into a single investigation. We removed it before merge: the alert correlator already folds related alerts into one incident at ingest, so a second grouping layer was redundant state.
The concurrency cap exists because investigations run for many minutes, so a rate limit alone lets dozens overlap. Unit tests replay a synthetic burst, larger than the hourly budget, against an in-memory store and assert that no alert ends in error, each gets exactly one investigation and no more than 6 run at once. That simulates the dispatcher; it is not a load test.
Are AI SRE agents production-ready in 2026?
Our position: benchmark accuracy does not answer that. What happens when a run does not finish does. When you evaluate an AI SRE platform, or compare the tools on the market, ask four things: what is the time limit and what does the user get when it is hit, how does the system tell a slow step from a hung one, what happens to alert number 40 in a storm, and can a stopped investigation be resumed without paying for the first half again.
The strongest objection is that a partial report is worse than a failure, because someone will read a guess as a conclusion. That is why the report must open with "Investigation incomplete", must say "Root cause not determined" when it was not, and is kept out of recurrence matching and the pager systems. It is still model-written text following an instruction, and we have no measurement of how often it complies.
What is still unsolved
- The alert budget (5, 30, 6) is constants in code, not a setting per org or an env var.
- A model call that stays silent longer than
INVESTIGATION_STALL_SECONDSis still stopped. It now ends in a partial report, and raising the setting is the only remedy. - Only the PagerDuty and ServiceNow paths retry a dispatch that failed on a temporary database error. For other sources the incident shows as failed after 20 minutes.
- Queued alerts appear in the incidents list only. No Slack or Teams card is posted for them.
- Per the PR, the Slack button click and the dead-worker report path were unit-tested, not exercised live.
- The step-limit path described above is read from the code and has no test.
- We have no quality measurement of partial reports or continued investigations.
Try it
Nothing here needs turning on. On v1.5.31 or later, partial reports, "Continue investigating", the queue and "Run investigation now" are the default behavior. On a self-hosted install these are the settings, in .env or Helm values, followed by a restart:
INVESTIGATION_TIMEOUT_SECONDS=3600 # 120 to 10800
INVESTIGATION_STALL_SECONDS=600 # minimum 120, 0 turns the check off
BACKGROUND_CHAT_RATE_LIMIT_MAX=20 # non-alert runs per user per 5 minutes, 1 to 1000
AGENT_RECURSION_LIMIT=240
To see a partial report on purpose, set INVESTIGATION_TIMEOUT_SECONDS=180 on a test install, restart, and send an alert.
- GitHub: github.com/Arvo-AI/aurora
- Hosted: aurora-ai.net
- Book a demo: cal.com/arvo-ai/demo
Sourcing note. Verified against Aurora v1.5.31 on 2026-12-02. Behavior is read from the source at that tag and from pull requests 760, 829, 839, 841 and 873; the two measurements quoted come from the descriptions of PRs 829 and 839, were each a single run by the PR author on a local stack, and were not rerun. The step-limit behavior is read from the code only. No lab run was made for this post.