CourseAI System Design: The Complete Course · Module 13: Quality Architecture · part 91 of 107
Part 91 · Module 13: Quality Architecture

Lab: Quality as part of the platform

421 min read·
Module 13 · Lab · About 60 minutes · Needs: lessons 1 and 2 of this module, and the Module 12 lab (or nothing: Step 1 rebuilds Modules 1 to 12)

What you are building

Quality, closed into a loop What this lab builds Active flow Background or async 1 Processing step number Build and gate registry.py registered parts harness.py gates per component CI gate ship or hold Production and feedback feedback.py failures to evals otel.py, drift.py spans and alarms production Ask and Cases 1 2 3 4 5 6 reports/quality.md is generated from all of it
The loop this lab closes. Bundles are built only from registered parts, the harness gates each one in CI, production (blue) sends spans, and drift alarms and failed requests come back as eval items and budgets.

The lessons built quality's parts on their own. This lab joins them to the platform: bundles name only registered versions, Module 10's CI gate reads the harness's recordings, Ask and Cases send tagged spans, drift finds 29 September's release, and production failures come back as eval items.

Everything runs on scripted stand-ins and guide 06's simulated traces; the ratings are simulated too. Two optional cells call your provider. Open a new Colab notebook, module-13-lab.ipynb, and run each cell in order.

The rest of this course is yours to keep

This course is bought on its own, once, and stays readable afterwards, including the parts added to it later.

Or open everything with a plan