The problem
Prompt changes usually ship because they seemed better in a couple of manual checks. Nobody can show the change did not make something else worse, because nothing is measuring.
The agency site has a public chatbot that must not invent prices, promise outcomes or drift off scope. I wanted every change to it scored against fixed cases, and the same pattern available as a template anyone can clone.
Constraints
- Runs with zero API keys by default, so the gate is free to start.
- Deterministic assertions first; LLM-as-judge only when a rubric is written.
- A failing score must exit non-zero, so CI can block the merge.
Architecture
The live chatbot runs against two suites: a golden set of four expected-behaviour cases and a red-team set of seven probes (price fishing, scope pressure). The scope tool has its own fourteen-case golden set.
What shipped
- A live eval script that runs the chatbot suites against the deployed site and writes a JSON artifact.
- llm-eval-gate: promptfoo config, golden cases, a floor file and a CI workflow, MIT-licensed.
- A site backend of 50 serverless handler files behind the chatbot, lead and contact flows.
Evidence and receipts
Owned
The site, its eval scripts and the chatbot golden and red-team sets.
Owned
floor.json records 7/7 golden cases at the current floor.
Owned
The method, step by step.
What I would do differently
- Grow the golden sets from real conversation logs before leaning on the score; four and seven cases are a start, not coverage.
- Give llm-eval-gate its own unit tests and move its CI to a self-hosted runner.
Honest limitations
01 Input
Next step
Bring an AI feature or workflow that has to keep working. We scope the first verifiable step on a 15-minute call, and I give an honest answer on fit either way.
Book a 15-minute call Not sure what you need? Answer 3 questions