Process

How to turn an ambiguous ticket into an agent task

Editorial · Reveneau · December 10, 2026

How to turn an ambiguous ticket into an agent task

Most tickets written for human engineers are too ambiguous for an agent to act on without failing. The team learns this quickly when they start giving tickets to agents directly. The agent produces output that technically addresses the ticket, and the output does not match what the team meant. The team rewrites the ticket to be clearer, the agent tries again, the second attempt is better. On the third or fourth round the team realises that the ticket-writing step was where the time should have been spent in the first place.

The rewrite is not just a longer ticket. It is a different kind of ticket. The differences are specific, they transfer across projects, and a team that learns them produces tickets that work for agents on the first attempt.

Why human tickets are usually too ambiguous

A ticket written for a human engineer leaves some decisions to the engineer. The engineer reads the ticket, asks clarifying questions in standup, checks with the product manager over Slack, reads the surrounding code to see the local conventions, and fills in the gaps that the ticket did not specify. The process is informal, and most of the information that ends up shaping the implementation was never in the ticket.

This works because the engineer is a person in an organisation, with access to other people and a sense of what the team is trying to build. The engineer can also push back: if the ticket is wrong, the engineer notices and asks. If the ticket is under-specified, the engineer closes the gap by asking the right person.

An agent has none of this. The agent reads the ticket and acts. It does not have a product manager to ask, it does not have a sense of what the team is trying to build, it cannot push back. If the ticket is ambiguous, the agent picks an interpretation and proceeds. The interpretation may or may not be the one the team wanted.

The gap this creates is the specific thing that makes human tickets fail on agents. The information that would have been added through conversation has to be added to the ticket directly.

Replace the goal with acceptance criteria

The first thing to change is the goal statement. A human ticket often says "users should be able to filter the list by date" and expects the engineer to work out what that means. An agent needs the working-out done for it.

Replace the goal with a list of acceptance criteria. Each criterion is a checkable statement about what the finished feature does. "The user can select a start date and an end date in the filter panel." "The list filters to items whose timestamp falls in the range, inclusive on both ends." "An invalid range, where the start date is after the end date, shows an error message that says 'Start date must be before end date'." "The filter persists across page reloads and is included in the shareable URL."

Each statement is specific enough to turn into a test. The agent builds to the statements. If the team wanted the filter to persist, that is a statement. If they did not, the absence of the statement means the agent should not add the persistence.

The test for whether the criteria are specific enough is whether two reasonable people would build the same thing from reading them. If one reader would add sorting and another would not, the criteria need a line about sorting. If one reader would preserve the previous filter when changing the date and another would clear it, the criteria need a line about the interaction. The bar is not "could a smart person figure it out" but "does the specification leave room to figure it out differently".

Add the files and modules expected to change

The agent will find the right files eventually, but naming them in the ticket removes guesswork and reduces the chance of touching the wrong ones.

A good ticket includes a short section that says: "Files expected to change: src/filters/DateFilter.tsx (new file), src/list/ListView.tsx (add filter prop), src/types/filter.ts (add DateFilter type)." The agent uses this as a scaffold and does not have to decide the module boundaries from scratch.

The section also prevents a common failure mode: the agent modifies a file the team did not want modified. In a large codebase, the agent may find several plausible places to make the change and pick the wrong one. Naming the expected files narrows the search.

For related reading, see how to brief an agent on a legacy codebase and how to take over a codebase you did not write.

State what is out of scope

A ticket for a human engineer rarely says what is out of scope. The engineer and the product manager have a shared understanding of the sprint's boundaries, and a scope expansion is a conversation.

An agent has no such shared understanding. If the ticket says "add filtering by date" and the agent notices that sorting would also be useful, the agent may add sorting. If it says "update the error message" and the agent notices other error messages in the same file, the agent may update them all. These expansions are usually not what the team wanted.

The ticket should name the obvious adjacent work that is out of scope. "Sorting is out of scope for this ticket." "Other error messages in the file are out of scope." "The data layer is out of scope; only the UI layer should change." The list is specific to the ticket, and it names the expansions that would have happened without the explicit boundary.

Supply context the agent cannot infer

A human engineer brings context the ticket does not provide. They know that the team uses a specific validation library. They know that error messages follow a specific style. They know that date formatting goes through a utility function. The agent does not have this context unless it is in the ticket.

The ticket should include the specific context the agent needs. "Validation should use the existing validate helper in src/validation.ts." "Error messages should follow the pattern '[Field] must [condition]'." "Date formatting should go through formatDate in src/utils/date.ts." The agent reads these and produces code that fits.

The context does not have to be exhaustive. The agent will find most conventions by reading the surrounding code. The parts that are not obvious from reading the code, or are consistent across the codebase in ways the agent might not notice from one example, are the parts that belong in the ticket. For related reading, see what a good technical spec looks like and how to write a design doc an agent can implement from.

Include the testing expectation

An agent-written change should include tests. The ticket should say what kind of tests, at what granularity, with what coverage expectations.

"Add unit tests covering the happy path (filtering works correctly for a valid range) and the error cases (invalid range, empty range, out-of-bounds dates)." This is specific enough for the agent to produce the right tests. "Add tests" is not, because the agent might produce one test that only covers the happy path.

If the project has specific testing conventions (vitest instead of jest, snapshot tests instead of unit tests, integration tests at a specific layer), the ticket should name them. The agent will use whatever convention is in the file it modifies, but a fresh test file goes wherever the agent decides, so the ticket should decide.

The shortest useful agent-ready ticket

For a trivial change, the ticket can be short. A bug fix that changes one error message can be written as: "The error message on line 47 of src/validation/user.ts currently says 'invalid input'. It should say 'The user ID must be a 32-character UUID' instead. Add a unit test that confirms the new message is returned for an invalid user ID." This is enough. The agent reads it, makes the change, writes the test.

Most tickets are longer because they involve more ambiguity. A feature ticket might have five acceptance criteria, three expected files, a note on scope, two pieces of context, and a testing expectation. Typically 10 to 30 lines total. This is longer than most teams' current tickets, and it also contains the information the current tickets expected the engineer to add through conversation.

Who writes the agent-ready ticket

The rewrite is a specification exercise, not a code exercise. The person best suited to it is the one who has the clearest view of what the finished feature should do.

For a product feature, that is usually the product manager. They know what the team is trying to build and why. They can decide which of the adjacent scope items are in and which are out. They own the acceptance criteria.

For a bug fix, the rewriter is usually the person who reported the bug or the engineer who understands the system best. The acceptance criterion is usually implicit in the bug report; the context is what the engineer adds.

For an internal refactor, the rewriter is the engineer who understands the current state best. They can name the files that need to change and the pattern to apply.

The common thread is that the rewriter owns the specification. They are not just describing what they want, they are writing it in a form the agent can act on.

The feedback loop that teaches the team

A team that is new to writing agent-ready tickets writes imperfect ones at first. The agent produces output that does not match the team's intent. The team updates the ticket and the agent tries again.

This cycle, used deliberately, teaches the team to write better tickets. After each agent build, the reviewer should ask: what in the agent's output did not match what we wanted? What in the ticket allowed the mismatch? The answer to the second question is a lesson about ticket-writing that applies to the next ticket.

Over time the team's tickets become more specific. The feedback from the agent's outputs trains the team in a way that a template cannot. The result is tickets that produce correct agent output on the first attempt, which is the condition that makes agent-based workflows actually save time.

For related reading, see how to write a bug report an agent can act on and how to write an acceptance test a machine can run.

The time cost is where the work moves

Writing an agent-ready ticket takes more time at the ticket-writing stage than writing a human ticket does. For a routine ticket, the difference is 10 to 20 minutes. For a complex one, 30 to 60.

This time is not extra. It is work that was going to happen somewhere. Either at the ticket-writing stage, with the product manager who knows what they want, or at the review stage, with the engineer trying to reconstruct what the output should have been from a ticket that did not say.

The second option costs more, because the review has less information to work with and the agent has already been run. The first option costs less, because the specification exists at the moment it is most clearly in the product manager's mind.

The teams that figure this out move the time to the ticket-writing stage and stop losing it to review cycles. The teams that do not keep running agents on human tickets and keep being surprised that the output does not match what they wanted.

Common questions

What makes a ticket ambiguous from an agent's perspective?

Any part of it that leaves a decision to the reader without specifying which decision to make. A human engineer reads "update the user profile UI" and asks three questions before starting work. An agent does not ask. It picks an interpretation and proceeds. If the interpretation does not match what the team wanted, the output is wrong for reasons that trace back to the ticket.

What is the first thing to change in a vague ticket?

Replace the goal statement with specific acceptance criteria. "Users should be able to filter by date" is a goal. "The user can select a start date and an end date; the list is filtered to items whose timestamp falls in the range inclusive; an invalid range (start after end) shows an error with the message 'Start date must be before end date'" is a set of acceptance criteria. The agent builds to the second and produces what the team wanted.

How detailed do the acceptance criteria need to be?

Detailed enough that two reasonable people reading them would build the same thing. If one reader would add sorting and another would not, the criteria need a line that says whether sorting is in scope. If one reader would preserve the old filter when switching dates and another would not, the criteria need to state the behaviour. The test is not whether a smart person could figure it out but whether the specification leaves room to figure it out differently.

What is the second thing to add to a vague ticket?

Context the agent cannot infer from the codebase. Which service to call, which component to modify, which pattern the team uses for this kind of change. A human engineer would ask these questions or figure them out from reading the code. An agent either guesses or produces something that technically works and does not fit the codebase's conventions.

What should an agent-ready ticket include at minimum?

A statement of the goal, a list of acceptance criteria that can each be turned into a test, a list of the specific files or modules expected to change, a note on what is explicitly out of scope, and any non-obvious context the agent will not find by reading the code. For a typical ticket this is 10 to 30 lines, which is longer than most teams' current tickets.

How long does it take to rewrite a ticket this way?

For a routine ticket, 10 to 20 minutes. For a complex one, 30 to 60 minutes. The time is spent clarifying the acceptance criteria, which is work that was going to happen somewhere. Either it happens at ticket-writing time with the product manager who knows what they want, or it happens at review time with the engineer trying to figure out what the output should have been.

Who should rewrite the ticket?

The person who has the clearest view of what the finished feature should do. For a product feature, that is usually the product manager. For a bug fix, the engineer who reported the bug or the one who understands the system best. The rewrite is a specification exercise, not a code exercise, so it belongs to whoever owns the specification.

What is the shortest useful agent-ready ticket?

A single acceptance criterion and the file that should change. For a trivial bug fix, that might be: "The error message on line 47 says 'invalid input'; it should say 'The user ID must be a 32-character UUID' instead. File: src/validation/user.ts." The agent can act on this directly. Longer tickets are only needed for work with more ambiguity.

What happens if the ticket is still ambiguous after the rewrite?

The agent will produce output that reflects the remaining ambiguity, and the reviewer will catch it. The fix is to treat the production of ambiguous output as information about the ticket, not just about the agent. The reviewer should ask what specifically was ambiguous, update the ticket, and let the agent try again with the clearer version. Each iteration improves the team's ticket-writing practice.

Can this process be learned by the team over time?

Yes, and the fastest way to learn it is to pair ticket-writing with ticket outcomes. After each agent build, look at what the agent produced and what the team wanted, and trace any gap back to the ticket. Over time the team's tickets become more specific without anyone having to enforce a template, because the feedback loop is doing the work.

Start a project