AI coding agents

Sort by impact: what AI agents actually rank by, in 1,500 runs

In short

In a November 24, 2026 study, Microsoft's Waldek Mastykarz asked four models to sort lists "by impact" about 1,500 times. Rankings were stable across runs and models, but what "impact" meant changed by domain (reach, revenue or severity), and any dollar column dominated. Asking the agent to define impact first didn't help. Put the definition in the prompt.

Ask an agent for "the top five, sorted by impact" and you get a confident, ordered list. A Microsoft study published on November 24, 2026 ran that kind of request about 1,500 times across four models to find out what they were actually sorting by. The rankings were stable, but the meaning of "impact" was not. It depended on the domain and on which numbers happened to be in the list. If your team uses agents for backlog triage, issue prioritisation or review summaries, this tells you how to word those requests.

How the experiment worked

Waldek Mastykarz, a Principal Developer Advocate at Microsoft, ran the tests with Microsoft's Vally evaluation tool, using the GitHub Copilot SDK as the agent. The main models were Claude Sonnet 5.5, Claude Haiku 5.5, GPT-6.1 Sol and GPT-6 Luna.

Each test used a fixed list of eight items, and the agent had to return its answer on a RANKING: line so results could be compared automatically. There were three domains:

  • A developer-tool backlog for "devkit", a made-up open-source CLI with a paid tier.
  • Growth ideas for "Northbean", a small online coffee roaster.
  • Security improvements for "Ledgerly", a B2B invoicing SaaS.

Lists came in two forms: titles only, or titles plus reach, estimated revenue and effort. Prompts varied too. There was a plain request, the same request with the list reversed, a version where the agent generated five ideas and then sorted them, versions that defined impact explicitly (reach, revenue, or value per day of effort), and a "define impact first, then sort" version. Each prompt ran 15 times. Claude Sonnet 5.5 and GPT-6.1 Sol covered the shop and security domains, and Claude Haiku 5.5 classified the reasoning each agent gave.

What it found

Rankings were consistent

For any pair of items, repeated runs agreed on their order 86% to 100% of the time, depending on the model and list. Different models agreed on 77% to 93% of pairs with titles only, rising to 87% to 100% when the lists included data. Reversing the input order changed rankings only slightly. With titles only, 64% to 100% of runs picked the same top item.

So the answers were not random. The problem was elsewhere.

The hidden definition changed by domain

When "impact" was left undefined, each domain got a different default:

  • Backlog: rankings most closely matched reach, and agents described their reasoning in terms of reach or a mix that included it.
  • Shop: rankings most closely matched revenue.
  • Security: rankings followed severity, which none of the three defined measures covered. Enforcing hardware-key MFA for all employees ranked first in every run for both models tested.

Each of these is defensible on its own. But a team that asks one agent to rank its backlog and its security work in the same way will get two different meanings of "impact" without being told.

Dollar figures won

When every item had reach, money and effort data, Claude Sonnet 5.5 and GPT-6.1 Sol ranked by the money column in every run on the shop and security lists. In one example, an abandoned-cart email reached about 53 times as many people (8,000 against 150 a month) and took half the effort (one day against two). A microlot club still ranked above it, because it was estimated at $70k against $40k.

Whatever columns you paste into the prompt effectively become the definition of impact, and a revenue column tends to override the others.

Asking the agent to define impact first didn't help

You might expect "first define impact, then sort" to make results more consistent. It didn't. For three of the four models, it made results less consistent. Letting the agent choose its own definition is still leaving the definition to the agent.

What to change in your prompts

The article's recommendations map directly onto how teams use agents for prioritisation:

  1. Say what you mean. Replace "by impact" with the measure you actually want: "by expected monthly revenue", "by number of affected users", or "by value per day of effort, where value is X".
  2. Audit the data you include. If a revenue estimate is in the list, expect it to drive the order. Remove columns you don't want to weigh, or state how to weigh them.
  3. Put the definition in the agent's standing instructions, not just the one-off prompt. If a skill or agent triages issues or summarises reviews, its instructions should define the ranking criteria.
  4. Ask for several rankings. Request one ranking per candidate definition. Items that stay near the top in all of them are safe choices, and items that move are the decisions a person should make.
  5. Treat vague terms as an eval variable. If you evaluate agents, include prompts with words like "impact", "important" or "risky", and check what the agent assumed.

A triage instruction might look like this:

markdown
When ranking issues, sort by number of affected users (from the
"reports" field), highest first. Break ties by severity: security,
data loss, broken feature, cosmetic. Ignore revenue estimates.
Return the ranking and one line per item explaining its position.

If you use CodeBeast, rules that every agent should always follow belong in Org Memory, and task-specific playbooks, such as how to triage a bug report, belong in a skill. Either way, the definition should be written once and reused, not retyped in each prompt.

Limits of the study

The author is explicit about the scope. There were only three domains, each with an eight-item list, and all were business-oriented. There is no human baseline yet, and the author suggests testing product managers and engineers on the same lists. Longer lists and non-business domains haven't been tested. The consistency numbers come from 15 runs per prompt, which is enough to show a pattern but not to compare models precisely.

For an evaluation that goes beyond one prompt, our summary of Hugging Face's agentic evaluation guide covers how to set one up.

Sources

FAQ

Do AI agents rank lists consistently?

In Microsoft's tests, mostly yes. Repeated runs agreed on the order of any pair of items 86% to 100% of the time, and different models agreed on 77% to 100% of pairs depending on whether data was included. The inconsistency is in what the ranking means, not in the ranking itself.

What do AI agents sort by when you ask for impact?

It depends on the domain and the data. In the study, backlog rankings tracked reach, shop rankings tracked revenue, and security rankings tracked severity. When the list contained dollar figures, two of the models ranked by the money column in every run on the shop and security lists.

Does asking the model to define impact first improve the ranking?

No. In the study, "define impact first, then sort" did not improve consistency and made it worse for three of the four models. Write the definition into the prompt or the agent's instructions yourself.

How should I prompt an agent to prioritise a backlog?

Name the measure explicitly, for example affected users or value per day of effort, and include only the data you want it to weigh. For important decisions, ask for one ranking per definition and look at the items that move between them.

Written by the CodeBeast Team with AI assistance. Spotted a mistake? Email support@codebeast.ai.