# Reviewing and validating output

> What to check in a coding agent's UiPath output before you rely on it.

A coding agent can report it is done while its output is partly stubbed or subtly wrong.

## What to check

Look for:

- A Log Message or TODO standing in for real work.
- Invoke Code or a generic fallback instead of a native activity.
- Logic crammed into Assign expressions or one file.
- Unpinned, incorrect, or missing packages in `project.json`.
- Broken selectors or UI targets removed from the Object Repository, unrepaired.
- New failures elsewhere after a fix. Validate the whole project.
- Logging and error handling mentioned but missing.

Regenerating flawed output is usually faster than fixing it by hand.

## Validate with UiPath tools

Have the agent run the Workflow Analyzer (Analyze Project) and the build. By default it stops at zero errors, so also ask it to resolve every warning and confirm a local run.

## Use the agent as a reviewer

Be specific, and tell the agent to change nothing:

"Review `GetInvoices.xaml` for security issues, incomplete error handling, and incorrect activity choices. List the findings with severity. Do not fix anything."

For a repeatable review, see [Artifact review](artifact-review.md).
