02Chapter 2: What changes: prompts, model versions, parameters, and contextThis chapter assumes you can call an LLM API, write a prompt, and read a basic pytest file. It also assumes you can read a GitHub Actions workflow. The previous chapter explained why LLM features regress silently. This chapter lists what can change, so you know what to track and which edits should t8 min read
03Chapter 3: Building a golden datasetThis chapter assumes you can write Python, call an LLM API from your own code, and write pytest tests. It also assumes you know Git and have used a CI system such as GitHub Actions. The earlier chapters explained why prompts and models regress and which changes cause it. This chapter builds the inpu6 min read
04Chapter 4: Deterministic checks: format, content, and constraintsA deterministic check is a plain function that takes a model output and returns pass or fail. It uses no model and no randomness, so the same output always gets the same verdict. These checks are the cheapest and most reliable part of a prompt regression suite, so you should write them before any ju6 min read
05Chapter 5: Handling nondeterministic outputThis chapter assumes you can run the pytest golden-dataset suite from the earlier chapters, including the deterministic checks for format, content, and constraints. It covers what to do when the same input gives different outputs on different runs, so your suite neither fails randomly nor hides real6 min read
06Chapter 6: Judge-based checks and validating the judgeThis chapter assumes you have a golden dataset and deterministic checks in place, as covered in the earlier chapters. It also assumes you can call an LLM API from Python and write pytest tests. Here you will add a second kind of check, where a model grades another model's output. You will also learn7 min read
07Chapter 7: Baselines and pass thresholdsThis chapter assumes you can write pytest tests, you have a golden dataset in JSONL, and you know that LLM output varies between runs. Earlier chapters covered deterministic checks, judge-based checks, and repeated runs. Here you will turn those results into a decision: does this change pass or fail7 min read
08Chapter 8: Running the suite in CIThis chapter assumes you can write pytest tests, call an LLM API, and read a GitHub Actions workflow. It also assumes you have a golden dataset and deterministic checks from earlier chapters. Here you will connect them to a pipeline that runs on every relevant change and blocks merges that make the 7 min read
09Chapter 9: Controlling cost and runtime with test tiersA regression suite that is too slow or too expensive gets skipped, and a skipped suite catches nothing. This chapter shows how to split your evals into tiers. Each tier has a trigger, a size, and a budget. The goal is a suite people will run on every change.7 min read
10Chapter 10: Pinning model versions and detecting driftThis chapter covers how to control which model your tests run against, and how to notice when a model changes behavior even though your code did not. It assumes you have the earlier pieces in place: a golden dataset, deterministic and judge-based checks, a stored baseline, and a CI workflow that run8 min read
11Chapter 11: Reporting results and triaging failuresThis chapter assumes you already have a golden dataset, deterministic checks, a pass-rate gate, and a CI workflow that runs them. It covers what to do when the gate goes red, and how to make the output useful enough that the first person to see it can decide what to do.7 min read
12Chapter 12: Maintaining datasets and updating baselinesA regression suite is only useful while its cases and its baseline match the product you ship. This chapter covers how to keep both current. It assumes you have a JSONL golden dataset, a pass-rate gate like the one from the earlier chapters, and a CI workflow that runs pytest evals. You should als8 min read