[{"data":1,"prerenderedAt":326},["ShallowReactive",2],{"term-t\u002Ftrajectory":3,"related-t\u002Ftrajectory":312},{"id":4,"title":5,"acronym":6,"body":7,"category":293,"description":294,"difficulty":295,"extension":296,"letter":297,"meta":298,"navigation":299,"path":300,"related":301,"seo":306,"sitemap":307,"stem":310,"subcategory":6,"__hash__":311},"terms\u002Fterms\u002Ft\u002Ftrajectory.md","Trajectory",null,{"type":8,"value":9,"toc":287},"minimark",[10,15,19,23,26,30,276,280,283],[11,12,14],"h2",{"id":13},"eli5-the-vibe-check","ELI5 - The Vibe Check",[16,17,18],"p",{},"A trajectory is the full replay of everything an agent did to get from your prompt to its final result, not just the destination but the whole road trip: every thought, every tool call, every wrong turn it corrected along the way. Two agents can land on the exact same answer with wildly different, and wildly differently trustworthy, trajectories.",[11,20,22],{"id":21},"real-talk","Real Talk",[16,24,25],{},"A trajectory is the ordered sequence of an agent's states, thoughts, actions, and observations across a single task run, used as the unit of analysis in agent evals and reinforcement learning. Comparing trajectories rather than just final outputs is how you diagnose whether an agent reached the right answer through sound reasoning or got there by accident.",[11,27,29],{"id":28},"show-me-the-code","Show Me The Code",[31,32,37],"pre",{"className":33,"code":34,"language":35,"meta":36,"style":36},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","[\n  {\"step\": 1, \"thought\": \"Need to find the failing test\", \"action\": \"run_tests\", \"observation\": \"3 tests failed in auth.spec.ts\"},\n  {\"step\": 2, \"thought\": \"Check the auth module for the bug\", \"action\": \"read_file\", \"observation\": \"missing null check on line 42\"},\n  {\"step\": 3, \"thought\": \"Apply the fix\", \"action\": \"edit_file\", \"observation\": \"patch applied, re-running tests\"}\n]\n","json","",[38,39,40,49,131,200,270],"code",{"__ignoreMap":36},[41,42,45],"span",{"class":43,"line":44},"line",1,[41,46,48],{"class":47},"sMK4o","[\n",[41,50,52,55,58,62,64,67,71,74,77,80,82,84,86,90,92,94,96,99,101,103,105,108,110,112,114,117,119,121,123,126,128],{"class":43,"line":51},2,[41,53,54],{"class":47},"  {",[41,56,57],{"class":47},"\"",[41,59,61],{"class":60},"spNyl","step",[41,63,57],{"class":47},[41,65,66],{"class":47},":",[41,68,70],{"class":69},"sbssI"," 1",[41,72,73],{"class":47},",",[41,75,76],{"class":47}," \"",[41,78,79],{"class":60},"thought",[41,81,57],{"class":47},[41,83,66],{"class":47},[41,85,76],{"class":47},[41,87,89],{"class":88},"sfazB","Need to find the failing test",[41,91,57],{"class":47},[41,93,73],{"class":47},[41,95,76],{"class":47},[41,97,98],{"class":60},"action",[41,100,57],{"class":47},[41,102,66],{"class":47},[41,104,76],{"class":47},[41,106,107],{"class":88},"run_tests",[41,109,57],{"class":47},[41,111,73],{"class":47},[41,113,76],{"class":47},[41,115,116],{"class":60},"observation",[41,118,57],{"class":47},[41,120,66],{"class":47},[41,122,76],{"class":47},[41,124,125],{"class":88},"3 tests failed in auth.spec.ts",[41,127,57],{"class":47},[41,129,130],{"class":47},"},\n",[41,132,134,136,138,140,142,144,147,149,151,153,155,157,159,162,164,166,168,170,172,174,176,179,181,183,185,187,189,191,193,196,198],{"class":43,"line":133},3,[41,135,54],{"class":47},[41,137,57],{"class":47},[41,139,61],{"class":60},[41,141,57],{"class":47},[41,143,66],{"class":47},[41,145,146],{"class":69}," 2",[41,148,73],{"class":47},[41,150,76],{"class":47},[41,152,79],{"class":60},[41,154,57],{"class":47},[41,156,66],{"class":47},[41,158,76],{"class":47},[41,160,161],{"class":88},"Check the auth module for the bug",[41,163,57],{"class":47},[41,165,73],{"class":47},[41,167,76],{"class":47},[41,169,98],{"class":60},[41,171,57],{"class":47},[41,173,66],{"class":47},[41,175,76],{"class":47},[41,177,178],{"class":88},"read_file",[41,180,57],{"class":47},[41,182,73],{"class":47},[41,184,76],{"class":47},[41,186,116],{"class":60},[41,188,57],{"class":47},[41,190,66],{"class":47},[41,192,76],{"class":47},[41,194,195],{"class":88},"missing null check on line 42",[41,197,57],{"class":47},[41,199,130],{"class":47},[41,201,203,205,207,209,211,213,216,218,220,222,224,226,228,231,233,235,237,239,241,243,245,248,250,252,254,256,258,260,262,265,267],{"class":43,"line":202},4,[41,204,54],{"class":47},[41,206,57],{"class":47},[41,208,61],{"class":60},[41,210,57],{"class":47},[41,212,66],{"class":47},[41,214,215],{"class":69}," 3",[41,217,73],{"class":47},[41,219,76],{"class":47},[41,221,79],{"class":60},[41,223,57],{"class":47},[41,225,66],{"class":47},[41,227,76],{"class":47},[41,229,230],{"class":88},"Apply the fix",[41,232,57],{"class":47},[41,234,73],{"class":47},[41,236,76],{"class":47},[41,238,98],{"class":60},[41,240,57],{"class":47},[41,242,66],{"class":47},[41,244,76],{"class":47},[41,246,247],{"class":88},"edit_file",[41,249,57],{"class":47},[41,251,73],{"class":47},[41,253,76],{"class":47},[41,255,116],{"class":60},[41,257,57],{"class":47},[41,259,66],{"class":47},[41,261,76],{"class":47},[41,263,264],{"class":88},"patch applied, re-running tests",[41,266,57],{"class":47},[41,268,269],{"class":47},"}\n",[41,271,273],{"class":43,"line":272},5,[41,274,275],{"class":47},"]\n",[11,277,279],{"id":278},"when-youll-hear-this","When You'll Hear This",[16,281,282],{},"\"Look at the trajectory, not just the final diff, that's where the bad assumption is.\" \u002F \"Two agents got the same answer with completely different trajectories.\"",[284,285,286],"style",{},"html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":36,"searchDepth":51,"depth":51,"links":288},[289,290,291,292],{"id":13,"depth":51,"text":14},{"id":21,"depth":51,"text":22},{"id":28,"depth":51,"text":29},{"id":278,"depth":51,"text":279},"ai","A trajectory is the full replay of everything an agent did to get from your prompt to its final result, not just the destination but the whole road trip: e...","advanced","md","t",{},true,"\u002Fterms\u002Ft\u002Ftrajectory",[302,303,304,305],"Agent Observability","Eval Harness","Reinforcement Learning","Agent Loop",{"title":5,"description":294},{"changefreq":308,"priority":309},"weekly",0.7,"terms\u002Ft\u002Ftrajectory","CJvfZSPxNqTzifNRUasHCGUZ3F3u1Juddhv-INl6As8",[313,317,320,323],{"title":305,"path":314,"acronym":6,"category":293,"difficulty":315,"description":316},"\u002Fterms\u002Fa\u002Fagent-loop","intermediate","The agent loop is the heartbeat of any AI coding agent: think, act, look, repeat.",{"title":302,"path":318,"acronym":6,"category":293,"difficulty":315,"description":319},"\u002Fterms\u002Fa\u002Fagent-observability","Agent observability is the flight recorder for AI agents.",{"title":303,"path":321,"acronym":6,"category":293,"difficulty":315,"description":322},"\u002Fterms\u002Fe\u002Feval-harness","An eval harness is the automated testing rig for AI behavior instead of code correctness.",{"title":304,"path":324,"acronym":6,"category":293,"difficulty":295,"description":325},"\u002Fterms\u002Fr\u002Freinforcement-learning","Reinforcement Learning is how you train an AI by giving it rewards and punishments instead of labeled examples.",1792528132198]