CI Quality Gates for AI
In this article
- Lay out a pipeline for an AI change: deterministic tests, then an eval on a pinned dataset and model version, then the gate, then deploy.
- Say which stages a change runs, from whether it touches something that can alter what the assistant does.
- Read a gate result on a pull request, and tell a failure to rerun from one that settles the decision.
- Write an override record a later reviewer can audit, and say what no override can cover.
Overview
A teammate rewords the description of one tool your AI assistant can call. No code changes, the unit tests pass, the pull request merges. Next week the assistant offers customers something different. CI checked the code; nothing checked the behaviour.
In an invented example, Brightline, a home-internet provider, runs a support assistant on its website that answers customers and can look up an order, issue a refund of at most $50 and hand a conversation to a person on the support team. Its team is adding one feature: the assistant can switch a customer to another internet plan through a new tool, change_plan.
Afterwards you can build a pipeline where such a change cannot reach customers without passing fixed tests and an eval gate (a check over saved test cases), and where every override leaves a record.
Sign in to keep reading
The rest of this article opens with an account. An account also keeps your progress and quiz results on every device, and lets you follow news for up to five topics.
Still to read in this article
- Where ordinary CI stops
- The pipeline, stage by stage
- Which stages run
- Two pull requests
- When the gate itself is noisy
- The override record
- The rule at work
- Common mistakes
- In production
- Sources
- Check yourself, 13 questions