Overview

The lecture asked how you know AI-written code is right. This module asks the same question one level up, about AI coding benchmarks: what does a model's score on HumanEval or SWE-bench tell you, and what does it leave out? It then turns to the one kind of evidence no benchmark and no test can produce: a written record of why the code is the way it is. That record is part of your CP2 evidence (PR descriptions and DECISIONS.md).

Why This Matters

A benchmark is a test suite written by someone else, about tasks that are not yours — the Week 10 lesson at a larger scale. HumanEval's scores cluster near the top today partly because its tests were too thin: adding far more tests dropped scores and changed rankings. SWE-bench Verified went further: an audit of the problems top models still failed found that most of them had flawed tests, not flawed models, which is why OpenAI stopped reporting it in February 2026. None of today's benchmarks check whether code is secure, fast enough, maintainable, or a fit for your codebase — a model can score well on "correct" while being exploitable on half its correct answers. And even a perfect test suite only shows what your code does, never why it does it that way: the alternatives considered, the one that was rejected, the person who decided. With AI that gap widens, because the options you never picked disappear with the chat window. A short decision record is the only thing that closes it.

Format and Timing

What You'll Learn

Required Materials

Optional Materials

If you want to go deeper on any of these topics (not required, but helpful if you're curious):

Completion and Assessment

This module is graded on completion. Submit your answers to the 4 questions on E3 before Sunday, November 22. You'll receive full credit for completing all questions; partial credit is not available. The questions are based on the readings and the framing video, so doing the readings first will make them straightforward.

← Back to Calendar