10B.18 Finish Learning DeepEval and Inspect from the Official Docs
You have now read seventeen lessons on DeepEval, Inspect AI and the tooling around them (10B.1 to 10B.17). Read this next sentence slowly, because the rest of the lesson hangs on it: this track is a foundation, the official documentation is the source of truth, and you should now read the official documentation of both packages end to end. The lessons gave you the map, the vocabulary, the failure modes, the methodology for defending a number and the judgement about which tool to reach for. They were verified against the packages on 24 November 2026. The packages did not stop on that day: DeepEval published version 4.3.6 on 25 November, one day after the version this track was written against, and Inspect AI shipped five releases between 6 and 23 November. No course, including this one, can stay ahead of that. The documentation, the changelog and the installed package can, because the people who ship the code publish all three.
Required and optional. DeepEval is the mandatory part of this track and Inspect AI is the optional part, so this lesson asks you to finish the DeepEval documentation and treats Inspect as a second reading list for those who took 10B.8 to 10B.17. Wherever the lesson covers both packages, the DeepEval parts are required and the Inspect parts are optional, and each Inspect part is marked "(optional)". The DeepEval-only path is weeks 0 to 3 of the plan in Part 4.
This is a different kind of lesson from the seventeen before it. It teaches no new feature. It does five jobs. It tells you honestly what 10B.1 to 10B.17 covered and what they left out, with a measurement rather than a feeling, and which of their findings no documentation page states (Part 2). It gives you a verified map of the official resources of both packages, every link loaded on the day this lesson was written (Part 3). It turns that map into a six-week reading plan keyed to this track's lessons (Part 4). It teaches the reading skills the plan needs: how to read a documentation page, an API reference, a changelog and a release note, and how to tell that something you learned here, or anywhere, is out of date (Parts 5 to 8). And it shows how to keep current without turning that into a second job (Part 9), then closes with a checklist you tick as you go (Part 10).
Start here (optional, 2 minutes). If you read nothing else of this lesson, do this.
- The requirement: read the official documentation of DeepEval end to end, and of Inspect AI too if you took the optional Inspect lessons (10B.8 to 10B.17), and treat the installed package's behaviour as the tie-breaker when a page and the package disagree.
- The plan: Part 4 is a six-week reading order that follows lessons 10B.2 to 10B.17 (weeks 1 to 3 are the required DeepEval path, weeks 4 to 6 are the optional Inspect path), with one small run or lookup after each block.
- The checklist: Part 10 lists the official pages to tick off, hands-on checks, a keep-current setup and ten questions to answer without opening anything.
- Your first five pages today: DeepEval's Introduction, Design Philosophy and Quickstart, then, if you took the optional Inspect lessons, Inspect's Welcome page and Tutorial. Then open a notes file (4.7) and write the date and your installed versions at the top.
What you'll learn
- What lessons 10B.1 to 10B.17 taught and what they deliberately did not: a lesson-by-lesson summary, a measured count of the official pages the track never names, and a gap-to-page table
- How both documentation sites are organized (DeepEval 253 pages, Inspect 79 pages plus a reference), and a categorized, working link for every official resource: docs, guides, tutorials, API reference,
llms.txt, GitHub repositories, PyPI, changelogs, Inspect Evals, the ecosystem packages and the papers - A recommended reading order and a six-week plan that follows the track, with something to do after each block
- How to read a docs page as a set of claims to test, with a worked example that found a gap between a one-line formula and the package
- Which behaviours the track found in the source that no docs page states, why they are the first things an upgrade can change without a changelog entry, and a tripwire script that re-checks them in a second
- How to read an API reference page and the installed signature, and why DeepEval has no generated reference site while Inspect has one
- How to read a changelog, a GitHub release and a PyPI history for two packages whose changelogs have completely different shapes, and the order in which to read them before an upgrade
- A repeatable routine for deciding whether a lesson, tutorial or snippet is out of date: compare versions, probe names, run with warnings as errors, search the changelog
- How to keep current: feeds, a weekly and a monthly routine, an upgrade workflow, and how to use
llms.txtsafely with an assistant - A checklist of official pages, hands-on checks and self-test questions to complete
What you don't need
- An API key. Nothing in this lesson calls a model, Confident AI or any service. The scripts read your installed packages and files you save yourself. The two scripts that run an evaluation use DeepEval's fake judge and Inspect's
mockllm/model, exactly as in the rest of the track. - To have understood every detail of 10B.1 to 10B.17. You will return to them as you read the docs, which is the point of the plan.
- Prior experience with either documentation site. Both are introduced from zero.
Setup
Nothing is required for the reading. The scripts of Parts 5 to 8 need the two packages, which you may already have from 10B.1. If not:
uv init eval-docs-lab --bare --python 3.13 && cd eval-docs-lab # first time only
uv add deepeval inspect-ai
# or: pip install deepeval inspect-aiTo run a script once without touching your project, use uv run --no-project --with deepeval --with inspect-ai python script.py, which builds a throwaway environment and is how every output in this lesson was produced. Set DEEPEVAL_TELEMETRY_OPT_OUT=1 for any DeepEval run. One DeepEval sample (the claim test in 5.3) imports fake_judge.py: save it from 10B.2, 3.5 next to the script. It is the same FakeJudge class every DeepEval sample in the track uses. The scripts that read a saved page expect the files from these commands in the same folder (they are the only network calls the lesson asks you to make, and they fetch documentation, not models):
curl -sL https://deepeval.com/llms.txt -o de_llms.txt
curl -sL https://deepeval.com/llms-full.txt -o de_llms_full.txt
curl -sL https://deepeval.com/changelog/changelog-2026.mdx -o de_cl2026.md
curl -sL https://inspect.aisi.org.uk/llms.txt -o in_llms.txt
curl -sL https://raw.githubusercontent.com/UKGovernmentBEIS/inspect_ai/main/CHANGELOG.md -o in_changelog.mdVersions (current at time of writing; lessons 10B.1 to 10B.16 were verified on 24 November 2026, and the versions below were read from PyPI on 28 November 2026; a snapshot, not a promise): deepeval 4.3.6 (published 25 November; the track was written against 4.3.5), inspect-ai 0.3.292 (23 November), inspect-evals 0.30.0 (23 November), inspect-scout 0.6.4 (23 November), inspect-viz 0.4.2, inspect-swe 0.3.3 (27 November), inspect-petri 3.1.1, inspect-harbor 1.0.0 and deepteam 1.0.10 (16 October, the standalone package that 4.3.6 no longer needs for red teaming; its GitHub README announces that it "will be deprecated on January 30, 2027"). All of these, both llms.txt indexes and the newest DeepEval changelog entry (still v4.3.5) were re-checked on 29 November 2026 and had not changed. Every link in this lesson returned HTTP 200 on 28 or 29 November 2026, and 3.16 lists the ones that look right and do not.
What you must be able to do after this lesson#
- Explain why the documentation, not the track, is the source of truth
- Read an API reference page and use inspect.signature to check a call
- Read a changelog and find every change in one release
- Test a claim from a docs page with a small probe script
- Decide whether a lesson sample is out of date
- Run the upgrade procedure and the keep-current routine
Why this matters for an AI engineer#
| You'll hear... | You'll understand it after... |
|---|---|
| "The tutorial I followed doesn't work any more." | Part 8 and 1.3 |
| "Which official page should I read for X?" | Part 3 and 2.5 |
| "Where did the DeepEval guides and the red-teaming docs go?" | 3.5 and 3.16 |
| "The docs say one thing and the package does another." | 1.4 and 5.3 |
| "What is the signature of that function now?" | Part 6 |
| "We upgraded and our evals changed. What should we have read?" | Part 7 |
| "How do I keep up without reading everything?" | Part 9 |
| "How much of the documentation have I actually read?" | Part 10 |
| "The lesson says the package does X, but no docs page says so. Can I rely on it?" | 2.6 |
"Our strict-warnings CI fails as soon as we touch deepeval.red_team." |
8.3 and 10B.7, 2.6 |
Curated links#
Checked 2 December 2026. Every address below was opened on that date. Part 3 maps both sites page by page; this table is the short list to bookmark first. The Inspect rows belong to the optional track (10B.8 to 10B.17).
| Resource | What it is for | When to read it |
|---|---|---|
| DeepEval Introduction | What DeepEval is: pytest-style tests for LLM outputs, with a large built-in metric library | First, before anything else |
| DeepEval 5-minute Quickstart | Install, a first local run with deepeval test run, and tracing an agent |
When you want a working run today |
| Test cases | The LLMTestCase class and its fields: the unit every metric scores |
Before you write your first dataset |
| Metrics introduction | How metrics score (0 to 1, a threshold, a reason) and the list grouped by use case | When you choose metrics |
| G-Eval | The custom-criteria judge metric | When no built-in metric matches your rubric |
| Datasets | Building, saving and loading evaluation datasets | When your golden set outgrows a list in a script |
| Unit testing in CI/CD | Running evals under pytest in a pipeline | When you add evals to a pull-request check |
| Troubleshooting | Known problems: TLS errors, timeouts, .env loading, settings |
When a run fails for a reason that is not your code |
| RAG evaluation guide | A worked guide to scoring a retriever and a generator separately | When your project is a RAG app |
| Changelog index (by year: 2026) | Dated release notes linked to pull requests | Before and after every upgrade |
| deepeval on PyPI (use "Release history") | The authoritative list of versions and dates (4.3.7 on 1 December 2026) | When you need to know what version a bug fix landed in |
| DeepEval on GitHub (Apache-2.0) | Source, issues and discussions | When the docs and the package disagree |
| DeepEval examples folder | Runnable examples: getting started, RAG, tracing, red teaming, DAG metrics | When you want code to copy and adapt |
| Inspect AI home (optional track) | What Inspect is and the map of its documentation | First, if you took 10B.8 to 10B.17 |
| Inspect Tutorial (optional track) | Worked example evaluations that double as a tour of the features | Your first hour with Inspect |
| Inspect Options (optional track) | Every inspect eval option, and how to set defaults in .env |
When a setting does not take effect |
| Inspect Scorers (optional track) | The built-in scorers: matching, regex, model-graded, math, perplexity | When you pick or write a scorer |
Inspect API reference: inspect_ai (optional track) |
Task, eval, eval_set and the other core calls, generated from code |
When you need an exact signature |
| Inspect changelog (optional track) | Every release, with breaking changes first (0.3.294 on 1 December 2026) | Before and after every upgrade |
| inspect-ai on PyPI (optional track) | Versions, dates and the Python requirement (3.11 or later) | When you pin or debug an environment |
| Inspect AI on GitHub (MIT) (optional track) | Source and issues | When the docs and the package disagree |
| Inspect examples folder (optional track) | Short runnable tasks, such as hello_world.py and tool_use.py |
When you want a small task to start from |
| Inspect Evals (optional track) | A catalogue of ready-made evaluations built on Inspect | Before you write a benchmark that already exists |
Part 1: Why the documentation, and why now#
1.1 What you have: a foundation#
Take stock of what the track gave you, because it is more than a list of functions. You can state, for each package, what it is for and what it is not for (10B.1). You can run both packages without a key, using a scripted judge for DeepEval and mockllm/model for Inspect, which means you can learn and test without spending anything. For DeepEval you know the test-case and metric contract, how the judge inside a metric is chosen, what G-Eval and DAG metrics compute, what the built-in metrics ask the judge, how tracing turns an agent run into something you can score, how the synthesizer and simulator make data and what that costs in trust, and what belongs in a CI gate (10B.2 to 10B.7). For Inspect you know the Task = Dataset + Solver + Scorer model, the scoring policy and the statistics Inspect reports, model grading and how to validate the grader, how to run at scale, how to read and analyse logs, and how tools, agents, sandboxes, limits and approval fit together (10B.8 to 10B.16). And you have the habit that matters more than any of it: for every number, ask what instrument produced it, what could be wrong with the instrument, and how to check.
What you do not have is the full surface. Both packages are large and they move. The documentation is where the whole surface lives, so the track's job now ends and the reader's job begins.
1.2 Why the official documentation wins#
Four reasons, in the order they usually bite.
- It is where changes land first. A new parameter, a renamed metric or a removed page appears in the docs and the changelog on the day it ships. A course, a blog post or a video lags by days to months, and the lag is invisible: nothing on a tutorial's page tells you what has changed since it was written.
- It is complete. This track names 106 of DeepEval's 253 documentation pages by address and 74 of Inspect's 79 (2.3). The remainder is not filler. It holds provider-specific details, per-benchmark settings, every red-teaming attack and vulnerability, every classifier and every voice metric. A foundation course cannot carry that and stay readable, and you will need some of it the day your project touches that corner.
- It is authoritative about intent. The page that describes
scoring-policywas written by the people who decided what a failed grader should do to the denominator. When you must argue a number to a sceptical colleague, "the maintainers' documentation says this, and here is the test that confirms the package does it" is the strongest sentence you can say. - It is checkable. Documentation pairs with source code you can read and a package you can run. You can test any claim in it in a few minutes (5.3). A course lesson is also checkable, but only by the reader who knows how, which is why this lesson teaches the technique.
1.3 How fast the ground moves#
Numbers, not adjectives. All of these were read on 28 November 2026 from the sources named in Part 7.
| What happened | Evidence | Why it matters to you |
|---|---|---|
| DeepEval published 4.3.5 on 24 November and 4.3.6 on 25 November | PyPI release dates | The track's "checked against 4.3.5" was stale within a day |
4.3.6 moved red teaming back into DeepEval (deepeval.red_team) and trydeepteam.com now redirects to deepeval.com |
10B.7 Part 1; redirects fetched on 28 November | Red teaming left DeepEval for a separate package and came back, so pages, import paths and the package you install all moved |
The standalone deepteam package "will be deprecated on January 30, 2027" |
The DeepTeam README on GitHub, read 29 November; the PyPI page of deepteam 1.0.10 does not say so, because that release predates the notice |
A deprecation can be announced in a place your package manager never shows you; migrate before the date (10B.7, 1.13) |
| DeepEval 4.2.0 (August) flipped the direction of four safety metrics so that higher is better | deepeval.com/changelog/changelog-2026, August, "Breaking Change" |
A threshold written for the old direction can silently pass the wrong cases |
| DeepEval's 2026 changelog lists three Breaking Change entries (4.2.0, 3.9.9, 3.9.8) | The same page, counted by script in 7.3 | Breaking changes arrive in minor and patch releases, not only in major ones |
| Inspect AI shipped 0.3.288 (6 November), 0.3.289 (10), 0.3.290 (13), 0.3.291 (17) and 0.3.292 (23) | CHANGELOG.md |
About one release every four days, each with dozens of fixes |
| Two of those five releases carry a "Breaking Changes" section (0.3.288 and 0.3.292) | The same file | A 0.3.x version number means "any release may break you", and the changelog says where |
None of this is a criticism. Fast, honest, visible change is what an active project looks like, and both projects publish what changed. It is a reason to adopt a habit: every number you report carries the package versions that produced it. Inspect's logs do this for you (8.5); for DeepEval you add the version to your own result record.
1.4 The docs are not perfect either#
"Read the docs" must not turn into "believe the docs". You met disagreements throughout the track; here are the ones this lesson reproduced on 28 November 2026, because each teaches a different habit.
- A formula that omits a case. DeepEval's Answer Relevancy page gives the score as relevant statements divided by total statements. The verdict prompt it sends also allows
borderline, and the package counts aborderlinestatement as relevant (5.3 runs the check). The page is not wrong so much as short: the formula describes the common case. Habit: when a formula has a category the prose never mentions, find where the code handles it. - Four sources, four answers. For "what is the newest DeepEval?", PyPI says 4.3.6,
pyproject.tomlin the repository says 4.3.6, the changelog page lists 4.3.5 as its newest entry, and GitHub Releases ends atpython-v4.2.4(22 September). Habit: know which source is authoritative for which question (7.1). - A warning in the newest module. Importing
deepeval.red_teamin 4.3.6 compiles a file with invalid escape sequences and Python 3.13 reportsSyntaxWarnings. It imports fine; with warnings promoted to errors it does not. With plainpython -W errorthat happens only on a cold bytecode cache, because the warning fires when Python compiles the file; under pytest withfilterwarnings = errorit fails on every run, because pytest compiles DeepEval's modules itself (8.3, and 10B.7, 2.6 for the CI fix). Habit: run new code once with warnings as errors, and read the warning before you decide it is noise. - Pages that move.
deepeval.com/guidesanddeepeval.com/tutorialsreturn 404 as bare section addresses (the guides and tutorials exist at their own page addresses), a guide on red teaming redirects to a new quickstart, and the standalone DeepTeam site redirects intodeepeval.com. Habit: bookmark pages, not sections, and re-check a link when it matters.
1.5 How to use this lesson#
Read Parts 1 to 3 once, now. Do Part 4's first block today. Keep Parts 5 to 8 open beside the docs while you read (they are the reading skills). Come back to Part 9 the first time you upgrade a package, and to Part 10 as a progress tracker. The lesson is long because it is a reference for the whole reading period; it is not meant to be read in one sitting.
Part 2: What 10B.1 to 10B.17 covered, and what they did not#
Deep-dive
2.1 Lesson by lesson#
The DeepEval lessons (10B.1 to 10B.7) are required and the Inspect lessons (10B.8 to 10B.17) are optional; the mark after each lesson number says which.
| Lesson | What it taught | Where the official docs go further |
|---|---|---|
| 10B.1 (required; its Inspect parts are optional) | Why adopt a framework after building evalkit; what each package is; install footprints and companion packages; the concept map; one project for the track; the keyless technique and a keyless smoke test in CI; the triage eval in both, and reconciling the three numbers; the roadmap of the track; corrections to 10A.10; defending a number you did not compute yourself |
Each package's introduction and philosophy pages; the DeepEval comparisons page; Inspect's tutorial |
| 10B.2 (required) | LLMTestCase and friends, the metric contract, evaluate(), assert_test() and deepeval test run, caching, local results, the CLI, pitfalls |
Evaluation introduction, test-case pages, flags and configs, CLI and environment-variable pages |
| 10B.3 (required) | The judge inside a metric, DeepEvalBaseLLM, G-Eval in depth, conversational and arena judging, BaseMetric, DAGMetric, Expectations, eval modes, validating a judge |
The custom-metric, DAG and judge-model guides, eval-modes and Jev pages |
| 10B.4 (required) | How a built-in metric works, every RAG metric with its prompts and formula, task-quality, safety and no-judge metrics, conversation metrics, the multimodal, voice and MCP catalogue, cost and variance | Each metric's own page ("How Is It Calculated?"), the voice and image metric pages |
| 10B.5 (required) | @observe, spans and the three scopes, filling test-case data at runtime (and which golden fields never reach a trace test case), how errored spans roll up, evals_iterator, local tracing and OpenTelemetry, component-level design, what each trace-aware judge's final prompt actually sees, the trajectory, tool and loop-detection metrics opened up, multi-turn and MCP metrics, multi-agent systems and framework integrations, validating agent evals |
LLM-tracing and trajectory pages, the agent and tracing guides, integration pages |
| 10B.6 (required) | Goldens and datasets, the Synthesizer in full, making synthetic data trustworthy, the ConversationSimulator and validating it, public benchmarks with their scorers and the bugs they hide (HumanEval never calls check(), the TruthfulQA MC2 scale, the EquityMedQA inversion), defending a benchmark comparison, an in-house benchmark built from goldens |
The voice-mode simulator pages, the ten benchmark pages it does not link, the synthesizer and simulation guides |
| 10B.7 (required) | Red teaming inside DeepEval (4.3.6): the catalogue, how a verdict is decided (a refusal short-circuit, a score > 0 pass rule and a PASS label fixed at 80%), multi-turn and agentic attacks, guardrails, the CLI and YAML, the DeepTeam migration; CI/CD, including parallel workers that lose test cases and strict warnings that break a suite; integrations; prompt optimization; Confident AI at survey level; a production checklist |
The red-teaming section (98 pages, 95 never linked), the prompt-optimization algorithm pages, the Confident AI documentation |
| 10B.8 (optional) | The Task = Dataset + Solver + Scorer model, a keyless first run, inspect eval versus eval(), logs and Inspect View, reading a log, the evalkit mapping |
Welcome, Tutorial, Options, Log Viewer, VS Code |
| 10B.9 (optional) | Samples, dataset loaders, selection and shuffling, the solver protocol and TaskState, built-in and custom solvers, task configuration |
Tasks, Datasets, Solvers, and the dynamic Task and Sample Sources pages |
| 10B.10 (optional) | The scoring pipeline, every built-in scorer, the scoring policy, custom scorers, metric formulas, epochs and reducers, the statistics Inspect reports and does not | Standard Scorers, Custom Scorers, Scoring Policy, Metrics, Multiple Scorers, Perplexity |
| 10B.11 (optional) | model_graded_qa() and model_graded_fact(), templates, panels of graders, grading controlled text, validating the grader, the scoring workflow |
Model Grading and Scoring Workflow pages |
| 10B.12 (optional) | Models and providers, GenerateConfig, concurrency, retries, caching, batch mode, the error policy, eval_retry, eval sets, early stopping, a CI gate |
Providers (one section per provider), Models, Caching, Concurrency, Batch Mode, Eval Sets, Parallelism, Sharding, Handling Errors |
| 10B.13 (optional) | Log formats and the EvalLog schema, events, the reading API, writing and converting, Inspect View for teams, dataframes, analysis recipes, extending Inspect |
Log Files, Dataframes, Task Views, the six Extensions pages, the inspect_ai.log and inspect_ai.analysis references |
| 10B.14 (optional) | The tool execution model and the exceptions that become tool errors, @tool, the standard tool catalogue, MCP tools, the agent protocol, react() parameter by parameter (including the hidden handoff prompt, attempts and compaction), custom agents, multi-agent systems, grading agent runs and measuring a scaffold change |
Tool Basics, Custom Tools, Standard Tools, MCP Tools, ReAct Agent, Multi Agent, Custom Agents, Deep Agent |
| 10B.15 (optional) | Sandboxes and the threat model, the sandbox() API, Docker and other providers, scoring final state, limits, tool approval (which fails closed) and tool result review (which fails open), long-horizon and external agents, a worked support desk under control, defending a number from a controlled run |
Sandboxing, Setting Limits, Tool Approval, Tool Result Review, Checkpointing, Intervention, Human Agent, Agent Bridge, Compaction |
| 10B.16 (optional) | The agent-evaluation contract, trajectory from events, outcome from state, pass@k and pass^k with their success threshold, budgets as conditions, baselines, Scout, adversarial models, Inspect Evals with task versions and the Register, Harbor, Viz, Petri, Cyber, sandbox packages, governance | The ecosystem packages' own documentation sites and the Inspect Evals catalogue |
| 10B.17 (optional) | How to compare two frameworks fairly, a comparison on every axis, the same three evals side by side in both tools, six seams for combining them, migrating and the parity protocol, patterns and anti-patterns, a pitfalls checklist for 10B.2 to 10B.16 with a scanner, the decision table, a one-day bake-off and the other tools, defending a number from two frameworks, and what moved in 2026 | Each package's own comparison and philosophy pages |
2.2 What the track deliberately did not cover#
A foundation course makes choices. These are the ones to know about, so that a gap in your knowledge is a known gap rather than a surprise.
DeepEval
- The TypeScript SDK. The docs show Python and TypeScript tabs side by side (the TypeScript commands start
npx deepeval). The track is Python only. - Tutorials and vibe-coding pages. The three narrative tutorials (a medical chatbot, a RAG question-answering agent, a summarization agent) and the "Vibe Coder" quickstarts cover the same concepts as 10B.2 to 10B.7, in a different order. They are worth reading as worked examples (3.3).
- The long tail of red teaming. The red-teaming and guardrails section is 98 pages: every single-turn and multi-turn attack, every vulnerability, the framework pages (OWASP, NIST AI RMF, MITRE ATLAS, EU AI Act, ISO/IEC 42001), and guardrails. 10B.7 teaches the model and one safe run; Module 12 owns the depth.
- Classifiers beyond the introduction, voice metrics and voice simulation, community metrics. 10B.3 and 10B.4 give the shape and the catalogue; the individual pages carry the parameters.
- Per-benchmark settings. 10B.6 teaches
deepeval.benchmarks, opens up the scorers and links seven of the sixteen benchmark pages; each benchmark's page lists its tasks and arguments. - The Confident AI platform. Surveyed in 10B.7 with dated pricing. It has its own documentation site, and this track never logs in.
Inspect AI
- Every provider's details. The Providers page has one section per provider with its environment variables, options and quirks. 10B.12 teaches the shape; you read your provider's section.
- Pages the track names only briefly or not at all: Fallbacks, Structured Output, Tracing, Task Sources and Sample Sources (generating tasks or samples dynamically from code), and the Perplexity scorers (Sharding, one run split across several worker processes, is taught in 10B.12, 4.9). The coverage measurement below lists what is never named.
- The VS Code extension. Described in 10B.8, not exercised, because it is an editor feature rather than Python code.
- Individual evals in Inspect Evals and the ecosystem packages' own documentation. 10B.16 explains what each package is for and when to reach for it; their sites carry the API.
Both
- Hosted-model runs. The track's samples are keyless by design. Everything it taught about real providers (keys, rate limits, cost, caching, batch) is illustrative until you run it against your own account.
2.3 Measuring the gap#
"The track did not cover everything" is easy to say. Here is a way to put a number on it, and it is also a technique you can reuse: every well-run documentation site publishes an index, so you can compare the index with your own notes. DeepEval and Inspect both publish an llms.txt (an index of every page, 3.15). The script below reads the two saved indexes and checks which pages' addresses (or slugs, the last part of the address) appear anywhere in lessons 10B.1 to 10B.16. Pass it the folder that holds the lessons.
# coverage_map.py: which official docs pages do lessons 10B.1 to 10B.16 never name? (lesson 10B.18)
# Inputs: the two llms.txt indexes you saved, and the lesson files (path passed as argv[1]).
import glob
import re
import sys
lessons = "\n".join(open(p, encoding="utf-8").read() for p in sorted(glob.glob(sys.argv[1] + "/[12][0-9]-*.md"))
if 13 <= int(p.rsplit("/", 1)[1][:2]) <= 28)
def linked(url_tail: str) -> bool:
"""True if the page's full address appears in the lessons (exact match, not a substring).
A page can be taught without its address appearing (a lesson may teach a feature without linking
every page), so this undercounts. An address that only matches inside a longer address does not
count, so it does not overcount either. Treat the unlinked list as a place to look, not a verdict.
"""
return re.search(re.escape(url_tail) + r"(?![\w-])", lessons) is not None
def sections(pages):
out: dict[str, list[tuple[str, bool]]] = {}
for section, title, tail in pages:
out.setdefault(section, []).append((title, linked(tail)))
return out
# DeepEval: "- **Section**" lines open a section, "[Title](/docs/slug)" lines are pages.
pages, section = [], "Docs"
for line in open("de_llms.txt", encoding="utf-8"):
m = re.match(r"- \*\*(.+?)\*\*", line)
if m:
section = m.group(1).replace("Separator", "Red teaming and guardrails")
for title, path in re.findall(r"\[([^\]]+)\]\((/docs/[^)]+)\)", line):
pages.append((section, title, "deepeval.com" + path))
print("DeepEval docs (deepeval.com/llms.txt):", len(pages), "pages")
total = hit = 0
for sec, items in sections(pages).items():
n = sum(1 for _, ok in items if ok)
total, hit = total + len(items), hit + n
print(f" {sec:30} linked {n:3} of {len(items):3}")
print(f" {'ALL':30} linked {hit:3} of {total:3}")
miss = [t for sec, items in sections(pages).items() if sec not in ("Red teaming and guardrails", "Benchmarks")
for t, ok in items if not ok]
print(" not linked (outside red teaming and benchmarks):", "; ".join(miss))
# Inspect: "## Section" lines, "[Title](https://inspect.aisi.org.uk/x.html.md)" lines.
pages, section = [], ""
for line in open("in_llms.txt", encoding="utf-8"):
if line.startswith("## "):
section = line[3:].strip()
for title, tail in re.findall(r"\[([^\]]+)\]\(https://(inspect\.aisi\.org\.uk/[^)]+?)\.md\)", line):
pages.append((section, title, tail))
print("\nInspect docs (inspect.aisi.org.uk/llms.txt):", len(pages), "pages")
total = hit = 0
for sec, items in sections(pages).items():
n = sum(1 for _, ok in items if ok)
total, hit = total + len(items), hit + n
print(f" {sec:30} linked {n:3} of {len(items):3}")
print(f" {'ALL':30} linked {hit:3} of {total:3}")
miss = [t for sec, items in sections(pages).items() if sec != "Reference" for t, ok in items if not ok]
print(" not linked (outside Reference):", "; ".join(miss))Run it from the folder where you saved the two llms.txt files:
python coverage_map.py path/to/docs/source/10b-eval-frameworksDeepEval docs (deepeval.com/llms.txt): 253 pages
Docs linked 1 of 3
Getting Started linked 3 of 8
LLM Evals linked 18 of 18
Eval Metrics linked 53 of 64
Classifiers linked 3 of 18
Prompt Optimization linked 1 of 5
Synthetic Data Generation linked 13 of 16
Benchmarks linked 7 of 17
Red teaming and guardrails linked 3 of 98
Others linked 4 of 6
ALL linked 106 of 253
not linked (outside red teaming and benchmarks): Design Philosophy; Comparisons; Vibe Coder 5-min Quickstart; Vibe Coding with DeepEval; Chatbot Evaluation Quickstart; RAG Evaluation Quickstart; LLM Arena Evaluation Quickstart; Voice Naturalness; Speech Intelligibility; Voice Consistency; Turn-Taking Naturalness; Agent Responsiveness; Audio Integrity; Audio Glitch; Voice Reliability; Transcription Accuracy; Community Metrics; Citation Faithfulness; Custom Classifier; Topic Classifier; Use Case Classifier; Issue Classifier; Refusal Classifier; Escalation Classifier; Scope Adherence Classifier; Clarification Classifier; Resolution Classifier; Abstention Classifier; Forbidden Commitments Classifier; Tone Adherence Classifier; Required Disclosure Classifier; Response Language Classifier; Instruction Completeness Classifier; GEPA; MIPROv2; SIMBA; COPRO; Voice Connectors; Personas; Interruptions; Frequently Asked Questions; Miscellaneous
Inspect docs (inspect.aisi.org.uk/llms.txt): 79 pages
Basics linked 5 of 5
Components linked 4 of 4
Models linked 8 of 10
Scoring linked 8 of 8
Agents linked 9 of 9
Tools linked 7 of 7
Running linked 9 of 10
Analysis linked 5 of 5
Extensions linked 6 of 6
Reference linked 13 of 15
ALL linked 74 of 79
not linked (outside Reference): Fallbacks; Structured Output; TracingHow to read this honestly. The test is "does the page's exact address appear in lessons 10B.1 to 10B.16", not "is the topic taught", so it can be wrong in both directions. It undercounts where a feature is taught without its page being linked: the four prompt-optimization algorithms are taught in one comparison table in 10B.7 rather than page by page. It would overcount if it accepted a short slug found inside a longer address (introduction inside evaluation-introduction), which an earlier draft of this script did (it reported 99 pages where whole addresses gave 86, on the lessons as they stood on 28 November), so the script now matches whole addresses only. And it moves when the lessons move. On 28 November it reported 86 of 253. Editing passes then extended several lessons, and the re-run above (29 November) reports 106: 10B.6 now links twelve more synthesizer and simulator pages and six benchmark pages, and two more concept pages are named. That is the measurement doing its job; re-run it whenever the lessons or the docs change, and quote the date with the number. Lesson 10B.17 is outside the range because it compares the two tools rather than teaching either one. What the list does show reliably is where the real gaps are. For Inspect there is almost none: 74 of 79 pages are named, and the three non-reference pages never named are Fallbacks, Structured Output and Tracing. For DeepEval the unnamed pages cluster in a few places: red teaming and guardrails (95 of 98), classifiers (15 of 18), the nine voice-agent metrics, benchmarks (10 of 17), the five use-case and vibe-coding quickstarts, the four prompt-optimization algorithm pages, and the three voice-mode simulator pages (connectors, personas, interruptions). A handful of single pages complete the list: Design Philosophy, Comparisons, Community Metrics, Citation Faithfulness, the FAQ and Miscellaneous.
2.4 What changed after 24 November#
- DeepEval 4.3.6 was published on 25 November 2026. The track's red-teaming material (10B.7) is written against it; the other DeepEval lessons say "checked against 4.3.5". To test whether the names they teach still exist, this lesson ships a probe (8.3): all 89 names probed, in both packages, are present in the 28 November install.
- The
deepteamdeprecation date. The DeepTeam README now says the package "will be deprecated on January 30, 2027" and that everything in it lives indeepeval.red_teamfrom 4.3.6. Thedeepteam1.0.10 page on PyPI does not carry the notice (the release is older than the announcement), so a team that only watches PyPI would not see it. 10B.7, 1.13 is the migration. inspect-swe0.3.3 was published on 27 November.inspect-ai(0.3.292),inspect-evals(0.30.0) andinspect-scout(0.6.4) have had no release since 23 November.- Documentation pages change without a version number. The only way to know is to compare, which is what the keep-current routine of Part 9 is for.
2.5 Topic to docs page: where to go for each gap#
| If your project needs... | Read | Lesson that prepared you |
|---|---|---|
| A different provider as the judge (DeepEval) | Using custom LLMs and the CLI page's set-* commands |
10B.3 |
| RAG evaluation of your own pipeline | RAG quickstart and RAG evaluation guide | 10B.4 |
| A chatbot or voice agent | Chatbot quickstart, the multi-turn pages and the voice-metric pages | 10B.4, 10B.6 |
| Adversarial testing of your app | Red teaming introduction then the pages for the vulnerabilities you worry about | 10B.7, Module 12 |
| Classifiers that label production traffic | Classifiers introduction and the specific classifier page | 10B.3 Part 9 |
| Automatic prompt improvement | Prompt optimization introduction and the algorithm page you choose | 10B.7 Part 4 |
| Your provider's Inspect options | The Providers section for that provider | 10B.12 |
| Structured output, reasoning or multimodal inputs in Inspect | Structured Output, Reasoning, Multimodal | Structured Output: none (read the page cold); Reasoning: 10B.11, 10B.12; Multimodal: 10B.9 |
| A very large eval split across processes | Sharding | 10B.12 |
| A run that must fall back when a model refuses | Fallbacks | 10B.12 (one paragraph) |
| Diagnosing a stuck eval | Tracing and Control Channel | Tracing: none (read the page cold); Control Channel: 10B.12 (a short mention) |
| Samples or tasks generated while the eval runs | Task Sources and Sample Sources | 10B.9 |
| A public benchmark | The Inspect Evals page for that eval | 10B.16 |
2.6 Where the track went past the docs, and a tripwire for it#
Several lessons established behaviour by reading the installed source or by running a keyless experiment, and much of it is stated on no documentation page. That knowledge is valuable and fragile at the same time. It is valuable because it changes what a number means. It is fragile because nobody promised it: from the maintainers' side no documented behaviour changes when they move an undocumented threshold, so the change can ship in a bug-fix release with a one-line changelog entry or none. These are the first claims to re-check after an upgrade, before anything a page says.
| Lesson | What it established from the source or a run (DeepEval 4.3.5 and 4.3.6, Inspect 0.3.292) | Why it changes a number |
|---|---|---|
| 10B.2, 4.5 | In the default async mode, evaluate(), assert_test() and deepeval test run rebuild your metric objects for each test case from their __init__ arguments; an argument stored under a different attribute name silently falls back to its default |
A custom metric that behaves in a notebook can misbehave only in CI |
| 10B.3, 13.2 | A whole table of docs-versus-code differences: G-Eval scores 0 to 10 and divides by 10 (one page says 1 to 5), accepts criteria and steps together, regenerates steps per test case whenever a fresh copy runs, and prompts live in compiled templates rather than where the docs point | A rubric and a threshold must match the scale the code uses |
| 10B.18, 5.3 | Answer Relevancy counts a borderline verdict as relevant |
Two borderline statements score the same as two yes |
| 10B.5, 4.3 | A trace-level test case takes expected_output, context, retrieval_context and expected_tools from the trace, not from the golden |
A reference-based metric fails with MissingTestCaseParamsError until you copy them across with get_current_golden() |
| 10B.5, 4.5 | Metrics on an errored span are skipped, and an exception the agent catches does not fail the golden | A crashed component can sit inside a passing test case |
| 10B.6, 9.6 | HumanEval appends the problem's tests but never calls check(), and the overall score counts a problem solved if any sample ran without an exception |
A wrong function scores as a pass |
| 10B.7, 1.7 | A refusal short-circuit skips the red-team judge, a case passes when score > 0, and the console prints PASS at a pass rate of 0.8 or more, WARNING from 0.5 and FAIL below, with no setting to change it |
One failure in five still prints PASS; your gate needs its own threshold |
| 10B.7, 2.5 | With pytest-xdist workers (-n), DeepEval's summary loses test cases, a different number on different runs |
One clean parallel run proves nothing; count the cases |
| 10B.14, 2.6 | Inspect turns more exceptions into tool errors the model sees than the docs list, including FileNotFoundError |
A missing fixture file becomes agent behaviour instead of a crash |
| 10B.14, 7.2 | react() with handoff tools adds about 520 characters of system prompt you never wrote, including "Do not mention or draw attention to these transfers" |
Transparency rubrics, and single- versus multi-agent comparisons, measure that text too |
| 10B.14, 7.5 | react() attempts end early only when the task's first scorer gives exactly 1.0 |
A partial score burns every attempt |
| 10B.16, 4.7 | pass_at() and pass_k() count an epoch as a success only at a score of at least value, 1.0 by default |
Partial credit counts as failure unless you lower it |
This is a sample, one or two findings per lesson. The full inventory is the pitfalls checklist of 10B.17, Part 8: more than a hundred rows, each with its fix and the section that reproduced it, and a scanner for the ones a regular expression can find.
A claim test (5.3) settles one of these properly, by running it. Before you spend that time, a cheaper filter tells you which ones to re-test. Each lesson found its fact on a particular line of the source, so check that the line is still there. The script below does that for eight of the rows, reading the installed files as text without importing either package (importing deepeval.red_team would trigger the warning of 8.3):
# tripwires.py: does undocumented behaviour the track found still hold in the installed packages? (lesson 10B.18)
# Reads installed source files only: no model, no key, and neither package is imported.
# "CHANGED" means "re-read that lesson section", not "the behaviour changed": a refactor can trip a wire.
import importlib.util
import pathlib
import re
import warnings
def src(package: str, relpath: str) -> str:
"""Text of a file inside an installed package, located without importing the package."""
root = pathlib.Path(importlib.util.find_spec(package).submodule_search_locations[0])
return (root / relpath).read_text(encoding="utf-8")
def syntax_warnings(package: str, relpath: str) -> int:
"""Compile one file from source and count SyntaxWarnings (no bytecode cache can hide them)."""
with warnings.catch_warnings(record=True) as caught:
warnings.simplefilter("always")
compile(src(package, relpath), relpath, "exec")
return sum(issubclass(w.category, SyntaxWarning) for w in caught)
def pass_at_default() -> float:
# inspect.signature(pass_at) shows only (*w_args, **w_kwargs): the @score_reducer wrapper hides it (6.1)
m = re.search(r"def pass_at\(\s*k: int, value: float = ([\d.]+)", src("inspect_ai", "scorer/_reducer/reducer.py"))
return float(m.group(1)) if m else float("nan")
WIRES = [ # (lesson section, the claim, a check that is True while the claim holds)
("10B.18 5.3", "Answer Relevancy counts a borderline verdict as relevant",
lambda: "passing=(Verdict.YES, Verdict.BORDERLINE)" in src("deepeval", "metrics/answer_relevancy/answer_relevancy.py")),
("10B.7 1.7", "the red-team console prints PASS from a 0.8 pass rate, WARNING from 0.5",
lambda: all(s in src("deepeval", "red_team/red_teamer/red_teamer.py") for s in ("pass_rate >= 0.8", "pass_rate >= 0.5"))),
("10B.7 2.6", "a red-team template has invalid escape sequences (strict-warnings CI fails)",
lambda: syntax_warnings("deepeval", "red_team/attacks/single_turn/math_problem/template.py") > 0),
("10B.5 4.3", "a trace test case takes expected_output from the trace, not the golden",
lambda: "expected_output=current_trace.expected_output" in src("deepeval", "evaluate/execute/trace_scope.py")),
("10B.6 9.6", "HumanEval appends the tests but never calls check()",
lambda: "check(" not in src("deepeval", "benchmarks/human_eval/human_eval.py")),
("10B.14 2.6", "a FileNotFoundError in a tool becomes a tool error the model sees",
lambda: "isinstance(ex, FileNotFoundError)" in src("inspect_ai", "model/_call_tools.py")),
("10B.14 7.5", "react() attempts stop only on a first-scorer value of exactly 1.0",
lambda: re.search(r"score_value\(answer_scores\[0\]\.value\)\s*==\s*1\.0", src("inspect_ai", "agent/_react.py"))),
("10B.16 4.7", "pass_at() counts an epoch as a success only at value >= 1.0 by default",
lambda: pass_at_default() == 1.0),
]
changed = 0
for where, claim, holds in WIRES:
try:
ok = holds()
except Exception as exc: # file moved, name gone: also a reason to re-read
ok, claim = False, f"{claim} [{type(exc).__name__}: {exc}]"
changed += not ok
print(f"{'holds ' if ok else 'CHANGED'} {where:10} {claim}")
print(f"\n{len(WIRES) - changed} of {len(WIRES)} hold; re-read the lesson section of every CHANGED line")holds 10B.18 5.3 Answer Relevancy counts a borderline verdict as relevant
holds 10B.7 1.7 the red-team console prints PASS from a 0.8 pass rate, WARNING from 0.5
holds 10B.7 2.6 a red-team template has invalid escape sequences (strict-warnings CI fails)
holds 10B.5 4.3 a trace test case takes expected_output from the trace, not the golden
holds 10B.6 9.6 HumanEval appends the tests but never calls check()
holds 10B.14 2.6 a FileNotFoundError in a tool becomes a tool error the model sees
holds 10B.14 7.5 react() attempts stop only on a first-scorer value of exactly 1.0
holds 10B.16 4.7 pass_at() counts an epoch as a success only at value >= 1.0 by default
8 of 8 hold; re-read the lesson section of every CHANGED lineHow to read it, and its limits:
- "holds" means the line the lesson relied on is still there. It is strong evidence that the behaviour is unchanged, not proof: the behaviour could change through a different file.
- "CHANGED" means "re-read that section and re-run its sample", not "the behaviour changed". A rename or a reformatted line trips a wire with no change in behaviour. A false alarm costs five minutes; a missed change costs a wrong number, so this trade is the right one.
- The first draft of this script tripped a false alarm, and it is worth knowing why. It read
pass_at's default withinspect.signature, and in 0.3.292 that returns(*w_args, **w_kwargs), because the@score_reducerdecorator hides the real signature (6.1). The wire now reads the line inreducer.pyinstead. When a tool says something changed, check the tool before you believe it. - The warning wire compiles the file with
compile(). That always reports theSyntaxWarnings, warm bytecode cache or not, so it is a deterministic version of the check in 8.3.
Add a wire for every undocumented behaviour your own suite depends on, with the section or note where you found it, and run the script in the monthly routine of 9.2 and before every upgrade (7.4).
Part 3: A map of the official resources#
Every link in this part returned HTTP 200 on 28 November 2026 and again on 29 November (checked by script, then spot-read). Where a link looks right and fails, 3.16 says so. Each table is grouped the way the site groups its pages, and the last column says which lesson prepared you for it. Read the group, not every link, on a first pass: Part 4 gives the order.
3.1 How deepeval.com is organized#
deepeval.com is one site with nine places in its top bar: Docs, Guides, Tutorials, Integrations, Enterprise, Community, Changelog, Blog and Ask AI. The Docs sidebar has ten groups, and the site's own llms.txt index lists 253 pages across them:
| Docs group | Pages | What it holds |
|---|---|---|
| Docs (top) | 3 | Introduction, design philosophy, comparisons |
| Getting Started | 8 | Quickstarts: the 5-minute one, vibe-coding, and one per use case |
| LLM Evals | 18 | The evaluation concepts: test cases, datasets, tracing, end-to-end, component-level, CI/CD, flags, local storage |
| Eval Metrics | 64 | Every metric, grouped by purpose, each with a "How Is It Calculated?" section |
| Classifiers | 18 | LLM-as-a-judge classifiers that label text rather than score it |
| Prompt Optimization | 5 | The introduction and four algorithms |
| Synthetic Data Generation | 16 | The synthesizer and the conversation simulator |
| Benchmarks | 17 | The introduction and sixteen public benchmarks |
| Red teaming and guardrails | 98 | Attacks, vulnerabilities, frameworks, guardrails (the index files this group under a placeholder name) |
| Others | 6 | CLI, environment variables, troubleshooting, FAQ, data privacy, miscellaneous |
Other places: Guides are longer how-to articles, Tutorials are three end-to-end narratives, Integrations has 49 pages (frameworks, models, vector databases, speech, voice connectors), and the Changelog is organized by year (Part 7). The site has no generated API reference (Part 6 explains what to use instead).
3.2 DeepEval documentation, by group#
Orientation and getting started
| Page | What you get |
|---|---|
| Introduction, Design Philosophy, Comparisons | What DeepEval is for, why it is shaped like pytest, and the maintainers' own view of the alternatives (read their comparisons as a vendor's view, not a verdict) |
| 5-minute Quickstart | The first eval, as the docs teach it. Compare with 10B.2 |
| Vibe Coder Quickstart, Vibe Coding with DeepEval | Using DeepEval from a coding assistant; read after you have the manual skills |
| Agents, Chatbots, RAG, MCP, LLM Arena | One quickstart per use case: the quickest route to a working eval for your kind of app |
LLM evals: the concepts
| Page | Lesson |
|---|---|
| Introduction to LLM Evals, Eval Modes | 10B.2, 10B.3 |
| Test cases: single-turn, multi-turn, arena | 10B.2 |
| Datasets, Prompts, Voice, MCP | 10B.6, 10B.7, 10B.4, 10B.5 |
| LLM Tracing | 10B.5 |
| End-to-end: overview, single-turn, multi-turn | 10B.2, 10B.5 |
| Trajectory-based, Component-level | 10B.5 |
| Unit testing in CI/CD, Flags and configs, Local backend storage | 10B.2, 10B.7 |
Eval metrics (read the "How Is It Calculated?" section of every metric you use, and the Usage section for its parameters)
Classifiers, prompt optimization, synthetic data, benchmarks and other pages
3.3 Guides and tutorials#
Guides (deepeval.com/guides/...) are longer articles written around a task. The guides sidebar lists twenty-one on 28 November; the first column groups them.
| Topic | Guides |
|---|---|
| Agents | AI agent evaluation, agent evaluation metrics, tracing AI agents |
| RAG | RAG evaluation, the RAG triad, answer correctness, tracing RAG |
| Custom metrics and judges | Building custom metrics, G-Eval examples, Jev examples, the DAG metric, custom LLMs, custom embedding models |
| Conversations | Multi-turn evaluation, multi-turn metrics, multi-turn simulation, tracing multi-turn |
| Data | Using the synthesizer |
| Operations | LLM observability, regression testing in CI/CD, optimizing hyperparameters |
Tutorials (deepeval.com/tutorials/...) are three narratives that follow one app through the same five stages: introduction, development, evaluation, improvement and evals in production. Start at the tutorial introduction and the setup page, then pick the app closest to yours: the medical chatbot, the RAG question-answering agent or the summarization agent; each has /development, /evaluation, /improvement and /evals-in-prod pages beside it.
3.4 Integrations#
deepeval.com/integrations is a gallery. On 28 November it links 49 pages in seven families, each at https://deepeval.com/integrations/<family>/<name>:
| Family | Names (replace <name>) |
|---|---|
frameworks |
langchain, langgraph, llamaindex, crewai, openai-agents, pydanticai, openai, anthropic, strands, agentcore, google-adk, huggingface |
models (judge providers) |
openai, anthropic, gemini, azure-openai, amazon-bedrock, vertex-ai, openrouter, litellm, portkey, ollama, lmstudio, vllm, deepseek, grok, moonshot |
decision-models |
openai, typesafe-ai |
vector-databases |
chroma, cognee, elasticsearch, pgvector, qdrant, weaviate |
stt and tts |
assemblyai, cartesia, deepgram, elevenlabs, openai (speech to text); cartesia, deepgram, elevenlabs, openai (text to speech) |
voice-agent-connectors |
elevenlabs, livekit, pipecat, twilio, vapi |
For example, the LangChain page and the OpenRouter judge page. The bare family address https://deepeval.com/integrations/frameworks/ redirects to /integrations/frameworks, which is a 404; use the gallery or the full page address. Read the one page for the framework you use and the one page for the judge provider you chose. Integrations are the second most drift-prone pages after guides, because they depend on a third party's API as well as DeepEval's.
3.5 Red teaming in the official docs#
DeepEval 4.3.6 puts red teaming back inside DeepEval (10B.7 Part 1 teaches it, and deepeval.red_team is probed in 8.3). The documentation moved with it:
| Where | What | State on 28 November 2026 |
|---|---|---|
| Introduction to LLM red teaming and Quickstart | The current entry points | Read these first |
| Running red teams, YAML configurations, Agentic red teaming | Running a campaign, from code, from a config file, and goal-driven | Current |
| Test case, Risk assessment, Model callback | The concepts | Current |
| Attacks and the attack engine | One page per single-turn and multi-turn attack | Current; read the attack pages that match your threat model |
| Vulnerabilities, Custom vulnerability, Evaluation guidelines | The categories, from data privacy and responsible AI to security, safety, business and agentic | Current |
| Frameworks | Mapping to OWASP Top 10 for LLMs, OWASP for agents, NIST AI RMF, MITRE ATLAS, EU AI Act and ISO/IEC 42001 | Current |
| Guardrails | Runtime guards: prompt injection, topical, toxicity, privacy, illegal, hallucination, cybersecurity | Current |
trydeepteam.com and the old guides-red-teaming page |
The former standalone DeepTeam docs and an older guide | Redirect into deepeval.com (followed to the end on 29 November; see 3.16) |
deepteam on PyPI and its repository |
The standalone package, 1.0.10 (16 October) | Still published, but its README says it "will be deprecated on January 30, 2027"; the docs no longer live on its own site |
The table above names the entry points. The bulk of the red-teaming section is a long tail of pages that follow address patterns, the same trick 3.4 uses for integrations. Every address below was requested on 28 November 2026 and answered HTTP 200 (85 addresses, checked with a curl loop that prints the status code for each /docs/... address copied from llms.txt). The families are my grouping of the slugs in llms.txt, not the site's own sidebar.
| Family | Address pattern (after https://deepeval.com/docs/) |
Pages | What the pages are called |
|---|---|---|---|
| Single-turn attacks | red-teaming-adversarial-attacks-<name> |
20 | adversarial-poetry, authority-escalation, base64-encoding, char-split, character-stream, context-flooding, embedded-instruction-json, emotional-manipulation, gray-box-attack, hex-encoding, homoglyph, leetspeak, math-problem, morse-code, multilingual, prompt-injection, roleplay, rot13-encoding, synthetic-context-injection, zero-width |
| Multi-turn jailbreaks (same pattern) | red-teaming-adversarial-attacks-<name> |
5 | bad-likert-judge, crescendo-jailbreaking, linear-jailbreaking, sequential-jailbreaking, tree-jailbreaking |
| Agentic attacks | red-teaming-agentic-attacks-<name> |
5 | context-poisoning, input-bypass, permission-escalation, semantic-manipulation, system-override |
| Agentic vulnerabilities (goal-level) | red-teaming-agentic-vulnerabilities-<name> |
2 | goal-theft, recursive-hijacking |
| Vulnerabilities: data privacy | red-teaming-vulnerabilities-<name> |
3 | pii-leakage, prompt-leakage, cross-context-retrieval |
| Vulnerabilities: responsible AI and safety | red-teaming-vulnerabilities-<name> |
8 | bias, fairness, ethics, toxicity, child-protection, personal-safety, graphic-content, illegal-activity |
| Vulnerabilities: business | red-teaming-vulnerabilities-<name> |
4 | misinformation, intellectual-property, competition, robustness |
| Vulnerabilities: security | red-teaming-vulnerabilities-<name> |
10 | bfla, bola, rbac, debug-access, path-traversal, shell-injection, sql-injection, ssrf, system-reconnaissance, xss |
| Vulnerabilities: agentic | red-teaming-vulnerabilities-<name> |
11 | agent-identity-abuse, autonomous-agent-drift, excessive-agency, exploit-tool-agent, external-system-abuse, indirect-instruction, inter-agent-communication-compromise, mcp-server-trust-exploitation, tool-metadata-poisoning, tool-orchestration-abuse, unexpected-code-execution |
| Guardrails | guardrails-<name> |
8 | introduction, prompt-injection-guard, topical-guard, toxicity-guard, privacy-guard, illegal-guard, hallucination-guard, cybersecurity-guard |
| Framework mappings | frameworks-<name> |
9 | introduction, owasp-top-10-for-llms, owasp-top-10-for-agentic-applications, nist-ai-rmf, mitre-atlas, eu-ai-act, iso-42001, aegis, beavertails |
A reading order that works: the entry points above, then the vulnerabilities page for your application's kind (a RAG chatbot reads data privacy and the responsible-AI group, an agent reads the agentic group), then the attack pages that can reach those vulnerabilities, then the guardrail you would put in front. Week 3 of Part 4 points here. Read these pages with 10B.7, 1.7 open: the scoring rules that decide a red-team verdict (a refusal short-circuit that skips the judge, a score > 0 pass rule, and a console PASS label fixed at a pass rate of 0.8, WARNING from 0.5) are not stated on these pages, so they are the place where the docs alone will mislead you.
3.6 Confident AI#
Confident AI is the company behind DeepEval and sells a hosted platform. The track never logs in, so the platform documentation is the part of this map you should read last, and only if you adopt it. Its docs have an index at confident-ai.com/docs/llms.txt (every page is also served as Markdown with .md), a documentation home and a pricing page. Pricing and limits change; if you quote a figure, write the date beside it, as 10B.7 does. DeepEval's own data privacy page explains what leaves your machine and when, and is the page to show a security reviewer. The Enterprise and Community pages are on the main site.
3.7 DeepEval: code, packages, changelog and feeds#
| Resource | Address | What it is for |
|---|---|---|
| Source code and issues | github.com/confident-ai/deepeval, issues, discussions | The package source (Apache-2.0), bug reports, questions |
| Releases | GitHub Releases | Stale: no 4.3.x release (see 7.1) |
| Package index | pypi.org/project/deepeval (use "Release history") | The authoritative version list and dates |
| Changelog | deepeval.com/changelog, by year: 2026, 2025, 2024 | Dated release notes, linked to pull requests |
| Blog | deepeval.com/blog | Announcements and essays; a source for the maintainers' intent, not a reference |
| Whole docs as text | deepeval.com/llms-full.txt (about 3.3 MB on 28 November) and llms.txt | Searchable copy and page index (3.15) |
| Feeds | PyPI releases feed, GitHub releases feed | New versions; the second one inherits the staleness of GitHub Releases |
The repository has no CHANGELOG.md at its root (the raw address returns 404): DeepEval's changelog lives on the documentation site.
3.8 How inspect.aisi.org.uk is organized#
inspect.aisi.org.uk is a documentation site whose pages are all available as Markdown. It has a left-hand tree with nine documentation groups and a generated reference, and its llms.txt lists 79 pages:
| Group | Pages | What it holds |
|---|---|---|
| Basics | 5 | Welcome, Tutorial, Options, Log Viewer, VS Code |
| Components | 4 | Tasks, Datasets, Solvers, Scorers |
| Models | 10 | Using Models, Providers, Caching, Concurrency, Compaction, Fallbacks, Multimodal, Reasoning, Structured Output, Batch Mode |
| Scoring | 8 | Standard Scorers, Custom Scorers, Scoring Policy, Model Grading, Metrics, Multiple Scorers, Scoring Workflow, Perplexity |
| Agents | 9 | Using Agents, ReAct, Deep Agent, Checkpointing, Intervention, Multi Agent, Custom Agents, Agent Bridge, Human Agent |
| Tools | 7 | Tool Basics, Standard Tools, MCP Tools, Custom Tools, Sandboxing, Tool Approval, Tool Result Review |
| Running | 10 | Eval Sets, Parallelism, Sharding, Handling Errors, Setting Limits, Control Channel, Early Stopping, Task Sources, Sample Sources, Tracing |
| Analysis | 5 | Log Files, Dataframes, Scanners, Inspect Viz, Task Views |
| Extensions | 6 | Model APIs, Components, Sandboxes, Approvers, Hooks, Filesystems |
| Reference | 15 | One page per Python module (the CLI command pages exist too but are not in the index) |
Every page exists as Markdown at the same address with .md appended (for example https://inspect.aisi.org.uk/scoring-policy.html.md), and the site publishes llms.txt (the index) and llms-guide.txt (the whole guide for an assistant).
3.9 Inspect documentation, by group#
Every address below is https://inspect.aisi.org.uk/<name>.html; the table gives the names so the links stay readable, and the first link in each row is clickable.
Inspect's site treats a few pages as especially important. The Tutorial is a sequence of worked examples that doubles as a tour of the feature set. Options lists every command-line option with its environment variable (and .env handling), which is the page to open when a setting does not seem to apply. Scoring Policy decides what counts in a metric's denominator, which is why it is the one page the track asked you to read twice.
3.10 The Inspect reference#
The reference is generated from the code, so it tracks the installed version more closely than prose pages do. It has one page per Python module (15 are in llms.txt) and one per CLI command group (not listed there, but they load), all at https://inspect.aisi.org.uk/reference/<name>.html:
Part 6 shows how to read these pages.
3.11 Inspect: code, packages, changelog and feeds#
| Resource | Address | What it is for |
|---|---|---|
| Source code and issues | github.com/UKGovernmentBEIS/inspect_ai (MIT) and its issues | The source, bug reports. The GitHub web page for a file may return an error to scripts, so for the changelog use the next row |
| Changelog | inspect.aisi.org.uk/CHANGELOG.html, or the raw file at raw.githubusercontent.com/.../CHANGELOG.md | Every release, grouped by Breaking Changes, Features and Bug Fixes |
| Releases | GitHub Releases | Tagged releases that match PyPI (0.3.292 on 23 November) |
| Package index | pypi.org/project/inspect-ai | Versions, dates, the Python requirement |
| Feeds | PyPI releases feed, GitHub releases feed | New versions |
| Whole docs as text | llms.txt, llms-guide.txt | Index and full guide (3.15) |
3.12 Inspect Evals and the Register#
Inspect Evals is a catalogue of ready-made evaluations built on Inspect (its repository names Generality Labs as the maintainer, as of 2 December 2026), with its source at github.com/UKGovernmentBEIS/inspect_evals, the package inspect-evals on PyPI (0.30.0 on 23 November, with its own releases feed) and an evals listing on the Inspect site itself at inspect.aisi.org.uk/evals/index.html. Three pages repay a read before you run any public benchmark: how to run a specific eval version (a benchmark's definition changes over time, so pin the one you report), the methodology page, and the Register, a beta channel for evals that live in their authors' own repositories (each listed with a pointer to a pinned upstream commit) together with the guide to submitting one. A background post from the UK AI Security Institute is at aisi.gov.uk/blog/inspect-evals.
3.13 Extensions and the ecosystem#
10B.16 explains what each of these is for and when to reach for it. Their documentation sites and packages are the source of truth for their APIs, and several are younger and faster-moving than Inspect itself.
| Package | Docs | Package index |
|---|---|---|
| Inspect Scout (transcript scanning) | meridianlabs-ai.github.io/inspect_scout | inspect-scout 0.6.4 |
| Inspect Viz (interactive plots from logs) | meridianlabs-ai.github.io/inspect_viz | inspect-viz 0.4.2 |
| Inspect SWE (software-engineering agents) | meridianlabs-ai.github.io/inspect_swe | inspect-swe 0.3.3 |
| Inspect Petri (automated behavioural auditing) | meridianlabs-ai.github.io/inspect_petri | inspect-petri 3.1.1 |
| Inspect Harbor (containerized agent benchmarks) | meridianlabs-ai.github.io/inspect_harbor | inspect-harbor 1.0.0 |
| Inspect Cyber (cyber evaluations) | inspect.cyber.aisi.org.uk | see its site |
| Inspect Flow, Steward and Petri Bloom (orchestration, supervision, behaviour suites) | Flow, Steward, Bloom | inspect-flow 0.17.0; see the sites for the others |
| Inspect Sentinel (monitors and control protocols that watch an agent and intervene) | meridianlabs-ai.github.io/inspect_sentinel | inspect-sentinel 0.4.0 (23 November) |
| Optstop (optimal-stopping algorithms on Inspect's early-stopping protocol, UK AISI) | github.com/UKGovernmentBEIS/optstop (10B.12, Part 12) | see the repository |
| Kubernetes sandbox and Control Arena (UK AISI) | k8s-sandbox.aisi.org.uk, control-arena.aisi.org.uk | see their sites |
Their source repositories are under github.com/meridianlabs-ai (for example inspect_viz, inspect_swe, inspect_petri and inspect_harbor). The community extensions gallery on the Inspect site lists third-party packages; treat entries there as community software, not as part of Inspect.
3.14 Papers and background reading#
Papers are not documentation, but both packages cite or implement ideas from them, and reading the original is the way to find out what a metric was meant to do rather than what a library does. All addresses are on arxiv.org and all loaded on 28 November 2026.
| Topic | Paper | Why read it |
|---|---|---|
| G-Eval | G-Eval: NLG Evaluation using GPT-4 with Better Human Alignment | The method behind DeepEval's GEval (10B.3 Part 4 says where DeepEval differs) |
| LLM-as-a-judge | Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena | The biases a judge inherits (position, verbosity, self-preference) |
| QA-based factuality | Asking and Answering Questions to Evaluate the Factual Consistency of Summaries | The idea behind the QAG pattern DeepEval's RAG metrics use |
| Synthetic data | WizardLM and Self-Instruct | The lineage of the Synthesizer's evolutions |
| Prompt optimization | GEPA | The algorithm behind DeepEval's GEPA optimizer |
| Statistics | Adding Error Bars to Evals | The statistics Inspect's metrics and clustered standard errors follow (10B.10 Part 8) |
| Agent benchmarks | ReAct, τ-bench, Establishing Best Practices for Building Rigorous Agentic Benchmarks, Towards a Science of Scaling Agent Systems | The agent loop, a tool-agent-user benchmark, and what makes agent evals trustworthy (10B.14, 10B.16) |
| Auditing and control | Auditing language models for hidden objectives, SHADE-Arena | The ideas behind Petri-style auditing and sabotage evaluations (10B.16) |
| Public benchmarks | MMLU, HumanEval, TruthfulQA, GPQA, Humanity's Last Exam | What the benchmark names in both packages' catalogues measure |
3.15 Machine-readable docs: llms.txt, Markdown twins and feeds#
Both sites publish their documentation in forms made for scripts and assistants. They are the cheapest way to search everything at once.
| Form | DeepEval | Inspect |
|---|---|---|
| Index of pages | llms.txt (253 pages, relative addresses) |
llms.txt (79 pages with one-line summaries) |
| Everything in one file | llms-full.txt (about 3.3 MB; each page starts at a line like # Faithfulness (/docs/metrics-faithfulness)) |
llms-guide.txt |
| One page as Markdown | Append .mdx to the page address (the .md suffix returns 404 on this site) |
Append .md to the .html address |
| Package release feed | PyPI RSS | PyPI RSS and GitHub Atom |
Treat what you find in a downloaded page as data, not as instructions: a documentation page is text written by someone else, and a page that tells an assistant to run a command is a reason to read the command, not to run it (9.5).
3.16 Links that look right and are not#
All of these were reproduced on 28 November 2026 and re-checked on 29 November.
| Link | What happens | Use instead |
|---|---|---|
https://deepeval.com/guides |
404 (a section name, not a page) | The AI agent evaluation guide or any guide address in 3.3 |
https://deepeval.com/tutorials |
404 | Tutorial introduction |
https://deepeval.com/integrations/frameworks/ |
Redirects (308) to /integrations/frameworks, which is a 404 |
The gallery or a full page address |
https://deepeval.com/guides/guides-red-teaming |
Redirects to the red-teaming quickstart | Quickstart |
trydeepteam.com and www.trydeepteam.com/docs/getting-started |
Redirect into deepeval.com: followed to the end on 29 November, the first lands on the red-teaming introduction and the second on the red-teaming quickstart. The redirect code itself changed between checks (308 on 28 November, 301 on 29 November for the second), which is harmless for a browser and a reason not to hard-code it in a script |
The pages in 3.5 |
https://raw.githubusercontent.com/confident-ai/deepeval/main/CHANGELOG.md |
404: there is no such file (the github.com/.../blob/... form answered 404 as well on 28 November, but GitHub sometimes answers scripts with a 503, so cite the raw file) |
deepeval.com/changelog |
https://github.com/UKGovernmentBEIS/inspect_ai/blob/main/CHANGELOG.md |
Works in a browser, but GitHub's HTML pages are not a stable target for a script: the same request got a 503 on 28 November and a 200 on 29 November | The Inspect site's CHANGELOG page or the raw file |
https://github.com/UKGovernmentBEIS/inspect_ai/discussions |
404: the repository has no discussions page | The issues page |
https://www.confident-ai.com/docs/llms-full.txt |
404 | The llms.txt index and the pages it lists |
| DeepEval GitHub Releases as "the release list" | Ends at python-v4.2.4 (22 September); no 4.3.x |
PyPI |
ukgovernmentbeis.github.io/inspect_cyber/ |
Redirects to inspect.cyber.aisi.org.uk |
The new address in 3.13 |
Part 4: The reading order and a six-week plan#
4.1 Principles#
The DeepEval-only path (required). Weeks 0 to 3 (orient, DeepEval core, DeepEval metrics and agents, DeepEval data, red teaming and CI) are the required plan, about three weeks. Weeks 4 to 6 are the optional Inspect path, for readers who took 10B.8 to 10B.17. If you skip Inspect, finish week 3, then go to Part 9 and tick the DeepEval items of Part 10.
- Breadth before depth. Read every page of a group once, quickly, to learn what exists. You are building an index in your head so that, months later, you know a page exists and where to find it. Depth comes when a project needs it.
- Concepts before reference. Read a concept page (what is a test case, what is a scorer) before the page for any one metric or option. The reference pages assume the vocabulary.
- Follow the lessons. The plan is keyed to lessons 10B.2 to 10B.17, so each block of pages is something you have already met in a lesson. Reading a page you half know is faster and you notice what the lesson left out.
- Run something after every block. A tiny lookup, a probe from Part 8 or a keyless run. Reading without running produces confidence without knowledge.
- Write down surprises. Every time a page and the package disagree, or a page contradicts a lesson, add a line to your notes with the date and versions (4.7). That list is the most valuable output of the whole exercise.
- Core first, extended as needed. Each week has a core list (read all of it) and an extended list (read what your project touches). Do not try to read every page of the extended lists in the week; the checklist in Part 10 lets you spread them over the months that follow.
How long? The plan assumes four to six hours a week for six weeks, except weeks 2 and 3, whose core lists are long (about 30 and 20 pages): budget six to ten hours there, or move the RAG guides to the extended list. That is an estimate for an engineer who has read the lessons, not a measurement; the pages are short, the code on them is the slow part. If you read faster, merge weeks. If you have a project waiting, take the weeks that match it first (the DeepEval weeks are independent of the Inspect weeks) and the rest later.
flowchart LR
W0["Week 0<br/>Orient: save indexes,<br/>record versions"] --> W1["Week 1<br/>DeepEval core<br/>10B.2, 10B.3"]
W1 --> W2["Week 2<br/>Metrics and agents<br/>10B.4, 10B.5"]
W2 --> W3["Week 3<br/>Data, red teaming, CI<br/>10B.6, 10B.7"]
W3 --> W4["Week 4 (optional)<br/>Inspect core<br/>10B.8 to 10B.10"]
W4 --> W5["Week 5 (optional)<br/>Judges, scale, logs<br/>10B.11 to 10B.13"]
W5 --> W6["Week 6 (optional)<br/>Agents, sandboxes,<br/>ecosystem, choosing<br/>10B.14 to 10B.17"]
W6 --> KC["Then: keep current<br/>weekly feeds,<br/>monthly index diff"]
W3 -. "DeepEval only" .-> KC
NOTE["Notes file: dates, versions,<br/>surprises (page said X, package did Y)"] -.-> W1
NOTE -.-> W44.2 Before week 1: orient (one session)#
- Create the lab project from Setup, or reuse your 10B.1 project. Run version_report.py and write both installed versions in your notes (
deepeval.__version__also prints DeepEval's). - Save
llms.txtfor both sites with today's date in the file name (Setup lists the commands). They are your table of contents for the next six weeks. - Read DeepEval's Introduction, Design Philosophy and Comparisons, and Inspect's Welcome page. Note, for each, one thing the page says that the track did not.
- Open 3.1 and 3.8 beside the sites themselves and find each group in the sidebar. The five minutes this takes saves hours of hunting later.
4.3 Week 1: DeepEval core (10B.2 and 10B.3)#
| Pages | |
|---|---|
| Core | Quickstart, Introduction to LLM evals, single-turn test cases, end-to-end evaluation, flags and configs, CLI settings, environment variables, data privacy, metrics introduction, custom LLMs guide, G-Eval, DAG, DIY metrics |
| Extended | Multi-turn and arena test cases, local backend storage, troubleshooting, FAQ, eval modes, JevEval, Arena G-Eval, Conversational DAG, the guides to building custom metrics, the DAG metric and G-Eval examples, and the classifiers introduction |
| Do after | Pick one built-in or G-Eval metric and write a claim from its page as a test with the fake judge (5.3). Run deepeval --help and find three commands the track did not use. |
4.4 Week 2: DeepEval metrics and agents (10B.4 and 10B.5)#
| Pages | |
|---|---|
| Core | Each RAG metric's page: Answer Relevancy, Faithfulness, Contextual Precision, Contextual Recall, Contextual Relevancy; the RAG guide and RAG triad; LLM tracing, component-level evals, trajectory-based evals, the agent evaluation guide and its metrics guide; the six agent metrics (Task Completion, Step Efficiency, Argument Correctness, Tool Correctness, Plan Adherence, Plan Quality) |
| Extended | Hallucination, Summarization, Prompt Alignment, RAGAS metrics, the six safety metrics, the three no-judge metrics, the multi-turn metrics (Turn Relevancy, Role Adherence, Knowledge Retention, Conversation Completeness, Goal Accuracy, Topic Adherence), Agent Loop Detection, Tool Permission, the MCP metrics and MCP evaluation, tracing RAG, tracing agents, the integration page for your framework (3.4) |
| Do after | For every metric you plan to use, read its "How Is It Calculated?" section and compare with the prompts DeepEval actually sent, using the fake judge's calls list as in 10B.4. Search the saved llms-full.txt for a parameter name with docs_search.py. |
4.5 Week 3: DeepEval data, red teaming and CI (10B.6 and 10B.7)#
| Pages | |
|---|---|
| Core | Datasets, Synthetic data introduction, Golden Synthesizer and its four generate-from pages (documents, contexts, goldens, scratch), Conversation simulator with its model callback and stopping logic, red teaming introduction, quickstart and running red teams, unit testing in CI/CD, the regression testing guide, prompts and prompt optimization introduction |
| Extended | Benchmarks introduction and the page for each benchmark you would use, simulation graph, custom templates, lifecycle hooks, agentic red teaming, the vulnerabilities and attack pages that match your app (the full catalogue is in 3.5), the framework mappings, guardrails, one algorithm page (GEPA, MIPROv2, SIMBA or COPRO), the synthesizer guide, the simulation guide, the Confident AI documentation (3.6) if you adopt the platform, and the three tutorials |
| Do after | Read the 2026 changelog with the script in 7.3, then list every entry between 4.2.0 and now that touches a feature you use. Write a keyless CI workflow for your own suite from the CI page, per 10B.7 Part 2; if your project promotes warnings to errors, add the two ignore: lines of 10B.7, 2.6 and test it with an empty cache (8.3). If you still import deepteam, plan the migration before 30 January 2027. |
4.6 Week 4: Inspect core (10B.8 to 10B.10)#
| Pages | |
|---|---|
| Core | Welcome, Tutorial, Options, Tasks, Datasets, Solvers, Scorers, Standard Scorers, Custom Scorers, Scoring Policy (twice), Scoring Metrics, Multiple Scorers, Log Viewer |
| Extended | VS Code, Perplexity (only if you score local models by log-probabilities), Task Sources and Sample Sources, reference pages inspect_ai, dataset, solver and scorer (look things up, do not read cover to cover) |
| Do after | Read the inspect eval reference page next to inspect eval --help and find one option the page documents that the track did not use. Run signatures.py on a scorer you use. |
4.7 A notes file that keeps you honest#
Start docs-notes.md in week 0 and keep it for the whole period. The format below, which is the whole example file the next script reads, is the one the progress script reads: a heading per week, a checkbox per page, and a "Surprises" section with no checkboxes. Each surprise line is a date, the claim, and what the package did.
# Docs notes: DeepEval and Inspect
Started: 2026-11-28 | deepeval 4.3.6 | inspect-ai 0.3.292 | python 3.13
## Week 1: DeepEval foundations
- [x] Introduction
- [x] Design Philosophy
- [x] 5-minute Quickstart
- [x] Test cases (single-turn)
- [ ] Flags and configs
- [ ] G-Eval
## Week 2: DeepEval metrics and agents
- [x] Answer Relevancy: How Is It Calculated?
- [ ] Faithfulness: How Is It Calculated?
- [ ] LLM tracing
## Week 4: Inspect core
- [ ] Welcome
- [ ] Tutorial
- [ ] Scoring Policy (first read)
- [ ] Scoring Policy (second read)
## Surprises (page said X, package did Y)
- 2026-11-28: Answer Relevancy formula omits `borderline`; package counts it as relevant (claim_test.py)To see how far you are, point a short script at the file. It counts checkboxes under each ## heading:
# docs_progress.py: how far through the reading plan are you? (lesson 10B.18)
# Reads a notes file where each "## Week ..." heading is followed by "- [ ]" / "- [x]" lines.
import re
import sys
done = total = 0
section = None
rows: list[tuple[str, int, int]] = []
counts = {"done": 0, "total": 0}
for line in open(sys.argv[1], encoding="utf-8"):
heading = re.match(r"## (.+)", line)
if heading:
if section:
rows.append((section, counts["done"], counts["total"]))
section, counts = heading.group(1), {"done": 0, "total": 0}
continue
item = re.match(r"- \[( |x)\] ", line)
if item and section:
counts["total"] += 1
counts["done"] += item.group(1) == "x"
if section:
rows.append((section, counts["done"], counts["total"]))
for name, d, t in rows:
if t:
bar = "#" * d + "." * (t - d)
print(f"{name[:44]:44} {d}/{t} {bar}")
done, total = done + d, total + t
print(f"\nTotal: {done} of {total} items ({done / total:.0%})")Save the example notes file above as docs-notes.md (13 items, five ticked) and run:
python docs_progress.py docs-notes.mdWeek 1: DeepEval foundations 4/6 ####..
Week 2: DeepEval metrics and agents 1/3 #..
Week 4: Inspect core 0/4 ....
Total: 5 of 13 items (38%)4.8 Week 5: Inspect judges, scale and logs (10B.11 to 10B.13)#
| Pages | |
|---|---|
| Core | Model Grading, Scoring Workflow, Using Models, Providers (your provider's section, then skim the others), Caching, Concurrency, Batch Mode, Eval Sets, Parallelism, Handling Errors, Log Files, Dataframes |
| Extended | Reasoning, Structured Output, Multimodal, Fallbacks, Sharding, Early Stopping, Tracing, Control Channel, Task Views, the six extension pages (model APIs, components, sandboxes, approvers, hooks, filesystems), reference pages for model, log, analysis, hooks and the CLI pages for eval-set, eval-retry, score, log, view and cache |
| Do after | Read the "Breaking Changes" sections of the last five releases of the Inspect changelog with the script in 7.3, and write down which of them would have broken a script of yours. Run log_versions.py. |
4.9 Week 6: Inspect agents, sandboxes, ecosystem and the choice (10B.14 to 10B.17)#
| Pages | |
|---|---|
| Core | Tool Basics, Custom Tools, Standard Tools, MCP Tools, Using Agents, ReAct Agent, Multi Agent, Sandboxing, Tool Approval, Tool Result Review, Setting Limits, Scanners, then the Inspect Evals front page and its run a specific version guide |
| Extended | Custom Agents, Deep Agent, Compaction, Agent Bridge, Human Agent, Checkpointing, Intervention, reference pages for tool, agent, approval, review, util and event; the docs of Scout, Viz, SWE, Harbor and Petri as your project needs them; the Register and methodology; the papers of 3.14 |
| Do after | Re-read DeepEval's Comparisons page and Inspect's own description of itself on the Welcome page next to the decision table in 10B.17, and write one paragraph on which you would use for your project and why. |
4.10 After week 6: tutorials, projects and the long tail#
- Work through one DeepEval tutorial and the Inspect tutorial's later examples, on an app of your own rather than the sample one.
- Do the framework-track extension in the Module 10A projects: port the starter project's RAG suite (or your own
evalkitevals) to both packages and reconcile the numbers, following the parity protocol of 10B.17, 5.5. - Spread the extended lists over the following months, in the order your projects need them, and tick them in the checklist.
- Then switch to the keep-current routine of Part 9: after week 6 the job is no longer reading everything, it is noticing what changed.
Part 5: Reading a docs page like an engineer#
5.1 What is on a page#
Both sites follow patterns, and knowing the pattern tells you where to look.
| Page type | Where | What to read for |
|---|---|---|
| Concept | DeepEval "LLM Evals" group, Inspect "Components" and "Basics" | Vocabulary and the shape of the whole. Read the first screen and the diagram or example, then skim |
| Metric or scorer page | DeepEval "Eval Metrics", Inspect "Scoring" | DeepEval's metric pages open with tags (single-turn, multi-turn, RAG, referenceless), then Usage (every parameter), How Is It Calculated? (the formula and the steps) and FAQs. The calculation section is the one the track kept sending you to; the FAQs hold the edge cases |
| How-to or guide | DeepEval "Guides", most Inspect pages | A task end to end. Code you are meant to adapt, so run it |
| Tutorial | DeepEval "Tutorials", Inspect's Tutorial | A narrative with a sample app. Read for the order of decisions, not for the code |
| Reference | Inspect "Reference"; DeepEval has none (see Part 6) | Exact names, signatures and defaults. Look things up; do not read cover to cover |
| Changelog and release notes | Part 7 | What changed and when |
| Blog | deepeval.com/blog, AISI blog |
Intent and announcements. Not a reference; check anything you rely on |
DeepEval pages often show Python and TypeScript tabs for the same snippet, and several metrics describe different calculations for different eval modes (llm, hybrid, system_one, from the eval modes page and 10B.3 Part 9). When a metric page says "How Is It Calculated?", check which mode the section describes; the default is the LLM-as-a-judge mode.
5.2 Searching everything at once#
Reading is slow and searching is fast. When you know a parameter or a phrase but not the page, search the saved llms-full.txt (DeepEval) or llms-guide.txt (Inspect) instead of the site's search box, because the saved copy gives you every hit with its page and heading, can be diffed against next month's copy and works offline. This script groups hits by page:
# docs_search.py: a page-aware grep over a saved llms-full.txt (lesson 10B.18)
# curl -sL https://deepeval.com/llms-full.txt -o de_llms_full.txt
# python docs_search.py de_llms_full.txt penalize_ambiguous_claims
# llms-full.txt is every docs page one after another; a page starts at "# Title (/docs/slug)".
import re
import sys
path, needle = sys.argv[1], sys.argv[2]
page = heading = None
hits: dict[str, list[tuple[str, str]]] = {}
for line in open(path, encoding="utf-8"):
m = re.match(r"# (.+?) \((/[^)]+)\)\s*$", line)
if m:
page, heading = m.group(2), ""
elif line.startswith("## "):
heading = line[3:].split(" [")[0].strip()
if page and needle.lower() in line.lower():
hits.setdefault(page, []).append((heading, line.strip()[:110]))
print(f"{needle!r}: {sum(len(v) for v in hits.values())} line(s) on {len(hits)} page(s)")
for pg, rows in hits.items():
print(f"\n{pg} ({len(rows)} line(s))")
for heading, text in rows[:2]:
print(f" [{heading}] {text}")Run it on the saved DeepEval file:
python docs_search.py de_llms_full.txt penalize_ambiguous_claims'penalize_ambiguous_claims': 4 line(s) on 2 page(s)
/docs/metrics-turn-faithfulness (2 line(s))
[Usage] * \[Optional] `penalize_ambiguous_claims`: a boolean which when set to `True`, penalizes claims that cannot be
[FAQs] `penalize_ambiguous_claims` for vague claims.
/docs/metrics-faithfulness (2 line(s))
[Usage] * \[Optional] `penalize_ambiguous_claims`: a boolean which when set to `True`, will **not** count claims that
[FAQs] `penalize_ambiguous_claims` to control borderline scoring.The answer to "which pages mention this parameter?" is two pages, metrics-faithfulness and metrics-turn-faithfulness, and the headings show where: the Usage list and the FAQs. For a grep without the script, grep -n -i "term" de_llms_full.txt also works, but it does not tell you which page a line belongs to.
5.3 Turning a claim into a five-minute test#
A docs sentence is a claim. The cheapest way to learn what a package really does is to turn the claim into a test small enough to run in a minute, using the keyless tools of this track, so that you are testing the package and not your account or a model's mood. The recipe has four steps.
- Quote the claim with its address. "Answer Relevancy equals relevant statements divided by total statements" is on
deepeval.com/docs/metrics-answer-relevancy, under "How Is It Calculated?". - Find the smallest case that could make the claim false. The page's own verdict prompt allows three verdicts,
yes,noandborderline, but the formula mentions only "relevant". So use four statements and give one of themborderline. - Script the judge, so that only the judge is fake. The fake judge from 10B.2 (save
fake_judge.pyfrom 10B.2, 3.5 next to the script) returns the verdicts you choose, and DeepEval does everything else for real: it parses them and computes the score. - Compare, and write down the difference. If the package agrees with the page, you have one more reason to trust both. If it differs, you have found something the page leaves out.
# claim_test.py: turn one sentence of the docs into a test (lesson 10B.18)
# Claim (deepeval.com/docs/metrics-answer-relevancy, "How Is It Calculated?"):
# Answer Relevancy = relevant statements / total statements
# The docs also say the judge may return "no" or "borderline". Does the formula count "borderline"?
import re
from deepeval.metrics import AnswerRelevancyMetric
from deepeval.test_case import LLMTestCase
from fake_judge import FakeJudge
# 1. Quote the claim from the saved copy of llms-full.txt, so the test names its source.
full = open("de_llms_full.txt", encoding="utf-8").read()
page = full.split("# Answer Relevancy (/docs/metrics-answer-relevancy)", 1)[1].split("\n# Faithfulness", 1)[0]
formula = re.search(r'<Equation formula="(.*?)" />', page).group(1).strip()
print("docs formula:", formula)
# 2. Script the judge: four statements, verdicts yes, yes, borderline, no. Only the judge's answers are fake.
statements = ["Full-time staff accrue 1.5 vacation days a month.", "The cap is 18 days a year.",
"Unused days may roll over in some cases.", "The Berlin office has a terrace."]
verdicts = [{"verdict": "yes"}, {"verdict": "yes"},
{"verdict": "borderline", "reason": "Related, but not what was asked."},
{"verdict": "no", "reason": "Off topic."}]
judge = FakeJudge(script={"Statements": [{"statements": statements}],
"Verdicts": [{"verdicts": verdicts}],
"AnswerRelevancyScoreReason": [{"reason": "scripted"}]})
case = LLMTestCase(input="How much vacation do I accrue?", actual_output=" ".join(statements))
metric = AnswerRelevancyMetric(model=judge, async_mode=False)
metric.measure(case)
# 3. Compare the docs' arithmetic with the package's.
yes, borderline, no = 2, 1, 1
print(f"yes={yes} borderline={borderline} no={no}")
print(f"docs read literally, borderline not relevant : {yes / 4:.2f}")
print(f"docs read literally, borderline relevant : {(yes + borderline) / 4:.2f}")
print(f"package score : {metric.score:.2f}")docs formula: \text{Answer Relevancy} = \frac{\text{Number of Relevant Statements}}{\text{Total Number of Statements}}
yes=2 borderline=1 no=1
docs read literally, borderline not relevant : 0.50
docs read literally, borderline relevant : 0.75
package score : 0.75The package scored 0.75, so it counts borderline as relevant, which the one-line formula does not say. The source agrees: in 4.3.6 the metric's _calculate_score passes passing=(Verdict.YES, Verdict.BORDERLINE) to a shared scoring helper. The page is incomplete, not wrong, and the finding changes what a threshold means: two borderline verdicts out of four statements score the same as two yes verdicts. That belongs in your notes (and your eval's documentation), and it is exactly the kind of fact that 10B.4 says to establish before you defend a number.
5.4 Different pages, different reading#
- Concept pages: read the diagram or first example, find the three nouns the page introduces, and check that you could draw the relationship between them. If you cannot, read it again after the next page.
- Metric and scorer pages: read "How Is It Calculated?" before Usage, then Usage with the installed signature open (6.1), then the FAQs for the edge cases.
- Guides: run the code, change one thing, run it again. Guides are written for one version, on one day.
- Tutorials: read to see the order in which a team makes decisions; skip the line-by-line code.
- Blog posts: read for why. A post that says a feature "will" ship is a forecast, not a feature.
5.5 Where the docs are thin, and what to do#
Both sites are good and neither is complete. Thin spots you will meet:
- The exact prompt a judge receives. DeepEval's pages describe the steps and usually not the prompt text. The prompt is in the installed package (read it with the fake judge's
calls, as 10B.3 and 10B.4 did) and inllms-full.txtwhere the page quotes it. Inspect's model-graded scorers have templates you can print from the source. - Defaults that changed. A page may describe the new default while a guide still shows the old call. Check the installed signature (Part 6).
- Error messages. An exception text is often not on any page. Search the changelog and the issue tracker with the message.
- What a number means statistically. Neither package's page will tell you whether a difference of 0.03 is real. That is 10A.8 and 10B.10 Part 8, and it is your job.
- Interactions. Two features that work alone can interact (caching with retries, early stopping with epochs). The docs rarely describe combinations; test them.
When the docs are silent, in order: the installed signature, the source file, the changelog, the issues, and last a short experiment you write yourself.
5.6 Giving back#
If you reproduce a disagreement between a page and the package, tell the maintainers. Both projects take reports on GitHub: DeepEval issues and Inspect issues. A report that helps has the versions, the shortest script that shows it, the output you expected and the output you got, and a link to the page. The claim test above is already most of one. Expect that a docs fix is quick and a behaviour change is slower, and check the changelog before assuming the maintainers have not seen it.
Part 6: Reading the API reference and the installed signature#
6.1 A worked read: the installed signature#
DeepEval has no generated API reference site: its pages list parameters in each page's Usage section, and the source is the reference. Inspect has a generated reference (3.10), built from the same docstrings that help() shows. In both cases the most reliable source for "what are the parameters and defaults in the version I have" is the installed package, because it cannot be out of date relative to your code. This script reads the signature of four objects the track used:
# signatures.py: read an API from the installed package, the way the reference page would show it (lesson 10B.18)
import inspect
import sys
from deepeval import evaluate
from deepeval.metrics import AnswerRelevancyMetric, GEval
from inspect_ai import eval as inspect_eval
from inspect_ai.agent import react
from inspect_ai.scorer import model_graded_qa
print("python", sys.version.split()[0])
def show(obj, label: str) -> None:
sig = inspect.signature(obj)
print(f"\n{label}")
print(f" defined in: {inspect.getmodule(obj).__name__} (file: .../{'/'.join(inspect.getsourcefile(obj).split('/')[-3:])})")
print(f" {len(sig.parameters)} parameters; required: {[n for n, p in sig.parameters.items() if p.default is p.empty and p.kind not in (p.VAR_POSITIONAL, p.VAR_KEYWORD)]}")
for name, p in list(sig.parameters.items())[:12]:
default = "(required)" if p.default is p.empty else f"= {p.default!r}"[:50]
print(f" {name:26} {default}")
show(AnswerRelevancyMetric.__init__, "deepeval.metrics.AnswerRelevancyMetric.__init__")
show(GEval.__init__, "deepeval.metrics.GEval.__init__")
show(model_graded_qa, "inspect_ai.scorer.model_graded_qa")
show(react, "inspect_ai.agent.react")
# Where the docs and the code can differ: the docstring the reference page is built from.
doc = (inspect.getdoc(model_graded_qa) or "").splitlines()
print("\nfirst docstring line of model_graded_qa:", doc[0] if doc else "(none)")
print("eval() has", len(inspect.signature(inspect_eval).parameters), "parameters;",
"evaluate() has", len(inspect.signature(evaluate).parameters))python 3.13.14
deepeval.metrics.AnswerRelevancyMetric.__init__
defined in: deepeval.metrics.answer_relevancy.answer_relevancy (file: .../metrics/answer_relevancy/answer_relevancy.py)
11 parameters; required: ['self']
self (required)
threshold = 0.5
model = None
system_one_model = None
eval_mode = None
include_reason = True
async_mode = True
strict_mode = False
verbose_mode = False
flaky = False
evaluation_template = <class 'deepeval.templates.template_class.Answer
deepeval.metrics.GEval.__init__
defined in: deepeval.metrics.g_eval.g_eval (file: .../metrics/g_eval/g_eval.py)
15 parameters; required: ['self', 'name']
self (required)
name (required)
evaluation_params = None
criteria = None
evaluation_steps = None
rubric = None
model = None
threshold = 0.5
top_logprobs = 20
async_mode = True
strict_mode = False
verbose_mode = False
inspect_ai.scorer.model_graded_qa
defined in: inspect_ai.scorer._model (file: .../inspect_ai/scorer/_scorer.py)
8 parameters; required: []
template = None
instructions = None
grade_pattern = None
include_history = False
partial_credit = False
model = None
model_role = 'grader'
reducer = 'majority'
inspect_ai.agent.react
defined in: inspect_ai.agent._react (file: .../inspect_ai/agent/_agent.py)
13 parameters; required: []
name = None
description = None
prompt = AgentPrompt(instructions=None, handoff_prompt='\
tools = None
model = None
attempts = 1
submit = None
on_continue = None
retry_refusals = None
compaction = None
truncation = 'disabled'
approval = None
first docstring line of model_graded_qa: Score a question/answer task using a model.
eval() has 64 parameters; evaluate() has 13What this teaches, line by line:
- Defaults are facts you may not have seen in a page.
AnswerRelevancyMetricdefaults tothreshold=0.5,include_reason=True,async_mode=Trueandstrict_mode=False, andGEvaldefaults totop_logprobs=20. If a lesson, a page or your memory says otherwise, the signature wins for your version. - Required parameters are few.
GEvalrequires onlyname(in practice you also passcriteriaorevaluation_steps, as 10B.3 teaches), andmodel_graded_qaandreactrequire nothing. That is why you can start with a call that has no arguments and read what each default did. - The same name can live in two places.
model_graded_qais defined in the moduleinspect_ai.scorer._model, and the fileinspect.getsourcefilereports (_scorer.py) is the file of the@scorerdecorator that wraps it. When a reference page links to "source", this is why the code you want may be one file over: decorators such as@scorer,@solverand@toolreturn a wrapper. - Parameter counts show the surface.
eval()has 64 parameters andevaluate()has 13. Neither is meant to be memorized. They are a reminder that almost everything is an option, and that the reference page is for looking up the one you need.
One caution before you trust the method everywhere: a decorator can hide the signature completely. @scorer copies the real signature onto its wrapper, so inspect.signature(model_graded_qa) shows the real parameters. Not every decorator does. This short script compares a scorer with Inspect's pass_at reducer:
# hidden_signature.py: a decorator can hide the installed signature (lesson 10B.18)
import inspect
from inspect_ai.scorer import model_graded_qa, pass_at
for name, obj in [("model_graded_qa", model_graded_qa), ("pass_at", pass_at)]:
sig = inspect.signature(obj)
where = inspect.getsourcefile(obj).rsplit("/inspect_ai/", 1)[1]
print(f"{name:16} {len(sig.parameters)} parameters, first: {list(sig.parameters)[:2]}, source file: {where}")model_graded_qa 8 parameters, first: ['template', 'instructions'], source file: scorer/_scorer.py
pass_at 2 parameters, first: ['w_args', 'w_kwargs'], source file: scorer/_reducer/registry.pyFor pass_at the installed signature says nothing useful: the @score_reducer wrapper takes *w_args, **w_kwargs and does not record the function it wraps, and inspect.getsourcefile points at the decorator's file (registry.py), not at reducer.py where pass_at(k, value=1.0, ...) is defined. When a signature comes back as (*args, **kwargs), open the reference page or the source (6.4) instead; the tripwire script of 2.6 had to do exactly that.
6.2 Reading an Inspect reference page#
An Inspect reference page for a module (for example inspect_ai.scorer) is organized into sections, and for inspect_ai.scorer they are "Scorers", "Metrics" and "Reducers", each holding one entry per public name. Each entry has the same anatomy: a one-line summary, a Source link, the signature (shown with its decorator), and a description of every parameter. For model_graded_qa the signature block begins @scorer(metrics=[accuracy(), stderr()]), which tells you something no prose page needs to repeat: the default metrics a scorer reports are declared on the decorator. How to use a page:
- Find the section, then the name. Browse the section before searching, so you see neighbours:
match(),includes(),pattern(),answer()andexact()sit together, and so doaccuracy(),stderr()andbootstrap_stderr(). - Read the signature as a contract. Keyword-only markers (a bare
*),Nonedefaults and union types tell you what is accepted.model_graded_qa'smodelparameter is typedlist[str | Model] | str | Model | None: a list is allowed, which is how a panel of graders is expressed (10B.11 Part 6). - Check what the name returns. Many Inspect names return a function (
@scorerreturns a factory that returns the scorer). The-> Scorerat the end of the signature is how you know what you are holding. - Follow "Source" with care. The link goes to the code at a specific commit of the repository, which is the version the site was built from, not necessarily the one you installed. Compare with your installed version before trusting a line number.
- Notice what is not there. A name that is not exported from the module you import it from is not part of the public API, whatever a blog post shows. Exports change in releases: the 0.3.292 changelog lists
DispositionResultas no longer exported (7.2).
The CLI pages (inspect eval and the others) are the same idea for commands: every option with its environment variable and default. Compare a CLI page with the --help output of your install; a difference is a version difference.
6.3 Reading DeepEval parameters#
There is no reference tree, so combine three things:
- The metric or feature page's Usage section for the parameters the maintainers consider public, with their meaning.
- The installed signature (6.1) for the complete list and the defaults in your version.
- The source file for what a parameter does when the prose is silent. A metric lives under
deepeval/metrics/<name>/: the metric class (for exampleanswer_relevancy.py), aschema.py(the structured answers the judge must give) and atemplates/folder of Jinja text files, one per prompt (generate_statements.txt,generate_verdicts.txt,generate_reason.txt). In 4.3.6 those text files are compiled intodeepeval/templates/metrics/templates.json, which is what the package loads at run time (the module docstring ofdeepeval/templates/template_class.pysays so), so read the.txtfiles for the wording and remember that the JSON is what runs. This is where the "exact prompt" of 5.5 lives, and it is not where some docs pages point (10B.3, 13.2).
Two cautions. First, a parameter can be accepted and ignored in some modes (strict_mode and async_mode interact with other settings; 10B.2 and 10B.3 give examples), so a parameter's presence in a signature is not evidence that it applies. Second, the metric classes and the templates they use are internal files whose layout can change in any release. Read them, do not import from them.
6.4 When the reference is not enough: read the source#
Reading source is not a last resort for experts; it is the fastest way to settle a specific question. A routine that works for both packages:
- Find the file:
python -c "import inspect, X; print(inspect.getsourcefile(X.name))"(as in the script above), or search the package folder. - Read the one function that answers your question, not the file. For a formula, read the function that computes the score (here
_calculate_score). For a default, read the signature. For an error, search for the message text. - Check for a decorator, a wrapper or a base class that changes the behaviour before the function you read runs (
@scorer,@solver, a metric's base class). - Write what you learned as a one-line claim in your notes, with the version, and add the test that proves it.
Part 7: Reading changelogs, release notes and PyPI history#
Deep-dive
7.1 Which source answers which question#
A package leaves several records, and each answers a different question. Confusing them is how people end up with the wrong version number.
| Question | Best source | Why |
|---|---|---|
| What is the newest released version, and when? | PyPI (deepeval, inspect-ai), release history; for a script, the JSON API at pypi.org/pypi/deepeval/json (info.version and the releases map with upload times) |
It is where uv add and pip install actually look |
| What changed between my version and the newest? | The changelog: deepeval.com/changelog, Inspect CHANGELOG | Written for users, grouped by kind of change |
| Will this upgrade break me? | The "Breaking Changes" entries of every release in between | Anything not listed there is a risk you carry |
| What is about to ship? | The repository (pyproject.toml version, open pull requests) |
Unreleased work and the version number of the next release |
| What do I do with the feature? | The docs page | Written for the current version, and not dated |
| What are the exact parameters in my version? | The installed package (Part 6) | It is the code that will run |
| Is this behaviour a known bug? | The repository's issues | Search the error text |
Four sources, four answers. On 28 November 2026 the question "what is the newest DeepEval?" gave different answers depending on where you asked:
| Source | Answer on 28 November 2026 |
|---|---|
| PyPI release history | 4.3.6, published 25 November |
pyproject.toml on the repository's main branch |
4.3.6 |
| The newest entry on the 2026 changelog page (read by script, 7.3) | v4.3.5 |
| GitHub Releases | python-v4.2.4, published 22 September, with a setup-v0.1.0 release on 16 October and no 4.3.x release |
All four answers were the same when re-checked on 29 November. Nobody is hiding anything: a release was cut to PyPI, the changelog page lags it by one release, and GitHub Releases stopped tracking the Python package at 4.2.4. The practical rule is that PyPI answers "what exists", the changelog answers "what changed", and a mismatch between them is itself information: it tells you the notes for the newest release may not be written yet, so check the pull requests or read the diff. For Inspect all three agree: PyPI, the changelog and GitHub Releases each list 0.3.292 as of 23 November.
7.2 Anatomy of a changelog entry#
The two changelogs have different shapes, so a reader has to learn both.
Inspect's CHANGELOG.md is one block per release, newest first. The heading carries the version, a link to the comparison of the two tags on GitHub (the compare/0.3.291...0.3.292 address pattern), and the date, as in ## [0.3.292] (2026-11-23) with the link left out here. Inside, up to four sections appear in a fixed order: Breaking Changes (only when there are any), Features, Bug Fixes and, occasionally, Performance Improvements. Each bullet is a sentence, sometimes prefixed with a scope in bold (**google:**, **sentinel:**, **anthropic:**), followed by links to the issue and the commit. The comparison link is the way to see exactly what changed in code. Reading for an upgrade: the Breaking Changes section first, then Features that match what you use, then Bug Fixes that match symptoms you have seen.
A real Breaking Changes entry, in the 0.3.292 release (paraphrased): two helper functions for excluding or zeroing samples now return nothing, so code that read the result's applied attribute must read the affected samples and scores from the log instead, and a result type is no longer exported; and sandbox providers' initialization and cleanup hooks now run in the launch directory instead of the task directory, which matters to a provider that is not Docker or a Docker subclass. The first makes code that read result.applied fail with an AttributeError, and makes a script that passes --json to inspect log exclude or inspect log zero fail with an unknown-option error (those commands no longer accept it); the second makes a non-Docker provider's setup fail with a PrerequisiteError. These break loudly, which is the easy kind. The dangerous kind is the 4.2.0 direction flip below. You can see all three failures in a short script that needs no Docker and no keys:
# loud_breaks.py: the Inspect 0.3.292 breaking changes fail loudly, they do not change results quietly (lesson 10B.18)
# Keyless: mockllm/model, a do-nothing sandbox provider, no Docker. Run inside a git repo you do not mind recording.
import subprocess
import sys
from inspect_ai import Task, eval
from inspect_ai.dataset import Sample
from inspect_ai.log import ProvenanceData, exclude_samples, read_eval_log
from inspect_ai.model import ModelOutput, get_model
from inspect_ai.scorer import includes
from inspect_ai.solver import generate
from inspect_ai.util import SandboxEnvironment, sandboxenv
@sandboxenv(name="vars_provider")
class VarsProvider(SandboxEnvironment):
"""A non-Docker provider whose task_init_environment returns variables (now rejected)."""
@classmethod
async def task_init_environment(cls, config, metadata):
return {"MY_VAR": "1"}
@classmethod
async def sample_init(cls, task_name, config, metadata):
return {"default": cls()}
async def exec(self, cmd, **kwargs): ...
async def write_file(self, file, contents): ...
async def read_file(self, file, text=True): ...
def task(sandbox=None) -> Task:
return Task(dataset=[Sample(id="1", input="I was charged twice.", target="refund")], solver=generate(),
scorer=includes(), sandbox=sandbox)
model = get_model("mockllm/model", custom_outputs=[ModelOutput.from_content("mockllm/model", "A refund is on its way.")])
[log] = eval(task(), model=model, log_dir="logs", display="none")
# 1. exclude_samples() returns None, so code that reads result.applied now raises.
log = read_eval_log(log.location)
result = exclude_samples(log, ["1"], ProvenanceData(author="me", reason="bad label"))
print("exclude_samples returned:", result)
try:
print(result.applied)
except AttributeError as exc:
print("AttributeError:", exc)
# 2. `inspect log exclude --json` is gone, so a script that passes it fails at once.
cli = subprocess.run([sys.executable, "-m", "inspect_ai", "log", "exclude", log.location, "--sample", "1",
"--reason", "x", "--json"], capture_output=True, text=True)
print("exit code:", cli.returncode, "|", cli.stderr.strip().splitlines()[-1])
# 3. A non-Docker sandbox provider that returns variables from task_init_environment fails setup.
try:
eval(task(("vars_provider", None)), model=model, log_dir="logs", display="none")
except Exception as exc:
print(type(exc).__name__ + ":", str(exc).strip().splitlines()[0][:110] + "...")exclude_samples returned: None
AttributeError: 'NoneType' object has no attribute 'applied'
exit code: 2 | Error: No such option '--json'. Did you mean '--reason'?
PrerequisiteError: sandbox provider 'vars_provider' returned environment variables from task_init_environment(); Inspect no longe...The last line is cut at 110 characters by the script; the full message names the provider and tells you to return {} from task_init_environment.
DeepEval's changelog is a page per year at deepeval.com/changelog/changelog-2026 (also 2025 and 2024). Within a year it is organized by month, then by category (New Feature, Improvement, Bug Fix, Breaking Change and, rarely, Security or Experimental Feature), then by version (#### v4.3.5), so one release is spread over several lists, and the same version heading can appear under three categories in the same month. Each month opens with a paragraph summarizing it, and each bullet ends with the pull request and its author. To read all the changes in one release you search the page for its version number.
A real Breaking Change entry, version 4.2.0 in August (paraphrased): four safety metrics, BiasMetric, HallucinationMetric, MisuseMetric and ToxicityMetric, now follow DeepEval's usual convention that a higher score is better, on a 0 to 1 scale, and users must review thresholds and evaluation code for the direction change. This is the entry the track warned about in 10B.4: nothing fails to run, and every threshold you wrote before it means the opposite afterwards.
7.3 A script that reads both changelogs#
Reading dozens of entries to find the three that matter is a job for a script. This one reads the two files you saved in Setup, with no network, and prints the shape of each changelog and every breaking change.
# changelog_scan.py: read two very different changelogs with one small script (lesson 10B.18)
# Inputs are files you saved yourself, so the script never touches the network:
# curl -sL https://raw.githubusercontent.com/UKGovernmentBEIS/inspect_ai/main/CHANGELOG.md -o in_changelog.md
# curl -sL https://deepeval.com/changelog/changelog-2026.mdx -o de_cl2026.md
import re
from collections import Counter
# ---- Inspect: one "## [version](compare-url) (date)" block per release, "### Section" inside ----
text = open("in_changelog.md", encoding="utf-8").read()
blocks = re.split(r"^## \[", text, flags=re.M)[1:]
print("Inspect AI CHANGELOG.md")
for block in blocks[:6]:
ver, date = re.match(r"([\d.]+)\].*?\((\d{4}-\d{2}-\d{2})\)", block).groups()
sections = re.split(r"^### ", block, flags=re.M)[1:]
counts = {s.splitlines()[0]: sum(1 for l in s.splitlines() if l.startswith("* ")) for s in sections}
print(f" {ver:8} {date} " + ", ".join(f"{k}: {v}" for k, v in counts.items()))
latest = blocks[0]
breaking = re.search(r"### Breaking Changes\n\n(.*?)\n\n###", latest, flags=re.S).group(1)
print("\n Breaking Changes in the newest release, first 110 characters of each:")
for line in breaking.splitlines():
print(" -", line.lstrip("* ")[:110])
# ---- DeepEval: month > category > version, so one release is spread over several lists ----
text = open("de_cl2026.md", encoding="utf-8").read()
text = text.split("{/* DeepEval release notes start */}", 1)[1]
month = category = None
per_category: Counter = Counter()
breaking_versions: list[tuple[str, str]] = []
newest = None
for line in text.splitlines():
if line.startswith("## "):
month = line[3:].split(" [")[0]
elif line.startswith("### "):
category = line[4:].split(" [")[0]
elif line.startswith("#### v"):
version = line[5:].split(" [")[0]
newest = newest or version
per_category[category] += 1
if category == "Breaking Change":
breaking_versions.append((month, version))
print("\nDeepEval changelog-2026 (month > category > version)")
print(" newest version on the page:", newest)
print(" version headings per category:", dict(per_category))
print(" Breaking Change entries:", ", ".join(f"{m} {v}" for m, v in breaking_versions))Inspect AI CHANGELOG.md
0.3.292 2026-11-23 Breaking Changes: 2, Features: 12, Bug Fixes: 34
0.3.291 2026-11-17 Features: 12, Bug Fixes: 19
0.3.290 2026-11-13 Features: 11, Bug Fixes: 29, Performance Improvements: 1
0.3.289 2026-11-10 Features: 2, Bug Fixes: 21
0.3.288 2026-11-06 Breaking Changes: 3, Features: 8, Bug Fixes: 43, Performance Improvements: 1
0.3.287 2026-10-31 Features: 3, Bug Fixes: 16
Breaking Changes in the newest release, first 110 characters of each:
- `exclude_samples()` and `zero_samples()` now return `None`, and `DispositionResult` is no longer exported. Rea
- sandbox providers' `task_init`, `task_init_environment` and `task_cleanup` now run in the launch directory ins
DeepEval changelog-2026 (month > category > version)
newest version on the page: v4.3.5
version headings per category: {'New Feature': 31, 'Improvement': 35, 'Bug Fix': 29, 'Experimental Feature': 1, 'Breaking Change': 3, 'Security': 1}
Breaking Change entries: August v4.2.0, April v3.9.9, April v3.9.8How to read it. For Inspect, the last six releases had one release with two breaking changes (0.3.292) and one with three (0.3.288), so two of six releases in that window needed a read before upgrading, and bug-fix counts of 16 to 43 per release show the pace. For DeepEval, three Breaking Change entries in all of 2026 (4.2.0, then 3.9.9 and 3.9.8 in April), and note the last line of the DeepEval output: the page's newest version is 4.3.5 while PyPI has 4.3.6 (7.1). A script like this is also how you would build a "what changed since my version" report: filter the blocks between two versions and print the breaking sections first.
7.4 A reading procedure for an upgrade#
Before you change a pinned version in a project that produces numbers anyone will act on:
- Write the two versions down: the one in your lock file and the target. Both go in your notes and in the pull request.
- List the releases in between (PyPI history, or the changelog headings). Count them; if there are more than a dozen, upgrade in two steps.
- Read every Breaking Changes entry in that range, then the Features and Improvements that touch what you use, then the Bug Fixes that match symptoms you have seen. Search for the names of the functions and options your code imports.
- Check the docs for pages you rely on and compare against your notes; pages change without a version number.
- Run your evals before and after on a frozen sample with the same data and, where the package allows, the same seed and cache, and compare scores and counts. A score that moves with no code change of yours is the upgrade's effect; record it as a version effect, not a regression (10A.8; 10B.1, 12.5 builds the frozen fake for exactly this). Run the tripwires of 2.6 as well, because the behaviours they watch can change without a changelog entry.
- Run once with warnings as errors (8.3) so deprecations surface now rather than at the next upgrade.
- Upgrade in its own pull request, with the versions in the title, so a bisect is possible.
7.5 What version numbers promise#
Do not read a version number as a stability promise for either package.
- Inspect's
0.3.xis a pre-1.0 version line: the leading0conventionally means any release may change behaviour, and the changelog shows that a Breaking Changes section can appear in a patch-numbered release. Read the section, not the number. - DeepEval's breaking entries in 2026 were in a minor release (4.2.0) and in two patch-numbered releases of the previous line (3.9.8 and 3.9.9). The major number alone does not protect you.
For both, the habit that protects you is to pin the version in your project's lock file (your lock file, not the install commands in a lesson, which name packages only), to upgrade deliberately and to read the changelog when you do.
Part 8: Is this lesson out of date?#
8.1 Signals that something is stale#
Look for these, roughly in the order they are cheapest to check:
| Signal | What it suggests |
|---|---|
| The tutorial names a version older than the one you installed | Check the changelog between the two |
| The page or the lesson says "as of" a date more than a month old, for a volatile fact | Treat prices, versions and model names as hints |
| An import fails, or a name is missing from a module | A rename or removal; search the changelog for the name |
| A warning mentions deprecation | It will break in a later release; read the replacement |
| A number is on the opposite side of its threshold after an upgrade, with no change of yours | A behaviour change; read the whole changelog range |
| A link redirects somewhere unexpected | A page moved (3.16); the content may have moved with it |
| The lesson and the page disagree | One of them is stale; the installed package settles which |
| A command in the lesson errors with "no such option" | The CLI changed; compare with --help |
None is proof. Together they tell you when to run the check below.
8.2 Compare installed versions with what the track used#
The simplest check is a table: which versions did this track use, which do you have, and is yours newer? This script uses the standard library only.
# version_report.py: compare what is installed with what this track was written against (lesson 10B.18)
from importlib.metadata import PackageNotFoundError, version
# The track's "Versions" line: verified on 24 November 2026 (lessons 10B.1 to 10B.16).
TRACK = {"deepeval": "4.3.5", "inspect-ai": "0.3.292", "inspect-evals": "0.30.0"}
def parse(v: str) -> tuple[int, ...]:
"""'4.3.6' -> (4, 3, 6). Enough for these packages; use packaging.version for pre-releases."""
return tuple(int(p) for p in v.split(".") if p.isdigit())
for name, written in TRACK.items():
try:
installed = version(name)
except PackageNotFoundError:
print(f"{name:14} not installed in this environment")
continue
a, b = parse(installed), parse(written)
verdict = "same as the track" if a == b else ("NEWER than the track: read the changelog" if a > b else "OLDER than the track")
print(f"{name:14} installed {installed:8} track {written:8} -> {verdict}")deepeval installed 4.3.6 track 4.3.5 -> NEWER than the track: read the changelog
inspect-ai installed 0.3.292 track 0.3.292 -> same as the track
inspect-evals not installed in this environmentThe output came from a throwaway environment on 28 November 2026; inspect-evals was not installed there, which the script reports rather than hiding. Reading it: DeepEval is newer than the track, so read the DeepEval changelog from 4.3.5 onwards (that is a single release, 4.3.6); Inspect is the same as the track, so the Inspect lessons are as fresh as they can be today. Change the TRACK dictionary to whatever versions your own notes record. The same function is a one-line addition to a test suite: assert that the versions you tested against are the versions installed, and fail loudly when they differ.
8.3 Names and warnings as errors#
A version number says something changed; this check says whether what the lessons use still exists. It imports each name the track teaches and reports what is missing. It also turns warnings into errors for the imports, so a deprecation shows up as a failure you can see instead of a line you scroll past.
# name_probe.py: do the names the track teaches still exist in the installed packages? (lesson 10B.18)
import importlib
import warnings
warnings.simplefilter("error") # a DeprecationWarning on import becomes a failure you can see
NAMES = {
# DeepEval
"deepeval": ["evaluate", "assert_test"],
"deepeval.test_case": ["LLMTestCase", "ConversationalTestCase", "Turn", "ToolCall"],
"deepeval.metrics": ["GEval", "DAGMetric", "ConversationalGEval", "ArenaGEval", "AnswerRelevancyMetric",
"FaithfulnessMetric", "ContextualPrecisionMetric", "ContextualRecallMetric",
"ContextualRelevancyMetric", "HallucinationMetric", "TaskCompletionMetric",
"ToolCorrectnessMetric", "StepEfficiencyMetric", "JsonCorrectnessMetric",
"ExactMatchMetric", "PatternMatchMetric", "BaseMetric"],
"deepeval.dataset": ["EvaluationDataset", "Golden", "ConversationalGolden"],
"deepeval.models": ["DeepEvalBaseLLM"],
"deepeval.tracing": ["observe", "update_current_span", "update_current_trace"],
"deepeval.synthesizer": ["Synthesizer"],
"deepeval.simulator": ["ConversationSimulator"],
"deepeval.red_team": ["RedTeamer"], # new in 4.3.6 (10B.7)
# Inspect
"inspect_ai": ["Task", "task", "eval", "eval_set", "eval_retry", "score", "Epochs"],
"inspect_ai.dataset": ["Sample", "csv_dataset", "json_dataset", "hf_dataset", "MemoryDataset"],
"inspect_ai.solver": ["generate", "system_message", "chain_of_thought", "use_tools", "solver", "TaskState"],
"inspect_ai.scorer": ["match", "includes", "exact", "f1", "choice", "model_graded_qa", "model_graded_fact",
"accuracy", "stderr", "mean", "scorer", "Score", "pass_at", "grouped"],
"inspect_ai.agent": ["react", "handoff", "as_tool", "agent", "run", "bridge"],
"inspect_ai.tool": ["tool", "bash", "python", "web_search", "text_editor", "mcp_server_stdio"],
"inspect_ai.util": ["sandbox", "token_limit", "time_limit", "message_limit"],
"inspect_ai.log": ["read_eval_log", "list_eval_logs", "write_eval_log", "recover_eval_log"],
"inspect_ai.analysis": ["evals_df", "samples_df", "messages_df", "events_df"],
}
missing = 0
for module, names in NAMES.items():
try:
mod = importlib.import_module(module)
except Exception as exc: # module gone, renamed, not installed, or a warning promoted
print(f"MODULE {module}: {type(exc).__name__}: {exc}")
with warnings.catch_warnings(record=True) as caught: # retry: is it a real break or only a warning?
warnings.simplefilter("always")
try:
mod = importlib.import_module(module)
print(f" retry without warnings-as-errors: imported, {len(caught)} warning(s): "
+ "; ".join(f"{w.category.__name__}: {str(w.message)[:50]}" for w in caught[:2]))
except Exception as exc2:
print(f" retry also failed: {type(exc2).__name__}")
missing += len(names)
continue
absent = [n for n in names if not hasattr(mod, n)]
missing += len(absent)
print(f"{module:22} {len(names) - len(absent):2}/{len(names):2} present" + (f" MISSING: {', '.join(absent)}" if absent else ""))
print("\nnames missing in total:", missing)deepeval 2/ 2 present
deepeval.test_case 4/ 4 present
deepeval.metrics 17/17 present
deepeval.dataset 3/ 3 present
deepeval.models 1/ 1 present
deepeval.tracing 3/ 3 present
deepeval.synthesizer 1/ 1 present
deepeval.simulator 1/ 1 present
MODULE deepeval.red_team: SyntaxError: invalid escape sequence '\i' (template.py, line 82)
retry without warnings-as-errors: imported, 3 warning(s): SyntaxWarning: invalid escape sequence '\i'; SyntaxWarning: invalid escape sequence '\('
deepeval.red_team 1/ 1 present
inspect_ai 7/ 7 present
inspect_ai.dataset 5/ 5 present
inspect_ai.solver 6/ 6 present
inspect_ai.scorer 14/14 present
inspect_ai.agent 6/ 6 present
inspect_ai.tool 6/ 6 present
inspect_ai.util 4/ 4 present
inspect_ai.log 4/ 4 present
inspect_ai.analysis 4/ 4 present
names missing in total: 0Two things to learn from it. First, all 89 names the track relies on are present in the installed versions, including deepeval.red_team.RedTeamer, which is new in 4.3.6: the lessons' API names are intact as of 28 November. Second, and more interesting, deepeval.red_team did not import under warnings-as-errors. Compiling one of its files reports SyntaxWarning for invalid escape sequences (a backslash in a string that is not a valid escape, which Python 3.12 and later report as a SyntaxWarning and a future version will make an error), and with warnings promoted to errors that becomes a SyntaxError. Without the promotion, the module imports and the names work. So the finding is not "red teaming is broken". It is "this newest module is not yet clean under strict warnings", which matters if your CI promotes warnings to errors and anything in it imports the new module: you either exempt exactly that warning or wait for a release that fixes it. Reporting it is the kind of contribution 5.6 describes.
One property of this finding surprises people: a SyntaxWarning is raised when Python compiles the file, not when it runs it. After the first import Python writes the compiled result to a __pycache__ folder, and later imports load that cache without compiling, so the warning (and the promoted error) never appears again. Run name_probe.py a second time, or in a CI job that restores a warm cache, and the same probe prints deepeval.red_team 1/ 1 present with no MODULE line and nothing to report. The warning is a property of the source file, so test the source rather than the import. To reproduce the first-import behaviour, point PYTHONPYCACHEPREFIX at an empty folder (run Python without -E or -I, which ignore it; the first run through it printed the output above; a second run through the same folder was clean, as measured on 28 November). To test deterministically, force a recompile with warnings as errors:
DEEPEVAL_DIR=$(python -c "import importlib.util, os; print(os.path.dirname(importlib.util.find_spec('deepeval').origin))")
python -W error -c "import compileall, sys; sys.exit(not compileall.compile_dir('$DEEPEVAL_DIR/red_team', quiet=1, force=True))"
echo "exit code: $?"*** Error compiling 'SITE/deepeval/red_team/attacks/single_turn/math_problem/template.py'...
File "SITE/deepeval/red_team/attacks/single_turn/math_problem/template.py", line 82
Return False if:
^
SyntaxError: invalid escape sequence '\i'
exit code: 1Under pytest a warm cache does not save you. Everything above is about plain python. DeepEval also installs itself as a pytest plugin, and pytest compiles the modules of plugin packages through its own assertion-rewriting import hook, keeping its own cached copies. So a test that imports deepeval.red_team under filterwarnings = error compiles the file again, through pytest, whatever the normal __pycache__ holds. And because that compile fails, pytest never writes its cached copy, so the next strict run fails the same way. A one-line test and a strict pytest.ini show it:
# test_red_team_import.py: the smallest test that imports the new module (lesson 10B.18, 8.3)
def test_import():
import deepeval.red_team # noqa: F401# pytest.ini: strict warnings, nothing ignored (lesson 10B.18, 8.3)
[pytest]
asyncio_default_fixture_loop_scope = function
filterwarnings =
error# strict_check.sh: does a warm bytecode cache save a strict pytest run that imports deepeval.red_team? (10B.18, 8.3)
export DEEPEVAL_TELEMETRY_OPT_OUT=1
PC=$(mktemp -d); export PYTHONPYCACHEPREFIX=$PC # an empty cache stands in for a fresh CI runner
R="uv run --no-project --with deepeval --with pytest python -s"
echo "1 plain import (warms the cache):"; $R -c "import warnings; warnings.simplefilter('ignore'); import deepeval.red_team; print(' imported')"
echo "2 plain import, -W error:"; $R -W error -c "import deepeval.red_team; print(' imported, no warning')"
for run in 3 4; do echo "$run strict pytest:"; $R -m pytest -q -p no:cacheprovider test_red_team_import.py 2>&1 | grep -E "^E .*SyntaxError|passed|failed" | sed 's/^/ /'; done
rm -rf "$PC"1 plain import (warms the cache):
imported
2 plain import, -W error:
imported, no warning
3 strict pytest:
E SyntaxError: invalid escape sequence '\i'
1 failed in 0.28s
4 strict pytest:
E SyntaxError: invalid escape sequence '\i'
1 failed in 0.14sSteps 1 and 2 warm the normal cache, and plain python -W error is then clean. Steps 3 and 4 run the strict test twice and fail twice. On a laptop where pytest once ran the module without the strict filter (and so wrote its own cached copy), the same test passes, which is why this is the classic "passes locally, fails in CI" bug. There is a second, unrelated trap in the same configuration: deepeval test run imports DeepEval before pytest starts, so pytest's PytestAssertRewriteWarning: Module already imported so cannot be rewritten; deepeval also becomes an error and aborts the session, even for a test that never touches red teaming. 10B.7, 2.6 has the transcript of both failures and the verified fix: keep error, and add two ignore: lines that name exactly these two messages. Delete the first one when a release fixes the escape sequences, and re-test with an empty cache, because a warm one proves nothing.
Add names to the dictionary as your projects use them. Everything the probe cannot see (changed behaviour of an unchanged name) is for the claim tests of 5.3.
8.4 When the docs and the package disagree#
You will hit this. The order of trust that works:
- The installed package's behaviour on a test you ran. It is the thing that produces your numbers.
- The installed package's source and docstrings, because they describe that same code.
- The changelog, which says whether the behaviour changed on purpose.
- The reference page, generated from code and so usually close to it.
- A prose page or a guide, written by hand at a point in time.
- A lesson, a blog post or an assistant's summary.
Then: write the disagreement in your notes with both versions; check the repository's issues for the same report; if it is new, report it (5.6) with the script. If the disagreement is a documented change ("the default is now X"), the lesson, not the package, is out of date.
8.5 The log records its own versions#
Inspect gives you a version check for free: every log records the versions and the repository state that produced it. That turns an old log into evidence you can interrogate, and it is the reason a result an Inspect user shares can be checked. This script runs a one-sample task with the keyless mockllm/model and reads the header back. Run it inside a git repository you do not mind having recorded (a throwaway one with a placeholder remote is ideal, since the log stores the remote and the commit; the output below came from exactly that).
# log_versions.py: an Inspect log records the versions that produced it (lesson 10B.18)
# Keyless: mockllm/model with a scripted answer. Run this inside a git repo you do not mind recording.
from inspect_ai import Task, eval, task
from inspect_ai.dataset import Sample
from inspect_ai.log import read_eval_log
from inspect_ai.model import ModelOutput, get_model
from inspect_ai.scorer import includes
from inspect_ai.solver import generate
@task
def refunds() -> Task:
return Task(dataset=[Sample(input="I was charged twice.", target="refund")],
solver=generate(), scorer=includes(), version="1.0")
model = get_model("mockllm/model",
custom_outputs=[ModelOutput.from_content("mockllm/model", "We will refund the duplicate charge.")])
[log] = eval(refunds(), model=model, log_dir="logs", display="none")
spec = read_eval_log(log.location, header_only=True).eval # the header: cheap to read
print("status :", log.status)
print("task :", spec.task, "| task_version:", spec.task_version)
print("packages :", spec.packages)
print("git revision :", spec.revision.type, spec.revision.origin, spec.revision.commit[:7])
print("model :", spec.model)
print("created :", spec.created[:10])status : success
task : refunds | task_version: 1.0
packages : {'inspect_ai': '0.3.292'}
git revision : git https://example.com/placeholder/triage-lab.git d9cda6d
model : mockllm/model
created : 2026-11-28The packages field records the Inspect version, and revision records the repository type, remote and commit, so for any log you can answer "which Inspect and which code made this?" without asking the person who ran it. The task has a version you set yourself ("1.0" here): bump it whenever you change the dataset, solver or scorer in a way that changes scores, so two logs with the same task name are not compared by mistake. DeepEval does not give you the equivalent for free, so add one: when you save a result file, write deepeval.__version__, the judge model name, the metric names and thresholds and the git commit beside the scores (10B.2, 10.5 explains why, and 10B.1, 12.2 gives a run-record helper for both packages).
8.6 Where this track will drift first#
Not all lessons age at the same speed. Likely drift, with the reason, so you know which to re-check first:
| Area | Lessons | Why it drifts | What to re-check |
|---|---|---|---|
| Red teaming and DeepTeam | 10B.7 | It left DeepEval for a separate package and came back, 4.3.6 is the newest module, its scoring rules are undocumented, and deepteam is deprecated from 30 January 2027 |
The red-teaming pages, deepeval.red_team, the CLI, the PASS-label rule (a tripwire in 2.6), and any remaining deepteam import before that date |
| Confident AI and pricing | 10B.7 | A commercial product with dated prices | The pricing and platform pages |
| Voice, MCP and agent metrics | 10B.4, 10B.5 | The newest metric groups; new ones appear in minor releases | The metrics list in llms.txt, the changelog's New Feature entries |
| Provider options and model names | 10B.3, 10B.12 | Providers add models and options weekly | Your provider's Inspect section and DeepEval integration page |
| Agent, sandbox and approval APIs | 10B.14, 10B.15 | Inspect's agent area changes in nearly every release | The Breaking Changes sections, the Agents and Tools pages |
| Ecosystem packages | 10B.16 | Younger packages with their own release cadence | Each package's docs and PyPI history |
| Inspect Evals contents | 10B.16 | The eval catalogue grows with each release | The Evals listing and the version guide |
| Metric formulas and prompts | 10B.4, 10B.3 | Templates change inside minor releases | The metric's page and a claim test |
| Scoring policy and statistics | 10B.10 | Stable ideas, but defaults and edge cases are tuned | The Scoring Policy page, the changelog |
| Undocumented behaviour | The rows of 2.6 and of 10B.17, Part 8 | Nobody promised it, so it can change in a bug-fix release with no Breaking Changes entry | Run tripwires.py, then the lesson's own sample |
| Methodology | 10A.1 to 10A.12 and the "defending a number" parts | The slowest-moving content | Papers; re-read after a year |
Every lesson of the track except 10B.5 also carries its own decoder for the past: an "Older code and tutorials" part or subsection that maps the names, imports and defaults of earlier releases onto the current ones. When a tutorial or a colleague's snippet does not match what you learned, open the matching part before you search the web. 10B.17, 11.3 shows how to date a tutorial in a minute, and 10B.1, 10.3 does the same for the first week.
| Package | Where each lesson's "older code" part is |
|---|---|
| DeepEval | 10B.1, Part 10, 10B.2, Part 11, 10B.3, Part 14, 10B.4, Part 10, 10B.6, 10.6, 10B.7, Part 7 |
| Inspect | 10B.8, Part 11, 10B.9, Part 12, 10B.10, Part 12, 10B.11, Part 14, 10B.12, Part 16, 10B.13, Part 13, 10B.14, 7.12, 10B.15, Part 14, 10B.16, Part 18 |
| Both | 10B.17, Part 11, with the 2026 timeline in 10B.17, 11.2 |
8.7 A failure gallery of reading mistakes#
| Mistake | What goes wrong | The fix |
|---|---|---|
| Read the lesson and skip the page | Everything the lesson did not cover stays invisible, including a changed default | Read the page and the signature, then the lesson as the map |
| Trust a guide's code because it is on the official site | It was written for one version on one day and may no longer run | Run it once; treat the reasoning as the value |
| Take the changelog's "Breaking Changes" as the whole story | Behaviour changes can be listed as Improvements or Bug Fixes | Read the range, search for the names you use |
| Use the GitHub Releases page as "the release list" for DeepEval | You stop at 4.2.4 and miss the twelve releases after it (4.2.5 to 4.2.9 and the whole 4.3 line, 4.3.0 to 4.3.6) | Use PyPI |
Link a section address (/guides) instead of a page |
It 404s later, or already does | Link pages; re-check links that matter |
| Quote a price, a limit or a model name from a page without a date | Reviewers cannot tell if it is current | Write "as of" and the date, and link the page |
| Treat an assistant's summary of the docs as the docs | It may be stale, invented or injected | Open the page it cites (9.5) |
| Upgrade several packages at once and compare scores | You cannot attribute the change | One package per pull request (7.4) |
| Compare a score from Inspect Evals with a published number without the version | The eval's code changed | Record and pin the version (3.12) |
| Ignore warnings because the run passed | The next release removes the thing the warning named | Run once with warnings as errors on your own code (8.3) |
| Test a strict-warnings fix on your laptop only | A warm cache (or pytest's own cached copy) hides a compile-time warning that fails every fresh CI runner | Re-test with an empty PYTHONPYCACHEPREFIX, or compile the file directly (8.3) |
| Rely on a behaviour because a lesson showed it in the source | No page promised it, so a bug-fix release can change it silently | Keep a tripwire for it and re-run the lesson's sample after upgrades (2.6) |
Part 9: Keeping current#
9.1 What to track, and what not to#
You cannot follow every commit and you should not try. Track, in this order:
- The versions you run and the versions available. Two numbers per package, in your notes and your lock file.
- Breaking Changes and deprecations for the packages you use. These are the entries that cost you time.
- New pages in each docs index, because a new page is a new feature or a moved feature (2.3).
- Changes to the things you defend: judge defaults, scoring policy, metric formulas. These move your numbers.
Do not track: every Bug Fix entry (search it when you hit a symptom), every new integration or provider you do not use, blog posts about features you do not need, and the star count of anything.
9.2 A routine#
| Cadence | Job | Time |
|---|---|---|
| Weekly | Glance at the PyPI feeds for the packages you use. If a release appeared, read its Breaking Changes (Inspect) or its version's entries (DeepEval). Do not upgrade yet | 5 minutes |
| Monthly | Re-save both llms.txt files and diff against last month's; read the new pages. Run uv tree --outdated in your projects. Re-run the probes of Part 8 and the tripwires of 2.6. Skim the Inspect changelog headings since your last look |
30 minutes |
| Before an upgrade | The procedure of 7.4 | 1 to 2 hours |
| Quarterly | Re-read the pages of your highest-drift areas (8.6) and your notes' "Surprises" list; delete the ones the maintainers fixed | 1 hour |
| Yearly | Re-read the Design Philosophy and Welcome pages, and the papers behind the metrics you rely on | Half a day |
9.3 An upgrade workflow#
With uv, an upgrade is a lock-file change you can review. These commands name packages only, never versions:
uv tree --outdated --depth 1 # what is behind, among your direct dependencies
# read the changelog range for the packages you are about to move (7.4)
uv lock --upgrade-package deepeval # re-resolve one package in the lock file
uv sync # install what the lock file says
uv run python name_probe.py # names still there? (8.3)
uv run python tripwires.py # undocumented behaviour still there? (2.6)
uv run pytest # your keyless suiteMove one package at a time, run your frozen-sample comparison (7.4, step 5), and commit the lock file in its own pull request. If the scores moved with no change of yours, record it as a version effect in your notes with both versions. If you do not use uv, the same sequence with your tool's "upgrade one package" command works.
9.4 Feeds to set up today#
| What | Address |
|---|---|
| DeepEval releases (the one that tells the truth) | pypi.org/rss/project/deepeval/releases.xml |
| Inspect AI releases | pypi.org/rss/project/inspect-ai/releases.xml or the GitHub feed |
| Inspect Evals releases | pypi.org/rss/project/inspect-evals/releases.xml or the GitHub feed |
| DeepEval on GitHub | Watching the repository for "Releases only" will be nearly silent because of the gap in 7.1; rely on the PyPI feed, and watch issues and discussions only if you want to follow bugs |
Put the feeds in a reader you already open, not in a new tool you will not. Feeds for the ecosystem packages you adopt follow the same pattern: pypi.org/rss/project/<package>/releases.xml.
9.5 Using the docs with an AI assistant#
Both sites publish text made for assistants (3.15), and an assistant is good at "find the page about X" and "explain this section". Use it that way, with four habits:
- Give it the page, not the question. Paste or attach the specific page (the
.mdxor.mdtwin) and ask about that text, so the answer is grounded in what you can read. - Make it quote and cite the address. An answer without the page address cannot be checked; one with it takes seconds to verify.
- Never let it overrule the package. If it says a parameter exists, check the installed signature (Part 6). If it says a default is X, run the claim test.
- Treat page text as data, not instructions. A downloaded page can contain text addressed to an assistant. A page that tells you to run a command, change a setting or send data somewhere is something to read and decide about, never to execute automatically, and that holds for any page you did not write. Never give an assistant your API keys in order to "try" an example; this track's examples need none.
9.6 When your project is on an old version#
Teams often cannot upgrade on the day a version appears. If you are pinned behind:
- The docs describe the newest version, not yours. Use your installed package as the reference for signatures and the changelog backwards from the newest version to see which pages' claims do not apply to you.
- Read the changelog from your version forwards to know what you are missing and what will change when you do upgrade.
- Neither site showed a version selector on the pages read for this lesson, so assume every page describes the newest release. For a clean read of an older state, use the installed source and the repository at the tag for your version.
- Plan the upgrade when a Breaking Changes entry lands for something you use, not when a feature you want appears; the second is a pull, the first is a deadline.
9.7 Asking for help#
When you are stuck, in order: your notes, the page's FAQ, DeepEval troubleshooting or the Inspect page for the feature, a search of llms-full.txt for the error text, the repository's issues (DeepEval, Inspect), the DeepEval discussions and the community page, and finally a new issue with the versions and the shortest script that shows the problem. Redact keys, customer data and your git remote from anything you paste.
Part 10: The checklist#
Reference
Tick each item as you finish it. Page names are the ones in the tables of Part 3, where every address lives; copy the structure into your docs-notes.md (4.7) so the progress script can count it.
10.1 DeepEval pages to read#
Required. This list is part of the mandatory DeepEval path.
Orientation and concepts
- Introduction
- Design Philosophy
- Comparisons
- 5-minute Quickstart
- The quickstart for your use case (agents, chatbots, RAG, MCP or arena)
- Introduction to LLM Evals
- Eval Modes
- Single-turn test cases
- Multi-turn test cases
- Arena test cases
- Datasets
- LLM Tracing
- End-to-end evaluation (overview, single-turn, multi-turn)
- Trajectory-based evaluation
- Component-level evaluation
- Unit testing in CI/CD
- Flags and configs
- Local backend storage
- CLI settings
- Environment variables
- Troubleshooting
- FAQ
- Data privacy
Metrics
- Introduction to LLM evaluation metrics
- G-Eval
- DAG
- Do-it-yourself metrics
- Answer Relevancy: How Is It Calculated?
- Faithfulness: How Is It Calculated?
- Contextual Precision, Recall and Relevancy
- Hallucination
- Task Completion, Step Efficiency, Plan Adherence and Plan Quality
- Tool Correctness and Argument Correctness
- Multi-turn metrics you use
- The safety metrics you use
- JSON Correctness, Exact Match and Pattern Match
- One MCP metric
- Classifiers introduction
Data, red teaming, production
- Synthetic data introduction and Golden Synthesizer
- Generate goldens from documents, contexts, goldens and scratch
- Conversation simulator, model callback and stopping logic
- Benchmarks introduction and the benchmark you would use
- Red teaming introduction, quickstart and running red teams
- The vulnerabilities and attacks that match your app
- Prompts and prompt optimization introduction
- One optimization algorithm page
- The integration page for your framework
- The integration page for your judge provider
- Regression testing guide
Beyond the docs
- The guides that match your use case (3.3)
- One tutorial, worked on your own app
- The 2026 changelog, with the script of 7.3
- Confident AI documentation, if you adopt the platform
10.2 Inspect pages to read#
Basics and components
- Welcome
- Tutorial
- Options
- Log Viewer
- VS Code
- Tasks
- Datasets
- Solvers
- Scorers
Scoring
- Standard Scorers
- Custom Scorers
- Scoring Policy (first read)
- Scoring Policy (second read)
- Scoring Metrics
- Multiple Scorers
- Model Grading
- Scoring Workflow
- Perplexity, if you score local models
Models and running
- Using Models
- Your provider's section of Providers
- Caching
- Concurrency
- Batch Mode
- Reasoning
- Structured Output
- Multimodal
- Fallbacks
- Eval Sets
- Parallelism
- Sharding
- Handling Errors
- Early Stopping
- Tracing
- Control Channel
- Task Sources and Sample Sources
Analysis and extension
- Log Files
- Dataframes
- Task Views
- Inspect Viz
- The six Extensions pages
Agents, tools and control
- Tool Basics
- Custom Tools
- Standard Tools
- MCP Tools
- Using Agents
- ReAct Agent
- Multi Agent
- Custom Agents
- Deep Agent
- Compaction
- Sandboxing
- Tool Approval
- Tool Result Review
- Setting Limits
- Agent Bridge
- Human Agent
- Checkpointing
- Intervention
- Scanners
Ecosystem
- Inspect Evals front page
- Run a specific eval version
- The Register and methodology pages
- The docs of each ecosystem package you adopt (Scout, Viz, SWE, Harbor, Petri)
10.3 Reference and changelog reading#
- The
inspect_aireference page, read once - The
inspect_ai.scorerreference page, one entry read as in 6.2 - The
inspect evalCLI page, compared with--help - The Inspect changelog: Breaking Changes of the last five releases
- The DeepEval changelog 2026 page: the three Breaking Change entries
- Two PyPI release histories read (4.3.5 and 4.3.6 for DeepEval)
- The papers of 3.14 for the metrics you rely on
10.4 Hands-on checks#
-
version_report.pyrun, with your ownTRACKversions -
name_probe.pyrun with names from your own project added -
signatures.pyrun on one metric and one scorer you use -
changelog_scan.pyrun on freshly saved changelogs -
coverage_map.pyrun, and three unnamed pages read -
tripwires.pyrun, with one wire added for a behaviour your own suite depends on - A strict-warnings CI run tested with an empty bytecode cache, if your project promotes warnings to errors
-
claim_test.pyadapted to one claim from a page you read -
docs_search.pyused on a parameter name you were unsure about -
log_versions.pyrun in a throwaway repository; one old log read for its versions - One disagreement between a page and the package written in your notes with versions
10.5 Keep-current setup#
- PyPI feeds for
deepeval,inspect-aiand any ecosystem package you use, in your reader - Both
llms.txtfiles saved with dates, and a calendar reminder to re-save monthly - Versions and dates at the top of
docs-notes.md - The weekly and monthly routine of 9.2 on your calendar
- The upgrade procedure of 7.4 copied into your team's pull request template
10.6 Definition of done#
You have finished when you can answer the questions in Check yourself without opening anything, you can say where in the docs to find any feature of either package in under a minute, and your notes file holds at least three dated disagreements between a page and a package (or a lesson and a page) that you found yourself.
Part 11: Where to go from here#
Reference
- Practise on a real project. The Module 10A projects carry optional framework-track extensions: the starter's port to DeepEval and Inspect with the numbers reconciled, a judge-validation idea for the calibrated-judge stretch and agent evals in CI for the agent harness. Reading the docs is the preparation; the reconciliation is where you find which differences are real.
- Carry the evaluation habit into production. Modules 11A to 11C cover tracing, observability platforms, caching, cost, routing and CI/CD for prompts, which is where your evals meet traffic.
- Go deeper on adversarial testing. Module 12: Safety & Security owns prompt injection, jailbreaks and guardrails; the red-teaming pages of 3.5 belong with it.
- Return to the methodology. 10A.5 (calibrating judges), 10A.8 (regression testing and CI) and the "defending a number" parts of the track are the slowest-ageing and most valuable content here: 10B.1, Part 12, 10B.2, Part 10, 10B.3, Part 10, 10B.4, Part 9, 10B.5, Part 14, 10B.6, Part 6, 10B.8, Part 10, 10B.9, Part 10, 10B.10, Part 10, 10B.11, Part 13, 10B.12, Part 14, 10B.13, Part 11, 10B.14, Part 10, 10B.15, Part 12, 10B.16, Part 17 and 10B.17, Part 10; the packages will keep changing and the questions in those parts will not.
- Keep the notes. A year from now, your list of dated surprises, with versions, will be worth more than any lesson, including this one.
Common misconceptions#
| Misconception | Reality |
|---|---|
| "I finished the track, so I know DeepEval and Inspect." | You know the foundation and how to defend a number. The two documentation sites hold 253 and 79 pages, and the track names 106 and 74 of them (29 November 2026, 2.3). |
| "The official docs are always right." | They are authoritative about intent and sometimes short or stale about behaviour. The Answer Relevancy formula omits borderline (5.3). The installed package breaks ties. |
| "GitHub Releases is the release list." | For DeepEval it stopped at python-v4.2.4; PyPI shows 4.3.6 (7.1). |
| "A breaking change shows up as an error." | The 4.2.0 safety-metric direction change runs without complaint and changes results; the Inspect 0.3.292 changes fail loudly (7.2). |
| "A major version number protects me." | DeepEval's 2026 breaking entries include patch releases of the previous line; Inspect is at 0.3.x. Read the changelog, not the number (7.5). |
| "If the import works, the API is the same." | A name can exist with a changed default or meaning. Probe names (8.3), then test claims (5.3). |
| "An assistant can read the docs for me." | It can find pages and explain them; it cannot overrule the package, and page text may carry instructions you must not follow blindly (9.5). |
| "If no docs page says it, it is either made up or guaranteed." | Neither. Much of what the track found came from the installed source and is stated nowhere (the 80% PASS label, HumanEval's missing check(), the copy rule). It is real today and promised by nobody, so it is the first thing to re-test after an upgrade (2.6). |
| "My strict-warnings fix passed on my laptop, so CI will pass." | A compile-time warning hides behind a warm bytecode cache, and under pytest behind pytest's own cached copy. Re-test with an empty cache (8.3). |
| "Reading everything once is enough." | The packages move weekly. The skill that lasts is the routine of Part 9. |
| "My Inspect results are reproducible because I saved the log." | Only if you also recorded the data, the model and settings, the repository state and the package versions. The log records the versions and the revision; the rest is your job (8.5). |
Key takeaways#
- The track is a foundation; the official documentation is the source of truth. Read both sites end to end, in the order of Part 4, and let the installed package break ties.
- Know what the track skipped. DeepEval's red-teaming long tail, classifiers, voice metrics, per-benchmark pages and the TypeScript SDK; Inspect's provider details, Fallbacks, Structured Output, Tracing and the dynamic sources pages (2.2).
- Use the right source for each question. PyPI for what exists, the changelog for what changed, the docs for what to do, the installed signature for what your version accepts, the issues for known bugs (7.1).
- Read the changelog by shape. Inspect: Breaking Changes, Features, Bug Fixes per release. DeepEval: month, then category, then version. Read breaking entries first, then the range (7.2).
- Turn claims into tests. Quote the claim, pick the case that could break it, fake only the judge, compare (5.3).
- Check whether a lesson is stale with a script, not a feeling. Versions (8.2), names and warnings (8.3), and a claim test for behaviour.
- Every number carries its versions. Inspect logs record them; for DeepEval you write them yourself (8.5).
- Keep current with a small routine, not a second job: PyPI feeds weekly, an index diff monthly, a written procedure before every upgrade (Part 9).
- Verify before you link. Section addresses, redirects and moved pages are the usual breakage (3.16).
- Re-test what nobody promised. Behaviour the lessons found in the source can change without a changelog entry; a tripwire per behaviour tells you which lesson section to re-run after an upgrade (2.6).
- Keep notes with dates. Your list of dated page-versus-package disagreements is the most valuable output of this lesson.
Terms introduced in this lesson#
| Term | One-line definition |
|---|---|
| Claim test | A small script that turns one sentence of the docs into an executable check against the installed package, with only the judge faked |
llms-full.txt |
A single text file holding every page of a documentation site, one after another; searchable offline and diffable between dates |
| Docs coverage map | A comparison of a site's llms.txt index against the pages your notes (or a course) name, to show which pages you have not seen |
| Docs drift | The growing gap between a lesson, guide or page and the current package, caused by releases that nobody wrote back into the text |
| Installed signature | The parameters and defaults read from the package you actually have (inspect.signature), the most reliable reference for your version |
| Breaking Changes section | The part of an Inspect changelog release that lists changes needing action; DeepEval files the same idea under a "Breaking Change" category |
| Release history | PyPI's dated list of every published version of a package; the authoritative answer to "what exists" |
| Version effect | A change in an eval score caused by upgrading a package rather than changing your code or data; recorded as such, not as a regression |
| Reading plan | A time-boxed order for reading documentation, keyed to the lessons you already know, with a core list and an extended list per block |
| Surprise log | The dated notes of cases where a page, a lesson and the package disagreed, with versions |
| Source tripwire | A check that the line of installed source a lesson's finding rests on is still there; a trip means "re-read and re-run that section", not "the behaviour changed" |
| Hyrum's law | The observation that with enough users every observable behaviour of a system is depended on by someone, documented or not; the reason undocumented behaviour needs its own re-test |
Exercises#
All exercises are keyless. Save the five files from Setup into one folder first.
- A different claim case. In
claim_test.py, change the verdicts to oneyesand threenoand the statements to match, then run it. What score do you expect from the page's formula, and what does the package give? (Use a fresh copy of the script, so the lesson's sample stays as it was.) - Find a parameter. Use
docs_search.pyonde_llms_full.txtforstrict_mode. How many pages mention it? Open two of them and write one sentence each about what the parameter does on that page. Do the two pages agree? - Read a changelog entry. In the saved Inspect changelog, find the release that added the
view_image()tool and name the section it appears in. Then find the newest release that has a Breaking Changes section and say whether any item in it would break a script of yours. - Probe your own names. Add the five Inspect or DeepEval names your project imports most to
name_probe.py, add one misspelled name on purpose, and run it. Does the probe tell a typo apart from a removed name? - Build your delta. Write a half-page "docs delta" for the DeepEval move from 4.3.5 to 4.3.6: which changelog or page sources tell you what changed, what each source says, and which of your lessons or projects you would re-check first.
- Measure your reading. Copy the checklist of Part 10 into a notes file, tick what you have read, and run
docs_progress.py. Set a date for 50 percent. - Add a tripwire. Pick one row of 2.6 that
tripwires.pydoes not watch (the copy rule of 10B.2, 4.5 is a good one), find the line of installed source the lesson relied on, and add a wire for it. Then prove the wire can fail: point it at a string that is not in the file and check that it printsCHANGED.
Answers
-
The page's formula gives 1 relevant statement out of 4, so 0.25. The package gives 0.25 too (run on 28 November 2026; there is no
borderlineverdict in this case, so the two readings of the formula agree):text score=0.25 success=False threshold=0.5The point of the exercise is the contrast with the lesson's case: a claim test that agrees is a different, weaker finding than one that finds a gap.
-
The number of pages depends on the day you save the file, which is the reason to date it. On the copy saved on 28 November 2026,
docs_search.pyprinted'strict_mode': 82 line(s) on 64 page(s). Expectstrict_modeto appear on many metric pages with the same meaning (a stricter pass criterion, with the exact behaviour stated on each metric's page); if two pages describe it differently, you have found a disagreement for your notes, to be settled by the installed package and the metric's source. -
view_image()appears in the0.3.292release (23 November 2026), under Features. The newest release with a Breaking Changes section in the saved file is also0.3.292:exclude_samples()andzero_samples()now return nothing,inspect log excludeandinspect log zerolost--json,DispositionResultis no longer exported, and some sandbox provider hooks run in the launch directory. They affect you only if your code reads the removed result, passes--json, imports the removed type or ships a non-Docker sandbox provider, and each of those fails loudly (anAttributeError, an unknown-option error, anImportError, aPrerequisiteError). -
Yes. With a made-up name in one module and a typo in another, the probe lists each as missing and nothing else, but it cannot tell a typo from a removal: both say
missing. To tell them apart, search the changelog for the name (a removal is mentioned) and the installed module for near matches (a typo has one). The probe's own format ismodule N/ N present MISSING: names, followed by a total. Run on 28 November 2026 with only the two typos added (thedeepeval.red_teamline left out here), the matching lines are:text deepeval.metrics 17/18 present MISSING: FaithfulnesMetric inspect_ai.scorer 14/15 present MISSING: model_graded_judge names missing in total: 2 -
A good delta lists: PyPI release history (4.3.6 published 25 November), the changelog page (whose newest entry on 28 November was 4.3.5, so it may not describe 4.3.6 yet), the repository's
pyproject.toml(4.3.6) and the red-teaming pages that moved intodeepeval.com. It then names what to re-check first: 10B.7 (red teaming moved in), any CI job that promotes warnings to errors (thedeepeval.red_teamSyntaxWarningof 8.3), and any code that imports the standalone DeepTeam package, which its README says will be deprecated on 30 January 2027 (a source the delta should list too). With plainpythonthe warning appears only on a cold bytecode cache, and under pytest withfilterwarnings = errorit fails on every fresh runner, so check it with the forcedcompileallcommand of 8.3 or an emptyPYTHONPYCACHEPREFIX, never by importing twice on a warm laptop. -
There is no single right answer; a plan with a date and a weekly slot is the answer. A checklist you have not scheduled is a list of good intentions.
-
Your wire depends on the row you chose. For the copy rule, the target is the function that rebuilds metrics from their
__init__parameters, which 10B.2, 4.5 names: in 4.3.6 it iscopy_metrics()indeepeval/metrics/utils/metrics.py, and the line that collects the parameter names readssignature = inspect.signature(superclass.__init__), so a wire such aslambda: "inspect.signature(superclass.__init__)" in src("deepeval", "metrics/utils/metrics.py")holds on 29 November 2026. The second half matters as much as the first: a wire that cannot printCHANGEDis not checking anything, which is the same rule as a CI gate that cannot go red (10B.12, Part 13).
Check yourself#
- Why does this lesson say the documentation, not the track, is the source of truth?The track was verified on 24 November and the packages keep moving (DeepEval 4.3.6 appeared on 25 November); the documentation, changelog and installed package are published by the maintainers and are current. The track gives the map, vocabulary and methodology, the docs give the full surface, and the installed package settles any disagreement.
- On 28 November 2026, which four sources gave which answers for the newest DeepEval version, and which should you trust for "what exists"?PyPI: 4.3.6 (25 November).
pyproject.tomlon the main branch: 4.3.6. The changelog page: newest entry v4.3.5. GitHub Releases:python-v4.2.4(22 September). Trust PyPI for what exists, and use the mismatch as a hint that the changelog may not yet describe the newest release. - What does the Inspect changelog's "Breaking Changes" section tell you that a version number does not?Which changes require action (removed or changed behaviour), release by release. A version number such as
0.3.292says only that something changed, and in a pre-1.0 line any release may break you. - How is DeepEval's changelog organized, and how do you find every change in one release?By year page, then month, then category (New Feature, Improvement, Bug Fix, Breaking Change, rarely Security or Experimental Feature), then version heading, so one release appears under several categories. Search the page for the version string, or use a script that groups by version.
- Why does DeepEval have no generated API reference, and what do you use instead?The site is organized as prose guides with parameters listed on each page's Usage section, with no generated reference tree. Use the page's Usage, the installed signature and the source file.
- What does
inspect.signaturegive you that a docs page may not?The exact parameters and defaults of the version you run, which cannot be out of date relative to your code, plus where the object is defined. - Describe the four steps of a claim test, and what the Answer Relevancy test found.Quote the claim with its address; pick the smallest case that could make it false; script the judge so only the judge is fake; compare and write down the difference. It found that the package counts
borderlineas relevant (0.75 with twoyes, oneborderlineand oneno), which the one-line formula does not mention. - What does
name_probe.pycheck, and what did it find aboutdeepeval.red_team?It imports each name the track teaches and reports what is missing, with warnings promoted to errors for the import. All 89 names were present;deepeval.red_teamfailed only under warnings-as-errors, because compiling one of its files raisesSyntaxWarnings for invalid escape sequences. With plainpythonthat happens only on the first import after install (a cold bytecode cache); later imports load__pycache__and are clean. Under pytest withfilterwarnings = errorit fails on every fresh runner even after a plain import warmed the cache, because pytest compiles DeepEval's modules itself as a plugin package and never caches a failed compile. A forcedcompileallwith-W error, orcompile()on the file as intripwires.py, reproduces it every time; 10B.7, 2.6 has the two-linepytest.inifix. - What does an Inspect log record that lets you tell which version produced it, and what should you add for DeepEval?The header's
packagesfield (the Inspect version) andrevision(repository type, remote and commit), plus a taskversionyou set. For DeepEval, writedeepeval.__version__, the judge model, the metric names and thresholds and the commit beside the scores. - Name three kinds of page the track never taught in depth, for each package.DeepEval: the red-teaming long tail (per-attack and per-vulnerability pages), classifiers, voice metrics, per-benchmark pages, the TypeScript SDK, tutorials. Inspect: per-provider details, Fallbacks, Structured Output, Tracing, the Task Sources and Sample Sources pages, individual Inspect Evals entries. (Any three of each.)
- Why is the 4.2.0 safety-metric change more dangerous than a function that was removed?A removed function fails loudly the first time you call it. A direction flip runs without error and every threshold you wrote before it now means the opposite, so wrong cases can pass unnoticed.
- List the steps of the upgrade procedure in the order you would run them.Write down both versions; list the releases in between; read Breaking Changes, then relevant Features and Bug Fixes; check the pages you rely on; run before and after on a frozen sample; run once with warnings as errors; upgrade in its own pull request.
- What are the habits for using an assistant with the docs, and why must page text be treated as data?Give it the page, make it cite the address, never let it overrule the installed package, and keep keys away from it. Page text is written by someone else and may contain instructions aimed at assistants, so read commands and decide yourself rather than executing automatically.
- What belongs in the weekly, monthly and before-upgrade parts of the keep-current routine?Weekly: glance at the PyPI feeds and read breaking entries. Monthly: re-save and diff both
llms.txtfiles, runuv tree --outdated, re-run the probes and the tripwires. Before an upgrade: the written procedure of 7.4. - Why are behaviours that a lesson found in the source, but no docs page states, the first things to re-check after an upgrade, and what does a
CHANGEDline fromtripwires.pytell you?Because nobody promised them: the maintainers can change an undocumented threshold or code path in a bug-fix release without a Breaking Changes entry, since no documented behaviour moved.CHANGEDmeans the line of source the lesson relied on is no longer there as written, so re-read that section and re-run its sample; it may be a harmless refactor (thepass_atsignature false alarm of 2.6 is one) or a real change, and only the re-run tells you which.
Further resources#
Every address below returned HTTP 200 on 28 November 2026 and again on 29 November. Part 3 has the full map; this is the short list to bookmark.
DeepEval
- Documentation: deepeval.com/docs/introduction, the index at deepeval.com/llms.txt and the whole docs as text at deepeval.com/llms-full.txt
- Guides and tutorials: AI agent evaluation guide and tutorial introduction
- Changelog: deepeval.com/changelog and the 2026 page
- Code and packages: github.com/confident-ai/deepeval, pypi.org/project/deepeval and pypi.org/project/deepteam
- Red teaming: introduction and quickstart; the DeepTeam README carries the migration notice and the 30 January 2027 deprecation date
- Platform: Confident AI documentation and pricing (date any figure you quote)
Inspect AI
- Documentation: Welcome, Tutorial, the index at inspect.aisi.org.uk/llms.txt and the full guide at llms-guide.txt
- Reference:
inspect_aiand the reference index - Changelog: inspect.aisi.org.uk/CHANGELOG.html
- Code and packages: github.com/UKGovernmentBEIS/inspect_ai and pypi.org/project/inspect-ai
- Benchmarks: Inspect Evals, the Register and the evals listing
- Ecosystem: Scout, Viz, SWE, Harbor, Petri and the extensions gallery
Papers (3.14): G-Eval, Judging LLM-as-a-Judge, QAGS, GEPA and Adding Error Bars to Evals.
Within this course: 10B.1 for the track's start and its package maps, 10B.2 to 10B.7 for DeepEval, 10B.8 to 10B.16 for Inspect, 10B.17 for choosing and combining, 10A.5 for validating a judge, 10A.8 for CI gates and 08F.17, the same lesson for LangChain and LangGraph.
← 10B.17: DeepEval or Inspect? Choosing, Combining and Migrating (optional) | Module 10B overview | Module 11A: Observability and AgentOps →