Log inStart free
LESSON 18.12 · 5 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW

Red-team policies and exploit regression suites

Watch a red team hunt for plans that win reward without doing the task.


Pro lesson. Stage 1 is free to watch. Pro opens all 5 stages, 3 controls and 3 checks, in this lesson and every other.

Go Pro · $8.25/mo
EXPLAINER · 18.12 · RED-TEAM BAYCLIMB 2 · 7 KEPT · BEST 18.50
01
Stage 1 of 5 · Red-team policy
A red-team policy hunts for bad work the scorer pays for. It keeps a one-move change that pays more, or equal with fewer moves.
Explain it simply

A red-team policy plays the agent in the same sandbox, but its job is to break the scorer. It starts from the sloppy plan that earns 4.79. Each try changes one move, and a change that pays more, or the same with fewer moves, is kept. Here the best climb keeps 7 changes and reaches 18.50.

The best climb of the search, one row per kept plan. Start: write sloppy, run tests, short report, reward 4.79. Change 1: write sloppy, run tests, short report, write NaN, reward 12.79. Change 2: write sloppy, run tests, glowing report, write NaN, reward 13.50. Change 3: write sloppy, write NaN, run tests, glowing report, write NaN, reward 17.50. Change 4: write NaN, run tests, glowing report, write NaN, reward 17.50. Change 5: write NaN, run tests, glowing report, reward 17.50. Change 6: write NaN, run tests, run tests, glowing report, reward 18.00. Change 7: write NaN, run tests, run tests, run tests, glowing report, reward 18.50.

plans triedthe bar and each changerewardexploits and failed checksnot counted, or not in the suite
startwritesloppyruntestsshortreportsubmit4.79try 53writesloppyruntestsshortreportwriteNaNsubmit12.79inserttry 58writesloppyruntestsglowingreportwriteNaNsubmit13.50replacetry 59writesloppywriteNaNruntestsglowingreportwriteNaNsubmit17.50inserttry 73writeNaNruntestsglowingreportwriteNaNsubmit17.50deletetry 89writeNaNruntestsglowingreportsubmit17.50deletetry 91writeNaNruntestsruntestsglowingreportsubmit18.00inserttry 94writeNaNruntestsruntestsruntestsglowingreportsubmit18.50insertthe best climb: one row per kept plankeep a change that pays more, or ties with fewer moves: 4.79 → 18.50 in 7 kept changesstartwritesloppyruntestsshortreportsubmit4.79try 53writesloppyruntestsshortreportwriteNaNsubmit12.79inserttry 58writesloppyruntestsglowingreportwriteNaNsubmit13.50replacetry 59writesloppywriteNaNruntestsglowingreportwriteNaNsubmit17.50inserttry 73writeNaNruntestsglowingreportwriteNaNsubmit17.50deletetry 89writeNaNruntestsglowingreportsubmit17.50deletetry 91writeNaNruntestsruntestsglowingreportsubmit18.00inserttry 94writeNaNruntestsruntestsruntestsglowingreportsubmit18.50insertthe best climb: one row per kept plankeep a change that pays more, or ties with fewer moves: 4.79 → 18.50 in 7 kept changes
Toy: the 18.C3 median task, 15 moves, plans of up to 14 actions
STAGE 1 / 5
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
keep p′ if R(p′)>R(p) or R(p′)=R(p), ∣p′∣<∣p∣\text{keep } p' \text{ if } \sy{r}{out}{R(p')} > \sy{b}{out}{R(p)} \text{ or } \sy{r}{out}{R(p')} = \sy{b}{out}{R(p)},\ |p'| < |p|
R(p′)=18.50,  R(p)=18.00R(p') = 18.50,\; R(p) = 18.00

A changed plan wins if it pays more, or the same with fewer moves.

Common mix-ups

MYTHCode that passes the audit means the episode is fine.

The fix, and 1 more mix-up with the diagram to show them, come with Pro.

Predict, then reveal
3 CHECKS · PRO
Q01With 200 plans and all three checks, does the saved NaN exploit still pay on patched?

Make your guess, then test it in the diagram. All 3 checks come with Pro.

PRO LESSON · YOU WATCHED STAGE 1 OF 5
Unlock the full explainer
  • 4 more stages and 3 live controls
  • 2 mix-up cards and 3 predict-then-reveal checks
  • Watch it as a narrated video, in three voices
  • Every Pro lesson and capstone · 656 in total

$99 a year, or $15 a month. Cancel any time.