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

Verifiable rewards (RLVR)

Watch a program score four rollouts at the end, then step by step.


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 · 24.03 · REWARD BAYREWARDS 1 · 0 · 0 · 0 · 1 OF 4 PASS
01
Stage 1 of 5 · A program checks
A program runs 4 hidden tests on the final leap.py. If all 4 pass after submit, the verifiable reward is 1.
Explain it simply

Each row is one rollout, one try at the same prompt. On the right, a program runs the 4 hidden tests on the file each rollout leaves. The reward is 1 only when the agent submits and all 4 pass. Nobody has to judge the work by eye.

Four rollout rows. Rewards 1, 0, 0, 0. Hidden tests passed: 4, 2, 3, 4 of 4.

actions, steps, pass, reward (solid: outcome)turn limit, chance afterfail, wrong step, cutnever run
turn limit 6rollout 1rollout 2rollout 3rollout 4readleap.pysayeditfullruntestssubmitsaysubmitreadleap.pyedithalfruntestssubmitreadleap.pyruntestsreadtestssayeditfullruntestssubmitfinal file1900200020242100Rgrader, outside the workspacefull rulesubmitted1buggy filesubmitted0half rulesubmitted0full rulecut at turn 60a program checksturns of each rolloutt1t2t3t4t5t6t7t8R = 1 only if submit and all 4 hidden tests passturn limit 6rollout 1rollout 2rollout 3rollout 4readleap.pysayeditfullruntestssubmitsaysubmitreadleap.pyedithalfruntestssubmitreadleap.pyruntestsreadtestssayeditfullruntestssubmitfinal file1900200020242100Rgrader, outside the workspacefull rulesubmitted1buggy filesubmitted0half rulesubmitted0full rulecut at turn 60a program checksturns of each rolloutt1t2t3t4t5t6t7t8R = 1 only if submit and all 4 hidden tests pass
Toy: the leap-year fix, 4 hidden tests, 4 rollouts per prompt
STAGE 1 / 5
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
R=1[submit∧k=4]\sy{R}{out}{R} = \mathbb{1}[\text{submit} \wedge \sy{k}{out}{k} = 4]
R=(1,0,0,0), k=(4,2,3,4)R = (1, 0, 0, 0),\ k = (4, 2, 3, 4)

The reward is 1 only if every check passes at the end.

Common mix-ups

MYTHPassing the agent's own tests means the task is solved.

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

Predict, then reveal
3 CHECKS · PRO
Q01At turn limit 3, does the outcome reward change the chances of fixing the repo?

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.