Navigate Ways of Working
Guide

AI Use Cases: Quality Engineering

AI use cases for Quality Engineering: Acceptance Spec Guard, Mutation Testing for Spec Gaps, Evals for AI-Powered Features, Acceptance Briefing, Production Anomaly Detection.

Part of the AI Use Case Catalogue. Every entry names its owner, how much the agent may do alone, the human checkpoint and how the result is verified; the catalogue overview explains each field.

Full process: Quality Engineering Workflow in the Engineering Process.

AI-018: Acceptance Spec Guard

Purpose: Keep the specification out of the agent’s reach, so that the quickest way to a green build is to make the code right.

Owner: QE (rules); Platform squad (builds and maintains)

Autonomy: Runs within set rules

Human checkpoint: Any change to a scenario or the shared domain vocabulary needs the PM’s and the QE’s approval, recorded on the item. It changes the contract, and both of them treat it as a contract change.

Verification: CI fails any commit that adds, edits, skips or deletes a scenario without that approval, and reports any fall in the number of scenarios run.

Context: Continuous. An agent under pressure to pass a suite will sometimes weaken or delete the test to get a green build, so the control has to be mechanical. Where the tooling allows, agents get no write access to the scenario files at all; where it doesn’t, the gate catches the change. An agent that believes a scenario is wrong says so and stops. In a founding team this is a line in What Agents Must Not Do.

Artefacts Required:

  • The location of scenario and vocabulary files
  • The approval record for spec changes

Artefacts Produced:

  • Blocked commits with the reason
  • A weekly count of spec changes requested by agents, for AI-034

AI-019: Mutation Testing for Spec Gaps

Purpose: Find out whether the tests would notice if the code were wrong, by making it wrong on purpose. A deliberate fault that no scenario or test catches is a hole in the specification.

Owner: QE

Autonomy: Runs within set rules

Human checkpoint: The QE triages surviving faults. A gap in behaviour the PM cares about goes to the PM and the QE as a missing example. A gap in internal logic goes back to the Dev’s agent as a missing functional test.

Verification: Mutation score on changed code, tracked over time, with the surviving faults listed.

Context: On changed code, per commit where pipeline time allows and nightly where it doesn’t. The routing matters more than the score: an agent that plugs a hole in the specification with a test of its own fills it with its own idea of what the code should do.

Artefacts Required:

  • Changed code and the suites that cover it
  • Mutation tooling for the stack

Artefacts Produced:

  • Surviving faults, classified as spec gap or test gap
  • Mutation score trend for AI-034

AI-020: Evals for AI-Powered Features

Purpose: Check that features built on a model behave acceptably across the cases that matter, and keep checking every time the prompt, the model or the retrieval changes.

Owner: QE (eval sets and thresholds); Platform squad (shared eval harness)

Autonomy: Runs within set rules

Human checkpoint: People who understand the domain choose the eval cases and the pass thresholds, and the PM approves what “acceptable” means. Where a model grades the output, the QE checks its grading against a sample of human judgements before trusting it, and again whenever the grading model changes.

Verification: The eval suite runs in CI on every change to prompts, models or retrieval, and blocks any change that scores below threshold.

Context: For any feature whose output comes from a model. Scenarios work for deterministic behaviour; a model’s output needs a set of cases and a threshold. Eval cases an agent drafts are a starting point, like any other draft. The QE adds real production failures to the set as they turn up.

Artefacts Required:

  • Representative and adversarial inputs, including real failures
  • Pass criteria agreed with the PM
  • Baseline results for the current version

Artefacts Produced:

  • Eval results per change, against the baseline
  • Regressions, with the cases that caused them

AI-021: Acceptance Briefing

Purpose: Give the person accepting a change what they need to judge its behaviour quickly: what it should do, the evidence that it does, and where to look hardest.

Owner: Whoever accepts the change: the Dev who directed it, and the QE for changes on the always-reviewed list; the named accepter on the card in a founding team

Autonomy: Drafts

Human checkpoint: The accepter checks the behaviour in the named environment. The briefing directs their attention; the behaviour they see is the evidence.

Verification: Every claim in the briefing links to a scenario run, a CI result or the staging page it refers to. The accepter treats a claim without a link as unverified.

Context: When work enters review. An agent’s summary says what it meant to do, so the briefing is built from what ran: scenario runs, CI results and the change set. It lists the scenarios that cover the change, anything that changed outside them, and the UX and domain edge cases the automated checks can’t judge.

Artefacts Required:

  • Approved scenarios and their latest runs
  • The change set and CI results
  • Staging location and feature flag state

Artefacts Produced:

  • A one-page briefing with links, and a short list of things to try by hand

AI-022: Production Anomaly Detection

Purpose: Watch production quality metrics for anomalies that point to a regression or an emerging issue, comparing behaviour before and after each release.

Owner: QE (investigates); Platform squad (builds and maintains)

Autonomy: Runs within set rules

Human checkpoint: The QE investigates each flagged anomaly and decides whether it is real.

Verification: Each alert names the metric, the baseline it departed from and the deployments in the window. Each confirmed anomaly ends in a candidate regression scenario, which the QE approves as in AI-028.

Context: Continuous, after each release.

Artefacts Required:

  • Production monitoring data (error rates, latency, user-facing failures)
  • Baseline metrics from before the release
  • Recent release and deployment history

Artefacts Produced:

  • Anomaly alerts with context: what changed, when, and the likely deployment
  • Before and after comparison per release
  • Candidate regression scenarios for confirmed anomalies

← Development · All stages · Releases →