A hallucination flag is a signal, not a verdict
Detecting a possibly hallucinated output is only the first step. What happens next is a policy decision, and detection confidence can be ambiguous. The response should depend on whether the output is supported, whether an approved grounding source exists, how costly an error would be, and whether a person can review the output in time.
There are three possible responses to a flagged output:
Block
Stop the output or action and return a safe fallback.
Rewrite
Correct or regenerate against an approved source, then re-check.
Escalate
Hold the output and route it to a human reviewer.
Block, rewrite, and escalate compared
Each response fits a different combination of evidence, risk, and review capacity.
| Response | What it does | Choose it when |
|---|---|---|
| Block | Stops the output or action and returns a safe fallback. | The output is unsupported, no approved grounding source exists, and the cost of being wrong is high or the action is hard to reverse. |
| Rewrite | Corrects or regenerates the output against an approved source, then re-checks it. | An approved source is available and the corrected output is re-checked before release. |
| Escalate | Holds the output and routes it to a human reviewer. | Risk or regulatory exposure is high, detection confidence is ambiguous, and a person can decide within an acceptable time. |
Decision factors that determine the response
Four factors, drawn from the comparison above, determine which response applies:
- Support for the output: whether the output is supported, and whether an approved grounding source exists.
- Cost and reversibility: how costly it is to be wrong, and whether the action can be reversed.
- Risk and regulatory exposure: how high the exposure is if the output is released.
- Detection confidence and review time: whether the detection result is ambiguous, and whether a person can decide within an acceptable time.
Rewriting is not regeneration, and agent outputs change the stakes
A rewrite is valid only when it is corrected against an approved source and the corrected output is re-checked before release. Regenerating an answer without grounding and without a re-check does not resolve the original flag.
When an AI agent produces an output that triggers an action, the cost of being wrong rises, particularly if the action is hard to reverse. In those cases the block response stops the output or action, and escalation holds it for a reviewer before anything proceeds.
Expressing the decision as enforceable runtime policy
Express the choice between block, rewrite, and escalate as versioned runtime policy, so that each flagged output is handled by a defined rule rather than by ad hoc judgment. Log every decision so that it can be reviewed later.
What to log for each hallucination-handling decision
- The original output and the input or context that produced it.
- The detection method, signal, score, and threshold applied.
- The policy version and the specific rule that matched.
- The grounding sources consulted and the action taken: block, rewrite, escalate, or pass.
- Any revised output and its re-check result, plus the final output released.
- Reviewer identity, decision, rationale, timestamps, and the status of any downstream action.