If your incident platform runs the Slack channel and the timeline but does not diagnose the failure, the diagnosis has to be written into that platform or nobody reads it. Aurora SRE, our open-source investigation agent, posts its root cause as an incident.io update or alert note, a PagerDuty note, a Jira comment, a ServiceNow work note, and a reply under the original alert in Slack. Every write to a system of record is off until you turn it on, and each is posted at most once.
We learned the first half of that the slow way. The first incident.io post-back was a Celery task queued when the investigation started. It checked the database for a finished summary, retried twice at 120-second intervals, and gave up (removed in PR 681). An investigation that outlasted the retries posted nothing, alert-triggered investigations were skipped, and what did post was the raw markdown summary. Jira had the opposite problem: Aurora commented on tickets whenever Jira was connected, asked or not.
This is the write-back design that replaced both, with the code.
Which incident tools does the root cause get written to, and what is on by default?
| Platform | What starts an investigation | Where the RCA lands | On by default? | Setting |
|---|---|---|---|---|
| incident.io | Incident webhooks and alert webhooks (both on by default, alerts filtered by minimum severity) | An incident update; an alert note when the alert never attached to an incident | No | "Post RCA to incident.io" (incidentio_postback_enabled) |
| PagerDuty | incident.triggered webhook | A note on the PagerDuty incident; a short pointer note on a recurrence | No | "Post RCA notes to PagerDuty" (pagerduty_incident_notes) |
| Jira | Webhook, then Filters mode (default; no saved filter means nothing runs) or Auto mode (an LLM judge) | One comment on the matching ticket | No | "Comment back on Jira tickets" (jira_comment_back) |
| ServiceNow | Business Rule webhook, then Filters (default; no filter means nothing runs) or Auto | A work note on the incident | No | "Post work notes on ServiceNow incidents" (servicenow_work_notes_enabled) |
| Slack alert thread | A CloudWatch, Sentry, PagerDuty or incident.io alert that started an investigation | A reply under the provider's own alert message | Yes | "Reply to the alert with the RCA", one switch per source (slack_<source>_rca_replies) |
All of it hangs off one hook, notify_investigation_completed. Two conditions apply to everything that hook sends. A report that stopped early (time limit, stall) is not a conclusion and is never posted back. A follow-up chat that re-summarizes an incident is a refresh and is never posted back either. The PagerDuty, incident.io and ServiceNow notes also skip a root-cause paragraph under 80 characters as too thin to post. (The Jira comment is a separate step, covered below.)
Slack is the exception to opt-in: the thread reply is on by default. Turn it off for one alert source with that source's "Reply to the alert with the RCA" switch on its connector page, or for all four with "Alert thread replies" in the Slack settings. A team might want it off because the reply is the full report and notifies everyone following the alert thread, which is a lot for a busy alerts channel, or because the same root cause already lands as a PagerDuty note or incident.io update.
What should an AI incident summary look like in a pager note?
Short, fixed in shape, and built by code. The investigation report is long: what happened, root cause, impact, ruled out, not checked, next steps. A pager note is read on a phone. So rca_note.py pulls two paragraphs out of the report by section heading (with a fallback for reports the model wrote without headings) and caps each part: root cause at 1,200 characters, impact at 500, three next steps at 240 each. Those caps keep the whole note under about 2,800 characters.
This is the PagerDuty note, built from the compose_note format strings with placeholders where the report text goes:
Aurora RCA
Root cause
<root-cause paragraph>
Impact
<impact paragraph, when the report has one>
Next steps
- <up to 3 steps, 240 characters each>
Full investigation: <FRONTEND_URL>/incidents/<incident id>
Generated automatically by Aurora. Verify before acting.
The next steps arrived in PR 824, from a "Suggested Next Steps" section the summary prompt now asks for: at most three bullets, action verb first, naming the concrete resource. Only the PagerDuty note carries them. The incident.io and ServiceNow notes stop at root cause, impact, link and disclaimer.
Each platform renders something different
PagerDuty gets plain text. We strip markdown, citations and code fences before posting. Aurora posts one note and does not edit it afterwards. PagerDuty's API has update and delete endpoints for notes, and Aurora calls neither. For the reader that means the note is a snapshot of the report at completion: if the investigation is refined later in chat, the note stays as posted and its link leads to the current version.
incident.io takes markdown: its API reference describes the incident update message as "in markdown" and the alert note content as a "Markdown body". We posted two probe updates to a real account to see what the dashboard renders. Single newlines collapsed into one paragraph, so blocks are separated by blank lines. Backslash escapes were shown literally. That left asterisks, and the fix is a character swap:
# A bare asterisk opens emphasis in markdown ("p95*2 nodes and 3*4 workers" italicises the
# middle); the look-alike operator renders the same and is inert. Backslash escapes are shown
# literally by incident.io, so they cannot be used; underscores inside identifiers render as-is.
_MD_INERT_STAR = "\u2217"
def _markdown_safe(text: str) -> str:
"""Body text that cannot open markdown emphasis."""
return text.replace("*", _MD_INERT_STAR)
Jira Cloud stores comments as Atlassian Document Format, a JSON tree with a doc root. The agent writes markdown and markdown_to_adf converts it; for Jira Data Center the same tree is flattened to plain text.
ServiceNow gets the plain-text note as a work_notes value in a Table API PATCH to the incident record.
Jira differs in a second way. The other notes are composed by code from the finished report. The Jira comment is written by the agent in a follow-up step: it searches for a matching issue with JQL, then files exactly one comment from a template in the prompt.
How do you stop an AI agent from posting the same note twice?
A post-back notifies people the moment it lands. So the rule in postback_claim.py is that a lost note is acceptable and a duplicate is not.
Each system has a column on the incident row (pagerduty_note_id, incidentio_update_id, servicenow_note_id). Before the POST, a conditional UPDATE ... WHERE <column> IS NULL sets it to pending. After the POST it holds the remote id. What happens on failure depends on what we know. This is the ServiceNow handler; the PagerDuty and incident.io ones have the same shape:
if e.status_code is None or e.status_code >= 500:
# No response, or a 5xx a gateway may have returned after the note was
# written: the outcome is unknown. Keep the claim (a lost note beats a duplicate).
logger.warning(
"%s No definitive answer from ServiceNow for incident %s; claim kept to avoid a duplicate: %s",
_LOG, incident_id, e,
)
return
_claims.release(incident_id, user_id)
A 4xx is a definite no, so the claim is released and a later completion can retry. On PagerDuty and ServiceNow a 403 also switches off the stored write capability. A timeout or 5xx keeps the claim forever.
incident.io gives us a second guard on one path only. Incident updates take an idempotency_key (we send aurora-rca-<incident id>). Alert notes have none, so for notes the claim is the only thing between a retry and a duplicate.
What happens on a recurrence or an alert storm?
Aurora can fold a new incident into an earlier one as a recurrence. Each platform needed its own answer.
- PagerDuty. Until PR 824 a folded incident got no note. Now it gets a short one: which incident it repeats and when, that incident's root cause cut to two sentences, and a link. Because the note is never edited, a recurrence of an incident still under investigation says so instead of reporting no root cause. Two folded incidents can share one PagerDuty incident, so that claim takes a Postgres advisory lock on (org, PagerDuty incident) first.
- incident.io. Several alerts of one recurrence group attached to the same incident get one update, from the first investigation. In review, that guard turned out to read only the first 50 alert links of an incident, so a bigger storm, the case the guard existed for, could post a duplicate. The lookup now pages, and a test covers 52 alerts.
- ServiceNow. Recurrences post nothing.
What if there is no incident object?
This is the case we got wrong three times.
An incident.io alert can escalate and page someone without ever being attached to an incident. There is no timeline to post to, so the first version skipped it. PR 687 posts an alert note instead.
That assumed one alert has one timeline. With alert grouping, grouped alerts share one thread, and a storm would have put a full RCA per alert into it. The second attempt skipped every alert after the first, which was also wrong. What shipped: the first investigation posts the full RCA once on the group. Each later alert gets a short "Correlated alert" note with links to both investigations. If a later investigation found something the group note does not already contain, the group note is edited and the finding appended under "Also found".
The agent had the same blind spot when reading: its incident.io tool could only load a record by incident id. PR 776 added a lookup by alert id, or by the source system's id through the deduplication_key[is] filter.
In Slack there is no object at all, only a message another app posted. Aurora looks through the channels its bot is in for a top-level message from the provider's Slack app, within 180 seconds of the alert, that carries the provider's own link, alarm ARN or issue id. If two messages match, or a second incident could claim the same message, it posts nothing (PagerDuty copies in several channels are settled by the configured incidents channel). The first version relied on client_msg_id alone to prevent a second reply on a retry. Slack's chat.postMessage reference does not list it as an argument, so the retry now reads the thread first and looks for its own delivery id in message metadata.
How do you keep an AI agent from spamming Jira tickets?
Three changes, each undoing a default.
Commenting became opt-in (PR 690). The old jira_mode preference defaulted to comment_only, so a connected Jira was a Jira that got comments. The new gate is strict:
def jira_comment_back_enabled(user_id: str) -> bool:
"""True only when the org opted in. Unset stays off, unlike the old jira_mode default."""
# Anything other than an explicit true stays off.
return get_user_preference(user_id, JIRA_COMMENT_BACK_KEY, default=False) is True
Existing installs stopped commenting on upgrade until someone flipped the switch. The check runs when the tool list is built and again inside each write tool, because a cached tool list can outlive a settings change. A person asking in chat is not gated; only unattended investigations are.
Starting an investigation became opt-in (PR 712). Bug, Incident, Problem, Defect and Production Issue tickets used to start one automatically. Now nothing runs until a filter is saved.
The approach we removed. One iteration let ticket comments edit those filters through an LLM. The Jira webhook carries no secret and its URL is the only credential, so anyone who could comment on a ticket could rewrite an org's rules, and Aurora's own RCA comment fed back into the editor. It was deleted before merge. Auto mode (PR 720) replaced it: an LLM judge reads each new or changed ticket against a policy memory the team edits, treats ticket text as untrusted data, never runs on comment events, is capped at 120 judgments per org per hour, and fails closed.
What is still unsolved
- A claim left
pendingafter a timeout is never reconciled. The RCA is in Aurora, and the note is lost. - The Jira comment lands on whatever the agent's JQL search finds, which is not guaranteed to be the ticket that started the investigation. There is no claim column; the duplicate check scans the session for a successful Jira tool call.
- We found no way to test an incident.io key's write permission without posting, so the settings page infers it from the key's roles and warns. If that lookup times out, the toggle is allowed on.
- The Jira webhook is still unauthenticated. The judge budget bounds the cost, not the cause.
- We have no measurement of whether responders read these notes more than a separate notification. This design is an argument, not a result.
The strongest objection is that at-most-once is the wrong trade: a lost root cause costs more than a repeated one. We still think duplicates are worse here. A second identical note in a pager timeline trains people to ignore the first.
A posted note is not a post-incident review; that is a different job. Related: PagerDuty vs Jira Service Management, open-source alternatives to incident.io and open-source AI SRE agents compared.
Try it
Connect the platform under Connectors, add its webhook, then:
- incident.io: turn on Post RCA to incident.io. The API key needs the Edit incidents permission for updates, and the on-call resources permission (role
on_call_editor) for alert notes. - PagerDuty: turn on Post RCA notes to PagerDuty. Aurora re-validates that the credentials can write incidents before saving.
- Jira: save at least one filter (or choose Auto), then turn on Comment back on Jira tickets.
- ServiceNow: save a filter (or choose Auto), then turn on Post work notes on ServiceNow incidents.
- Slack: the reply is already on. Turn it off per source with Reply to the alert with the RCA.
Source: github.com/Arvo-AI/aurora. Hosted: aurora-ai.net. Walkthrough: cal.com/arvo-ai/demo.
Verified against Aurora v1.5.31 on 2026-12-02. Vendor API behaviour checked against the linked incident.io, PagerDuty, Atlassian, ServiceNow and Slack pages the same day.