Step-by-step answer
Stretch 60 min7 stepsGate prompt changes in CI
gate.py runs the tiered regression suite only when a pull request touches prompts, tools, skills or example pools, compares the result with a stored main-branch baseline recorded on the same backend and model, and fails on any control or safety trial, any regression flip, or a capability drop of more than 10 points. Locally it runs on claude -p; in GitHub Actions it uses the OpenAI SDK with your own OpenRouter key, and it writes a Markdown summary for the pull request.
Back to the exercise