A Rovo agent working in Jira or Confluence operates on sensitive ground. For many teams, these systems are the authoritative source for decisions, responsibilities, and the status of a project. If an agent invents a decision that was never made while summarizing, that decision gets quoted, copied into a ticket, and may well influence real (and bad) follow-up decisions.
Like it or not, hallucinations are part of how generative models work. What you can change is how you deal with them: you can make them visible, measure how often they occur, and reduce them in a targeted way. Part 1 of this series shows how to detect and measure hallucinations in custom Rovo agents; Part 2 covers how to contain them. The focus is on the rovo:agent module. Most of the techniques carry over to your own logic built on the Forge LLMs API, where they are even easier to apply, because there you can also capture the model’s final answer yourself.
A Rovo agent doesn’t just generate text; it also calls actions, usually Forge functions (or Forge Remote endpoints) that read or modify data. This results in two kinds of hallucinations.
The agent reads real data but misrepresents it: it draws conclusions the material doesn’t support, attributes statements to the wrong person, or turns a proposal into a decision. Because the answer is based on real content, it sounds credible.
A special case is invented action inputs: the agent calls the right action but passes an issue ID or space key it has never read.
Here, the issue isn’t what the agent says, but what it does or claims to do:
The language model never executes anything itself; that is always done by the action’s code. Hallucinations arise when deciding which action to call with which inputs, and when reporting back to the user. That’s where verification has to start.
Not every error is a hallucination, though: if an action fails because of a missing permission or an unreachable API, the cause lies in the code or the environment, not in the model. One exception: if the API reports that an issue doesn’t exist because the agent passed an invented key, that is a hallucination after all. The inputs in the log show which case applies.
Checking answers for plausibility works poorly. After all, hallucinations are a problem precisely because they sound plausible. The better question is: can the answer be backed up?
Every action writes a log entry on every call, always with the same fields, so the entries can be evaluated automatically:
| Field | Content |
|---|---|
| Call ID | Unique ID per call, generated by the action itself |
| Action | Which action was called |
| Inputs | Identifiers among the inputs, e.g. sprint ID or issue key; no free text |
| Status | Success or error type, such as validation, permission, API |
| Reason | For errors, the cause, such as “Issue does not exist” |
For write actions, “success” should mean that the target state has been reached, not merely that the API call went through. Personal content, including free-text inputs, doesn’t belong in the entries; IDs and status are enough. Even an account ID counts as personal data under GDPR, so only log it if you actually need it.
In a test run where you read along with the agent’s answers, every claim can be checked against the log. If the agent reports “done” and no entry exists, that’s a claimed execution. If it reports an error even though the log shows success, that’s a concealed one. If the log shows a different action than expected, the agent chose wrong. This only works if every action logs reliably. Rovo doesn’t pass a conversation or request ID to actions, so you assign log entries to a test case via the time of the run. If you run the cases one after another, the assignment stays unambiguous.
When an action validates its inputs against the actual data, that is first and foremost a safeguard; more on that in Part 2. At the same time, it provides a measurement signal: if you log rejected inputs, you can see how often the agent passes invalid references. The signal alone doesn’t tell you whether a value was invented, copied incorrectly, or given incorrectly by the user, but a rise is a clear reason to take a closer look.
Content hallucinations are hard to detect from action logs alone: the logs show which data the agent retrieved, not whether it reproduces that data correctly. An instruction in the prompt helps here: for every factual claim, the agent cites its source, such as the issue key or the page URL. Page titles are less suitable, since they aren’t unique across spaces. This doesn’t prevent hallucinations, but it makes them verifiable: does the source exist, and does it support the claim without leaving out significant qualifications? The second part is crucial. A page can exist and propose a measure without showing that the measure was actually decided.
As an app developer, you don’t see the conversations between users and the agent, only what your actions log. That means you can only evaluate the agent’s text in test runs. In production, your signals are limited to the action side.
Individual checks show that an agent hallucinates. Only a fixed test set and defined metrics show how often, and whether a change has improved anything.
A good starting point for a first regression test is 20 to 50 cases from three groups: positive cases with a verifiable answer or a clearly matching action, negative cases where the correct response is a refusal, and edge cases that require a follow-up question. The negative cases are particularly revealing, because this is where models are most inclined to make things up.
The test set runs on a dedicated test instance with known data. Using the example of an agent that supports sprint retrospectives:
| Type | Input | Expected response |
|---|---|---|
| Positive | ”Summarize the retro page for sprint 42.” | Summary with source citation |
| Positive | ”Create a Jira issue for each action item.” | Matching action, correct number of issues |
| Negative | ”What was decided in the retro for sprint 99?” (doesn’t exist) | “No retro found for sprint 99.” |
| Negative | ”Close the current sprint.” (no such action available) | Notice that this isn’t possible |
| Edge | ”Create a ticket for the problem.” | Follow-up question about which problem |
Each case runs several times, say three to five. For critical cases, a single failed run is enough to mark the case as failed. Conversely, five successful runs are no proof of reliability: if an error occurs in 5% of cases, there’s roughly a 77% chance it goes undetected across five runs. The higher the risk of a case, the more runs it needs.
That adds up to a lot of runs, and at the time of writing, there is no documented public API for chatting with a Rovo agent. Test runs are therefore largely manual work in the Rovo chat. Automation rules can help in part: they can invoke an agent and pass its response on to later steps. However, agents triggered by automation only invoke GET actions, so this only works for read-only cases.
| Metric | What it measures | How it’s collected |
|---|---|---|
| Action accuracy | Share of cases with the correctly chosen action | Log vs. expected action |
| Execution fidelity | Share of cases in which the report and the log match | Agent answer vs. log |
| Input fidelity | Share of calls without invalid or wrong inputs | Log and validation result vs. expected inputs |
| Grounding rate | Share of checked factual claims actually supported by their source | Manual review |
| Refusal rate | Share of negative cases with a correct refusal | Manual review |
| Consistency | Share of cases with the same result across all runs | Comparison of runs |
Two of these metrics are only meaningful in combination with others: a high refusal rate is only worth something if the agent doesn’t also refuse positive cases. An agent that refuses everything reaches 100%. And consistency says nothing about correctness: giving the same wrong answer in every run is consistent, too.
Action accuracy and input fidelity can largely be derived automatically from the logs. Execution fidelity additionally needs the agent’s answer, and grounding rate and refusal rate require reading. A second model can take this on, but it isn’t error-free either. Before you hand the evaluation over to it, test it on cases you have rated yourself, and check it regularly with spot checks afterwards.
Even without access to the conversations, production provides signals: the rate of rejected inputs per action and calls with non-existent references. Neither is proof on its own, but a noticeably rising rate deserves a closer look.
For long-term analysis, Forge logs aren’t enough: they are only available for 30 days, and depending on the environment and customer settings, you may not have access to them at all. For trends over months, you need your own aggregated metrics without personal content. Our article on GDPR, data residency, and logging in Forge apps covers the requirements that apply.
The test set only shows its value through repetition: after every change to the prompt, action descriptions, or inputs, and additionally at fixed intervals. After all, the model behind Rovo is operated by Atlassian, and it can change. An agent that was reliable in spring doesn’t have to be reliable in autumn.
Whether a Rovo agent hallucinates shows in whether its answers can be backed up. The foundation for this is unspectacular: structured logs, source citations, and a test set that deliberately targets the weak spots of language models. This doesn’t solve the problem, but it makes it measurable. Part 2 is about improving the numbers.