Lion Cipher Lab

Audit your security eval's gold labels for noise before trusting a score: Cohen's kappa by hand, a planted rule dispute, and a model ranking that flips (deterministic STUB models)

Why it matters

Every security eval score - phishing-detection accuracy, alert-triage accuracy, the number in a vendor's slide - is a comparison against an answer key that humans wrote, and humans disagree. If the answer key is wrong on one item in six, a perfect model cannot score above about 0.83, and a model that happens to share the labeller's blind spot can score higher than a perfect one. This lab makes that concrete on 300 phishing and alert items with two simulated annotators whose mistakes are planted, so you can check each audit step against the truth. Their raw agreement looked respectable at…

What you'll learn

Steps in this lab

  1. The words first: gold labels, annotators, agreement, Cohen's kappa, adjudication, the accuracy ceiling - and the fact that the models here are stubs
  2. Open a terminal and make a scratch folder (Windows, macOS, Linux)
  3. Build the 300-item eval and plant two imperfect annotators
  4. Measure agreement by hand: the 2x2 table, raw agreement, chance agreement, Cohen's kappa
  5. Read the disputes as patterns, not as noise
  6. Score two STUB models against the labels as shipped - and against the truth
  7. The honest negative: just dropping the disputed items makes it worse
  8. Adjudicate properly: fix the rule first, then a third label for what is left, and re-measure
  9. The judgment: when to audit the answer key, when not to, and how a pro does it better
  10. Ship it: the checklist, one experiment to run yourself, and an optional local model

Open the full interactive lab →