QA Interview Hub · Knowledge base · Quizzes · Українська

AI-driven Automation › Agents in the team and CI

Metrics, cost and the interview answer

An agent's effect is measured by outcome, not volume: time to green, escaped defects, review time of its changes and false passes on a golden set. The number of generated tests, the share of code from the agent and tokens are vanity metrics. Cost grows with steps and context, so they are limited together with a budget.

A manager asks to double the number of automated tests with an agent. A month later there are twice as many tests, the same number of escaped defects, and CI is slower. The wrong thing was counted.

Outcome metrics:

  • time to green — time from a failure to a real fix;
  • escaped defects — defects that reached users;
  • review time of the agent’s changes — if it grows, the saving is imaginary;
  • the share of false passes (a green test on broken behaviour) on a golden set.

Vanity metrics: the number of generated tests, the percentage of code from the agent, the number of tokens.

Cost. Spending grows with the number of steps and the context size. Effective levers: context of only the changed files and the needed rules, a step and budget limit, a cheaper model for routine work, a stop criterion.

Governance. You need a log: who started it, which commands and files, which model and prompt version. Changes go through a PR.

When an agent does not fit: deciding on risk acceptance and release; tasks without a specification and an oracle; operations with production data or secrets without a person.

An interview question of 2026: "How do you trust tests written by an agent?" A strong answer: I compare with requirements, check that the test fails on broken behaviour, repeat runs, look at the trace, and responsibility for the result stays with me.

Common mistakes: "the agent checks itself"; rejecting agents because of hallucinations instead of controlling them.

Short interview answer: "I measure time to green and escaped defects, not the number of tests; I trust only what is verified".

More articles in this chapter