C.W.K.
Stream
Lesson 04 of 05 · published

실패 처리와 Replanning

~28 min · failure, replanning

Level 0Observer
0 XP0/40 lessons0/12 achievements
0/100 XP to next level100 XP to go0% complete

실패는 정보야

tool failure, missing file, 나쁜 가정, 충돌하는 evidence는 plan의 방해물이 아니야. 새 plan이 필요하다는 observation일 수 있어.

replanning agent는 무엇이 실패했는지, 왜 실패했는지, retry 가능한지, 어떤 대체 경로가 있는지 기록한다.

retry는 성격이 아니야

transient failure는 backoff로 retry해. deterministic failure는 뭔가를 바꾸지 않고 반복하면 안 돼. schema validation이 실패했으면 payload를 고친 뒤 다시 시도해야지.

blind retry를 반복하면 agent는 비싼 시계가 된다. tick, bill, tick, bill. 아주 우아하지.

Code

Failure record·json
{"step":"run tests","error_type":"deterministic","error":"ModuleNotFoundError: app","retryable":false,"change_required":"set PYTHONPATH or run from repo root","next_plan":["inspect test command","rerun with correct cwd"]}

External links

Exercise

timeout 난 tool call과 schema validation error 각각에 대한 failure record를 써봐. retry 가능 여부를 표시해.
Hint
timeout과 schema error는 보통 recovery path가 달라.

Progress

Progress is local-only — sign in to sync across devices.
이 페이지에서 버그를 발견하셨거나 피드백이 있으세요?문제 신고

댓글 0

🔔 답글 알림 (로그인 필요)
로그인댓글을 남기려면 로그인해 주세요.

아직 댓글이 없어요. 첫 댓글을 남겨보세요.