Where AI Belongs in a QA Team, and Where It Does Not
Why This Matters
The most expensive AI mistake in a QA team is not a badly worded prompt. It is giving the model a job it should never have had. Choosing the right job is the first architecture decision, and it is the one the exam returns to again and again: what happens if the model is confidently wrong?
What a language model is good at
A model is excellent at reading messy text and suggesting a judgement:
- Reading logs and stack traces and pointing at the line that matters
- Grouping similar failures: twelve timeouts against the same service are probably one problem
- Explaining a failure in plain language for someone who did not write the test
- Drafting a bug report with steps, expected and actual result
All of these have one thing in common: a human or your code can check the result.
What it is bad at
A model is a poor final authority:
- Deciding a release. The cost of being wrong is too high and the reasoning is hard to audit.
- Deleting or quarantining tests on its own. A wrong quarantine hides a real bug, possibly for weeks.
- Anything you cannot check afterwards. If nobody can verify the answer, nobody can trust it.
- Counting and arithmetic on raw data. It will usually get it right, which is worse than always getting it wrong, because you stop checking.
Code first, model second
Some questions have exact answers. How often did this test fail in the last 20 runs? Did the commit touch the file under test? Your code can answer these in microseconds, for free, and always correctly. TestPilot calculates them before the request and passes the result to the model as evidence. You will see this in src/runs.ts: failureRate() is plain code, not a prompt.
A simple rule: if code can answer it, code answers it. The model gets the questions that need judgement.
The question to ask for every task
For every task you consider giving to TestPilot, ask: what happens if the model is confidently wrong?
| Task | If wrong… | Who decides? |
|---|---|---|
| Summarise a stack trace | A tester reads a misleading summary, checks the trace | Model |
| Calculate the failure rate | Wrong number, wrong verdict, nobody notices | Code |
| Classify a failure | Wrong label, but evidence is shown | Model, checked by code |
| File a bug in the tracker | Noise for developers, trust in the tool drops | Model proposes, human approves |
| Quarantine a test | A real bug is hidden | Human |
| Decide the release | Customers find the bug | Human |
A human in the loop is a feature
Keeping a tester in the loop is not a sign that the AI is not good enough yet. It is a design decision with a clear purpose: the human owns the decisions with a real cost, and the assistant makes those decisions faster and better informed. In module 7 you will turn this into explicit escalation rules.
Exercise
Take ten tasks from your own team’s week (or use: triage a failure, write a test, review a pull request, update test data, rerun a pipeline, close a duplicate bug, write release notes, decide go/no-go, quarantine a flaky test, explain a failure to a product owner). Sort each into model, code or human, and write one sentence on what happens if it goes wrong.