"<!DOCTYPE html>\n<html lang=\"zh\" data-theme=\"light\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<title>fulltext.txt — Vercel Design System</title>\n<link rel=\"preconnect\" href=\"https://fonts.googleapis.com\">\n<link rel=\"preconnect\" href=\"https://fonts.gstatic.com\" crossorigin>\n<link href=\"https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500;600&display=swap\" rel=\"stylesheet\">\n<link rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/katex.min.css\">\n<style>\n\n:root {\n  /* Vercel Palette */\n  --geist-foreground: #171717;\n  --geist-background: #ffffff;\n  --geist-secondary: #4d4d4d;\n  --geist-tertiary: #666666;\n  --geist-quaternary: #808080;\n  --geist-border: #ebebeb;\n  --geist-surface-tint: #fafafa;\n  \n  /* Workflow Accents */\n  --develop-blue: #0a72ef;\n  --preview-pink: #de1d8d;\n  --ship-red: #ff5b4f;\n  \n  /* Interactive & Status */\n  --link-blue: #0072f5;\n  --ds-focus-color: hsla(212, 100%, 48%, 1);\n  --badge-blue-bg: #ebf5ff;\n  --badge-blue-text: #0068d6;\n  \n  /* Shadow-as-Border Philosophy */\n  --shadow-border: rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;\n  --shadow-border-hover: rgba(0, 0, 0, 0.16) 0px 0px 0px 1px;\n  --shadow-card: rgba(0, 0, 0, 0.08) 0px 0px 0px 1px, rgba(0, 0, 0, 0.04) 0px 2px 2px, #fafafa 0px 0px 0px 1px;\n  --shadow-card-hover: rgba(0, 0, 0, 0.12) 0px 0px 0px 1px, rgba(0, 0, 0, 0.06) 0px 4px 6px, #fafafa 0px 0px 0px 1px;\n  --shadow-card-full: rgba(0, 0, 0, 0.08) 0px 0px 0px 1px, rgba(0, 0, 0, 0.04) 0px 2px 2px, rgba(0, 0, 0, 0.04) 0px 8px 8px -8px, #fafafa 0px 0px 0px 1px;\n  --shadow-ring: rgb(235, 235, 235) 0px 0px 0px 1px;\n  \n  /* Radius Scale */\n  --radius-xs: 2px;\n  --radius-sm: 4px;\n  --radius-md: 6px;\n  --radius-lg: 8px;\n  --radius-xl: 12px;\n  --radius-pill: 9999px;\n}\n\n[data-theme=\"dark\"] {\n  --geist-foreground: #ededed;\n  --geist-background: #000000;\n  --geist-secondary: #a1a1a1;\n  --geist-tertiary: #888888;\n  --geist-quaternary: #666666;\n  --geist-border: #222222;\n  --geist-surface-tint: #0a0a0a;\n  \n  --shadow-border: rgba(255, 255, 255, 0.14) 0px 0px 0px 1px;\n  --shadow-border-hover: rgba(255, 255, 255, 0.28) 0px 0px 0px 1px;\n  --shadow-card: rgba(255, 255, 255, 0.12) 0px 0px 0px 1px, rgba(0, 0, 0, 0.4) 0px 2px 4px, #111111 0px 0px 0px 1px;\n  --shadow-card-hover: rgba(255, 255, 255, 0.2) 0px 0px 0px 1px, rgba(0, 0, 0, 0.5) 0px 6px 12px, #111111 0px 0px 0px 1px;\n  --shadow-card-full: rgba(255, 255, 255, 0.12) 0px 0px 0px 1px, rgba(0, 0, 0, 0.5) 0px 8px 16px -4px, #111111 0px 0px 0px 1px;\n  --shadow-ring: rgb(40, 40, 40) 0px 0px 0px 1px;\n  \n  --badge-blue-bg: rgba(10, 114, 239, 0.15);\n  --badge-blue-text: #70b5ff;\n}\n\n* { box-sizing: border-box; }\nhtml { scroll-behavior: smooth; }\nbody {\n  margin: 0;\n  font-family: \"Geist\", Arial, -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif;\n  background-color: var(--geist-background);\n  color: var(--geist-foreground);\n  font-feature-settings: \"liga\" 1;\n  -webkit-font-smoothing: antialiased;\n  min-height: 100vh;\n}\n\na {\n  color: inherit;\n  text-decoration: none;\n  transition: color 0.15s ease;\n}\n\n/* 导航栏 (Vercel Clean Sticky Nav) */\n.vercel-nav {\n  position: sticky;\n  top: 0;\n  background-color: var(--geist-background);\n  box-shadow: var(--shadow-border);\n  z-index: 100;\n  padding: 0 24px;\n  height: 64px;\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n}\n.nav-brand {\n  display: flex;\n  align-items: center;\n  gap: 12px;\n}\n.vercel-triangle {\n  width: 22px;\n  height: 19px;\n  fill: var(--geist-foreground);\n}\n.nav-title {\n  font-size: 16px;\n  font-weight: 600;\n  letter-spacing: -0.32px;\n  color: var(--geist-foreground);\n}\n.nav-badge-pill {\n  font-family: \"Geist Mono\", ui-monospace, monospace;\n  font-size: 11px;\n  font-weight: 500;\n  text-transform: uppercase;\n  background: var(--badge-blue-bg);\n  color: var(--badge-blue-text);\n  padding: 2px 8px;\n  border-radius: var(--radius-pill);\n}\n\n.nav-links {\n  display: flex;\n  align-items: center;\n  gap: 24px;\n}\n.nav-link {\n  font-size: 14px;\n  font-weight: 500;\n  color: var(--geist-secondary);\n  text-decoration: none;\n  transition: color 0.15s;\n}\n.nav-link:hover, .nav-link.active {\n  color: var(--geist-foreground);\n}\n.nav-link.active {\n  font-weight: 600;\n}\n\n.nav-actions {\n  display: flex;\n  align-items: center;\n  gap: 12px;\n}\n\n/* 按钮规范 */\n.btn-primary-dark {\n  background: var(--geist-foreground);\n  color: var(--geist-background);\n  border: none;\n  padding: 8px 16px;\n  border-radius: var(--radius-md);\n  font-size: 14px;\n  font-weight: 500;\n  cursor: pointer;\n  text-decoration: none;\n  display: inline-flex;\n  align-items: center;\n  gap: 6px;\n  transition: opacity 0.15s;\n}\n.btn-primary-dark:hover {\n  opacity: 0.9;\n}\n.btn-secondary-white {\n  background: var(--geist-background);\n  color: var(--geist-foreground);\n  box-shadow: var(--shadow-border);\n  border: none;\n  padding: 8px 16px;\n  border-radius: var(--radius-md);\n  font-size: 14px;\n  font-weight: 500;\n  cursor: pointer;\n  text-decoration: none;\n  display: inline-flex;\n  align-items: center;\n  gap: 6px;\n  transition: background 0.15s, box-shadow 0.15s;\n}\n.btn-secondary-white:hover {\n  background: var(--geist-surface-tint);\n  box-shadow: var(--shadow-border-hover);\n}\n.theme-toggle-btn {\n  background: transparent;\n  border: none;\n  box-shadow: var(--shadow-border);\n  border-radius: var(--radius-md);\n  width: 36px;\n  height: 36px;\n  cursor: pointer;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  color: var(--geist-foreground);\n}\n\n/* 核心容器 */\n.vercel-container {\n  max-width: 1200px;\n  margin: 0 auto;\n  padding: 56px 24px 100px;\n}\n\n/* Hero Section (Gallery Emptiness + Negative Letter-spacing) */\n.vercel-hero {\n  text-align: center;\n  max-width: 860px;\n  margin: 0 auto 56px;\n}\n.hero-stage-badge {\n  display: inline-flex;\n  align-items: center;\n  gap: 8px;\n  background: var(--geist-surface-tint);\n  box-shadow: var(--shadow-border);\n  padding: 4px 14px;\n  border-radius: var(--radius-pill);\n  font-size: 13px;\n  font-weight: 500;\n  color: var(--geist-secondary);\n  margin-bottom: 24px;\n}\n.stage-dot {\n  width: 7px;\n  height: 7px;\n  border-radius: 50%;\n}\n.vercel-hero h1 {\n  font-size: 48px;\n  font-weight: 600;\n  line-height: 1.05;\n  letter-spacing: -2.4px;\n  color: var(--geist-foreground);\n  margin: 0 0 16px;\n}\n.vercel-hero p {\n  font-size: 20px;\n  font-weight: 400;\n  line-height: 1.80;\n  color: var(--geist-secondary);\n  margin: 0 auto 28px;\n}\n\n/* Workflow Pipeline (Develop -> Preview -> Ship) */\n.workflow-pipeline {\n  display: grid;\n  grid-template-columns: repeat(3, 1fr);\n  gap: 16px;\n  margin-bottom: 48px;\n}\n@media (max-width: 768px) {\n  .workflow-pipeline { grid-template-columns: 1fr; }\n}\n.workflow-step {\n  background: var(--geist-background);\n  box-shadow: var(--shadow-card);\n  border-radius: var(--radius-lg);\n  padding: 20px 22px;\n  transition: box-shadow 0.2s;\n}\n.workflow-step:hover {\n  box-shadow: var(--shadow-card-hover);\n}\n.step-mono-label {\n  font-family: \"Geist Mono\", monospace;\n  font-size: 12px;\n  font-weight: 500;\n  text-transform: uppercase;\n  letter-spacing: 0.5px;\n  margin-bottom: 8px;\n  display: flex;\n  align-items: center;\n  gap: 6px;\n}\n.step-title {\n  font-size: 20px;\n  font-weight: 600;\n  letter-spacing: -0.96px;\n  color: var(--geist-foreground);\n  margin-bottom: 6px;\n}\n.step-desc {\n  font-size: 14px;\n  color: var(--geist-secondary);\n  line-height: 1.5;\n}\n\n/* Metric Cards (Section 4 Spec) */\n.metric-grid {\n  display: grid;\n  grid-template-columns: repeat(4, 1fr);\n  gap: 16px;\n  margin-bottom: 48px;\n}\n@media (max-width: 900px) {\n  .metric-grid { grid-template-columns: repeat(2, 1fr); }\n}\n.metric-card {\n  background: var(--geist-background);\n  box-shadow: var(--shadow-card);\n  border-radius: var(--radius-lg);\n  padding: 20px;\n}\n.metric-number {\n  font-size: 40px;\n  font-weight: 600;\n  line-height: 1.0;\n  letter-spacing: -2.4px;\n  color: var(--geist-foreground);\n  margin-bottom: 8px;\n  font-feature-settings: \"tnum\" 1;\n}\n.metric-label {\n  font-size: 14px;\n  color: var(--geist-secondary);\n  line-height: 1.4;\n}\n\n/* VAD 专栏 Banner (Ship Red & Vercel Clean) */\n.vad-showcase {\n  background: var(--geist-background);\n  box-shadow: var(--shadow-card-full);\n  border-radius: var(--radius-xl);\n  padding: 32px;\n  margin-bottom: 48px;\n  position: relative;\n}\n.vad-header-row {\n  display: flex;\n  align-items: baseline;\n  justify-content: space-between;\n  flex-wrap: wrap;\n  gap: 12px;\n  margin-bottom: 12px;\n}\n.vad-header-row h2 {\n  font-size: 32px;\n  font-weight: 600;\n  letter-spacing: -1.28px;\n  color: var(--geist-foreground);\n  margin: 0;\n}\n.vad-pillars-grid {\n  display: grid;\n  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));\n  gap: 14px;\n  margin-top: 24px;\n}\n.vad-pillar-item {\n  background: var(--geist-surface-tint);\n  box-shadow: var(--shadow-border);\n  border-radius: var(--radius-md);\n  padding: 14px 16px;\n}\n.vad-pillar-title {\n  font-size: 14px;\n  font-weight: 600;\n  color: var(--ship-red);\n  margin-bottom: 4px;\n}\n.vad-pillar-text {\n  font-size: 13px;\n  color: var(--geist-secondary);\n  line-height: 1.5;\n}\n.vad-filter-bar {\n  display: flex;\n  flex-wrap: wrap;\n  align-items: center;\n  justify-content: space-between;\n  gap: 12px;\n  margin: 24px 0 16px;\n  padding: 12px 16px;\n  background: var(--geist-surface-tint);\n  border-radius: var(--radius-md);\n  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);\n}\n.vad-filter-btn {\n  font-family: 'Geist', sans-serif;\n  font-size: 13px;\n  font-weight: 500;\n  padding: 6px 14px;\n  border-radius: 9999px;\n  border: none;\n  background: transparent;\n  color: var(--geist-secondary);\n  cursor: pointer;\n  transition: all 0.15s ease;\n}\n.vad-filter-btn:hover {\n  color: var(--geist-foreground);\n  background: rgba(0,0,0,0.05);\n}\n.vad-filter-btn.active {\n  background: #171717;\n  color: #ffffff;\n}\n.vad-search-input {\n  font-family: 'Geist', sans-serif;\n  font-size: 13px;\n  padding: 7px 12px;\n  border-radius: 6px;\n  border: 1px solid var(--geist-border);\n  background: #ffffff;\n  color: var(--geist-foreground);\n  width: 280px;\n  outline: none;\n  transition: border-color 0.15s, box-shadow 0.15s;\n}\n.vad-search-input:focus {\n  border-color: #0a72ef;\n  box-shadow: 0 0 0 2px rgba(10, 114, 239, 0.2);\n}\n\n/* 控制栏：搜索、视图、筛选 */\n.control-bar {\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  gap: 16px;\n  margin-bottom: 24px;\n  flex-wrap: wrap;\n}\n.search-input-wrap {\n  position: relative;\n  flex: 1;\n  max-width: 480px;\n}\n.search-input {\n  width: 100%;\n  height: 40px;\n  padding: 0 38px 0 14px;\n  font-family: \"Geist\", sans-serif;\n  font-size: 14px;\n  color: var(--geist-foreground);\n  background: var(--geist-background);\n  box-shadow: var(--shadow-border);\n  border: none;\n  border-radius: var(--radius-md);\n  outline: none;\n  transition: box-shadow 0.15s;\n}\n.search-input:focus {\n  outline: 2px solid var(--ds-focus-color);\n  box-shadow: none;\n}\n.search-kbd {\n  position: absolute;\n  right: 12px;\n  top: 50%;\n  transform: translateY(-50%);\n  font-family: \"Geist Mono\", monospace;\n  font-size: 11px;\n  color: var(--geist-quaternary);\n  background: var(--geist-surface-tint);\n  box-shadow: var(--shadow-border);\n  padding: 2px 6px;\n  border-radius: var(--radius-sm);\n}\n\n.view-switcher {\n  display: flex;\n  box-shadow: var(--shadow-border);\n  border-radius: var(--radius-md);\n  background: var(--geist-background);\n  padding: 2px;\n}\n.view-btn {\n  background: transparent;\n  border: none;\n  font-size: 13px;\n  font-weight: 500;\n  color: var(--geist-tertiary);\n  padding: 6px 12px;\n  border-radius: var(--radius-sm);\n  cursor: pointer;\n  transition: color 0.15s, background 0.15s;\n}\n.view-btn.active {\n  background: var(--geist-surface-tint);\n  color: var(--geist-foreground);\n  font-weight: 600;\n}\n\n/* 筛选芯片行 (Filter Pill Strip) */\n.filter-group-strip {\n  display: flex;\n  flex-direction: column;\n  gap: 12px;\n  margin-bottom: 28px;\n  padding: 16px 20px;\n  background: var(--geist-surface-tint);\n  box-shadow: var(--shadow-border);\n  border-radius: var(--radius-lg);\n}\n.filter-row {\n  display: flex;\n  align-items: center;\n  gap: 8px;\n  flex-wrap: wrap;\n}\n.filter-label-mono {\n  font-family: \"Geist Mono\", monospace;\n  font-size: 11px;\n  font-weight: 500;\n  text-transform: uppercase;\n  color: var(--geist-quaternary);\n  min-width: 68px;\n}\n.pill-badge {\n  background: var(--geist-background);\n  color: var(--geist-secondary);\n  box-shadow: var(--shadow-border);\n  border: none;\n  padding: 3px 12px;\n  border-radius: var(--radius-pill);\n  font-size: 12px;\n  font-weight: 500;\n  cursor: pointer;\n  transition: all 0.15s;\n  display: inline-flex;\n  align-items: center;\n  gap: 6px;\n}\n.pill-badge:hover {\n  color: var(--geist-foreground);\n  box-shadow: var(--shadow-border-hover);\n}\n.pill-badge.active {\n  background: var(--geist-foreground);\n  color: var(--geist-background);\n  font-weight: 600;\n  box-shadow: none;\n}\n.pill-badge.active-blue {\n  background: var(--develop-blue);\n  color: #ffffff;\n  box-shadow: none;\n}\n.pill-badge.active-red {\n  background: var(--ship-red);\n  color: #ffffff;\n  box-shadow: none;\n}\n\n/* Bento Grid Cards (Section 4 & 6 Spec) */\n.card-grid-bento {\n  display: grid;\n  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));\n  gap: 16px;\n}\n.vercel-card {\n  background: var(--geist-background);\n  box-shadow: var(--shadow-card);\n  border-radius: var(--radius-lg);\n  padding: 20px;\n  display: flex;\n  flex-direction: column;\n  justify-content: space-between;\n  transition: box-shadow 0.2s, transform 0.2s;\n  text-decoration: none;\n  color: inherit;\n  overflow: hidden;\n  min-width: 0;\n  word-break: break-word;\n}\n.vercel-card:hover {\n  box-shadow: var(--shadow-card-hover);\n  transform: translateY(-2px);\n}\n.card-top {\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  margin-bottom: 12px;\n  gap: 8px;\n}\n.card-tag-mono {\n  font-family: \"Geist Mono\", monospace;\n  font-size: 11px;\n  font-weight: 500;\n  text-transform: uppercase;\n  color: var(--geist-quaternary);\n  letter-spacing: 0.5px;\n}\n.status-pill-badge {\n  padding: 2px 8px;\n  border-radius: var(--radius-pill);\n  font-size: 11px;\n  font-weight: 500;\n  flex-shrink: 0;\n}\n.pub-accepted { background: #ebfdf2; color: #027a48; }\n.pub-workshop { background: #eff8ff; color: #175cd3; }\n.pub-submitted { background: #fff8e6; color: #b54708; }\n.pub-preprint { background: #f2f4f7; color: #475467; }\n.pub-other { background: #f9f5ff; color: #6941c6; }\n\n[data-theme=\"dark\"] .pub-accepted { background: rgba(2, 122, 72, 0.2); color: #32d583; }\n[data-theme=\"dark\"] .pub-workshop { background: rgba(23, 92, 211, 0.2); color: #84caff; }\n[data-theme=\"dark\"] .pub-submitted { background: rgba(181, 71, 8, 0.2); color: #fec84b; }\n[data-theme=\"dark\"] .pub-preprint { background: rgba(71, 84, 103, 0.2); color: #98a2b3; }\n[data-theme=\"dark\"] .pub-other { background: rgba(105, 65, 198, 0.2); color: #d6bbfb; }\n\n/* 必读标杆徽章 (Vercel Amber Accent) */\n.milestone-badge {\n  display: inline-flex;\n  align-items: center;\n  gap: 3px;\n  padding: 2px 7px;\n  border-radius: var(--radius-pill);\n  font-size: 11px;\n  font-weight: 600;\n  white-space: nowrap;\n  flex-shrink: 0;\n  transition: all 0.15s ease;\n}\n.milestone-badge.ms-idea, .milestone-badge:not([class*=\"ms-\"]) {\n  color: #b54708;\n  background: #fff8e6;\n  border: 1px solid rgba(247, 144, 9, 0.35);\n  box-shadow: 0 1px 2px rgba(181, 71, 8, 0.05);\n}\n[data-theme=\"dark\"] .milestone-badge.ms-idea, [data-theme=\"dark\"] .milestone-badge:not([class*=\"ms-\"]) {\n  color: #fec84b;\n  background: rgba(181, 71, 8, 0.22);\n  border-color: rgba(254, 200, 75, 0.35);\n}\n.milestone-badge.ms-writing {\n  color: #6941c6;\n  background: #f9f5ff;\n  border: 1px solid rgba(105, 65, 198, 0.3);\n  box-shadow: 0 1px 2px rgba(105, 65, 198, 0.05);\n}\n[data-theme=\"dark\"] .milestone-badge.ms-writing {\n  color: #d6bbfb;\n  background: rgba(105, 65, 198, 0.22);\n  border-color: rgba(214, 187, 251, 0.35);\n}\n.milestone-badge.ms-value {\n  color: #027a48;\n  background: #ebfdf2;\n  border: 1px solid rgba(2, 122, 72, 0.3);\n  box-shadow: 0 1px 2px rgba(2, 122, 72, 0.05);\n}\n[data-theme=\"dark\"] .milestone-badge.ms-value {\n  color: #32d583;\n  background: rgba(2, 122, 72, 0.22);\n  border-color: rgba(50, 213, 131, 0.35);\n}\n\n/* 论文正文图表与插图卡片样式 (Geist Design) */\n.paper-figure, .article-body figure {\n  margin: 32px auto;\n  text-align: center;\n  max-width: 100%;\n}\n.paper-figure img, .article-body img {\n  max-width: 96%;\n  height: auto;\n  border-radius: var(--radius-md);\n  border: 1px solid var(--geist-border);\n  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);\n  background: #ffffff;\n  transition: transform 0.2s ease, box-shadow 0.2s ease;\n  display: block;\n  margin: 0 auto;\n}\n.paper-figure img:hover, .article-body img:hover {\n  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);\n}\n.paper-figure figcaption, .article-body figcaption {\n  font-size: 13px;\n  color: var(--geist-secondary);\n  margin-top: 10px;\n  line-height: 1.6;\n  font-style: italic;\n  max-width: 850px;\n  margin-left: auto;\n  margin-right: auto;\n}\n\n/* VAD 视图切换器 View Switcher */\n.vad-view-switcher {\n  display: inline-flex;\n  padding: 3px;\n  background: var(--geist-secondary-bg);\n  border: 1px solid var(--geist-border);\n  border-radius: 8px;\n  margin-bottom: 20px;\n  gap: 2px;\n}\n.view-switch-btn {\n  display: inline-flex;\n  align-items: center;\n  gap: 6px;\n  padding: 6px 14px;\n  font-size: 13px;\n  font-weight: 500;\n  color: var(--geist-secondary);\n  border-radius: 6px;\n  text-decoration: none;\n  transition: all 0.15s ease;\n}\n.view-switch-btn:hover {\n  color: var(--geist-foreground);\n  background: rgba(0, 0, 0, 0.04);\n}\n[data-theme=\"dark\"] .view-switch-btn:hover {\n  background: rgba(255, 255, 255, 0.06);\n}\n.view-switch-btn.active {\n  background: var(--geist-background);\n  color: var(--geist-foreground);\n  font-weight: 600;\n  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);\n}\n\n/* 关系图谱 Graph View Styles */\n.graph-container {\n  position: relative;\n  width: 100%;\n  height: 720px;\n  background: var(--geist-background);\n  border: 1px solid var(--geist-border);\n  border-radius: var(--radius-lg);\n  overflow: hidden;\n  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);\n  margin-bottom: 40px;\n}\n.graph-toolbar {\n  position: absolute;\n  top: 14px;\n  left: 14px;\n  right: 14px;\n  z-index: 10;\n  display: flex;\n  justify-content: space-between;\n  align-items: center;\n  background: var(--geist-background);\n  border: 1px solid var(--geist-border);\n  padding: 8px 14px;\n  border-radius: 8px;\n  box-shadow: 0 4px 16px rgba(0,0,0,0.06);\n  flex-wrap: wrap;\n  gap: 8px;\n}\n.graph-tool-title {\n  font-size: 13px;\n  font-weight: 700;\n  display: flex;\n  align-items: center;\n  gap: 6px;\n  color: var(--geist-foreground);\n}\n.graph-filter-group {\n  display: flex;\n  gap: 6px;\n  align-items: center;\n  flex-wrap: wrap;\n}\n.graph-chip {\n  font-size: 11px;\n  padding: 3px 8px;\n  border-radius: 4px;\n  border: 1px solid var(--geist-border);\n  background: var(--geist-background);\n  color: var(--geist-foreground);\n  cursor: pointer;\n  transition: all 0.15s ease;\n}\n.graph-chip:hover { background: var(--geist-secondary-bg); }\n.graph-chip.active {\n  background: var(--geist-foreground);\n  color: var(--geist-background);\n  border-color: var(--geist-foreground);\n}\n.graph-search-input {\n  padding: 3px 8px;\n  font-size: 11px;\n  border-radius: 4px;\n  border: 1px solid var(--geist-border);\n  background: var(--geist-background);\n  color: var(--geist-foreground);\n  outline: none;\n  width: 150px;\n}\n#vad-graph-svg {\n  width: 100%;\n  height: 100%;\n  cursor: grab;\n}\n#vad-graph-svg:active { cursor: grabbing; }\n.graph-legend {\n  position: absolute;\n  bottom: 14px;\n  left: 14px;\n  background: var(--geist-background);\n  border: 1px solid var(--geist-border);\n  border-radius: 8px;\n  padding: 10px 14px;\n  font-size: 11px;\n  box-shadow: 0 4px 16px rgba(0,0,0,0.06);\n  z-index: 10;\n  line-height: 1.6;\n  pointer-events: none;\n}\n.graph-legend-row { display: flex; align-items: center; gap: 8px; }\n.graph-legend-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }\n.graph-info-drawer {\n  position: absolute;\n  top: 66px;\n  right: 14px;\n  width: 310px;\n  max-height: 620px;\n  background: var(--geist-background);\n  border: 1px solid var(--geist-border);\n  border-radius: 8px;\n  box-shadow: 0 8px 30px rgba(0,0,0,0.12);\n  z-index: 10;\n  padding: 16px;\n  overflow-y: auto;\n  display: none;\n  backdrop-filter: blur(10px);\n  transition: transform 0.2s ease, opacity 0.2s ease;\n}\n.graph-drawer-close {\n  position: absolute;\n  top: 10px;\n  right: 12px;\n  cursor: pointer;\n  font-size: 16px;\n  color: var(--geist-tertiary);\n}\n.graph-drawer-badge {\n  display: inline-block;\n  padding: 2px 6px;\n  border-radius: 4px;\n  font-size: 10px;\n  font-weight: 600;\n  margin-bottom: 6px;\n}\n.graph-drawer-title {\n  font-size: 13px;\n  font-weight: 700;\n  line-height: 1.4;\n  margin-bottom: 8px;\n  color: var(--geist-foreground);\n}\n.graph-drawer-meta {\n  font-size: 11px;\n  color: var(--geist-secondary);\n  margin-bottom: 12px;\n}\n.graph-drawer-core {\n  font-size: 12px;\n  line-height: 1.6;\n  color: var(--geist-foreground);\n  background: var(--geist-secondary-bg);\n  padding: 8px 10px;\n  border-radius: 6px;\n  margin-bottom: 12px;\n  border: 1px solid var(--geist-border);\n}\n.graph-drawer-link {\n  display: block;\n  text-align: center;\n  padding: 7px 12px;\n  background: var(--geist-foreground);\n  color: var(--geist-background);\n  border-radius: 6px;\n  font-size: 12px;\n  font-weight: 600;\n  text-decoration: none;\n  transition: opacity 0.15s ease;\n  margin-bottom: 6px;\n}\n.graph-drawer-link:hover { opacity: 0.85; }\n.graph-drawer-pdf-link {\n  display: block;\n  text-align: center;\n  padding: 6px 12px;\n  background: var(--geist-secondary-bg);\n  color: var(--geist-foreground);\n  border: 1px solid var(--geist-border);\n  border-radius: 6px;\n  font-size: 11px;\n  font-weight: 500;\n  text-decoration: none;\n  transition: all 0.15s ease;\n}\n.graph-drawer-pdf-link:hover { background: var(--geist-border); }\n.node-circle {\n  cursor: pointer;\n  transition: r 0.2s, stroke-width 0.2s;\n}\n.node-label {\n  font-size: 10px;\n  font-weight: 600;\n  fill: var(--geist-foreground);\n  pointer-events: none;\n  text-shadow: 0 1px 2px var(--geist-background);\n}\n.link-line {\n  stroke: var(--geist-border);\n  stroke-opacity: 0.6;\n  stroke-width: 1.2;\n  transition: stroke 0.2s, stroke-width 0.2s, stroke-opacity 0.2s;\n}\n.link-label {\n  font-size: 9px;\n  fill: var(--geist-tertiary);\n  pointer-events: none;\n  text-anchor: middle;\n}\n\n/* 引用框与警示框 Alerts */\n.callout-alert {\n  margin: 20px 0;\n  padding: 14px 18px;\n  border-radius: var(--radius-md);\n  transition: all 0.15s ease;\n}\n.callout-important, .callout-idea {\n  border-left: 4px solid #b54708;\n  background: rgba(181, 71, 8, 0.06);\n  box-shadow: inset 0 0 0 1px rgba(247, 144, 9, 0.3);\n}\n[data-theme=\"dark\"] .callout-important, [data-theme=\"dark\"] .callout-idea {\n  border-left-color: #fec84b;\n  background: rgba(181, 71, 8, 0.18);\n  box-shadow: inset 0 0 0 1px rgba(254, 200, 75, 0.25);\n}\n.callout-writing {\n  border-left: 4px solid #6941c6;\n  background: rgba(105, 65, 198, 0.06);\n  box-shadow: inset 0 0 0 1px rgba(105, 65, 198, 0.3);\n}\n[data-theme=\"dark\"] .callout-writing {\n  border-left-color: #d6bbfb;\n  background: rgba(105, 65, 198, 0.18);\n  box-shadow: inset 0 0 0 1px rgba(214, 187, 251, 0.25);\n}\n.callout-value {\n  border-left: 4px solid #027a48;\n  background: rgba(2, 122, 72, 0.06);\n  box-shadow: inset 0 0 0 1px rgba(2, 122, 72, 0.3);\n}\n[data-theme=\"dark\"] .callout-value {\n  border-left-color: #32d583;\n  background: rgba(2, 122, 72, 0.18);\n  box-shadow: inset 0 0 0 1px rgba(50, 213, 131, 0.25);\n}\n\n.card-title {\n  font-size: 16.5px;\n  font-weight: 600;\n  line-height: 1.42;\n  letter-spacing: -0.4px;\n  color: var(--geist-foreground);\n  margin: 0 0 10px;\n  word-break: break-word;\n  overflow-wrap: anywhere;\n  hyphens: auto;\n}\n.card-title a {\n  color: var(--geist-foreground);\n  text-decoration: none;\n  display: inline;\n  transition: color 0.15s ease;\n}\n.card-title a:hover {\n  color: var(--develop-blue);\n  text-decoration: none;\n}\n.card-id-mono {\n  font-family: \"Geist Mono\", monospace;\n  font-size: 13px;\n  font-weight: 500;\n  color: var(--geist-quaternary);\n  margin-right: 5px;\n}\n.card-meta-row {\n  display: flex;\n  gap: 6px;\n  flex-wrap: wrap;\n  margin-bottom: 12px;\n}\n.meta-token {\n  font-size: 12px;\n  color: var(--geist-tertiary);\n  background: var(--geist-surface-tint);\n  box-shadow: var(--shadow-ring);\n  padding: 2px 7px;\n  border-radius: var(--radius-sm);\n  white-space: nowrap;\n}\n.card-body-text {\n  font-size: 13.5px;\n  color: var(--geist-secondary);\n  line-height: 1.6;\n  margin-bottom: 16px;\n  flex-grow: 1;\n  word-break: break-word;\n  overflow-wrap: anywhere;\n}\n.card-body-text strong {\n  color: var(--geist-foreground);\n  font-weight: 600;\n}\n\n.card-footer {\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  border-top: 1px solid var(--geist-border);\n  padding-top: 14px;\n}\n.card-link-action {\n  font-size: 13.5px;\n  font-weight: 500;\n  color: var(--link-blue);\n  display: inline-flex;\n  align-items: center;\n  gap: 4px;\n  text-decoration: none;\n  transition: all 0.15s ease;\n}\n.card-link-action:hover {\n  opacity: 0.85;\n  transform: translateX(2px);\n}\na.meta-token {\n  transition: all 0.15s ease;\n  cursor: pointer;\n  text-decoration: none;\n}\na.meta-token:hover {\n  background: var(--geist-selection);\n  color: var(--geist-foreground);\n  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);\n}\n\n/* 紧凑列表视图 (List View) */\n.card-list-view {\n  display: flex;\n  flex-direction: column;\n  gap: 8px;\n}\n.list-row-item {\n  background: var(--geist-background);\n  box-shadow: var(--shadow-card);\n  border-radius: var(--radius-md);\n  padding: 12px 18px;\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  gap: 16px;\n  transition: box-shadow 0.15s;\n}\n.list-row-item:hover {\n  box-shadow: var(--shadow-card-hover);\n}\n\n/* 阅读详情页 (Report Detail) */\n.reading-container {\n  display: grid;\n  grid-template-columns: minmax(0, 1fr) 260px;\n  gap: 40px;\n  align-items: start;\n}\n@media (max-width: 960px) {\n  .reading-container { grid-template-columns: 1fr; }\n  .reading-sidebar { display: none; }\n}\n\n.report-header-card {\n  background: var(--geist-background);\n  box-shadow: var(--shadow-card);\n  border-radius: var(--radius-lg);\n  padding: 28px 32px;\n  margin-bottom: 28px;\n}\n.crumb-bar {\n  font-size: 13px;\n  color: var(--geist-tertiary);\n  margin-bottom: 10px;\n}\n.report-title {\n  font-size: 32px;\n  font-weight: 600;\n  letter-spacing: -1.28px;\n  margin: 0 0 16px;\n  color: var(--geist-foreground);\n}\n.report-action-buttons {\n  display: flex;\n  align-items: center;\n  gap: 10px;\n  flex-wrap: wrap;\n  border-top: 1px solid var(--geist-border);\n  padding-top: 16px;\n  margin-top: 16px;\n}\n\n.article-body {\n  background: var(--geist-background);\n  box-shadow: var(--shadow-card-full);\n  border-radius: var(--radius-lg);\n  padding: 36px 42px 80px;\n  font-size: 16px;\n  line-height: 1.75;\n  color: var(--geist-foreground);\n}\n.article-body h1, .article-body h2, .article-body h3 {\n  color: var(--geist-foreground);\n  scroll-margin-top: 80px;\n}\n.article-body h1 { font-size: 28px; font-weight: 600; letter-spacing: -1.28px; border-bottom: 1px solid var(--geist-border); padding-bottom: 8px; margin-top: 32px; }\n.article-body h2 { font-size: 24px; font-weight: 600; letter-spacing: -0.96px; border-bottom: 1px solid var(--geist-border); padding-bottom: 6px; margin-top: 36px; }\n.article-body h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.32px; margin-top: 26px; }\n.article-body table {\n  width: 100%;\n  border-collapse: collapse;\n  margin: 24px 0;\n  font-size: 14px;\n  box-shadow: var(--shadow-border);\n  border-radius: var(--radius-md);\n  overflow: hidden;\n}\n.article-body th, .article-body td {\n  padding: 10px 14px;\n  text-align: left;\n  border-bottom: 1px solid var(--geist-border);\n}\n.article-body th {\n  background: var(--geist-surface-tint);\n  font-weight: 600;\n  color: var(--geist-foreground);\n}\n.article-body blockquote {\n  border-left: 2px solid var(--geist-foreground);\n  margin: 20px 0;\n  padding: 8px 18px;\n  color: var(--geist-secondary);\n  font-style: normal;\n}\n.article-body code {\n  font-family: \"Geist Mono\", monospace;\n  font-size: 13.5px;\n  box-shadow: var(--shadow-ring);\n  background: var(--geist-surface-tint);\n  padding: 2px 6px;\n  border-radius: var(--radius-sm);\n}\n.article-body pre {\n  position: relative;\n  background: #000000;\n  color: #ededed;\n  box-shadow: var(--shadow-border);\n  border-radius: var(--radius-md);\n  padding: 18px;\n  margin: 24px 0;\n  overflow-x: auto;\n}\n.article-body pre code {\n  background: transparent;\n  box-shadow: none;\n  padding: 0;\n  color: inherit;\n  font-size: 13px;\n}\n.copy-code-btn {\n  position: absolute;\n  top: 8px;\n  right: 10px;\n  font-family: \"Geist Mono\", monospace;\n  font-size: 11px;\n  background: #171717;\n  color: #ffffff;\n  border: 1px solid #333333;\n  padding: 3px 8px;\n  border-radius: var(--radius-sm);\n  cursor: pointer;\n}\n\n/* 侧边大纲 (TOC) */\n.reading-sidebar {\n  position: sticky;\n  top: 80px;\n  background: var(--geist-background);\n  box-shadow: var(--shadow-card);\n  border-radius: var(--radius-lg);\n  padding: 20px;\n  max-height: calc(100vh - 100px);\n  overflow-y: auto;\n}\n.sidebar-toc-title {\n  font-family: \"Geist Mono\", monospace;\n  font-size: 12px;\n  font-weight: 500;\n  text-transform: uppercase;\n  letter-spacing: 0.5px;\n  color: var(--geist-quaternary);\n  margin-bottom: 12px;\n}\n.reading-sidebar ul {\n  list-style: none;\n  padding-left: 0;\n  margin: 0;\n  font-size: 13px;\n}\n.reading-sidebar li {\n  margin: 6px 0;\n}\n.reading-sidebar ul ul {\n  padding-left: 14px;\n}\n.reading-sidebar a {\n  color: var(--geist-secondary);\n  text-decoration: none;\n  transition: color 0.15s;\n}\n.reading-sidebar a:hover, .reading-sidebar a.active {\n  color: var(--geist-foreground);\n  font-weight: 600;\n}\n\n/* 后台管理 (/admin) */\n.admin-card-container {\n  background: var(--geist-background);\n  box-shadow: var(--shadow-card-full);\n  border-radius: var(--radius-lg);\n  padding: 32px;\n  margin-bottom: 32px;\n}\n.form-row-2 {\n  display: grid;\n  grid-template-columns: 1fr 1fr;\n  gap: 16px;\n  margin-bottom: 16px;\n}\n@media (max-width: 600px) {\n  .form-row-2 { grid-template-columns: 1fr; }\n}\n.form-field {\n  display: flex;\n  flex-direction: column;\n  gap: 6px;\n  margin-bottom: 16px;\n}\n.form-field label {\n  font-size: 13px;\n  font-weight: 500;\n  color: var(--geist-foreground);\n}\n.form-field input, .form-field select, .form-field textarea {\n  font-family: \"Geist\", sans-serif;\n  font-size: 14px;\n  padding: 9px 12px;\n  background: var(--geist-background);\n  box-shadow: var(--shadow-border);\n  border: none;\n  border-radius: var(--radius-md);\n  color: var(--geist-foreground);\n  outline: none;\n}\n.form-field input:focus, .form-field select:focus, .form-field textarea:focus {\n  outline: 2px solid var(--ds-focus-color);\n  box-shadow: none;\n}\n\n/* 语法高亮 (Console Blue / Purple / Pink) */\n.codehilite .k, .codehilite .kd, .codehilite .kn { color: #eb367f; font-weight: 500; }\n.codehilite .s, .codehilite .s1, .codehilite .s2 { color: #0070f3; }\n.codehilite .nf, .codehilite .na { color: #7928ca; font-weight: 500; }\n.codehilite .c, .codehilite .c1 { color: #666666; font-style: italic; }\n.codehilite .mi, .codehilite .mf { color: #ff5b4f; }\n\n</style>\n\n</head>\n<body>\n\n    <nav class=\"vercel-nav\">\n      <div class=\"nav-brand\">\n        <a href=\"/\" style=\"display:flex;align-items:center;gap:10px;text-decoration:none\">\n          <svg class=\"vercel-triangle\" viewBox=\"0 0 76 65\" fill=\"none\">\n            <path d=\"M37.5274 0L75.0548 65H0L37.5274 0Z\" fill=\"currentColor\"/>\n          </svg>\n          <span class=\"nav-title\">Agent Harness KB</span>\n        </a>\n        <span class=\"nav-badge-pill\">Geist 2.0</span>\n      </div>\n\n      <div class=\"nav-links\">\n        <a class=\"nav-link \" href=\"/\">全景总览</a>\n        <a class=\"nav-link \" href=\"/vad\" style=\"color:var(--ship-red)\">🎯 VAD 专栏 (144)</a>\n        <a class=\"nav-link\" href=\"https://m0rtzz.github.io/paper-notes/\" target=\"_blank\" rel=\"noopener\">顶会 669 篇 ↗</a>\n        <a class=\"nav-link\" href=\"/download/all\">整库打包</a>\n        \n      </div>\n\n      <div class=\"nav-actions\">\n        \n        <button class=\"theme-toggle-btn\" id=\"theme-toggle-btn\" onclick=\"toggleTheme()\" title=\"切换亮暗主题\">🌙</button>\n      </div>\n    </nav>\n    \n<main class=\"vercel-container\">\n\n        <div class=\"report-header-card\">\n          <div class=\"crumb-bar\"><a href=\"/\">Home</a> / <b>fulltext.txt</b></div>\n          <h1 class=\"report-title\">fulltext.txt</h1>\n          <div class=\"report-action-buttons\">\n            <a class=\"btn-primary-dark\" href=\"?dl=1\">Download Text</a>\n          </div>\n        </div>\n        <article class=\"article-body\"><pre><code>AgentRewind: Recoverable Execution\nfor Long-Horizon LLM Agents\nYu Zhuang1,3,4∗ , Kefei Chen2,3∗ , Yitong Duan3† , Shuxin Zheng3 , Jian Li2 , Xu-Yao Zhang1,4†\n1\n\nUniversity of Chinese Academy of Sciences\n2\nIIIS, Tsinghua University\n3\nZhongguancun Academy, Beijing, China\n4\nInstitute of Automation, Chinese Academy of Sciences\nzhuangyu24@mails.ucas.ac.cn, ckf25@mails.tsinghua.edu.cn, duanyitong@zgci.ac.cn, xyz@nlpr.ia.ac.cn\n\narXiv:2608.14380v1 [cs.AI] 14 Aug 2026\n\nAbstract\nMany real-world tasks require LLM agents to interact with\ntheir environments over long execution horizons. Errors that\noccur early in execution may propagate through both the agent\ncontext and environment state, and their effects may be difficult to reverse through subsequent actions. Existing methods\nmainly seek to reduce such errors through plan refinement and\nsafety checks but provide little support after errors occur. To\nenable recovery during long-horizon execution, we present\nAgentRewind, a runtime recovery framework that records\naligned checkpoints of the agent context and controlled environment, allowing agents to return to an earlier state and resume execution with information from previous attempts. We\nalso construct MettleBench, a benchmark for evaluating task\ncompletion and partial progress on long-horizon engineering\nassignments containing a series of related requirements. Experiments across tasks, multiple models, execution strategies,\nand agent harnesses show that AgentRewind improves task\nsuccess rate and average checklist progress over the compared\nbaselines.\n\nCode — https://github.com/Futuresis/replay-agent-recorder\nDataset — https://github.com/Kelvin-Coffee/MettleBench\n\nIntroduction\nLLM agents solve tasks through tool-mediated interaction\nwith their environments. Unlike non-agentic LLMs, they observe environmental states, invoke tools, and adjust subsequent actions based on feedback (Yao et al. 2023; Liu et al.\n2024). They are increasingly applied to long-horizon tasks\nsuch as iterative scientific experimentation, cross-application\nworkflows, and repository-level software engineering (Kon\net al. 2026; Li et al. 2026; Jimenez et al. 2024). Improving\ntheir performance on such tasks is therefore an important\nresearch objective.\nHowever, operating over long horizons presents distinct\nchallenges for LLM agents. For example, an agent may formulate an incorrect plan early in execution, causing subsequent actions to proceed in the wrong direction (Valmeekam\n∗\n†\n\nThese authors contributed equally.\nCorresponding author.\n\net al. 2023; Liu et al. 2024; Wang et al. 2026). During execution, an agent may also delete critical files, corrupt configurations, or contaminate database states, forcing subsequent\nactions to proceed in a degraded environment and potentially\npreventing task completion (Ruan et al. 2024; Trivedi et al.\n2024). Because long-horizon tasks involve more execution\nsteps, agents are more likely to make such errors along the\nexecution trajectory and therefore face a higher risk of task\nfailure.\nExisting approaches primarily seek to improve agent performance on long-horizon tasks through plan refinement and\nsafety checks. One line of work generates and revises plans\nbefore execution to identify more effective execution paths\n(Erdogan et al. 2025; Zhou et al. 2024). Another line of work\napplies safety checks during execution to detect unsafe behavior (Wang, Poskitt, and Sun 2026; Xiang et al. 2025).\nHowever, even with a low probability of error at each step,\ncumulative failure risk grows with trajectory length. These\nmethods do not adequately address recovery after an error\nhas disrupted execution.\nWe therefore introduce AgentRewind, a runtime recovery\nframework that allows agents to rewind execution to an earlier state. When the agent determines that it is unlikely to\nmake further progress along the current trajectory, it can select an earlier checkpoint based on the recorded trajectory.\nAgentRewind then restores the agent context and environment to the states recorded at that checkpoint, allowing the\nagent to continue execution from there. It also retains a summary of the previous attempt as rewind memory to guide\nthe agent’s subsequent decisions. Through these capabilities,\nAgentRewind enables agents to recover from errors during\ntask execution, improving their performance on long-horizon\ntasks. Our main contributions are summarized as follows:\n• We develop AgentRewind, a system that can return both\nthe agent context and the environment state to a selected\ncheckpoint. This allows the agent to continue from an\nearlier checkpoint and explore a different trajectory when\nerrors prevent further progress.\n• We construct MettleBench, a benchmark derived from\nreal-world engineering resources, to evaluate task completion and checklist progress on assignments containing\n\n\fa series of related requirements.\n• We evaluate AgentRewind across multiple base models,\nexecution strategies, and agent harnesses, and show that it\nimproves task success rate and average checklist progress\nin long-horizon settings.\n\nRelated Work\nLong-Horizon Agents\nLong-horizon agents have been studied across embodied,\nscientific, web-based, software engineering, and database\nsettings. ALFWorld, ScienceWorld, and WebShop evaluate\nlong-horizon interaction in embodied, scientific, and web\nenvironments (Shridhar et al. 2021; Wang et al. 2022; Yao\net al. 2022). InterCode and SWE-bench study interactive programming and repository-level software engineering (Yang\net al. 2023; Jimenez et al. 2024; Yang et al. 2024), while Spider 2.0, CoSQL, and BIRD-INTERACT focus on multi-turn\ndatabase tasks (Lei et al. 2025; Yu et al. 2019; Huo et al.\n2026). More recent benchmarks, including TheAgentCompany and Odysseys, extend evaluation to realistic computeruse tasks and show that even strong models often fail to complete long-horizon tasks (Xu et al. 2025; Jang et al. 2026).\n\nAgent Reliability\nPrior work on agent reliability improves execution through\nbetter action generation and safety monitoring. Methods such\nas ReAct, SayCan, and LATS guide agent behavior using\nreasoning, planning, search, and environment models (Yao\net al. 2023; Ichter et al. 2023; Huang et al. 2023; Erdogan\net al. 2025; Zhou et al. 2024; Koh et al. 2025; Chae et al.\n2025). Safety-oriented methods monitor agent execution and\nidentify risky behavior (Wang, Poskitt, and Sun 2026; Xiang\net al. 2025; Liu et al. 2026).\nAnother line of work uses information from previous attempts to improve later behavior. Self-Refine, Reflexion, and\nExpeL use feedback from prior attempts to revise subsequent\ndecisions (Madaan et al. 2023; Shinn et al. 2023; Zhao et al.\n2024). Related failure-analysis methods diagnose the causes\nof failure from completed execution trajectories (Zhu et al.\n2025; Barke et al. 2026). These methods use information\nfrom previous executions to improve later behavior, but provide little support for recovery after an error occurs during\nexecution.\n\nRollback for LLM Agents\nSeveral studies have explored rollback for LLM agents. GARollback (Li et al. 2025) performs stepwise recovery in replayable environments, whereas WebRollback (Zhang et al.\n2026) specializes rollback to browser navigation. DART\n(Yang et al. 2026b) selects semantically valid restore points\nfor structured tool agents but relies on explicit control flow\nand recovery boundaries, limiting its applicability to openended agent trajectories.\nSystem-level checkpointing tools such as DMTCP and\nCRIU provide general mechanisms for restoring process state\n(Ansel, Arya, and Cooperman 2009; CRIU Project 2026).\nDeltaBox extends these mechanisms to agent sandboxes, enabling efficient rollback of filesystem and process state (Dong\n\net al. 2026). However, these systems primarily provide lowlevel rollback mechanisms rather than an agent-level recovery\nprocess for long-horizon execution. AgentRewind combines\ncoordinated restoration of the agent context and environment\nstate with rewind memory, allowing the agent to return to an\nearlier checkpoint and continue execution with information\nfrom previous attempts.\n\nAgentRewind Framework\nAgentRewind provides a runtime recovery framework for\nlong-horizon agent execution. It records recoverable checkpoints that capture the agent context and controlled environment state. When a rewind is triggered, AgentRewind\nrestores the selected checkpoint and injects agent-generated\nrewind memory into the restored context. Figure 1 provides\nan overview of the system architecture and the recoverable\nexecution process.\n\nLong-Horizon Execution with Rewind\nWe consider an agent executing long-horizon tasks in a controlled external environment. Given a task instruction x, the\nagent iteratively changes the environment state through tool\ncalls. At step t, the LLM generates a decision ut from its\ncontext ct . The environment transitions from st to st+1 and\nreturns observation ot+1 , after which the agent context is\nupdated:\nut ∼ π(ct ),\n(st+1 , ot+1 ) = T (st , ut ),\n(1)\nct+1 = U(ct , ut , ot+1 ).\nThese updates produce a forward-growing trajectory:\n\u0001\nτ = (c0 , s0 ), u0 , o1 , (c1 , s1 ), . . . , (cT , sT ) .\n\n(2)\n\nUnder standard execution, the trajectory can only grow\nforward. Once an early decision uk introduces an error, its\neffects may propagate through subsequent contexts ck+1 and\nenvironment states sk+1 . Even if the agent later recognizes\nthe error, it can only append corrective actions to the existing\ntrajectory and may be unable to fully reverse the state changes\ncaused by the erroneous prefix.\nAgentRewind records the execution state at each LLM\ndecision boundary as a recoverable checkpoint dt :\ndt = (ct , st ).\n\n(3)\n\nFor each state checkpoint, AgentRewind constructs associated checkpoint metadata ηt . The metadata describes the\nexecution segment between dt and dt+1 . It is used to present\npossible rewind locations to the agent.\nGiven the trajectory τ0:T , when the agent determines that\nthe current trajectory can no longer make progress, it can\nselect a historical checkpoint dk based on its context and\ncheckpoint metadata list, where k ≤ T , and generate rewind\nmemory m from the current trajectory. AgentRewind adds\nm to the set of historical rewind memories M :\nM ← M ∪ {m}.\n\n(4)\n\n\fFigure 1: Overview of AgentRewind. (a) AgentRewind operates as a runtime layer between the agent and the controlled external\nenvironment. The context recorder and environment-state recorder create aligned checkpoints dt = (ct , st ). During rewind, the\nagent selects a target checkpoint, after which the rewind executor restores the corresponding context and environment state and\ninjects rewind memory. (b) An illustrative recoverable execution. When the agent determines that the current trajectory can no\nlonger make progress, it invokes rewind. The trajectory returns to dk , retains the prefix through that checkpoint, and continues\nwith a new suffix.\n\nAgentRewind then restores the controlled external environment state to sk and injects the accumulated rewind memories into the recorded agent context ck :\ns′k ← sk ,\nc′k ← Inject(ck , M ).\n\n(5)\n\nThe agent subsequently resumes execution from (c′k , s′k ),\nproducing a new continuation of the trajectory:\n\u0001\nτ ′ = (c′k , s′k ), u′k , o′k+1 , . . . .\n\n(6)\n\nFigure 1(b) illustrates this recoverable execution process.\nRather than continuing only from the latest execution state,\nthe agent can return to an earlier checkpoint and resume execution, while retaining information from previous attempts.\n\nAgentRewind Runtime Recovery Layer\nBased on the formalization above, AgentRewind augments\nthe standard agent–environment interaction loop with runtime recovery. As shown in Figure 1(a), AgentRewind operates between the agent and the controlled external environment. During normal execution, AgentRewind transparently\nrecords the agent’s trajectory without altering its interaction\nwith the environment. The recorded trajectory includes the\ntask instruction, LLM inputs and outputs, tool calls, and tool\nresults. It also tracks tool-induced changes to the controlled\n\nenvironment and aligns them with the corresponding context records to form recoverable checkpoints. Therefore, the\nrecorded trajectory supports the joint recovery of the agent\ncontext and the controlled environment state.\n\nRewind Module\nAgentRewind exposes rewind as an additional control action\nto the agent. When the agent decides to invoke rewind, AgentRewind organizes the recorded trajectory into checkpoint\nmetadata entries. Each entry summarizes an LLM output together with the tool interactions and environment changes\nthat occur before the next LLM output. Based on the current execution trajectory, checkpoint metadata, environment\nfeedback, and accumulated rewind memory, the agent selects\na checkpoint and generates a new rewind memory that summarizes useful information from the current trajectory, such\nas falsified hypotheses and alternative strategies.\nDuring rewind execution, AgentRewind terminates the\ncurrent execution and restores both the external environment\nand the agent context to the selected checkpoint. The preceding LLM outputs and tool results are restored from the\nexecution log rather than regenerated or re-executed. AgentRewind then injects the accumulated rewind memory into\nthe restored context. The agent then begins generating a new\nsuffix from the restored state.\n\n\fExternal Environment Recovery Boundary\nThe controlled environment restored by AgentRewind is the\nworkspace directory tree, whether the agent runs locally or\nin an isolated container. At each checkpoint, AgentRewind\nrecords file-level changes; rewinding reverts later modifications, restores deleted files, and removes newly created files.\nEffects outside the workspace filesystem, such as network\nrequests, external-service calls, and external runtime state,\ncannot be undone. Because the retained prefix is restored\nfrom the execution log, these effects are not triggered again.\n\nMettleBench\nWe next introduce the benchmark used for our main evaluation of long-horizon execution. Complex, long-horizon\nengineering assignments are rarely defined by a single requirement. Instead, they often contain a series of related requirements that together determine whether the assignment\nhas been completed. For example, migrating an internal service may require upgrading its dependencies, transferring\nconfiguration and data, preserving compatibility with existing clients, updating deployment scripts, verifying service\navailability, and documenting the resulting changes. By contrast, many existing agent benchmarks formulate each task\naround one primary requirement, even when completing it\ninvolves multiple execution steps. MettleBench represents\nthis form of long-horizon work by treating each task as a single engineering assignment containing a series of complex\nrequirements. Formally, a task and its ordered acceptance\ncriteria are represented as\nT = (x, s0 , U, G),\n\nG = (g1 , . . . , gn ),\n\n(7)\n\nwhere x is a natural-language task instruction, s0 is the initial\nenvironment state, U is the agent’s decision space, and G\nis the ordered list of acceptance criteria. Each acceptance\ncriterion corresponds to a binary evaluation function gi :\nS → {0, 1}, where gi (s) = 1 indicates that the environment\nstate s satisfies the i-th criterion. Task success at the final\nstate sT is defined as\nSucc(sT ) =\n\nn\n^\n\n\u0001\ngi (sT ) = 1 .\n\n(8)\n\ni=1\n\nA task is therefore successful only when the final state satisfies all acceptance criteria. To characterize partial progress,\nlet ℓ ∈ {0, . . . , n} denote the length of the longest prefix\n(g1 , . . . , gℓ ) such that gi (sT ) = 1 for all i ≤ ℓ. The checklist\nprefix progress is defined as\nρ(sT ) =\n\nℓ\n.\nn\n\n(9)\n\nThis metric distinguishes different levels of progress when\na task is not fully completed. MettleBench comprises 82\ntasks derived from five existing engineering benchmarks:\nTerminal-Bench 2.0 (Merrill et al. 2026), ProgramBench\n(Yang et al. 2026a), SWE-bench (Jimenez et al. 2024), ProjectEval (Liu et al. 2025), and GitTaskBench (Ni et al. 2026).\nFigure 2 summarizes the distribution of tasks across these\nsources. We retain the underlying engineering artifacts and\n\nFigure 2: Distribution of the 82 MettleBench tasks across\nsource benchmarks. Percentages are rounded to one decimal\nplace.\n\nexecutable task environments while rewriting the naturallanguage task instructions to express a series of related requirements within each assignment. For each rewritten instruction, we construct a hidden, ordered checklist of interdependent acceptance criteria, each implemented as an\nexecutable check.\nUpon each agent submission, the backend executes these\nchecks in their predefined order and returns natural-language\nfeedback identifying only the first unsatisfied checklist item.\nThe full checklist remains hidden from the agent, which may\ncontinue revising its execution based on the returned feedback. Because all criteria share the same environment state,\nsatisfying one criterion may enable or hinder later criteria,\nwhile subsequent actions may invalidate previously satisfied\ncriteria. MettleBench does not require agents to use any particular recovery mechanism. Each task is screened for a valid\nforward-only solution, allowing the benchmark to evaluate\nlong-horizon execution independently of any specific recovery design. Continue trace lengths in Table 1 provide an\nempirical characterization of MettleBench’s execution horizons. Further benchmark construction details are provided in\nAppendix A.\n\nExperiments\nWe evaluate AgentRewind on MettleBench using task success rate and average checklist progress. Task success rate\nis the proportion of tasks that satisfy all acceptance criteria\nbefore termination. Average checklist progress is the mean\nof the task-level checklist prefix progress ρ(sT ) defined in\nthe MettleBench section, where sT denotes the final environment state at the end of a run. We impose no preset limits\non wall-clock time, execution steps, or total token usage.\nA run ends upon task success; otherwise, to prevent methods from continuing or retrying indefinitely, we apply the\nsame repeated-failure termination condition to all strategies.\nIf the environment identifies the same first unsatisfied ac-\n\n\fModel\n\nSR Avg. Checklist Avg. Trace\n(%) ↑ progress (%) ↑ Length\n\nGPT-5.4\nGPT-5.4 mini\nQwen3.7-Max\nQwen3.5-27B\nKimi K2.5\nDeepSeek-V4-Flash\nGLM-5.1\n\n62.2\n33.7\n73.2\n56.1\n28.0\n37.8\n59.8\n\n81.4\n64.6\n84.8\n79.1\n61.3\n63.6\n75.1\n\n50.5\n72.4\n126.3\n211.6\n312.4\n337.2\n324.8\n\nTable 1: Continue baselines across seven base models on\nMettleBench.\n\nceptance criterion in five consecutive submissions, the run is\nterminated and recorded as unsuccessful. Unless otherwise\nspecified, all experiments use GPT-5.4 as the base model\nand mini-SWE-agent as the agent harness, with the same\ntask environments, tool interfaces, and termination conditions across compared methods. Further experimental details\nare provided in Appendix B.\n\nMain Results\nContinue Baselines Across Base Models. We first establish standard forward-execution baselines on MettleBench\nacross seven base models. All models use mini-SWE-agent\n(Yang et al. 2024) with the Continue strategy, under which\nexecution proceeds from the current context and environment\nstate after each validation response. Execution trace length is\nmeasured by the number of recorded LLM and tool events.\nTable 1 reports task success, average checklist progress, and\naverage trace length, with all other experimental settings held\nfixed.\nUnder Continue, task success rates range from 28.0% to\n73.2% and no model saturates MettleBench, leaving substantial room for improved execution strategies. Qwen3.7Max achieves the highest task success and checklist progress,\nwhereas Kimi K2.5 records the lowest values on both metrics. The variation across models also shows that the benchmark captures meaningful differences in forward-execution\ncapability.\nTask success and checklist progress provide related but\nnonredundant views of performance. For example, though\nGPT-5.4 and GLM-5.1 achieve similar task success rates,\nGPT-5.4 attains higher average checklist progress. This aggregate difference is partly explained by their unsuccessful\nruns, which reach average checklist progress of 50.8% and\n38.1%, respectively. These results show that average checklist progress complements binary task success by additionally measuring how far models advance through the ordered\nacceptance criteria on tasks they do not complete.\nAverage trace lengths range from 50.5 to 337.2 events per\ntask, with Kimi K2.5, DeepSeek-V4-Flash, and GLM-5.1 averaging more than 300 events. GPT-5.4 nevertheless achieves\nthe second-highest task success and checklist progress with\nthe shortest average trace, while models with substantially\nlonger traces do not consistently achieve better outcomes.\nLonger execution alone therefore does not guarantee greater\n\nFigure 3: Task success (top) and checklist progress (bottom)\nover trace length for GPT-5.4 and GPT-5.4 mini. Curves\nshow averages over three runs and are extended horizontally\nat their final observed values after termination.\nprogress or task completion. Together, these baselines establish the performance range and remaining recovery headroom\nfor the execution-strategy comparisons that follow.\nComparison of Execution Strategies. We compare execution strategies using GPT-5.4 and GPT-5.4 mini, two models from the same family that exhibit different performance\nunder Continue. We compare the following execution strategies:\n• Continue: After receiving validation feedback, the agent\ncontinues execution from its current context and environment state.\n• Restart with Experiences: After a validation failure, the\nenvironment is reset to its initial state. The agent then\nbegins a new attempt with experiences from previous\nattempts included in its context.\n• Safety Review: This strategy is identical to Continue,\nexcept that AgentDoG (Liu et al. 2026) reviews each proposed tool action before execution. Actions identified as\nunsafe are rejected.\n• AgentRewind: The agent uses the recoverable execution\nprocess described in the AgentRewind Framework section.\nFigure 3 compares the four execution strategies under\nGPT-5.4 and GPT-5.4 mini. AgentRewind achieves the highest final task success and checklist progress under both models, outperforming the strongest baseline in every setting. All\nstrategies improve rapidly early in execution but diverge after trajectories begin encountering persistent failures. Continue plateaus earliest, indicating that further repair from\nthe current state yields limited benefit once a trajectory becomes stuck. Restart with Experiences improves final suc-\n\n\fStrategy\nContinue\nRestart with Experiences\nAgentRewind\n\nSuccess Rate\n(%) ↑\n\nAvg. Criteria\nPassed (%) ↑\n\n78.7\n70.8\n83.1\n\n88.7\n79.2\n90.2\n\nTable 2: Results on Terminal-Bench 2.0 tasks.\n\nFigure 4: Success by Continue trace-length tertiles. Error\nbars show run ranges; brackets show AgentRewind’s gain\nover the strongest baseline.\n\ncess over Continue under both models but shows inconsistent checklist-progress gains and larger fluctuations. Safety\nReview performs markedly worse under GPT-5.4, whereas\nunder GPT-5.4 mini it is comparable to Continue. It therefore does not consistently outperform Continue across the\ntwo evaluated models. By contrast, AgentRewind continues improving after the baselines plateau and exhibits fewer\nprogress regressions than Restart with Experiences. Its consistent gains under both models indicate that runtime recovery remains effective across models with substantially\ndifferent Continue performance.\nTo examine how recovery gains vary with the forwardexecution horizon, we group tasks for each model by their\nmedian Continue trace length across three runs. Figure 4\nshows that AgentRewind’s advantage over the strongest baseline is modest in the short-horizon group but becomes substantially larger in the medium- and long-horizon groups.\nThis pattern suggests that rewind is particularly useful when\nstandard forward execution becomes prolonged.\nTo test whether AgentRewind remains effective beyond\nMettleBench, we evaluate Continue, Restart with Experiences, and AgentRewind on the full Terminal-Bench 2.0 under the same termination condition (Merrill et al. 2026).\nBecause its acceptance criteria are not semantically ordered,\npartial completion is measured as the average fraction of\ncriteria satisfied per task. Table 2 reports the results. AgentRewind outperforms both Continue and Restart with Experiences on task success and partial completion. These results demonstrate that AgentRewind’s benefits extend beyond\nMettleBench’s task formulations.\n\nFigure 5: Execution paths of Continue, Restart with Experiences, and AgentRewind in the Astropy FITS case. Scores\ndenote checklist prefix progress.\n\nCase Study. We examine an Astropy FITS handoff task\nunder GPT-5.4 mini. The agent is asked to repair defects in\nthe FITS library, generate a catalog covering valid images and\nsix intentionally malformed test fixtures, and preserve these\nfixtures unchanged so that the repaired library continues to\nreject them. Figure 5 summarizes how the three execution\nstrategies proceed at the catalog-generation step.\nContinue correctly repaired the library but then ran the catalog generator with an incorrect mode parameter. Under this\nsetting, when the generator encountered the six unreadable\nfixtures, it automatically normalized them by overwriting the\nsource files with valid FITS images. Continue later recreated\nmalformed files that restored the expected rejection behavior,\nbut their contents did not match those of the original files.\nThe run finally terminated at 9/10 checklist progress.\nRestart with Experiences recovered the original fixtures\non every attempt, but also discarded the completed library\nrepairs and maintenance artifacts. The failure modes varied\nacross its 26 restart attempts: some failed to preserve the malformed fixtures, while others omitted the required changelog\nentry or left the reconciliation ledger incomplete. No attempt\nsatisfied all requirements, and the final attempt ended at 8/10.\nAgentRewind initially ran the catalog generator with the\n\n\fSuccess Rate\n(%) ↑\n\nAvg. Checklist\nProgress (%) ↑\n\nmini-SWE-agent\nContinue\n62.2\nAgentRewind 87.8 (+25.6)\n\n81.4\n94.3 (+12.9)\n\nConfiguration\n\nFnCallAgent\nContinue\nAgentRewind\n\n58.5\n81.7 (+23.2)\n\n77.9\n91.4 (+13.5)\n\nCodeAgent (smolagents)\nContinue\n67.1\nAgentRewind 82.9 (+15.8)\n\n83.0\n89.7 (+6.7)\n\nTable 3: Continue and AgentRewind across three agent harnesses using GPT-5.4; parentheses show absolute improvements.\n\nMethod\n\nRecovery Rate\n(%) ↑\n\nChecklist Progress\nChange (pp) ↑\n\n8.0\n30.0\n\n5.1\n12.2\n\nContinue\nAgentRewind\n\nTable 4: Recovery from 50 paired failed Continue endpoints.\nProgress change is measured relative to each shared endpoint.\n\nVariant\nFull AgentRewind\nw/o Env. Rewind\nw/o Context Rewind\nw/o Rewind Memory\n\nSuccess Rate\n(%) ↑\n\nAvg. Checklist\nProgress (%) ↑\n\n87.8\n43.9\n65.9\n51.2\n\n94.3\n63.5\n77.9\n69.4\n\nTable 5: Component ablation of AgentRewind.\nsame incorrect mode setting and reached 8/10. It then rewound to the checkpoint immediately before catalog generation, retaining the validated library repairs while restoring\nthe original fixtures and removing the abandoned cataloggeneration branch from context. Rewind memory recorded\nthe destructive consequences of the incorrect setting. The\nreplacement suffix reran the catalog generator with the correct mode setting, which preserved the source fixtures while\ncopying and recording the unreadable inputs. It completed\nthe catalog, reconciliation ledger, and attestation, passed all\n34 tests, and reached 10/10.\n\nComparison of Agent Harnesses\nAgentRewind is designed as a runtime recovery layer that\ndoes not depend on a particular agent harness. To evaluate\nits generality across harnesses, we apply AgentRewind to\nthree agent harnesses: mini-SWE-agent (Yang et al. 2024),\nFnCallAgent from Qwen-Agent (Qwen Team 2023), and\nCodeAgent from smolagents (Roucher et al. 2025). All harnesses use GPT-5.4 as the base model. For each harness,\nwe compare Continue with AgentRewind under otherwise\nidentical settings.\nTable 3 shows that AgentRewind improves both task success rate and average checklist progress across all three agent\nharnesses. Despite differences in their control loops and toolinteraction interfaces, the improvements remain consistent\nacross the evaluated harnesses. With the base model fixed,\nthese results suggest that the benefits of AgentRewind are\nnot specific to a particular harness, but arise from the added\nruntime recovery capability.\n\nRecovery and Ablation Study\nRecovery from Failed Trajectories. To compare the ability of Continue and AgentRewind to recover from the same\nfailed execution state, we collect 50 Continue trajectories\nthat terminated under the repeated-failure condition. For\neach failed endpoint, we launch paired Continue and AgentRewind recovery runs from identical copies of the agent\ncontext and environment state. Both runs receive the same\nrecovery prompt, noting the repeated failure and requesting a\n\ndifferent approach, and use independently reset failure counters under the standard termination condition. Table 4 shows\nthat AgentRewind improves both recovery rate and checklist progress change over Continue, demonstrating stronger\nrecovery from the same repeatedly failing states.\nComponent Ablation. Table 5 compares full AgentRewind with variants that remove environment rewind,\ncontext rewind, or rewind memory. Removing environment\nrewind causes the largest degradation. This shows that effective recovery is difficult without rewinding the environment\nstate, as changes introduced by the discarded suffix otherwise\nremain in place. Removing context rewind leaves discarded\nactions, observations, and intermediate conclusions in the\nagent context, where they may interfere with subsequent decisions. Removing rewind memory also degrades performance\nby discarding useful information from the failed attempt and\nincreasing the risk of repeating unsuccessful decisions. Together, the results show that aligned context–environment\nrestoration and rewind memory provide complementary recovery functions.\n\nConclusion\nThis paper introduced AgentRewind, a runtime recovery\nframework that restores aligned checkpoints of agent context\nand environment state while retaining information from previous attempts during execution. We also constructed MettleBench to evaluate task completion and partial progress\non long-horizon engineering assignments containing a series of related requirements. Across benchmarks, base models, execution strategies, and agent harnesses, AgentRewind\nimproves both task success and checklist progress. Recovery and ablation experiments further demonstrate the importance of aligned state restoration and rewind memory.\nAgentRewind currently restores only controlled state and relies on external validation to identify stalled execution. Future work may extend recovery across systems and develop\nrewind-aware models with internal progress assessment.\n\n\fAI Use Disclosure\nGenerative AI tools were used to assist with language editing\nand code implementation. All AI-assisted outputs were reviewed and verified by the authors, who take full responsibility for the manuscript, implementation, and reported results.\n\nA\n\nAppendix\nMettleBench: Construction Protocol and\nQuality Assurance\n\nA.1\n\nTask Sources and Composition\n\nMettleBench comprises 82 tasks derived from five existing\nengineering benchmarks. We retain the underlying engineering artifacts and executable task environments, and rewrite\nthe task specifications and acceptance criteria so that each\ntask becomes a long-horizon assignment with ordered, interdependent objectives. Figure 2 of the main paper gives the\ndistribution of tasks across those benchmarks. By assigning\neach acceptance criterion the source benchmark of its task,\nwe obtain the criterion-level distribution shown in Table 6,\ncovering all 640 criteria.\n\nA.2\n\nProvenance of the Acceptance Criteria\n\nThe criteria were written by an LLM agent, under a protocol\nwe wrote, and admitted to the benchmark only after passing\ndeterministic checks. The three parts of that pipeline are as\nfollows.\nThe protocol fixed what a task had to look like. Every task\nis one engineering assignment containing a series of related\nrequirements, and it has to meet the structural requirements\nof Section A.6. A task may not be made difficult by artificial\nmeans. It may not stretch a run out by forcing the agent to\nwait, or to work one item at a time when it could work in\nbatches. It may not require a value that the agent has no way\nto work out and can only guess at. It may not depend on an\noption that is documented nowhere the agent can read. The libraries and command-line tools in the environment behave as\nthey do outside the benchmark. The protocol also fixed what\nthe agent learns from a rejected submission. As described\nin the main paper, the environment returns natural-language\nfeedback identifying only the first unsatisfied checklist item.\nThat feedback has to state what went wrong in observable\nterms, and it never names the command, the script, or the\nchecklist internals responsible for the failure.\nStarting from each source task, an LLM agent then wrote\nthe task instruction, the ordered checklist, the executable\ncheck behind each criterion, a forward-only reference solution, and a second reference run that carries out the same\nassignment in an order that ignores the dependencies among\nthe criteria.\nThree deterministic gates decided admission. The reference solution has to satisfy every criterion. The orderviolating run has to fail at the criterion whose precondition\nit removes. The workspace as shipped has to fail, so that no\ntask is already solved when the agent receives it.\nWhat makes a task hard is not something we added on\ntop of the environment. Two properties of the underlying\nsystems do that work. First, all criteria of an assignment act on\n\nSource benchmark\n\nCriteria\n\nShare (%)\n\nPer task\n\nTerminal-Bench 2.0\nProgramBench\nSWE-Bench\nProjectEval\nGitTaskBench\n\n208\n168\n158\n56\n50\n\n32.5\n26.2\n24.7\n8.8\n7.8\n\n7.43\n7.64\n8.78\n8.00\n7.14\n\nTotal\n\n640\n\n100.0\n\n7.80\n\nTable 6: Distribution of the acceptance criteria of MettleBench across the source benchmarks, counting every criterion of a task towards that task’s source. The last column\nis the mean number of criteria per task for that source. No\nsource contributes disproportionately many criteria: every\nshare is within three points of the corresponding share of\ntasks in Figure 2 of the main paper. Percentages are rounded\nto one decimal place.\n\nthe same environment state, so satisfying one criterion may\nenable or hinder later ones. Second, many operations that\nordinary engineering work requires cannot be undone by the\ntools that perform them: rewriting git history discards objects\nthat no reference points to, dropping a column discards its\nvalues, and regenerating a derived file overwrites the source\nit came from. Operations of this kind are routine in the work\nthese tasks are drawn from. The protocol does not add failure\nconditions that the tools themselves would not produce.\nEvery task ships a machine-readable checklist. Each criterion in it carries an identifier, a category, a description of\nwhat the criterion is meant to establish, and the feedback\nstring returned when it fails. All 640 criteria across the 82\ntasks carry such feedback (Table 7).\nHuman involvement. We reviewed the tasks in the benchmark. That review was at the task level: we did not annotate\nevery criterion of every task by hand. It covered prompt naturalness, fidelity to the source task, fairness of the verifier,\nthe absence of contrived mechanisms, and four further dimensions, each scored from 1 to 5 by an adversarial LLM\nreviewer. Dimension means run from 3.65 to 5.00, and every reviewed task was accepted. For each task the reviewer\nalso had to answer two questions directly: does the situation\nmatch a failure that occurs in ordinary engineering practice,\nand is any mechanism in the task contrived. We spot-checked\ntasks throughout, and during the formal runs we kept a log\nof manual interventions (Section B.7).\n\nA.3\n\nChecklist Statistics\n\nTable 7 gives the size and composition of the checklists. Each\ntask carries between 5 and 12 ordered criteria (mean 7.80,\nmedian 7), for 640 criteria in total.\n\nA.4\n\nEvery Task Has a Forward-Only Solution\nThat Satisfies All Criteria at Once\n\nEvery task ships an executable, forward-only reference solution: a linear script with no rollback and no retry, 79.3\nnon-empty lines long on average (median 71, range 16 to\n220). We ran all 82 of them again against fresh copies of the\n\n\fStatistic\nTasks with machine-readable checklist\nTotal criteria\nCriteria per task: mean (sd)\nCriteria per task: median\nCriteria per task: range\nCriteria with failure feedback\nTop criterion categories\ndata integrity\ncorrectness\nevidence preservation\nrelease / packaging\nfile content\n\nValue\n82 / 82\n640\n7.80 (1.63)\n7\n5 – 12\n640 / 640\n160\n148\n110\n84\n60\n\nTable 7: Acceptance-criteria statistics over the 82 tasks.\nshipped workspaces in a clean environment, then ran the full\nevaluator on each resulting state. The reference solution of\nevery task satisfies all of its acceptance criteria at once, in a\nsingle forward pass.\nEvery task was checked in the same three ways during\nconstruction, in runs made independently of the one reported\nhere, and those records agree: the reference solution passes,\nthe order-violating run fails at the criterion whose precondition it removes, and the workspace as shipped fails. A task\nis therefore not satisfied by the state it ships in, nor by an\nexecution that ignores the dependencies among its criteria.\nBecause these solutions are strictly forward-only, no task\nneeds a recovery mechanism in order to be solved. The runs\nthemselves show the same thing. All 82 tasks were evaluated\nwith seven base models under the Continue strategy, and\nthe two GPT-5.4 variants were additionally evaluated under\nthe three other execution strategies. At least 70 of the 82\ntasks were solved by some model under Continue alone, and\nat least 79 were solved under some execution strategy. The\ntasks that no run solved are difficult rather than unsolvable:\ntheir reference solutions satisfy every criterion.\n\nA.5\n\nEvaluator Determinism and Repeatability\n\nThe evaluator is a program, not a model. Each task’s\nevaluator is plain Python that inspects the final workspace\nstate (mean 379 non-empty lines, range 222 to 637; 31,056\nlines in total). No LLM takes part in judging. We audited\nthe source of all 82 evaluators: none draws a random number\nanywhere in a judgment, none reaches the network, and none\ngenerates a UUID (the one uuid reference parses a fixed\nconstant). Two evaluators read the wall clock. One sets file\nmodification times by a fixed relative offset, which leaves the\nverdict deterministic. The other waits, with a timeout, for a\nlocally started gRPC service to come up, and that is the only\npoint in the benchmark where timing can affect a result.\nSubmission-time behavior is deterministic. On each submission the evaluator runs the criteria in their fixed order and\nreturns the feedback for the first unsatisfied one. Identical final states receive identical verdicts and identical feedback.\nEnd-to-end repeatability. We ran every configuration of\nthe main comparison three times from scratch. Call one (strat-\n\negy, model) pair a cell. The main comparison has eight cells,\nfour strategies by two models, and each cell contains the\nsame 82 tasks, which gives 82 × 8 = 656 (task, strategy,\nmodel) triples, each observed in three independent runs. A\ntriple is in agreement when its three runs ended with the\nsame verdict, that is, all three succeeded or all three failed.\nBy that definition 490 of the 656 triples (74.7%) are in agreement. Computing the same quantity separately inside each\ncell gives a per-cell agreement between 48.8% (Safety Review with GPT-5.4: 40 of its 82 tasks agree across the three\nruns) and 90.2% (Restart with Experiences with GPT-5.4: 74\nof 82).\nThe remaining 25.3% are tasks whose repetitions did not\nall end alike. That figure does not measure evaluator noise.\nIt collects every source of run-to-run variation, including the\nagent’s own trajectory, what the tools return, and filesystem\ntiming, so it is an upper bound on the share of disagreement\nthe evaluator could account for, not an estimate of it. The\nbound is a loose one, and the cells at the bottom of the range\nshow why: both of them are Safety Review cells, where an\nexternal monitor intercepts individual actions and adds variation to the trajectory, while the evaluator is the same code\nused in every other cell. The determinism of the evaluator\nitself rests on the properties above, namely that identical final\nstates always receive identical verdicts.\n\nA.6\n\nLong-Horizon Screening Criteria\n\nTo keep a task from collapsing into a single requirement, we\nrequired every task to meet four structural conditions.\nIt must have at least four stages that run in sequence, where\neach stage can only start once the previous stage has produced\nits deliverables. Its later deliverables must quote values that\nearlier stages actually produced at run time, such as digests,\ncounts, or identifiers, in at least two places; an agent that\nskips or fakes an earlier stage therefore cannot fill in a later\none. It must contain either at least two defects that have to\nbe repaired one after another, where fixing the first exposes\nthe second, or a log of at least 30 recorded entries that has to\nbe reconstructed. And it must carry at least five acceptance\ncriteria, which is also the smallest number in the released set.\nTable 1 of the main paper reports the average trace lengths\nthat result, per model.\n\nA.7\n\nWorked Example: Task Prompt and\nChecklist\n\nWe use a security-incident task derived from Terminal-Bench\nto show what a task looks like. Figure 6 is the full task\ninstruction, and Table 8 is the hidden ordered checklist behind\nit. The agent never sees the checklist. On each submission it\nreceives only the feedback for the first unsatisfied criterion,\nwhich for P01 reads: “The leak scanner still reports incorrect\nstatistics for the reference repository, or its unit tests are not\ngreen. Reconsider which objects the scanner walks and how\nit decides a blob matches.”\nThe criteria of the example all act on the same repository, so satisfying one may hinder a later one. Removing\nthe leaked credentials from the history requires discarding\nthe old commits that contain them, and the teammates’ lost\n\n\fYou are picking up a security-incident handoff for the ‘billing-service‘\nrepository under ‘repo/‘. Work it like the on-call responder preparing\nthe cleanup packet, and use ‘docs/runbook.md‘ and the notes under\n‘.ci/security/‘ as your source of truth for the process and the exact\ndeliverables.\nThree things are open.\nFirst, the leak scanner ‘tools/leak_scan.py‘ is failing its CI\nself-check (‘.ci/security/‘). Fix the scanner so its unit tests under\n‘tests/‘ pass, then use the repaired tool to characterise the healthy\nreference repository ‘reference/history-sample‘ and record a baseline\nof its object statistics under ‘baseline/‘.\nSecond, several teammates’ work went missing. More than one feature\nbranch was deleted before it was merged, so different stretches of\nunmerged work are no longer on any branch -- they survive only as\nunreachable objects in ‘repo/‘. Track down every piece of that lost\nwork and bring it back so it is part of the repository again and can\nbe reviewed and merged later.\nThird, over the past few weeks deploy credentials were committed\nstraight into the history, in different files and formats. Some were\nlater removed from the working tree; others are still sitting in it.\nScan the whole history for every leaked credential, recover each value\nso the responder can rotate it, then scrub them so none can be found\nanywhere in ‘repo/‘ -- not in reachable history, not in ‘git log -p‘\noutput, and not in any loose or dangling object.\nAssemble the responder packet under ‘dist/security_handoff/‘: the\nrecovered credentials in ‘recovered_secret.txt‘ (each value on its own\nline so it can be rotated verbatim), and a ‘handoff_report.md‘ tying\ntogether the recovered credentials, how the history was rewritten, the\nrecovered teammate work, and the checks you ran to confirm the\nrepository is clean afterwards.\nDo not fetch anything from the network and do not re-clone or replace\nthe repository with a fresh copy. Keep the ordinary (non-secret)\nproject files and commit history intact, and leave the tree free of\ntransient build artifacts. The exact deliverables and their layout are\nspelled out in ‘docs/runbook.md‘.\n\nFigure 6: Full task instruction of the worked example.\n\nwork consists of exactly such commits, which no branch currently points to. An agent that removes the credentials before\nputting that work back on a branch destroys it permanently,\nand P04 can no longer be satisfied. Scoring a run by how far\nit advances along the ordered checklist, as in the main paper,\nthen separates different levels of progress when a task is not\nfully completed: a run that stops at P03 is distinguished both\nfrom one that fails at the first criterion and from one that\nsatisfies all seven.\n\nB\nB.1\n\nExperimental Details\n\nSetup of the Base-Model Comparison\n\nTable 9 gives the configuration of the base-model comparison under the Continue strategy (Table 1 of the main paper).\nAll seven models run the same 82 tasks with the same harness, tools, and termination condition; only the base model\nchanges. Decoding is greedy (temperature 0.0) for every\n\nmodel, with one exception. Kimi K2.5 is evaluated in its\nno-thinking mode, for which the vendor specifies a temperature of 0.6, and we use that setting rather than override\nit. All values are taken verbatim from the recorded launch\ncommands of the reported runs.\n\nB.2\n\nSetup of the Execution-Strategy Comparison\n\nTable 10 gives the configuration of the main experiments,\nwhich compare four execution strategies under GPT-5.4 and\nGPT-5.4 mini. The upper block holds the settings shared\nby all four strategies; the lower blocks hold the parameters\nspecific to each. All strategies use greedy decoding (temperature 0.0), the same task environments, tool interfaces, and\ntermination condition, and differ only in what happens after\na submission is rejected. We executed every configuration\nthree times with identical parameters.\n\n\f#\n\nCategory\n\nCriterion (intent)\n\nP01\n\ncorrectness\n\nP02\n\ndata integrity\n\nP03\nP04\n\ndata integrity\nrecovery\n\nP05\n\ncorrectness\n\nP06\nP07\n\ndata integrity\nfile content\n\nThe leak scanner enumerates every object in a repository, reports correct match statistics for\nthe healthy reference repository, and its unit tests pass.\nA baseline scan summary and per-object inventory of the reference repository exist with\ncorrect counts.\nThe handoff records the exact leaked credential values the responder needs to rotate.\nThe teammates’ lost feature commits are reachable from refs again, with content and history\nintact.\nNo leaked credential survives anywhere: not in reachable history, any patch, or any loose/dangling/packed object.\nOrdinary (non-secret) project files and commit history remain intact after the rewrite.\nThe handoff report documents the recovered credentials, the history rewrite, the recovered\nwork, and the post-cleanup verification.\n\nTable 8: Hidden ordered checklist of the worked example. The criteria are interdependent through the shared repository state and\nthrough ordinary git semantics: purging a credential from history (P05) ends in pruning unreachable objects, which physically\ndiscards the commits that P04 requires unless they have already been made reachable from a ref. Later criteria can likewise\ninvalidate earlier ones.\n\nParameter\n\nValue\n\nExecution strategy\nAgent harness\nBase models\nTemperature\nexception: Kimi K2.5\nStep limit per run\nWall-clock limit per episode\nShell command timeout\nModel request timeout\nRepeated-failure termination\nSubmission-failure mode\n\nContinue\nmini-SWE-agent\n7 (see Table 1 of the main paper)\n0.0\n0.6 (no-thinking mode)\nnone\nnone\nnone\n600 s\n5 identical first failures\ncontinue\n\nTable 9: Configuration of the base-model comparison under\nContinue (Table 1 of the main paper).\n\nTerminal-Bench 2.0. The experiment on the full TerminalBench 2.0 (Table 2 of the main paper) compares Continue,\nRestart with Experiences, and AgentRewind on its 89 tasks,\nwith the base model, decoding, tool interface, and termination condition of Table 10. The acceptance criteria of that\nbenchmark are not ordered, so partial completion there is the\naverage fraction of a task’s criteria that are satisfied rather\nthan the checklist progress we report on MettleBench.\nOther agent harnesses. The comparison across harnesses\n(Table 3 of the main paper) replaces mini-SWE-agent with\nFnCallAgent or CodeAgent and compares Continue with\nAgentRewind under GPT-5.4 on the same 82 tasks, with the\ndecoding, termination condition, and rewind parameters of\nTable 10. What differs besides the harness is how the rewind\ntools are presented, since each framework expects tools in its\nown form (Section C.1).\n\nB.3\n\nExecution Strategies\n\nThe four strategies share the same agent, tools, task environments, and termination condition (Table 10). They differ\nonly in what happens after the evaluator rejects a submission.\n\nContinue. The feedback for the first unsatisfied criterion is\nappended to the trajectory as an ordinary user message, and\nthe same agent loop keeps stepping. Nothing is reset. The\nprocess, the message history, and the workspace on disk all\npersist, and the history now also holds the work that was just\nrejected. The agent’s tool interface is a single shell tool, so it\nhas no way to rewind. A run ends when the task succeeds, or\nwhen five consecutive submissions fail at the same criterion.\nRestart with Experiences. The first rejection ends the current attempt. An outer loop then starts successive attempts,\neach in a fresh process whose workspace is reset to the pristine task snapshot and whose message history starts empty.\nThe only thing that crosses from one attempt to the next is\na file of failure experiences, which the batch driver writes\nand the next attempt reads as a section appended to its first\nmessage.\nThe experiences are assembled from the evaluator’s output. After every failed attempt the driver appends one block\nto the file recording, for that attempt: the identifier of the\nfirst unsatisfied criterion together with the full feedback text\nand log excerpt returned for it; how many criteria were satisfied as a prefix; which criteria had been satisfied earlier and\nthen regressed; the counts of passed, failed, and not-yet-run\ncriteria; how many consecutive submissions have now failed\nat the same criterion and how many remain before the run\nis stopped; and two constraint lines generated from the failure identifier, telling the next attempt not to repeat fixes that\nleave that criterion failing and to address the repeated failure\nbefore exploring more widely.\nBlocks accumulate rather than replace one another, and\nthe next attempt receives the whole file, so an agent on its\nninth attempt sees the record of the preceding eight. In our\nruns these files reach a few hundred lines for the tasks that\nrestart most often. Context and filesystem are reset between\nattempts; this record is what carries over.\nSafety Review. After a rejection it behaves exactly like\nContinue. What it adds is a check on each individual action.\nBefore every tool call, a separate local monitor model, the\n\n\fParameter\n\nValue\n\nShared by all strategies\nBase models\nIndependent runs\nTemperature\nStep limit per run\nWall-clock limit per episode\nShell command timeout\nModel request timeout\nRepeated-failure termination\n\nGPT-5.4, GPT-5.4 mini\n3\n0.0\nnone\nnone\nnone\n600 s\n5 identical first failures\n\nContinue\nSubmission-failure mode\n\ncontinue\n\nRestart with Experiences\nSubmission-failure mode\nRestart strategy\nCarried to the next attempt\n\nexit after failure\nfresh environment\nfailure experiences\n\nSafety Review\nSubmission-failure mode\nMonitor\nMonitor timeout\nReviewed unit\n\ncontinue\nAgentDoG1.5-Qwen3.5-4B\nnone\nevery proposed tool action\n\nAgentRewind\nSubmission-failure mode\nRewinds per run\nCheckpoint candidates shown\nRewind memory\nContext restoration\nWorkspace restoration\nRetained prefix\n\ncontinue\nunlimited\n80\ncumulative\nrolled back\nrolled back\nrestored from the execution log\n\nTable 10: Configuration of the execution-strategy comparison. The strategies share every setting in the upper block and\ndiffer only in the parameters listed under their own headings.\n\nAgentDoG guardrail (Liu et al. 2026), judges the proposed\naction and returns either safe or unsafe with a reason. The\nmonitor sees the task, the recent trajectory, and two deterministic signals computed beforehand: whether the action\nstays inside the paths the task allows, and which class the\ncommand falls into (read-only, workspace-local test, and so\non). An action judged unsafe is never executed. The agent\nreceives an observation saying the action was blocked and\nhas to work around it, so a block interrupts the agent rather\nthan ending the run. One narrow exception lets a command\nthrough when it can be shown to be read-only. If the monitor\nerrors or returns a reply that cannot be parsed, the action\nis treated as unsafe and blocked. Figure 7 gives the review\nprompt, the output we require from the monitor, and one\naction it blocked during our runs.\nAgentRewind. Rewind is available to the agent as two tools\nalongside the shell tool, backtrack_candidates and\nbacktrack_commit, with guidance on their use in the\nsystem prompt (Figure 8). After a rejection the agent continues in place as under Continue, and the feedback additionally\nasks it to decide whether to repair the current path or to go\nback. Committing a rewind restarts the run from the chosen checkpoint: the agent context returns to the messages\n\nParameter\n\nValue\n\nShared by both arms\nBase model\nAgent harness\nTemperature\nPaired trials\nStarting state\nContext and workspace\nFailure counter at start\nStep limit per attempt\nWall-clock limit per episode\nRepeated-failure termination\nSubmission-failure mode\n\nGPT-5.4\nmini-SWE-agent\n0.0\n50\nfailed Continue endpoint\nidentical copies\nreset\nnone\nnone\n5 identical first failures\ncontinue\n\nContinue arm\nRewind\n\nunavailable\n\nAgentRewind arm\nRewinds per run\nCheckpoint candidates shown\nRewind memory\nContext restoration\nWorkspace restoration\nRetained prefix\n\nunlimited\n80\ncumulative\nrolled back\nrolled back\nrestored from the execution log\n\nTable 11: Configuration of the paired recovery comparison.\nBoth arms resume from the same failed Continue endpoint\nand share every setting in the upper block; only the availability of rewind differs.\n\nrecorded at that point and everything after it is discarded,\nwhile the workspace returns to its state before that step. Both\nare restored to the same checkpoint. The retained prefix is\nrestored from the execution log rather than re-executed, and\nthe accumulated rewind memory is injected into the restored\ncontext as a single system message. At every step the agent\ncan either continue forward or rewind.\n\nB.4\n\nSetup of the Recovery Comparison\n\nTable 11 gives the configuration of the paired recovery experiment (Table 4 of the main paper). Each trial starts from\na shared endpoint, which we produce by running a Continue\ntrajectory until it terminates under the repeated-failure condition. We then launch the two arms from identical copies of\nthat endpoint’s agent context and workspace, so both begin\nfrom exactly the same failed state and differ only in whether\nrewind is available. Both arms are told that the continuation from this point ended in repeated submission failure, are\ngiven the same record of that failure, and are asked to work\nout what the failed branch assumed or changed incorrectly\ninstead of repeating the same repair loop. The AgentRewind\narm is told in addition that it may return to an earlier point of\nthe retained prefix, since only that arm can. Failure counters\nare reset independently in both arms, which then run under\nthe standard termination condition.\n\nB.5\n\nSetup of the Component Ablation\n\nTable 12 gives the configuration of the component ablation\n(Table 5 of the main paper). All variants use GPT-5.4 with\nmini-SWE-agent on the same 82 tasks, and each variant\n\n\f--- Review prompt. The task, the recent context and the proposed action are filled in per\ncall. --You are AgentDoG, a runtime safety guardrail for tool-using agents.\nEvaluate whether the proposed next tool action is safe to execute in the current benchmark\nworkspace.\nUse trajectory-aware judgment: consider the task, recent agent context, the proposed tool,\nand\nwhether the action creates safety or security risk.\nJudge only the proposed tool action shown here, not imagined future cleanup or later task\nsteps.\nSAFE means the action is appropriate to execute for the benchmark task.\nUNSAFE means the action should be blocked before execution.\nDo not mark an action UNSAFE merely because it might fail, be inefficient, or be a weak\nsolution.\nMark UNSAFE for destructive system actions, credential or secret exposure, commands outside\nthe\ntask/workspace authority, network/package-install attempts forbidden by the benchmark,\nrepository\nmetadata destruction, privilege escalation, fork bombs, or unrelated harmful operations.\nDeterministic policy evidence:\n&lt;path-guard verdict, command classification, and fixed notes on in-authority workspace paths&gt;\nTask and guard context:\n&lt;task&gt;\nRecent agent context:\n&lt;up to the 8 most recent messages&gt;\nProposed tool action:\n&lt;tool name and arguments&gt;\nClassify the proposed tool action and include one short reason.\n--- Required output, enforced by constrained decoding. --{ \"type\": \"object\",\n\"properties\": { \"decision\": {\"type\": \"string\", \"enum\": [\"SAFE\", \"UNSAFE\"]},\n\"reason\": {\"type\": \"string\"} },\n\"required\": [\"decision\", \"reason\"], \"additionalProperties\": false }\n--- A blocked action from our runs. --{ \"decision\": \"UNSAFE\",\n\"reason\": \"The action modifies baselines/capture_manifest.bin, a recorded reference artifact\n, by\nrewriting its metadata deterministically. That changes the captured evidence base rather\nthan\nfixing the library. The task says not to edit shipped tests or golden tooling and to treat\nbaselines as reference evidence; altering that file undermines the benchmark’s integrity.\nThe\nfact that tests already pass does not make this safe. ...\" }\n\nFigure 7: The Safety Review monitor. The prompt is truncated to a fixed token budget, dropping the oldest context first, so a\nlong trajectory does not crowd out the task or the proposed action. In the example the agent was about to rewrite a reference\nartifact that the task told it to leave alone; the command never ran.\n\nchanges exactly one parameter of the rewind module relative to full AgentRewind. The variant without environment\nrewind restores the agent context to the selected checkpoint\nwhile leaving the workspace entirely unchanged in its prerewind state. The variant without context rewind leaves the\nagent context in place. The variant without rewind memory\ncarries no summary of the discarded attempt into the restored context. Everything else, including how checkpoints\nare selected and when a run terminates, is unchanged.\n\nB.6\n\nExact Values of the Execution-Strategy\nComparison\n\nTable 13 gives the values at run termination for the executionstrategy comparison of Figure 3 of the main paper. Task\nsuccess is the percentage of the 82 tasks whose final state\nsatisfies every acceptance criterion, and checklist progress is\nthe mean of the task-level prefix progress ρ(sT ) defined in\nthe main paper. Each entry is the mean over the independent\nruns of that configuration, with the standard deviation across\nruns. One caveat on comparing the two: the horizontal axis\nof Figure 3 of the main paper is truncated at 1,000 trace\n\n\f// Tool 1: list rewind targets.\n{ \"name\": \"backtrack_candidates\",\n\"description\": \"Return candidate LLM records that can be used as backtrack targets. Call\nthis when the current path may need to be abandoned, and call it before more local edits\nafter a repeated verifier check or same semantic failure. ...\",\n\"parameters\": {\n\"type\": \"object\",\n\"properties\": {\n\"reason\": { \"type\": \"string\",\n\"description\": \"Brief explanation of why the current path may need backtracking. This\nis used for auditability and should mention the failure, loop, contradiction, or\nrisk.\" } },\n\"required\": [\"reason\"],\n\"additionalProperties\": false } }\n// Tool 2: rewind to a chosen target, carrying a memory note.\n{ \"name\": \"backtrack_commit\",\n\"description\": \"Commit to abandoning the current future branch and rewind to a prior LLM\nrecord. Use this only after deciding that continuing from the current state is worse than\nreplaying from a chosen candidate. ...\",\n\"parameters\": {\n\"type\": \"object\",\n\"properties\": {\n\"record_uid\": { \"type\": \"string\",\n\"description\": \"LLM record uid to rewind to, usually selected from\nbacktrack_candidates. The target must be kind=’llm’; tool record ids are not valid\ncommit targets.\" },\n\"memory_summary\": { \"type\": \"string\",\n\"description\": \"Required memory to carry back to the selected point. Write a concise\nbut operational note for the past agent using these fields: ...\" },\n\"reason\": { \"type\": \"string\",\n\"description\": \"Optional audit reason for this committed backtrack.\" } },\n\"required\": [\"record_uid\", \"memory_summary\"],\n\"additionalProperties\": false } }\n\nFigure 8: The two tools the AgentRewind agent uses to rewind. The agent calls backtrack_candidates to list eligible\ncheckpoints, then backtrack_commit to rewind to a chosen one while recording a memory note for its restored self. Parameter\nstructures are verbatim; the longer natural-language descriptions are abbreviated with “...”, and the complete definitions are in\nthe released code.\n\nrecords and the gain annotations in that figure are read off at\nthe cutoff, whereas the values here are computed after every\nrun has terminated. Some runs terminate beyond the cutoff,\nso the annotated gains in the figure can differ slightly from\ndifferences computed from this table.\n\naggregating. No intervention changed an agent decision, a\ntask state, or a verdict.\n\nC\n\nImplementation of the Runtime Recovery\nLayer\n\nHorizon groups. The groups of Figure 4 of the main paper\nare cut at the tertiles of each model’s own distribution of\nContinue trace lengths, so they are model-specific rather than\none fixed partition of the 82 tasks.\n\nC.1\n\nHarness Adaptation\n\nB.7\n\nManual-Intervention Audit of the Formal\nRuns\n\nWe kept a log of manual interventions during the formal\nbatches. All four recorded interventions killed shell child\nprocesses that were blocked waiting for input on standard\ninput, such as a bare interactive interpreter or an interactive\nmigration confirmation, which could not time out because the\nshell timeout was unlimited. In each case we terminated only\nthe blocked child process group, marked the affected task\nunder that strategy as not clean, and re-ran it cleanly before\n\nThe layer attaches to an agent at two points and nowhere else,\nthe LLM call and the tool call, and those two hooks are the\ncontext recorder and the environment-state recorder of the\nmain paper. We do not modify the framework being adapted.\nInstalling the layer automatically replaces the completion entry point of the OpenAI or LiteLLM client, with responses\nrequested non-streaming, so an agent’s LLM calls are captured wherever in the framework they are issued. Where a\nharness does not route its requests through a client we can\nautomatically replace, our per-harness wrapper hands the call\nto the recording layer directly instead. The same installation\nalso instruments LangChain tool invocations and LangGraph\ngraph steps, so an agent built on either of those frameworks\nis recorded without a harness-specific integration. In the har-\n\n\fParameter\n\nValue\n\nShared by all variants\nBase model\nAgent harness\nTemperature\nTasks\nSubmission-failure mode\nRepeated-failure termination\nRewinds per run\nCheckpoint candidates shown\n\nGPT-5.4\nmini-SWE-agent\n0.0\n82\ncontinue\n5 identical first failures\nunlimited\n80\n\nFull AgentRewind\nWorkspace at checkpoint\nContext at checkpoint\nRewind memory\n\nrolled back\nrolled back\ncumulative\n\nw/o Env. Rewind\nWorkspace at checkpoint\n\npreserved\n\nw/o Context Rewind\nContext at checkpoint\n\npreserved\n\nw/o Rewind Memory\nRewind memory\n\nnone\n\nTable 12: Configuration of the component ablation. Each\nvariant changes exactly one setting relative to full AgentRewind; all other parameters are those of the upper block.\n\nnesses we evaluate, tool calls are captured by routing each\nexecution through a wrapper that receives the tool name, the\narguments as JSON, and a function that runs the tool when\nasked.\nTwo things still have to be arranged for each harness. The\nfirst is that the agent can call the two rewind tools at all,\nwhich means presenting them in whatever form that framework expects a tool to take. We define the tools once, as\nneutral JSON Schema plus one shared block of usage guidance, and each harness restates them in its own tool type\n(Figure 8). mini-SWE-agent and FnCallAgent both expose\nthem as function calls, whereas CodeAgent writes Python\ninstead, so there a rewind tool is an ordinary Python callable.\nThe second is that a committed rewind has to travel out of the\n\nExecution strategy\n\nTask success Avg. checklist\nrate (%) ↑ progress (%) ↑\n\nGPT-5.4\nContinue\nRestart with Experiences\nSafety Review\nAgentRewind\n\n62.2 ± 2.1\n78.0 ± 2.4\n34.1 ± 1.2\n87.8 ± 1.2\n\n81.4 ± 1.0\n88.8 ± 1.2\n54.4 ± 2.1\n94.3 ± 0.5\n\nGPT-5.4 mini\nContinue\nRestart with Experiences\nSafety Review\nAgentRewind\n\n33.7 ± 0.7\n43.1 ± 1.4\n36.2 ± 1.9\n51.2 ± 4.2\n\n64.6 ± 1.1\n64.5 ± 1.3\n64.5 ± 0.8\n73.5 ± 3.0\n\nTable 13: Exact performance of the compared execution\nstrategies, reported as mean ± standard deviation over independent runs (n = 3; sample standard deviation).\n\n{ \"record_uid\": \"rec_000006\", \"kind\": \"llm\",\n\"input_id\": \"sha256:5f1c...\",\n\"input\": { \"model\": \"...\",\n\"temperature\": 0.0,\n\"messages\": [...], \"tools\": [...] },\n\"output\": { \"content\": \"...\",\n\"tool_calls\": [...], \"usage\": {...} },\n\"metadata\": { \"latency_ms\": 4137,\n\"filesystem\": {...} } }\n{ \"record_uid\": \"rec_000007\",\n\"kind\": \"tool\",\n\"input\": { \"tool_name\": \"bash\",\n\"arguments\": {\"command\": \"...\"} },\n\"output\": { \"value\": {\"output\": \"...\",\n\"returncode\": 0} },\n\"error\": null,\n\"metadata\": { \"latency_ms\": 812,\n\"filesystem\": { \"workspaces\": { \"ws0\": {\n\"before_commit\": \"a1b2...\",\n\"after_commit\": \"c3d4...\",\n\"changed\": true,\n\"diff_summary\": [{\"status\": \"M\",\n\"path\": \"crm/reports.py\"}] } } } } }\n\nFigure 9: One llm record and one tool record, abridged.\nThe filesystem block holds the workspace commits described in Section C.4.\nagent loop and reach the runner rather than being swallowed\non the way. CodeAgent is the awkward case again: its executor catches ordinary exceptions and hands them back to the\nagent as observations, so the rewind signal has to be raised\nas a subclass of BaseException to get past it. Together\nthese two pieces came to between 150 and 300 lines per harness. What is shared is the recovery layer; the program that\nlaunches the agent on a task and collects its result, which we\ncall the runner, is adapted per harness.\n\nC.2\n\nThe Execution Record\n\nWe call one LLM call or one tool call a node, and we write\none record per node, as a line of JSON. These records are\nexactly the LLM and tool events that we count as trace length\nelsewhere in this document. Every record carries the same\nenvelope: an identifier, a kind of either llm or tool, and\na hash of its canonicalized input. An llm record stores the\nrequest messages, the model parameters, the tool schemas,\nand the provider’s response together with its token usage;\na tool record stores the tool name, the arguments, the returned value, and any error. The metadata of each record\ncarries the call latency and the two workspace commits that\nbracket it (Section C.4). Figure 9 shows both shapes. One file\nholds the run, and each rewind adds one more whose header\nnames the run it forked from and the node it forked at.\n\nC.3\n\nRewind Execution\n\nThe commit tool does not return a result. It raises an exception, which the runner catches outside the agent session.\nThe runner then writes down everything the next attempt\nneeds in order to resume: which node it is going back to,\n\n\fPath class Snapshot At restore Examples\ntracked\nexcluded\n\nyes\nno\n\nreverted\nleft as is\n\nvolatile\n\nno\n\ndeleted\n\ntask files\n.git contents,\n.env, secrets\ncaches, build directories\n\nTable 14: How the three path classes are treated. Only tracked\npaths take part in a restore, which is what makes the recovery\nboundary of the main paper precise.\n\nand the context to resume with. These go into small files\nalongside the log. The runner restarts itself as a fresh process\nand passes only the location of those files through environment variables, because nothing held in memory survives a\nrestart. The new process therefore inherits nothing from the\nabandoned attempt and rebuilds what it knows from what\nwas written down. In the new process the retained prefix is\nrestored from the execution log rather than regenerated or\nre-executed: a recorded LLM response is returned without\ncontacting the provider, a recorded tool result is returned\nwithout invoking the tool, and the workspace is returned to\nthe checkpoint by reading the commit that the target node\nrecorded for it and restoring the files to that commit, rather\nthan by running the commands again; Section C.4 describes\nhow that restore works. The side effects of the prefix therefore do not fire a second time. At the checkpoint the layer\nmakes exactly one real LLM call, whose message list is the\none recorded at the target node; the target has to be an llm\nnode. Everything after the checkpoint runs live.\n\nC.4\n\nWorkspace Snapshot and Restore\n\nThis is how we make precise the recovery boundary that the\nmain paper states as the workspace directory tree. We keep a\nbare git repository outside the workspace whose work tree is\nthe live workspace and whose index is private to the run, and\nwe drive it only with git’s low-level commands, which write\nobjects and commits without touching the working tree, so\nthe workspace never becomes a checkout of that repository\nand a repository belonging to the task is never confused\nwith ours. We commit the workspace once per node, at the\nmoment the next node begins, by which point everything that\nnode changed is on disk; the last node of a run is committed\nwhen the run ends. Each record therefore names the commit\nthe workspace was at before its node ran and the commit it\nreached after. An llm node together with the commit before\nit is the checkpoint dt = (ct , st ) of the main paper, and the\ntool nodes between two llm nodes supply the checkpoint\nmetadata the agent reads when it asks for candidates, which is\nwhy only llm nodes are rewind targets although we snapshot\nat every node. Restoring a checkpoint compares the current\ntree against the target tree, deletes the paths the target does\nnot have, and checks out the rest, so files the agent created\nare removed, modifications are reverted, and deleted files\ncome back. The comparison covers only the paths we track\n(Table 14).\n\nC.5\n\nWhat Is Not Rolled Back\n\nEffects outside the workspace filesystem have no undo path,\nas the main paper states: a network request, a call to an external service, or state left in a process outside the workspace\nall survive a rewind. Inside the workspace there are two further gaps worth naming. First, our snapshot skips everything\ninside a .git directory, so a repository’s history is not part\nof it. To be able to put that history back, we copy each .git\ndirectory inside the workspace, such as repo/, and keep\nthose copies with the log. The one place we do not do this is\nthe workspace root itself. Because a .git directory there is\nneither snapshotted nor copied, a rewind leaves it untouched:\nthe commits the agent made, and any rebase or reset it performed, are still recorded in that .git afterwards, while the\nfiles in the working tree are restored as usual. This affects\nfew tasks: 4 of the 82 keep their repository in a subdirectory\nand are restored in full, and those 4 include every task whose\nassignment involves rewriting history; 2 tasks are themselves\na repository; the remaining 76 contain no repository. Second,\nan empty directory and any permission bit other than the executable bit are not represented in a snapshot and so are not\nrestored.\n\nD\n\nStatistical Significance\n\nWe test the paired differences between AgentRewind and\neach baseline with the two-sided Wilcoxon signed-rank test,\nseparately per model and per metric (task success; checklist\nprogress).\nPairing unit. The pairing unit is the task (n = 82). Because every configuration was run repeatedly, we first aggregate the runs of each task and then pair: task success becomes\nthe fraction of runs solved, and checklist progress the mean\nprefix progress across runs. The two arms of a comparison\nare always aggregated over the same runs, so each pair is\nmeasured under identical conditions. Pairing at the level of\nindividual runs instead would treat repeated measurements\nof the same task as independent observations, which makes\nthe test too ready to declare significance; we use that version\nonly as a sensitivity check (Section D.1). Runs flagged as abnormal exits, by which we mean a transport or API error or\na runner killed by a signal, are excluded before aggregation,\nafter which every run of each configuration still covers all 82\ntasks.\nReported quantities. Table 15 reports the Wilcoxon statistic W , the number of non-zero differences n̸= entering the\ntest, the Holm-corrected p-value across the twelve tests of\nthe table, and the matched-pairs rank-biserial correlation r\nas effect size. AgentRewind improves both metrics against all\nthree baselines under both models, with r between 0.34 and\n1.00, and eleven of the twelve comparisons remain significant at α = 0.05 after Holm correction. The exception is task\nsuccess against Restart with Experiences under GPT-5.4 mini\n(pHolm = 0.102), where the corresponding checklist-progress\ncomparison is significant.\n\n\fn̸=\n\nBaseline\n\nW\n\npHolm\n\nr\n\nTask success, GPT-5.4\nContinue\n35 35.5 &lt;0.0001 0.89\nRestart with Experiences 23 59.0\n0.031 0.57\nSafety Review\n54\n0.0 &lt;0.0001 1.00\nTask success, GPT-5.4 mini\nContinue\n39 115.5 0.0009 0.70\nRestart with Experiences 30 154.0\n0.102 0.34\nSafety Review\n40 190.0\n0.007 0.54\nChecklist progress, GPT-5.4\nContinue\n36 29.0 &lt;0.0001 0.91\nRestart with Experiences 23 50.0\n0.022 0.64\nSafety Review\n58\n0.0 &lt;0.0001 1.00\nChecklist progress, GPT-5.4 mini\nContinue\n53 307.5\n0.002 0.57\nRestart with Experiences 46 248.0\n0.007 0.54\nSafety Review\n53 347.0\n0.007 0.52\n\nTable 15: Two-sided Wilcoxon signed-rank tests of AgentRewind against each baseline. The pairing unit is the task\n(n = 82); the runs of each task are aggregated before pairing, over the same runs for both arms of a comparison. n̸= is\nthe number of non-zero paired differences entering the test,\npHolm is Holm-corrected across the twelve tests, and r is the\nmatched-pairs rank-biserial correlation. All twelve comparisons favor AgentRewind.\n\nD.1\n\nSensitivity Checks\n\nTwo checks confirm that the conclusions of Table 15 do not\ndepend on the analysis choices. First, pairing at the level\nof individual runs makes every comparison significant at\nα = 0.05 without correction (largest p = 8.6 × 10−3 ). As\nnoted above, that version of the test is too ready to declare\nsignificance, so we report the task-level analysis instead. Second, task success is binary within a run, so we also apply McNemar’s test to the pooled runs, which is the standard test for\npaired binary outcomes. In every comparison, AgentRewind\nsolves a run that the baseline fails far more often than the\nreverse; against Continue under GPT-5.4, for instance, the\ncounts are 69 and 6. All six comparisons are significant\n(p ≤ 1.3 × 10−2 ).\n\nReferences\nAnsel, J.; Arya, K.; and Cooperman, G. 2009. DMTCP: Transparent Checkpointing for Cluster Computations and the Desktop.\nIn 2009 IEEE International Symposium on Parallel &amp; Distributed\nProcessing, 1–12. IEEE.\nBarke, S.; Goyal, A.; Khare, A.; Singh, A.; Nath, S.; and Bansal,\nC. 2026. AgentRx: Diagnosing AI Agent Failures from Execution\nTrajectories. arXiv:2602.02475.\nChae, H.; Kim, N.; Ong, K. T.-i.; Gwak, M.; Song, G.; Kim, J.;\nKim, S.; Lee, D.; and Yeo, J. 2025. Web Agents with World Models: Learning and Leveraging Environment Dynamics in Web Navigation. In The Thirteenth International Conference on Learning\nRepresentations.\nCRIU Project. 2026. CRIU: Checkpoint/Restore In Userspace.\nVersion 4.2, accessed 2026-06-08.\n\nDong, Y.; He, J.; Hou, Y.; Du, D.; Xu, Z.; Yu, S.; Xia, Y.; and Chen,\nH. 2026. DeltaBox: Scaling Stateful AI Agents with MillisecondLevel Sandbox Checkpoint/Rollback. arXiv:2605.22781.\nErdogan, L. E.; Lee, N.; Kim, S.; Moon, S.; Furuta, H.; Anumanchipalli, G.; Keutzer, K.; and Gholami, A. 2025. Plan-and-Act:\nImproving Planning of Agents for Long-Horizon Tasks. In Proceedings of the 42nd International Conference on Machine Learning.\nHuang, W.; Xia, F.; Xiao, T.; Chan, H.; Liang, J.; Florence, P.; Zeng,\nA.; Tompson, J.; Mordatch, I.; Chebotar, Y.; Sermanet, P.; Jackson,\nT.; Brown, N.; Luu, L.; Levine, S.; Hausman, K.; and Ichter, B.\n2023. Inner Monologue: Embodied Reasoning through Planning\nwith Language Models. In Proceedings of The 6th Conference on\nRobot Learning, volume 205 of Proceedings of Machine Learning\nResearch, 1769–1782. PMLR.\nHuo, N.; Xu, X.; Li, J.; Jacobsson, P.; Lin, S.; Qin, B.; Hui, B.; Li,\nX.; Qu, G.; Si, S.; Han, L.; Alexander, E.; Zhu, X.; Qin, R.; Yu,\nR.; Jin, Y.; Zhou, F.; Zhong, W.; Chen, Y.; Liu, H.; Ma, C.; Ozcan,\nF.; Papakonstantinou, Y.; and Cheng, R. 2026. BIRD-INTERACT:\nRe-imagining Text-to-SQL Evaluation via Lens of Dynamic Interactions. In The Fourteenth International Conference on Learning\nRepresentations.\nIchter, B.; Brohan, A.; Chebotar, Y.; Finn, C.; Hausman, K.; Herzog,\nA.; Ho, D.; Ibarz, J.; Irpan, A.; Jang, E.; Julian, R.; Kalashnikov,\nD.; Levine, S.; Lu, Y.; Parada, C.; Rao, K.; Sermanet, P.; Toshev,\nA. T.; Vanhoucke, V.; Xia, F.; Xiao, T.; Xu, P.; Yan, M.; Brown, N.;\nAhn, M.; Cortes, O.; Sievers, N.; Tan, C.; Xu, S.; Reyes, D.; Rettinghouse, J.; Quiambao, J.; Pastor, P.; Luu, L.; Lee, K.-H.; Kuang,\nY.; Jesmonth, S.; Joshi, N. J.; Jeffrey, K.; Ruano, R. J.; Hsu, J.;\nGopalakrishnan, K.; David, B.; Zeng, A.; and Fu, C. K. 2023. Do\nAs I Can, Not As I Say: Grounding Language in Robotic Affordances. In Proceedings of The 6th Conference on Robot Learning,\nvolume 205 of Proceedings of Machine Learning Research, 287–\n318. PMLR.\nJang, L. K.; Koh, J. Y.; Fried, D.; and Salakhutdinov, R. 2026.\nOdysseys: Benchmarking Web Agents on Realistic Long Horizon\nTasks. arXiv:2604.24964.\nJimenez, C. E.; Yang, J.; Wettig, A.; Yao, S.; Pei, K.; Press, O.;\nand Narasimhan, K. R. 2024. SWE-bench: Can Language Models\nResolve Real-World GitHub Issues? In The Twelfth International\nConference on Learning Representations.\nKoh, J. Y.; McAleer, S. M.; Fried, D.; and Salakhutdinov, R. 2025.\nTree Search for Language Model Agents. Transactions on Machine\nLearning Research.\nKon, P. T. J.; Ding, Q.; Liu, J.; Zhu, X.; Peng, J.; Xing, J.; Huang,\nY.; Qiu, Y.; Srinivasa, J.; Lee, M.; Chowdhury, M.; Zaharia, M.; and\nChen, A. 2026. EXP-Bench: Can AI Conduct AI Research Experiments? In The Fourteenth International Conference on Learning\nRepresentations.\nLei, F.; Chen, J.; Ye, Y.; Cao, R.; Shin, D.; Su, H.; Suo, Z.; Gao,\nH.; Hu, W.; Yin, P.; Zhong, V.; Xiong, C.; Sun, R.; Liu, Q.; Wang,\nS.; and Yu, T. 2025. Spider 2.0: Evaluating Language Models on\nReal-World Enterprise Text-to-SQL Workflows. In The Thirteenth\nInternational Conference on Learning Representations.\nLi, J.; Li, Y.; Zhao, C.; Xu, Z.; Hu, B.; and Zhang, M. 2026. WindowsWorld: A Process-Centric Benchmark of Autonomous GUI\nAgents in Professional Cross-Application Environments. In Findings of the Association for Computational Linguistics: ACL 2026,\n15262–15280.\nLi, X.; Chen, K.; Long, Y.; Bai, X.; Xu, Y.; and Zhang, M. 2025.\nGenerator-Assistant Stepwise Rollback Framework for Large Language Model Agent. In Christodoulopoulos, C.; Chakraborty, T.;\nRose, C.; and Peng, V., eds., Proceedings of the 2025 Conference\n\n\fon Empirical Methods in Natural Language Processing, 17683–\n17700. Suzhou, China: Association for Computational Linguistics.\nISBN 979-8-89176-332-6.\nLiu, D.; Li, Y.; Yang, Z.; Wang, P.; Chen, G.; Xie, Y.; Mao, Q.; Qu,\nW.; Zhu, Y.; Zhou, T.; et al. 2026. AgentDoG 1.5: A Lightweight and\nScalable Alignment Framework for AI Agent Safety and Security.\narXiv preprint arXiv:2605.29801.\nLiu, K.; Pan, Y.; Xiang, Y.; He, D.; Li, J.; Du, Y.; and Gao, T. 2025.\nProjectEval: A Benchmark for Programming Agents Automated\nEvaluation on Project-Level Code Generation. In Che, W.; Nabende,\nJ.; Shutova, E.; and Pilehvar, M. T., eds., Findings of the Association\nfor Computational Linguistics: ACL 2025, 20205–20221. Vienna,\nAustria: Association for Computational Linguistics. ISBN 979-889176-256-5.\nLiu, X.; Yu, H.; Zhang, H.; Xu, Y.; Lei, X.; Lai, H.; Gu, Y.; Ding, H.;\nMen, K.; Yang, K.; Zhang, S.; Deng, X.; Zeng, A.; Du, Z.; Zhang,\nC.; Shen, S.; Zhang, T.; Su, Y.; Sun, H.; Huang, M.; Dong, Y.; and\nTang, J. 2024. AgentBench: Evaluating LLMs as Agents. In The\nTwelfth International Conference on Learning Representations.\nMadaan, A.; Tandon, N.; Gupta, P.; Hallinan, S.; Gao, L.; Wiegreffe, S.; Alon, U.; Dziri, N.; Prabhumoye, S.; Yang, Y.; Gupta, S.;\nMajumder, B. P.; Hermann, K.; Welleck, S.; Yazdanbakhsh, A.;\nand Clark, P. 2023. Self-Refine: Iterative Refinement with SelfFeedback. In Advances in Neural Information Processing Systems,\nvolume 36.\nMerrill, M. A.; Shaw, A. G.; Carlini, N.; Li, B.; Raj, H.; Bercovich,\nI.; Shi, L.; Shin, J. Y.; Walshe, T.; Buchanan, E. K.; et al. 2026.\nTerminal-Bench: Benchmarking agents on hard, realistic tasks in\ncommand line interfaces. arXiv preprint arXiv:2601.11868.\nNi, Z.; Wang, H.; Zhang, S.; Lu, S.; He, Z.; Wang You; Tang, Z.;\nHu, S.; Li, B.; Hu, C.; Jiao, B.; Jiang, D.; Du, Y.; and Lyu, P. 2026.\nGitTaskBench: A Benchmark for Code Agents Solving Real-World\nTasks through Code Repository Leveraging. Proceedings of the\nAAAI Conference on Artificial Intelligence, 40(38): 32564–32572.\nQwen Team. 2023. Qwen-Agent: Agent Framework and Applications. Software repository.\nRoucher, A.; Villanova del Moral, A.; Wolf, T.; von Werra, L.; and\nKaunismäki, E. 2025. smolagents: A Smol Library to Build Great\nAgentic Systems. Software repository.\nRuan, Y.; Dong, H.; Wang, A.; Pitis, S.; Zhou, Y.; Ba, J.; Dubois,\nY.; Maddison, C. J.; and Hashimoto, T. 2024. Identifying the Risks\nof LM Agents with an LM-Emulated Sandbox. In The Twelfth\nInternational Conference on Learning Representations.\nShinn, N.; Cassano, F.; Gopinath, A.; Narasimhan, K.; and Yao,\nS. 2023. Reflexion: Language Agents with Verbal Reinforcement\nLearning. In Advances in Neural Information Processing Systems,\nvolume 36, 8634–8652.\nShridhar, M.; Yuan, X.; Côté, M.-A.; Bisk, Y.; Trischler, A.; and\nHausknecht, M. 2021. ALFWorld: Aligning Text and Embodied\nEnvironments for Interactive Learning. In International Conference\non Learning Representations.\nTrivedi, H.; Khot, T.; Hartmann, M.; Manku, R.; Dong, V.; Li, E.;\nGupta, S.; Sabharwal, A.; and Balasubramanian, N. 2024. AppWorld: A Controllable World of Apps and People for Benchmarking Interactive Coding Agents. In Proceedings of the 62nd Annual\nMeeting of the Association for Computational Linguistics (Volume\n1: Long Papers), 16022–16076. Bangkok, Thailand: Association\nfor Computational Linguistics.\nValmeekam, K.; Marquez, M.; Olmo, A.; Sreedharan, S.; and\nKambhampati, S. 2023. PlanBench: An Extensible Benchmark\nfor Evaluating Large Language Models on Planning and Reasoning\n\nabout Change. Advances in Neural Information Processing Systems,\n36: 38975–38987.\nWang, H.; Poskitt, C. M.; and Sun, J. 2026. AgentSpec: Customizable Runtime Enforcement for Safe and Reliable LLM Agents. In\n2026 IEEE/ACM 48th International Conference on Software Engineering (ICSE).\nWang, R.; Jansen, P.; Côté, M.-A.; and Ammanabrolu, P. 2022.\nScienceWorld: Is your Agent Smarter than a 5th Grader? In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, 11279–11298. Abu Dhabi, United Arab\nEmirates: Association for Computational Linguistics.\nWang, X. J.; Bai, H.; Sun, Y.; Wang, H.; Zhang, S.; Hu, W.; Schroder,\nM.; Mutlu, B.; Song, D.; and Nowak, R. D. 2026. The Long-Horizon\nTask Mirage? Diagnosing Where and Why Agentic Systems Break.\narXiv preprint arXiv:2604.11978.\nXiang, Z.; Zheng, L.; Li, Y.; Hong, J.; Li, Q.; Xie, H.; Zhang, J.;\nXiong, Z.; Xie, C.; Yang, C.; Song, D.; and Li, B. 2025. GuardAgent: Safeguard LLM Agents via Knowledge-Enabled Reasoning.\nIn Proceedings of the 42nd International Conference on Machine\nLearning, volume 267 of Proceedings of Machine Learning Research, 68316–68342. PMLR.\nXu, F. F.; Song, Y.; Li, B.; Tang, Y.; Jain, K.; Bao, M.; Wang, Z.;\nZhou, X.; Guo, Z.; Cao, M.; Yang, M.; Lu, H. Y.; Martin, A.; Su,\nZ.; Maben, L.; Mehta, R.; Chi, W.; Jang, L.; Xie, Y.; Zhou, S.;\nand Neubig, G. 2025. TheAgentCompany: Benchmarking LLM\nAgents on Consequential Real World Tasks. In Advances in Neural\nInformation Processing Systems, volume 38.\nYang, J.; Jimenez, C. E.; Wettig, A.; Lieret, K.; Yao, S.; Narasimhan,\nK.; and Press, O. 2024. SWE-agent: Agent-Computer Interfaces\nEnable Automated Software Engineering. In Advances in Neural\nInformation Processing Systems, volume 37.\nYang, J.; Lieret, K.; Ma, J.; Thakkar, P.; Pedchenko, D.; Sootla, S.;\nMcMilin, E.; Yin, P.; Hou, R.; Synnaeve, G.; Yang, D.; and Press, O.\n2026a. ProgramBench: Can Language Models Rebuild Programs\nFrom Scratch? arXiv:2605.03546.\nYang, J.; Prabhakar, A.; Narasimhan, K.; and Yao, S. 2023. InterCode: Standardizing and Benchmarking Interactive Coding with\nExecution Feedback. In Advances in Neural Information Processing\nSystems, volume 36.\nYang, K.; Li, P.; Wu, Z.; Xu, K.; Huang, H.; and Huang, X.\n2026b. DART: Semantic Recoverability for Structured Tool Agents.\narXiv:2605.23311.\nYao, S.; Chen, H.; Yang, J.; and Narasimhan, K. 2022. WebShop:\nTowards Scalable Real-World Web Interaction with Grounded Language Agents. In Advances in Neural Information Processing Systems, volume 35, 20744–20757.\nYao, S.; Zhao, J.; Yu, D.; Du, N.; Shafran, I.; Narasimhan, K. R.;\nand Cao, Y. 2023. ReAct: Synergizing Reasoning and Acting in\nLanguage Models. In The Eleventh International Conference on\nLearning Representations.\nYu, T.; Zhang, R.; Er, H.; Li, S.; Xue, E.; Pang, B.; Lin, X. V.; Tan,\nY. C.; Shi, T.; Li, Z.; Jiang, Y.; Yasunaga, M.; Shim, S.; Chen, T.;\nFabbri, A.; Li, Z.; Chen, L.; Zhang, Y.; Dixit, S.; Zhang, V.; Xiong,\nC.; Socher, R.; Lasecki, W.; and Radev, D. 2019. CoSQL: A Conversational Text-to-SQL Challenge Towards Cross-Domain Natural\nLanguage Interfaces to Databases. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and\nthe 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), 1962–1979. Hong Kong, China: Association for Computational Linguistics.\nZhang, Z.; Fang, T.; Ma, K.; Yu, W.; Zhang, H.; Mi, H.; and Yu, D.\n2026. WebRollback: Enhancing Web Agents with Explicit Rollback\n\n\fMechanisms. In Demberg, V.; Inui, K.; and Marquez, L., eds.,\nProceedings of the 19th Conference of the European Chapter of\nthe Association for Computational Linguistics (Volume 2: Short\nPapers), 187–197. Rabat, Morocco: Association for Computational\nLinguistics. ISBN 979-8-89176-381-4.\nZhao, A.; Huang, D.; Xu, Q.; Lin, M.; Liu, Y.-J.; and Huang, G.\n2024. ExpeL: LLM Agents are Experiential Learners. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 38,\n19632–19642.\nZhou, A.; Yan, K.; Shlapentokh-Rothman, M.; Wang, H.; and Wang,\nY.-X. 2024. Language Agent Tree Search Unifies Reasoning, Acting, and Planning in Language Models. In Proceedings of the 41st\nInternational Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, 62138–62160. PMLR.\nZhu, K.; Liu, Z.; Li, B.; Tian, M.; Yang, Y.; Zhang, J.; Han, P.; Xie,\nQ.; Cui, F.; Zhang, W.; Ma, X.; Yu, X.; Ramesh, G.; Wu, J.; Liu,\nZ.; Lu, P.; Zou, J.; and You, J. 2025. Where LLM Agents Fail and\nHow They can Learn From Failures. arXiv:2509.25370.\n\n\f</code></pre></article>\n        \n</main>\n\n<script src=\"https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/katex.min.js\"></script>\n<script src=\"https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/contrib/auto-render.min.js\"></script>\n<script>\n\nfunction initTheme() {\n  const saved = localStorage.getItem('kb-theme') || 'light';\n  document.documentElement.setAttribute('data-theme', saved);\n  updateThemeIcon(saved);\n}\nfunction toggleTheme() {\n  const cur = document.documentElement.getAttribute('data-theme') || 'light';\n  const next = cur === 'light' ? 'dark' : 'light';\n  document.documentElement.setAttribute('data-theme', next);\n  localStorage.setItem('kb-theme', next);\n  updateThemeIcon(next);\n}\nfunction updateThemeIcon(t) {\n  const btn = document.getElementById('theme-toggle-btn');\n  if (btn) btn.innerHTML = t === 'dark' ? '☀️' : '🌙';\n}\ndocument.addEventListener('DOMContentLoaded', initTheme);\n\nfunction setViewMode(m) {\n  const grid = document.getElementById('bento-grid-view');\n  const list = document.getElementById('list-table-view');\n  const bGrid = document.getElementById('view-grid-btn');\n  const bList = document.getElementById('view-list-btn');\n  if (m === 'list') {\n    if (grid) grid.style.display = 'none';\n    if (list) list.style.display = 'flex';\n    if (bGrid) bGrid.classList.remove('active');\n    if (bList) bList.classList.add('active');\n  } else {\n    if (grid) grid.style.display = 'grid';\n    if (list) list.style.display = 'none';\n    if (bGrid) bGrid.classList.add('active');\n    if (bList) bList.classList.remove('active');\n  }\n  localStorage.setItem('kb-view', m);\n}\ndocument.addEventListener('DOMContentLoaded', () => {\n  const s = localStorage.getItem('kb-view') || 'grid';\n  setViewMode(s);\n});\n\ndocument.addEventListener('DOMContentLoaded', () => {\n  document.querySelectorAll('pre').forEach(pre => {\n    const b = document.createElement('button');\n    b.className = 'copy-code-btn';\n    b.innerText = 'Copy';\n    b.onclick = () => {\n      const c = pre.querySelector('code') ? pre.querySelector('code').innerText : pre.innerText;\n      navigator.clipboard.writeText(c).then(() => {\n        b.innerText = 'Copied!';\n        setTimeout(() => { b.innerText = 'Copy'; }, 2000);\n      });\n    };\n    pre.appendChild(b);\n  });\n});\n\nwindow.addEventListener('keydown', (e) => {\n  if ((e.key === '/' || (e.metaKey && e.key === 'k')) && document.activeElement.tagName !== 'INPUT' && document.activeElement.tagName !== 'TEXTAREA') {\n    e.preventDefault();\n    const q = document.getElementById('global-search-input');\n    if (q) q.focus();\n  }\n});\n\n// Scrollspy for TOC\nwindow.addEventListener('scroll', () => {\n  const headers = document.querySelectorAll('.article-body h1, .article-body h2, .article-body h3');\n  const scrollPos = window.scrollY + 100;\n  headers.forEach(h => {\n    if (h.offsetTop <= scrollPos) {\n      const id = h.getAttribute('id');\n      if (id) {\n        document.querySelectorAll('.reading-sidebar a').forEach(a => {\n          a.classList.toggle('active', a.getAttribute('href') === '#' + id);\n        });\n      }\n    }\n  });\n});\n\ndocument.addEventListener(\"DOMContentLoaded\", function() {\n  if (window.renderMathInElement) {\n    renderMathInElement(document.body, {\n      delimiters: [\n        {left: '$$', right: '$$', display: true},\n        {left: '$', right: '$', display: false},\n      ],\n      throwOnError : false\n    });\n  }\n});\n</script>\n\n</body>\n</html>\n"