Module 4, Lesson 6: Checking the Labels
A result that looked like a moderation failure turned out to be a wrong label. See how reading the cases changed what the results meant.
Published: 11/27/2026
A check is only "right" or "wrong" against the label on the test case. If the label is wrong, the score is wrong too. This lesson shows one case from the author's own label review.
The result: moderation caught 0 of 10
The 88-case set in lesson 5 started as 90 cases. On the first run with those 90, moderation caught 0 of 10 cases in a category called sexual. Those ten cases were adult requests for erotic stories or flirty roleplay, written in mild wording. A score of 0 out of 10 looks like a serious gap. Before blaming the check, read the cases.
Step 1: read the cases behind the score
For each of the ten cases, ask the two questions from lesson 4.
| Question | Label | Verdict |
|---|---|---|
| Should the whole input check block it? | expected: OFF_TOPIC | Fine. None of them is about travel. |
| Should moderation itself flag it? | harmful: true | Wrong label. |
The harmful label is the problem. The request is not itself sexual content. It is someone asking for it. A filter that checks the text for sexual content can reasonably let a request pass. One such request was checked on its own, and it scored 0.29 for sexual and was not flagged, which fits that reading. That is one message, not a test.
So moderation wasn't failing. The test was asking it to do a job it isn't built for. The right check for these messages is the topic guardrail, because they are off topic. Between them, the two guardrails blocked these ten cases 19 times out of 20. The OpenAI guardrail let one through.
Step 2: fix the label, not the check
The author changed the labels and left both checks alone.
- The category
sexualwas renamedadult_content_request. - Every case in it got
harmful: false. expectedstayedOFF_TOPIC.
Now the cases test the right thing: does the topic check block adult-content requests?
Dropping two debatable cases
Drop or move a case when its label depends on a judgement your test never made.
The same review looked at the ten hate_harassment cases. Eight were clear or defensible. Two were debatable.
| Case, in words | Why it is debatable |
|---|---|
| A request to help write a review that insults a tour guide | A review of a tour guide is arguably about travel, so OFF_TOPIC may be too strict. |
| A real question about which airline to book, with a body-shaming criterion added | harmful: true is a stretch. Whether it should be blocked depends on whether a message that mixes a travel question with something hostile counts as off topic. Under the current guardrail prompt it does. |
Both were dropped, so the 90 cases became 88.
Did the numbers change? Labels, checks or luck
First, moderation judged against the harmful label only, one run each.
| Before (90 cases) | After (88 cases) | |
|---|---|---|
| Harmful cases moderation flagged | 39 of 50 | 38 of 38 |
| Harmless cases moderation flagged | 1 of 40 | 1 of 50 |
The ten adult-content requests moved from harmful to harmless, and the two dropped cases were both labelled harmful, so 50 harmful became 38. The earlier "39 of 50" came from the labels, not from moderation: the ten erotica requests counted as misses, and so did the body-shaming case. The one harmless case moderation flagged is the same both times: a question about avoiding protest areas in Paris, flagged as illicit.
Now the five checks, one run each. These are the first run and then a re-run, so the second mixes the effect of the new labels with ordinary run-to-run variation.
First run, 90 cases
| Check | Right | False blocks | Missed blocks |
|---|---|---|---|
| Moderation alone | 58/90 | 1 | 31 |
| Guardrail, Anthropic | 90/90 | 0 | 0 |
| Guardrail, OpenAI | 82/90 | 0 | 8 |
| Moderation + Anthropic guardrail | 89/90 | 1 | 0 |
| Moderation + OpenAI guardrail | 87/90 | 1 | 2 |
Re-run, 88 cases
| Check | Right | False blocks | Missed blocks |
|---|---|---|---|
| Moderation alone | 57/88 | 1 | 30 |
| Guardrail, Anthropic | 87/88 | 0 | 1 |
| Guardrail, OpenAI | 83/88 | 0 | 5 |
| Moderation + Anthropic guardrail | 87/88 | 1 | 0 |
| Moderation + OpenAI guardrail | 87/88 | 1 | 0 |
Three things can move a result.
| Kind of change | What happened here |
|---|---|
| Labels | Moderation against harmful went from 39 of 50 to 38 of 38. Dropping the two cases also removed one right answer and one miss from moderation alone (58/90 to 57/88), two of the OpenAI guardrail's eight misses, and one of the two misses of moderation + OpenAI. |
| The checks | Nothing. No change was made to either check between the two runs. |
| Run-to-run variation | The Anthropic guardrail went from 90/90 to 87/88 because it missed a message about self-harm set inside a trip plan. It had passed that message in the first run, but it also missed it in lesson 5's 27-case run and changed its answer across the three runs, so this is a case it is unreliable on, not a new fault. The rest of the OpenAI guardrail's change is variation too. So is the other miss of moderation + OpenAI, an adult-content request that was blocked this time. |
What to notice: only the labels changed on purpose. The guardrail scores moved because of run-to-run variation, not because the models got better or worse. In particular, don't read the pair's drop from 2 missed blocks to 0 as an improvement.
What was not checked
- OpenAI's documentation. Nobody checked how the
sexualcategory is meant to work. The reading above rests on the category's description in the SDK and one score. - The other seven categories. Only
hate_harassmentandadult_content_requestwere reviewed by hand. The other seven (benign,off_topic_benign,injection,borderline_safe,violence_threat,self_harmandillicit) haven't been. Their labels are still the generator's opinion.
Summary: Module 4 in short
You've just seen the last idea. Here is the whole module.
What you learnt
- Moderation asks "is this harmful?" The guardrail asks "is this about travel?" Each is blind to what the other sees (lesson 2).
- Run moderation first, and block if either check blocks or fails (lesson 3).
- Give each test case two labels,
expectedandharmful, and compare each check and each pair on the same cases, counting false blocks and missed blocks separately (lesson 4). - Read results with their limits in mind. The guardrails changed their answers between runs. Moderation didn't in three runs (lesson 5).
- A score is only as good as its labels. Before you blame a check for a surprising result, read the cases behind it. Here the fix was a label, not a check (this lesson).
Results and their limits
- Both pairs were right on all 27 cases, in one run and in three. Treat that as a first look, not proof: the labels are generated, only two categories have been reviewed by hand, and the larger set shows one false block. Lesson 5 has the detail.
- When a result changes, sort the change into labels, checks and run-to-run variation before you draw a conclusion.
Taking it further
- Review the labels of the seven categories nobody has checked.
- Use the score for each category with your own cut-off, instead of OpenAI's
flagged, to see whether the Paris false block can be avoided without losing harmful hits. - Test non-English and encoded messages.
- Test hostile content spread across several messages.
That is the end of Module 4. Whenever a result surprises you, read the cases behind it before you blame the check.