Investigations
How Maple AI investigates an error, alert, anomaly or question: how one starts, what the agent reads, the diagnosis it returns, follow-up questions, AI credits, limits and permissions.
An investigation is Maple AI working out what happened. One agent reads the traces, logs and metrics around an incident (and your source code, when GitHub is connected), tests the likely explanations, and comes back with a diagnosis: a cause, the evidence for it, what it ruled out, and what to do first.
Every investigation is listed under Investigations in the sidebar. Each one opens in its own workspace with the diagnosis, the evidence, a chat for follow-up questions and the full transcript.
An investigation is one agent pass. A run past 15 minutes that has recorded no progress for 5 minutes is marked failed. It ends when the agent files its diagnosis. After that it stays open for your questions.
Start an investigation
| From | How |
|---|---|
| Investigations page | Type a question in the box (“Why did checkout latency spike this afternoon?”) and click Investigate. |
| An error issue | Click Start investigation on the issue page. Shown for issues from exceptions. |
| An alert incident | Click Investigate on the incident page. |
| An anomaly | Click Open investigation on the anomaly page. |
| Automatically | With auto-triage on, Maple investigates new error, alert and anomaly incidents. |
| A merged fix | When fix verification cannot decide from occurrence counts alone, Maple runs a short investigation to check whether the fix holds. These show as Fix check. |
Once an incident has an investigation, the same button reads Open investigation and takes you to it. An incident has at most one investigation. To try again, open it and click Run again.
The Investigations page has two tabs: Active for investigations that are in progress or diagnosed, and History for inconclusive, resolved and failed ones. Filter by kind (Error, Alert, Anomaly, Question, Fix check) or search subjects and findings. Each row shows whether it was Manual or Automatic.
What the agent reads
The agent starts from the subject: the error’s fingerprint and samples, the alert rule and the window it fired in, the anomaly’s service and signal, or your question and the page you asked from. It pins every query to the incident’s time window, then works through the evidence with read-only tools:
- Errors and services: error details for the fingerprint, and a health summary of the affected service.
- Traces: one or two representative traces, read span by span.
- Logs: log search and log patterns over the same window, including patterns a deploy introduced or multiplied.
- Comparisons: before and after periods, the operations that turned new, failing or slower since a deploy, and the service map for upstream and downstream causes.
- Source code: when the GitHub integration is connected and your telemetry reports
vcs.repository.url.fullorvcs.ref.head.revision, the agent searches and reads your repository at the deployed commit, including its git history. Access is read-only, and code that only looks suspicious is never treated as proof without runtime evidence.
Before it concludes, the agent is asked to name another cause that would produce the same symptoms and test it. Telemetry and source files are treated as data, never as instructions.
The diagnosis
The investigation page has four tabs:
- Overview: the verdict, the affected scope, the services touched, the incident window, logs and traces from that window, and where the investigation came from (Origin, the linked issue or incident).
- Evidence: the traces, log patterns and services the diagnosis cites. Shown when there is some.
- Chat: follow-up questions (see below).
- Transcript: every step the agent took, with each tool result rendered as a structured view. While the pass runs, this tab shows what it is doing.
The verdict leads the Overview:
| Part | What it says |
|---|---|
| Suspected cause | A one-line headline, then the cause and the mechanism that produces the symptoms. |
| Confidence | High, medium or low. High only when several independent signals agree. |
| AI severity | The agent’s severity assessment: critical, high, medium or low. |
| Time to diagnosis | How long the pass took. |
| Suspect commit | The commit the agent holds responsible, when the cause is one change it could pin to a commit it saw. |
| What to do | Ordered, concrete next steps. |
| Ruled out | Causes the agent tested and eliminated, each with the evidence that eliminated it. |
When the agent cannot establish a cause, the result is Inconclusive: a Partial result that says No cause established, lists what it Ruled out, and what it Couldn’t check and why (for example, a metric your service does not emit). An honest “unknown” with its eliminations is a valid answer, not a failure.
On an error issue, the diagnosis’s severity sets the issue’s severity unless someone set one by hand, and can trigger severity escalation. An inconclusive result never changes the issue’s severity.
Follow-up questions
Open the Chat tab to ask about the diagnosis: challenge the cause, widen the window, or check another service. The agent answers with the same tools and the evidence it already gathered. You can ask while the first pass is still running.
When you ask the agent to change something (create an alert rule, move an issue to another state, propose a fix), it proposes the change as a card marked Approval required. Nothing happens until someone clicks Approve. Deny discards it.
Hand off the fix
Once there is a diagnosis, Fix in Claude Code in the header opens your coding agent with the diagnosis filled in as a prompt. Nothing runs until you send it. The arrow next to it switches to Cursor or VS Code (remembered for next time) or Copy prompt. With a suspect commit, the coding agent opens the repository at that commit.
Investigations do not open or attach pull requests themselves. Attach the fix’s pull request to the error issue from its Pull requests panel, and fix verification checks it after merge.
Status
| Status | Meaning |
|---|---|
| In progress | The agent is gathering evidence. |
| Diagnosed | The agent filed a diagnosis. |
| Inconclusive | The agent finished without establishing a cause and filed a partial result. |
| Failed | The pass broke or ended without a report. |
| Resolved | Someone closed it. |
From the header:
- Resolve (or Mark resolved in the menu) closes a diagnosed, inconclusive or failed investigation.
- Reopen brings a resolved one back to the status its last run reached.
- Run again starts a fresh pass on any investigation that is not in progress.
If a pass runs out of time before it files a diagnosis, Maple asks the agent once more to file what it has. That result lands as Inconclusive, never as a diagnosis.
Automatic investigations
Auto-triage investigates new incidents without anyone asking: new error incidents, alert rule incidents and anomalies. It is in early access. Contact support to turn it on for your organization. Until then, Settings → AI shows the Auto-triage section as Coming soon.
Once it is available, configure it under Settings → AI → Auto-triage:
- Investigate new incidents turns it on or off. It applies right away.
- Investigations per day caps automatic starts per UTC day (250 by default).
- Advanced limits has Model passes per day (1,000 by default), the spend ceiling. Three tenths of it is reserved for high and critical incidents, so a burst of low-severity noise early in the day cannot use up the budget an outage needs.
Auto-triage skips an incident when an investigation would add nothing:
- The issue is no longer in Triage or Regressed, because someone already took it.
- An investigation for the issue is already running.
- The issue was diagnosed recently: within 7 days for errors, within 1 day for alerts and anomalies. A regression always gets a new investigation.
- A quick model check judges the incident to be noise, or already explained by an earlier diagnosis.
Investigations you start or run again yourself skip these checks.
Severity escalation under Settings → Automation routes issues to destinations by the severity and confidence a diagnosis sets. See Severity.
AI credits and limits
Each investigation, and each follow-up question, uses AI credits. A model call is priced at what the model provider charged, plus 20%, and one credit is one dollar. See where credits went under Settings → Billing & usage → AI credits.
- When your credits run out or your spending cap is reached, new investigations fail with that reason until credits are available again.
- With your own OpenRouter key under Settings → AI → Model provider, OpenRouter bills the tokens and Maple stops charging AI credits.
- Maple AI needs a card on file during a free trial, and an active plan afterwards. Until then, the Investigations page shows Add a card to turn on Maple AI or Maple AI needs an active plan in place of the question box.
The daily auto-triage limits count manual starts too, but never refuse them. When an automatic limit is reached, the Investigations page says so (for example, Today’s investigation limit is reached) with a link to raise it. Ordinary automatic starts stop at 70% of each limit. The last 30% is kept for high and critical incidents, which stop only at the full limit.
Permissions
| Action | Permission | Built-in roles |
|---|---|---|
| View investigations | Read telemetry (telemetry:read) |
Every role |
| Start, run again and ask follow-up questions | Run investigations (investigations:run) |
Member, Engineer, Admin |
| Approve changes the agent proposes | Approve Maple AI actions (ai:act) |
Member, Engineer, Admin |
| Change auto-triage settings | Configure AI triage (ai_triage:configure) |
Engineer, Admin |
See Roles.
Work with investigations from an assistant or the API
The MCP server has get_investigation, which returns one investigation by its inv_… id: its subject, status and the diagnosis with evidence. The investigations group of the REST API lists, starts, gets and restarts investigations.
Troubleshooting
- The question box is missing. Maple AI is waiting on a card or a plan, or you lack Run investigations. Check Settings → Billing & usage and your role.
- No automatic investigations appear. Auto-triage is in early access and off by default. When it is on, check Investigations per day and the skip rules above: an issue someone already took is not investigated again.
- An investigation failed. Open it to see the reason, such as AI credits running out, then click Run again.
- Inconclusive results keep naming missing data. Read Couldn’t check. It names the instrumentation or access that would have let the agent answer, such as a metric your service does not emit or a repository that is not connected.
- The agent never looks at code. Connect the GitHub integration and report
vcs.repository.url.fullandvcs.ref.head.revisionon your resources so the agent knows which repository and commit to read.