← blog
ai-agentsai-evaluationevalstestingharness-engineering

Could a ticket from the last run make your eval pass?

An old ticket can make a failed agent run look like a pass. Give each run a clean start and verify which run created the ticket.

AI Agent Evaluation Design beside a slip stamped PASS with its required field blank. The cover reads, “This AI test passed by mistake.”

Imagine the second run passes without opening a ticket.

The incident-response agent must open a ticket for a checkout alert. Run 1 creates T-104. Run 2 finishes without calling the ticket tool. The grader's entire question is whether a ticket exists for the alert. It finds T-104 both times.

Give the case a clean starting point

This case assumes the alert has no ticket. Set up an isolated test queue for each run, or scope the fixture and the queries to a fresh test incident. Before the agent starts, have the harness check that the incident has no matching ticket. If that check finds an old ticket, mark the setup invalid and rebuild it. There’s no agent verdict to take from that attempt.

If your production rule is to reuse a ticket when one already exists, that starting state deserves its own case with its own expected behavior.

Make the grader show which run created the ticket

For the clean case, I’d require a creation record from the ticket system tied to an action in the current run. The record should identify the ticket and the incident. The harness can tie it to the run through the tool call and a request or operation ID. A successful lookup establishes that the ticket exists. A submitted request establishes an attempt. A timestamp can narrow the search, but another worker could have created a ticket in the same interval.

If the ticket system creates tickets in the background, define how long this case allows for creation and follow the operation to its terminal state or that deadline. A complete service record with no matching creation by the deadline supports a fail. If the service record is incomplete and the verdict depends on it, mark the result unresolved. These are parts of the harness I’d check together. Nugalaxy harness-engineering guides

Check the grader with two examples

I’d test the grading rule on its own before trusting it in the harness. That lets me exercise the old-ticket problem directly, even though the clean case now rejects it at setup.

Evidence supplied to the grader Expected verdict
A matching ticket already exists. The complete run evidence shows the agent never made a create call. Fail. The run did not create the ticket.
The incident starts with no ticket. The ticket system confirms creation for this incident, and the operation is tied to this run. Pass. The run created the ticket.

Then I’d check the harness separately by starting the clean case with a matching ticket already present. It should stop at setup and record an invalid test.

Other worked examples show how to connect agent requirements to the evidence available outside the conversation. Nugalaxy Evaluation Cases

The next time I see two passes, I want to open each run and find the ticket it actually created. What a harness needs to keep for that kind of review is one of the questions I work through in AI Agent Evaluation Design. Kindle edition

share