18. Adopting it in a team¶
The fastest way to fail with a release gate is to switch everything on at once: it blocks every pull request for a week, people learn to ignore it, and it's switched off. Roll it out in stages, each of which is useful on its own.
Stage 1: observe (week 1)¶
Add the Action with your existing test results and fail-on: never:
Nothing is blocked. Every pull request gets a comment. Watch for a week: are the verdicts the ones a careful reviewer would reach? Is the evidence fresh? This is also when people get used to reading the comment.
Stage 2: enforce the obvious (weeks 2–3)¶
Switch to fail-on: block. With JUnit evidence, "block" means failed tests, which everyone already agrees shouldn't merge. Set up the
sign-off environment for needs_human (Chapter 15) and name real approvers.
Stage 3: add evidence where your incidents are¶
Don't add every tool. Look at your last ten incidents and add the kind of testing that would have caught them:
| If incidents were… | Add | Chapter |
|---|---|---|
| UI changes breaking tests, flaky locators | Playwright, Selenium or Appium QA | 5–7 |
| A change breaking another team's service | API Contract QA, with consumers.yaml |
8 |
| Wrong data, wrong totals, 500s on bad input | API Functional QA | 9 |
| Data visible to the wrong user, auth gaps | API Security QA | 10 |
| Events, consumers, queues, batch jobs | Integration QA | 11 |
| Slowdowns after releases | Performance QA | 12 |
| Chatbot or agent misbehaviour | LLM Assure | 13 |
Add one at a time: run it in observe mode (with the gate's rules for it set to info in the policy) until its results are trusted, then
use the default outcomes.
rules:
perf.regression: info # observing; switch back to the default (needs_human) when baselines are stable
Stage 4: make it change-aware¶
Pass the base branch (the Action does by default on pull requests) and tune triggers to your layout, so each pull request requires
exactly the evidence its changes need, and nothing more. A docs change should be a fast ship.
Who owns what¶
| Owner | Owns |
|---|---|
| QA / quality engineering | the release policy; the tool configs (.qa-mcp/); baselines; deciding when a rule's outcome changes |
| Each team | their test flows; their entry in consumers.yaml (and keeping its fields accurate) |
| Security | security.yaml, accepted risks and their expiry dates |
| Approvers named in the policy | answering needs_human verdicts, promptly |
| Platform / DevOps | the CI jobs, test environments, test brokers and secrets |
Review policy changes like code changes: a pull request that softens a rule is a release-process decision, and the diff should say why.
Healthy habits¶
- Ask before you build (Chapter 4). Answer the review's questions; don't let
# OPEN QUESTIONcomments pile up. - Commit baselines from main, and update them deliberately, not to make a red check green.
- Never lengthen a time limit, loosen a match or switch off a rule to get a pull request through. If a rule is wrong, change the policy in its own pull request, with a reason.
- Keep evidence fresh.
max_age_hoursexists because a report from last week says nothing about this commit. - Treat "needs a person" as work, not as a nuisance. It's the gate asking for judgement it can't make.
Measuring it¶
Useful signals after a quarter:
- incidents in areas covered by evidence, before and after;
- how often each verdict occurs (all-block means the policy is too strict or the tests are flaky; all-ship may mean too little evidence);
- time from
needs_humanto a decision; - how many locator failures heal automatically versus need a person.
Every decision is in release-decision.json, so these numbers come from data you already have.