How the investigation engine works

How the investigation engine works

Step by step: investigate a technical ticket, ask the customer for missing details, review and approve the report, and set the investigation policy — plus how the intake, agents and history work.

An investigation plan: possible causes, the evidence each needs, and which is found, contradicted or still open

When a technical ticket arrives, TR Investigate opens an investigation and runs specialist agents over a durable task graph. They read your connected systems and the customer’s authorized evidence, keep every fact with its source, and report possible causes as hypotheses until a person confirms one. Nothing in the engine calls an AI model. This page walks through each task step by step, then explains how each part works.

Before you start

  • Who can do what: anyone with the Support Agent role or above starts, reads and works investigations. Approving an investigation needs the “Approve risky changes” permission (Support Leads, Managers and admins). Only admins change the investigation policy.
  • What makes investigations better: connect your monitoring tools (Investigate → Observability), deployment tool (Deployment intelligence), API files (API workbench) and configuration snapshots (Configuration drift). The engine works without them, but the plan then marks those sources as “not connected”.
  • History: earlier cases come from tickets resolved by your team (imported history and newly closed tickets) and from investigations where a person confirmed the cause. Nothing extra to set up.

Step by step: investigate a technical ticket

  1. 1
    Start the investigation
    Open Investigate → Investigation overview. Under Start an investigation, choose From a ticket, pick the help desk, type the ticket number and press Investigate. To have this happen without anyone pressing a button, turn on Investigate technical tickets automatically under Investigate → Integrations → Investigation settings and choose the lowest severity.
  2. 2
    Open the Investigation tab
    Open the investigation from the list and select the Investigation tab. The analysis takes a few seconds; if the agents are still running, refresh the page.
  3. 3
    Check the technical intake
    Under Technical intake, check the category and the words that put the ticket there, then the module, version, environment, impact, errors, steps to reproduce and expected vs actual behaviour. Each value comes from the customer’s own words. If something important is wrong, it usually means the ticket was unclear: ask the customer (step 7).
  4. 4
    Check what the agents did
    Under Agents, every specialist shows a tick, a cross or a dashed circle. A cross means that source failed (its error is shown, for example an expired key); a dashed circle means it was skipped, for example because the investigation policy switched it off. The report says which evidence is missing because of it.
  5. 5
    Read the possible causes
    Under Possible causes and their evidence, each cause shows the evidence that supports it, is consistent with it and contradicts it, followed by its plan: what it still needs and from whom. Evidence found, Contradicted, Open, Source not connected and Ruled out are the plan states. A cause with contradicting evidence is kept for you to judge — the engine never removes it on its own.
  6. 6
    Check the evidence checks and earlier cases
    Under Evidence checks, look for warnings: evidence observed long before the report, text that looked like instructions (treated as data only), causes that rest only on what was reported, or causes with contradicting evidence. Under Earlier cases, a verified resolution is the strongest lead; tried before and failed tells you what not to repeat; not the same problem marks a ticket that is only worded alike.
  7. 7
    Ask the customer for what is missing
    Under Ask the customer, the missing items are listed (for example the exact error, version and environment, or who is affected). Press Create the request, then Copy and paste the line into your reply on the ticket. TR-AI does not send it for you. The customer opens a short form, chooses what to share and sends it.
  8. 8
    Let the investigation continue
    When the customer sends the form, their details are added to the evidence timeline as reported by the customer, the request shows answered, and the analysis runs again on its own. You can also press Re-run with fresh evidence at the top of the investigation at any time.
  9. 9
    Confirm or rule out causes
    On the Findings tab, press Confirm on the cause the evidence proves, or Rule out on one it disproves (Undo reverses it). Only a person can confirm a cause; ruling one out removes it from the plan and moves the others up.
  10. 10
    Submit for review
    Back on the Investigation tab, under Review, press Submit for review, and add a note in the ticket or your team channel for the reviewer. The section shows Waiting for review until it is decided.

Step by step: review and approve an investigation

  1. 1
    Open the investigation waiting for review
    Open it and select the Investigation tab. The Review section shows who submitted it and their note.
  2. 2
    Check the evidence behind the leading cause
    Read the possible causes with their supporting and contradicting evidence, the evidence checks and the plan. Look in particular for causes that rest only on reported evidence, and for contradictions.
  3. 3
    Approve, or return it with a reason
    Press Approve (a reason is optional), or type what needs to change and press Return for changes (a reason of at least five characters is required). You can’t approve an investigation you submitted yourself while someone else in the workspace can review it.
  4. 4
    What approval does
    The report is frozen exactly as it was approved, with its SHA-256 fingerprint, and the approval is recorded in the investigation’s audit history. If a later re-analysis changes the report, the Review section says the report changed since. Submit it again to approve the new version.

Step by step: set the investigation policy (admins)

  1. 1
    Open the policy
    Go to Investigate → Integrations and find Investigation policy. The heading shows the current version.
  2. 2
    Set the limits
    Runs per investigation per day (1–200, default 20) stops one investigation from re-running endlessly; Runs per workspace per day (10–10,000, default 500) caps the whole workspace. A run over a limit is refused with the reason, and the investigation keeps its last report.
  3. 3
    Choose the agents
    Tick the optional agents to run: logs and stack traces, documentation research, historical correlation, configuration analysis, and evidence verification and plan. The core agents (intake, telemetry, API diagnostics, deployments, knowledge, synthesis, root-cause engine and remediation advisor) always run.
  4. 4
    Set the history window
    History window (days) (30–1,825, default 730) is how far back earlier tickets and investigations are compared.
  5. 5
    Decide on automatic requests
    Tick Prepare a request for missing information automatically to have the link ready on every investigation with missing details. A person still sends it.
  6. 6
    Save
    Press Save. Each save is a new version, listed under History with who changed it. Every run records the version it ran under (shown under Agents on the Investigation tab).

What the customer sees

  1. A link in your reply opens a short form for the details you asked for: the exact error, steps with expected and actual behaviour, version and environment, when it happened, and who is affected.
  2. Optionally, they allow a few browser checks (time zone, language, screen size, connection and whether they can reach your app); each can be unticked.
  3. They press send. They can send up to five times on the same link, and the link expires after 21 days.

How it works

Technical intake

The ticket is classified into one or more technical categories, each with the words that put it there:

  • software defect, configuration, authentication and authorization, API and integration, database and infrastructure;
  • performance, deployment and version compatibility, data synchronization, user- or environment-specific.

The intake extracts the module, software version, environment, error messages, stack traces, steps to reproduce, expected and actual behaviour, business impact and severity, and times. Every value keeps the sentence it came from. What’s missing is listed as questions for the customer. Billing and how-to questions aren’t treated as technical.

The agents

AgentWhat it does
IntakeTicket, customer, history and which evidence sources exist; the technical intake
TelemetryProduction errors, log search, traces, metrics, Kubernetes, PagerDuty
Logs and stack tracesExceptions, frames and error signatures from the ticket, Connect evidence and log search
API diagnosticsFailing API test requests linked to the ticket
Configuration analysisConfiguration differences before vs now and vs a working environment; configuration the customer shared
DeploymentsReleases before the report, compared before and after
KnowledgeKnown issues, incidents, related tickets, failing synthetic checks
Documentation researchKnowledge-base sections that mention the error or the symptoms
Historical correlationEarlier tickets and investigations with the same error signature
SynthesisCorrelations, possible causes, conflicts between agents, the report
Root-cause engineTests competing hypotheses with read-only diagnostics
Evidence verificationStale, untrusted, reported-only and contradicted evidence; the plan; what to ask
Remediation advisorProposes next actions — each needs a person to run or approve it

Independent agents run in parallel and share one context, so nothing is gathered twice. An agent that fails or times out is recorded, and the report names what is missing. If the server restarts mid-run, the run resumes from the agents that finished.

Historical incidents

  • An earlier case counts only when something technical matches: the same error signature, shared error terms, or the same module or symptoms. Tickets that are only worded alike are listed as rejected.
  • A resolution verified in production outweighs a ticket a person resolved, which outweighs an unverified fix. A fix that was tried and failed counts against.
  • A different major version lowers the match. Only tickets resolved by people are used, never TR-AI’s own answers.

The plan and evidence checks

Evidence gathered for a plan item is marked “consistent with” the cause, never as proof. Only the root-cause engine’s diagnostics and people mark evidence as supporting or contradicting. Customer-reported evidence never counts as measured.

API

Dashboard API (session)
GET  /api/trial/:trialId/investigate/:id/workspace         intake, agents, hypotheses with evidence, plan, checks, requests, reviews, timeline
POST /api/trial/:trialId/investigate/:id/request-info      { ask?: ["error","steps","environment","when","scope"] } → { url, line }
POST /api/trial/:trialId/investigate/:id/review/submit     { note? }
POST /api/trial/:trialId/investigate/:id/review/decide     { approve: true|false, reason }      (approvals.decide)
GET  /api/trial/:trialId/investigate/:id/review/approved   the frozen report with its sha256
GET  /api/trial/:trialId/investigation-policy              policy, version, history
PUT  /api/trial/:trialId/investigation-policy              (admin) { runsPerInvestigationPerDay, runsPerWorkspacePerDay, agents, historyDays, autoRequestMissingInfo }
POST /api/trial/:trialId/investigate/:id/analyse           re-run on the latest evidence (429 when over budget)

Troubleshooting

  • “Not extracted yet” under Technical intake: the investigation was analysed before this release. Press Re-run with fresh evidence.
  • Create the request is missing: the investigation has no ticket (it started from an alert or a description). Ask from the ticket, or start a Connect session.
  • “already ran … times in the last 24 hours”: the run limit was reached. Add evidence and try later, or ask an admin to raise the limit.
  • “Someone other than the person who submitted it must review it”: ask another Support Lead or Manager to approve it.
  • An agent shows a cross: open its error. Usually a connector key expired or a tool is down; fix it under Integrations and re-run.
Note:Every investigation route checks the workspace and the role. Another workspace’s investigation answers 404.