Log inStart free
LESSON 24.14 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW

Replaying and minimizing a failing episode

Watch a failed agent episode replay, shrink to two steps, and get its cause.


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

Go Pro · $8.25/mo
EXPLAINER · 24.14 · REPLAY BAY8 STEPS · REWARD 0 · 1 TEST FAILS
01
Stage 1 of 6 · The trajectory
The trajectory lists 8 actions and what each tool sent back. At submit, test_convert fails, so the reward is 0.
Explain it simply

Each card is one step of the agent's episode: the tool it called and what came back. Read the cards left to right, like a log. The last card is submit, where hidden tests grade the work. One test fails, so the episode earns 0.

Eight step cards run left to right, from read_file to submit. Step 8 reports test_convert: 5.0 != 9.2. The reward is 0.

steps and filesbundlefailuresresults
0:011read_fileprice.pyfloat(s)0:052run_tests1 failed0:073editprice.pyok0:124run_tests2 passed0:155sync_ratesEUREUR 0.50:166editREADME.mdok0:187editconfig.tomlok0:278submitreward 0step8 of 8 · 0:27actionsubmitobservationtest_convert: 5.0 != 9.2state hashefa4reward0trajectoryinspect one step0:011read_fileprice.pyfloat(s)0:052run_tests1 failed0:073editprice.pyok0:124run_tests2 passed0:155sync_ratesEUREUR 0.50:166editREADME.mdok0:187editconfig.tomlok0:278submitreward 0step8 of 8 · 0:27actionsubmitobservationtest_convert: 5.0 != 9.2state hashefa4reward0trajectoryinspect one step
Toy: 8 tool calls on 4 files, 3 hidden tests, 2,000 eval episodes a week
STAGE 1 / 6
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
τ=(s0,a1,o1,…,a8,o8,r)\tau = (\sy{s}{data}{s_0}, \sy{a}{out}{a_1}, \sy{o}{data}{o_1}, \dots, \sy{a}{out}{a_8}, \sy{o}{data}{o_8}, \sy{r}{out}{r})
r=0, test_convert:5.0≠9.2r = 0,\ \text{test\_convert}: 5.0 \neq 9.2

The trajectory is the start state, each action and observation, then the reward.

Common mix-ups

MYTHReplaying the recorded actions always reproduces the failure.

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

Predict, then reveal
3 CHECKS · PRO
Q01Without the snapshot, does the step 3 edit still apply?

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

PRO LESSON · YOU WATCHED STAGE 1 OF 6
Unlock the full explainer
  • 5 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.