Issue validation is in private beta. It is available only on LangSmith Cloud, for organizations where it has been enabled. To request access, join the waitlist.
Set up validation
Validation requires a baseline deployment: a ready, non-preview LangSmith Cloud deployment of your agent in the same workspace. Selecting it requiresdeployments:update on that deployment.
To set up validation:
- On the Engine page, click Configure Engine.
- (Optional) Connect the GitHub repository Engine should modify. In the repository settings, select the base branch for Engine’s fixes, or leave it blank to use the repository’s default branch.
- In the Preview deployments section, find the Baseline deployment field. Search for a deployment, or paste its LangSmith URL or deployment ID. Preview deployments and deployments that are not ready cannot be selected from the list. The baseline can be a production or staging deployment, but use staging when possible so validation does not exercise production credentials and services.
- Select Verify fixes with preview deployments.
- Click Save.
- A connected repository: Engine opens its fix as a pull request in the repository connected in Connect Engine to GitHub.
- Label-triggered preview builds: Enable preview builds on the baseline deployment. Use the following starting configuration:
- Set Preview base branch to the same branch configured for Engine.
- Select Label only and set Trigger label to
preview. Engine applies this label to its fix pull request. - Set Idle TTL to 6 hours.
- Set Max concurrent previews to 20.
Authenticate with your deployment
By default, Engine calls your deployment with a LangSmith credential, and the deployment sees the caller as a Studio user. Deployments that accept LangSmith platform authentication need no further setup. If your deployment authenticates callers itself, give Engine the headers it expects:- In the Preview deployments section, under Deployment authentication, click Add custom headers.
- Enter every header your deployment requires, then click Save.
- In your deployment’s authentication handler, map those headers to an identity with the least access validation needs.
Custom headers only decide whether your deployment accepts the request. They do not tell your agent that a run is a validation replay, which is a separate signal described in Make replayed runs side-effect free.
Prepare a deployment to test against
Engine confirms an issue by running your agent, so the deployment you select needs to be one you can exercise repeatedly without consequences.Use a deployment you can safely exercise
Choose a deployment that mirrors the configuration of the agent you want to test, but that is not the one serving your users. Point it at test credentials, test accounts, and non-production data stores for any service your agent writes to.Make replayed runs side-effect free
Engine marks every replay in the run’s configuration, so your agent can recognize one and respond more conservatively:X-LangSmith-Source: engine. Use the configurable marker in graph code and the
header in request middleware.
Use the marker to skip or stub the tools whose effects leave your agent, such as sending email or messages, charging customers, filing tickets, writing to production data stores, scheduling work, and calling partner APIs. Return a realistic placeholder result so the rest of the run still exercises the behavior Engine is testing.
Expect a burst of traffic
Engine replays an issue’s traces at the same time, so a validation can start up to five runs at once and each one runs to completion. Fix verification repeats the same set against the preview deployment. Confirm that the deployment’s rate limits, quotas, and any downstream service it calls tolerate that burst.Keep the deployment available
Engine can only replay against a ready, non-preview deployment, and it records the deployment and revision that produced each result. Keep the deployment running while validation is in progress, and expect a result to describe the revision that was active when Engine tested it.Test an issue
When a baseline deployment is set, Engine validates each new issue automatically when it creates the issue. To validate an issue again, open it and click Test issue. Test issue is unavailable when no baseline deployment is set, when the issue has no linked traces, or when the monthly LCU spend limit is reached. For each validation, Engine:- Selects up to five distinct traces linked to the issue, in the order they were linked.
- Replays each trace’s input against the baseline deployment. For a trace from a multi-turn thread, Engine includes the earlier turns of the conversation, so a follow-up failure is judged in the same context.
- Judges whether each replay shows the issue’s reported behavior again. Each trace is Reproduced, Not reproduced, or Inconclusive.
Verify a fix
When Verify fixes with preview deployments is selected, Engine verifies each fix it generates:- When a fix run completes, Engine opens a pull request for the fix if one is not already open, then adds the preview build label to it.
- LangSmith builds a preview deployment from the pull request.
- When the preview revision is live, Engine replays the traces from the issue’s validation against the preview deployment.
- If the issue still occurs on the preview, Engine revises the fix on the same pull request and verifies it again, for up to three attempts in total.
Read a validation result
Each issue reports a baseline result and, once a fix exists, a verification result. The baseline result answers whether the issue still happens on your deployment:
The verification result answers whether Engine’s fix resolved it:
Review validation experiments
Engine stores each issue’s validation evidence in your workspace:- Dataset: One per issue, described as
Engine validation evidence, with one example per replayed trace. - Baseline experiment: The replays against the baseline deployment.
- Fix experiment: The replays against a fix’s preview deployment, one experiment per verification attempt.
engine_issue_validation. The value is reproduced or not_reproduced, and the feedback comment explains the verdict.
When Engine verifies a fix against a preview deployment, the issue’s Evidence section shows the overall verdict and one row per trace:
- Flagged traces: What Engine saw in the original trace. Click Original trace to open it.
- Reproduced on prod: The baseline result, Reproduced, Not reproduced, or Inconclusive. Click Repro trace to open the replay.
- After PR #<number>: The result on the fix’s preview, Fix verified, Recurred, or Inconclusive. Click the trace link to open the replay.
Troubleshooting
If an issue stays on Awaiting test, or a result comes back inconclusive, check the following before testing it again:- The baseline deployment: Confirm it is still ready, is not a preview, and is in the same workspace as the tracing project.
- Authentication: If your deployment authenticates callers itself, confirm the saved headers are current. Replacing a credential requires re-entering every header value.
- The replays themselves: Open the replayed runs from the issue’s Evidence section or validation summary and read what your agent returned.
- Deployment limits: Look for rate limiting, quota exhaustion, or timeouts caused by the concurrent replays, and for very large responses, which Engine may not be able to judge.
- Restricted tools: If your agent blocks tools during a replay, confirm the stubbed tools still return a usable result rather than an error that ends the run.
See also
- Find and fix your agent’s issues: Set up Engine and work through the issues it detects from production traces.
- Engine security: Review how Engine accesses your traces, deployments, and repositories.
- Preview builds: Create the preview deployments Engine verifies fixes against.
- Compare experiment results: Compare the baseline and fix experiments side by side.
- Connect Engine to GitHub: Connect the repository where Engine opens fix pull requests.
Connect these docs to your agent of choice via MCP for real-time answers.

