"<!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>M ODULAR RSI: M ODULAR AND G ENERALIZABLE R E CURSIVE H ARNESS S ELF -I MPROVEMENT\nSiwei Wu2,3,* , Jincheng Ren4,6,* , Yizhi Li3,† , Haau-Sing Li3 , Chengran Yang3 , Yuxuan\nZhang3 , Weicheng Gu3 , Jian Yang1,‡ , Riza Batista-Navarro2 , Chuanyi Zhang6 ,\nXianglong Liu1 , Ming Zhou5 , Bryan Dai3 , Chenghua Lin2,‡\n1\n\nBeihang University, 2 University of Manchester, 3 IQuest Research,\nM-A-P, 5 Langboat, 6 Hohai University\n{siwei.wu-2@postgrad., chenghua.lin@}manchester.ac.uk\n\narXiv:2609.14857v1 [cs.CL] 14 Sep 2026\n\n4\n\nA BSTRACT\nRecent work extends Recursive Self-Improvement (RSI) to agent harnesses for\nlong-horizon coding and terminal tasks, enabling agents to improve their execution mechanisms from experience. However, achieving and demonstrating generalizable harness RSI remains challenging. First, existing approaches often\nevolve harnesses directly on evaluation benchmarks or subsets drawn from them,\nmaking it difficult to distinguish reusable harness improvements from benchmarkspecific adaptation. Second, updates derived from individual trajectories can entangle systematic harness deficiencies with instance-specific reasoning and solution details, leading to task-specific modifications that transfer poorly to unseen\ntasks. Third, even when recurring behavioral deficiencies are identified, localizing them to the responsible components within a monolithic harness remains\ndifficult. Whole-harness optimization can therefore entangle unrelated mechanisms and produce changes that are difficult to attribute and validate. We propose ModularRSI, a benchmark-disjoint, contrastive, and modular framework\nfor generalizable harness evolution. ModularRSI contrasts successful and failed\ntrajectories for the same task and aggregates evidence across tasks to identify recurring behavioral deficiencies. It further decomposes the evolvable harness into\nfive functional modules: Agent Loop, Tool Use, Observation Management, Context Management, and Task Completion Detection. Each module is evolved independently within a restricted modification scope, after which an integration stage\ncombines the evolved modules into a unified harness and resolves potential conflicts among them. To evaluate generalization beyond evolution experience, we\nadditionally curate 2,000 executable evolution tasks from external data sources\nthat are disjoint from downstream evaluation benchmarks. Experiments on TerminalBench 2.0 and SWE-Bench Verified show consistent improvements on unseen in-domain and cross-domain tasks, with the evolved harness also transferring across different foundation models. All our code and datasets are available at\nhttps://github.com/IQuestLab/ModularRSI.\n\n1\n\nI NTRODUCTION\n\nCLI agents have achieved remarkable performance on complex software engineering and terminalbased tasks (Jimenez et al., 2024a; Deng et al., 2025; Merrill et al., 2026b; Hong et al., 2026).\nBeyond foundation models, their effectiveness increasingly depends on agent harnesses that govern execution, tool interaction, context management, and environment feedback. Recent work has\ntherefore explored recursive self-improvement (RSI) of harnesses, allowing agents to refine these\nmechanisms from execution experience.\nHowever, achieving generalizable harness RSI remains challenging because task-level outcomes\nprovide only coarse supervision for harness evolution. We identify three coupled challenges. First,\nthere is a data-level challenge in obtaining high-quality evolution experience. Harness RSI requires executable long-horizon terminal tasks with reliable environments and correctness feedback,\n1\n\n\fbut constructing such an evolution dataset at sufficient scale and diversity is costly and difficult.\nAlthough recent work has explored automatically generating terminal-related instances, ensuring\ntheir environment completeness, task validity, and evaluator reliability at scale remains challenging,\nlimiting the availability of high-quality data for Harness RSI (Pi et al., 2026; Wu et al., 2026a). Consequently, existing Harness RSI methods typically rely on data from downstream benchmarks for\nevolution (Lee et al., 2026; Lin et al., 2026; Du et al., 2026; Chen et al., 2026a; Pan et al., 2026; Luo\net al., 2026a; Nguyen et al., 2026) , which makes it difficult to determine whether the evolved harness captures generalizable improvements or merely adapts to benchmark-specific patterns. Second,\nthere is a trajectory-level ambiguity in identifying what should be improved. Individual or onesided execution trajectories entangle systematic harness deficiencies with task-specific reasoning\nand solution details. Optimizing directly from such evidence may therefore introduce task-specific\nbehaviors that transfer poorly to unseen tasks. Third, there is a mechanism-level credit-assignment\nproblem: even when a recurring behavioral deficiency is identified, it remains unclear which harness component should be modified. Although some recent work explores localized diagnosis and\nrepair (Chen et al., 2026a), many approaches still optimize or rewrite large portions of the harness (Lin et al., 2026; Zhang et al., 2026a; Lee et al., 2026; Pan et al., 2026). This large modification\nspace can entangle unrelated mechanisms, making targeted and reliable evolution difficult.\nTo address these challenges, we propose ModularRSI, a contrastive and modular creditassignment framework for harness self-evolution. ModularRSI translates coarse task-level outcomes into localized harness evolution signals by contrasting successful and failed trajectories and\naggregating evidence across tasks to identify recurring behavioral deficiencies. To further localize\nthese deficiencies, we decompose the evolvable harness into five functional modules: Agent Loop,\nTool Use, Observation Management, Context Management, and Task Completion Detection. Each\nmodule is evolved independently within a restricted modification scope, and the resulting improvements are subsequently integrated into a unified harness. This design reduces both task-specific\nadaptation and interference across unrelated harness mechanisms.\nTo evaluate whether these improvements generalize beyond the evolution experience, we further\nestablish a benchmark-disjoint evolution protocol with 2,000 independently curated executable\ntasks that are fully disjoint from downstream evaluation benchmarks. The evolved harness is frozen\nbefore evaluation, and proposed modifications are retained only after validation for correctness,\nexecutability, and task-specific overfitting.\nOur main contributions are summarized as follows:\n1. We propose ModularRSI, a contrastive and modular framework that addresses the creditassignment problem in harness self-evolution. By combining same-task trajectory contrast,\ncross-task evidence aggregation, and module-restricted evolution, ModularRSI converts\ncoarse task-level outcomes into localized harness modification signals while reducing taskspecific and cross-mechanism interference.\n2. We establish a benchmark-disjoint evolution protocol for evaluating generalizable Harness RSI. We independently curate 2,000 executable evolution tasks from external data\nsources and apply instance-level similarity filtering and fine-grained domain analysis to\nminimize overlap with downstream benchmarks, providing a standardized evolution resource for studying transferable harness improvements.\n3. We extensively evaluate ModularRSI on TerminalBench 2.0 and SWE-Bench Verified.\nThe evolved harness consistently improves performance on unseen in-domain and out-ofdomain tasks and transfers across different foundation models. Our controlled studies further show that independently evolving and merging harness modules substantially outperforms joint or non-modular evolution, while different modules contribute complementary\nimprovements to execution reliability and interaction efficiency.\n\n2\n\nR ELATED W ORK\n\n2.1\n\nAGENT H ARNESSES AND S ELF -I MPROVEMENT\n\nAlongside advances in coding models such as LoopCoder and IQuest-Coder-V1 (Yang et al.,\n2026b;a), executable environments and verified trajectories provide scalable signals for agent im2\n\n\fMethod\n\nModular Whole-Harness\nNot Use\nEvolution\nEvolution\nBenchmark Data\n\nAutoHarness (Lou et al., 2026b)\nMeta-Harness (Lee et al., 2026)\nAHE (Lin et al., 2026)\nSelf-Harness (Zhang et al., 2026a)\nRHO (Pan et al., 2026)\nHarnessFix (Chen et al., 2026a)\nLiving-Harness (Du et al., 2026)\nHarnessForge (Chen et al., 2026b)\nHarnessBank (Luo et al., 2026a)\nRSEA (Nguyen et al., 2026)\nTACO (Ren et al., 2026)\n\n✗\n✗\n✗\n✗\n✗\n✓\n✓\n✓\n✓\n✓\n✗\n\n✗\n✓\n✗\n✗\n✗\n✗\n✗\n✓\n✓\n✗\n✗\n\n✗\n✗\n✗\n✗\n✗\n✗\n✗\n✗\n✗\n✗\n✗\n\nModularRSI (Ours)\n\n✓\n\n✓\n\n✓\n\nTable 1: Comparison of representative self-evolving agent and harness frameworks. Do Not\nUse Benchmark Data indicates whether benchmark instances, trajectories, or benchmark-derived\nrewards are excluded from harness evolution.\n\nprovement (Wu et al., 2026a; Gandhi et al., 2026; Cheng et al., 2026). Prior work uses such experience to adapt model weights (Wang et al., 2026c; Zweiger et al., 2026; Luo et al., 2026b), accumulate\nreusable skills or context artifacts (Zhang et al., 2026c; Yan et al., 2026), and optimize prompts or\nexternal agent mechanisms through trajectory feedback (Agrawal et al., 2026; Zhang et al., 2026d;\nFan et al., 2026). Other approaches use execution traces to diagnose failures and localize editable\ncomponents (Lin et al., 2026; Chen et al., 2026a), while recent work directly evolves agent implementations or synthesizes harness code (Zhang et al., 2026b; Lou et al., 2026a; Lee et al., 2026).\nTACO further specializes harness evolution to observation compression for terminal agents (Ren\net al., 2026).\n2.2\n\nG ENERALIZATION IN S ELF -I MPROVEMENT\n\nA central challenge in self-improvement is distinguishing transferable improvements from adaptation to the development data. Data selection therefore matters: source-aware rubrics and shortcut\nfiltering help ensure that learning signals reflect the intended capability (Wang et al., 2026a; Zhang\net al., 2026e). Existing evaluations cover repository repair, terminal interaction, and online workflows (Deng et al., 2025; Merrill et al., 2026a; Zhang et al., 2026f), while HarnessDev and broader\nstudies explicitly examine harness evolution, feedback budgets, and held-out generalization (Wu\net al., 2026b; Wang et al., 2026b). Aspire studies weight and harness evolution under hidden evaluation (Wu et al., 2026c), and S3 Gym separates self-testing, self-judging, and improvement through\nhistory, memory, or parameter updates (Shi et al., 2026).\nDespite these advances, existing harness-evolution methods often rely on data drawn from evaluation\nbenchmarks or treat the harness as a monolithic whole, leaving broadly generalizable, fine-grained\nharness improvement underexplored. To address these limitations, we construct a benchmarkdisjoint evolution dataset and propose ModularRSI, which decomposes the harness into functional\nmodules and performs self-evolution through contrastive trajectory analysis.\n\n3\n\nM ETHOD\n\nExisting harness self-evolution methods face a fundamental credit-assignment problem: task-level\nrewards indicate whether an execution succeeds or fails, but provide limited guidance on which\nharness mechanisms are responsible and how they should be improved. To address this challenge,\nwe propose ModularRSI, which decomposes the behavioral components of a harness into independently evolvable modules and uses contrastive trajectory analysis to translate task-level outcomes\ninto localized function-level evolution signals.\n3\n\n\fTask-Aware\nTrajectory\nFunction\nMemory\nComposer\n\n…\n…\n…\n\nR=1\nR=0\nR=0\n\nR=0\nR=0\n\nModule-wise Harness Modification\n\nR=1\n\nR=1\n\nR=1\n\nR=1\n\nContrastive Efficiency\nAnalysis\nAnalysis\n\nHarness\n\nFunction\nMerge\n\nPositive\nGroup\nR=1\nContrastive\nGroup\nR=1\nNegative\nGroup\nR=1\n\nPair\n\nRolling\n\nSingle\n\nContrastive Trajectory Sampling and Analysis\n\nfindings\n\nValidation Gate\nExecution Validation\n\nAgent\nObservation Tool Use Context\nManagement Loop\nManagement\nRetrieve\n\nTask\nCompletion\n\nHarness\n\nSandbox\n\nProgram Verification\n\nCode-Modify Agent\nRecord\n\naccept\n\naccept\nroll back\nDiff Review\noverfit\n\nroll back function’s diff\n\nEvolution History\n\ngeneral\n\nFigure 1: Overview of ModularRSI. The framework collects and analyzes contrastive trajectories,\nperforms module-wise harness modification, and retains modifications through validation gates.\n3.1\n\nOVERVIEW OF M ODULAR RSI\n\nAs illustrated in Fig. 1, ModularRSI consists of three stages: (i) Contrastive Trajectory Sampling\nand Analysis, which identifies recurring harness weaknesses from successful and failed executions; (ii) Module-wise Harness Evolution, which converts these findings into localized function\nupdates; and (iii) Validation Gates, which filter proposed modifications through program checks,\ngeneralization-oriented diff review, and execution validation.\nStarting from a shared initial harness, we decompose its behavioral mechanisms into five functional\nmodules. During module-wise evolution, the modules are evolved independently without sharing\nintermediate updates, allowing them to be processed in parallel. For each module, ModularRSI\nanalyzes trajectory evidence in batches and restricts modifications to its functional scope. The agent\nunder evolution itself serves as the Code-Modify Agent for both trajectory analysis and harness\nmodification. After all five modules have been evolved independently, we perform Cross-Module\nIntegration to combine the evolved modules into a unified harness and resolve potential conflicts\namong their modifications.\nTo control the growing function library, we apply Function Merge to remove redundant functions and use a Task-Aware Function Composer to activate only task-relevant functions. After\nall module-level evolution is completed, the evolved modules are combined and refined through\ncross-module integration. The resulting function library is then frozen for downstream evaluation.\n3.2\n\nH ARNESS M ODULARIZATION\n\nA harness contains both infrastructure-level components and behavioral mechanisms. Since components such as sandbox initialization, parallel execution, and LLM communication mainly concern\nsystem infrastructure rather than task-solving behavior, ModularRSI restricts evolution to mechanisms that directly mediate agent–environment interaction. Based on our analysis of existing harness implementations and execution trajectories, we organize these mechanisms into five functional\nmodules:\n1. Agent Loop. Controls the iterative reasoning–action–observation process, including execution\nflow, interaction control, and recovery behavior.\n2. Observation Management. Processes environmental feedback by preserving task-relevant\ninformation while filtering or compressing noisy observations.\n3. Tool Use. Manages the selection, invocation, and validation of external tools.\n4. Context Management. Maintains and organizes interaction history across execution steps,\nincluding information retention, compression, and retrieval.\n4\n\n\f5. Task Completion Detection.\ninteraction is required.\n\nDetermines whether the task has been completed or further\n\nSpecifically, the Agent Loop coordinates the outputs of the other modules and constructs prompts for\nthe LLM to interact with the environment, while the remaining modules process different types of\ninformation required during execution. Details of the interactions among modules and the function\ninterfaces within each module are provided in Appendix A.\nWe use Terminus-2 from Harbor (Merrill et al., 2026b) as the initial harness and reorganize its behavioral mechanisms into these five modules, which serve as the shared starting point for subsequent\nmodule-wise evolution.\n3.3\n\nC ONTRASTIVE T RAJECTORY S AMPLING AND A NALYSIS\n\nFor each evolution instance xi , we roll out the agent K times, obtaining trajectories\n(tra1i , tra2i , . . . , traK\ni ). Each trajectory is evaluated by the task-specific evaluator and assigned\na binary reward rik , where rik = 1 indicates success and rik = 0 indicates failure. Based on the\nrollout rewards, we divide tasks into three groups:\n\nPositive,\nGi = Contrastive,\n\nNegative,\n\nk\ni = K,\nk rP\n0 &lt; k rik &lt; K,\nP k\nk ri = 0.\n\nP\n\n(1)\n\nWe further maintain a Trajectory Memory that stores historical trajectories and their rewards for\neach task across evolution epochs. This allows experience from previous epochs to provide additional contrastive evidence when the current rollouts alone are insufficient.\nThe Code-Modify Agent analyzes each group according to the available trajectory evidence. For the\nContrastive group, successful and failed trajectories of the same task are paired and compared to\nidentify function-level factors associated with different outcomes. For the Negative group, where\nall current rollouts fail, the agent first queries the Trajectory Memory for a previously successful\ntrajectory of the same task. If one exists, it is paired with a current failed trajectory for contrastive\nanalysis. Otherwise, the agent performs single-sided diagnosis over the failed trajectories to identify\nevident execution deficiencies, such as repetitive loops, incorrect tool usage, ineffective recovery,\nor premature termination. For the Positive group, where all rollouts succeed, the analysis focuses\non opportunities to improve execution quality and efficiency, such as redundant actions, repetitive\nexploration, or unnecessary tool calls.\nAfter analyzing all tasks in a batch, the Code-Modify Agent consolidates the diagnoses into structured findings in JSON format. Each finding specifies the module under analysis, supporting trajectory evidence, the rationale for or against modification, and a proposed change when applicable.\nThe detailed analysis prompt and output schema are provided in Appendix B and Appendix C.1.\n3.4\n\nM ODULE - WISE H ARNESS M ODIFICATION\n\nBased on the findings identified in Sec. 3.3, we again employ the Code-Modify Agent to modify\nthe corresponding harness functions through two mechanisms designed to improve modification\nreliability.\nModification Target Selection. For each batch, we first consolidate semantically similar diagnoses that target the same function into candidate modifications. Each candidate is then assigned a\nvote count based on the number of distinct tasks that provide supporting evidence. We prioritize the\nhighest-ranked candidates for subsequent evolution, favoring modifications supported across multiple tasks while reducing the influence of instance-specific failures.\nEvolution History. To reduce redundant or conflicting modifications and mitigate evolution oscillation across iterations, we maintain an Evolution History for each function being updated. The\nhistory records previous code changes and the functionality introduced by each revision. By exposing these historical changes to the Code-Modify Agent, subsequent updates can better preserve\npreviously evolved functionality while avoiding repeated or contradictory modifications.\n5\n\n\fThe prompts used for harness evolution are provided in Appendix C.2.\n3.5\n\nVALIDATION G ATES\n\nOnly validated modifications are retained during evolution. After each function update, we apply a\nsequence of validation gates to ensure that the modified harness remains executable and compatible\nwith the surrounding system.\nProgram Check. We first perform a series of static checks on the modified harness, including\nAST validation, import checks, protocol compliance, discovery-contract verification, and static selfattribute audits. If a modification fails any of these checks, we use the recorded diffs to roll back the\naffected function to its previous version.\nDiff Review. To mitigate the risk of task-specific modifications, we ask the Code-Modify Agent\nto review each modification diff. The agent checks whether the introduced changes encode taskspecific solutions, heuristics, or conditions that are unlikely to generalize beyond the current training\ninstances. Modifications identified as overly task-specific are rejected and rolled back. The review\nprompt is provided in Appendix C.3.\nExecution Validation. Finally, we validate the executability of the modified harness through actual\ntask execution. After each modification, we randomly sample two tasks from the current batch and\nexecute them using the updated harness. If the modification introduces runtime errors or violates\nthe expected execution protocol, we use the recorded diffs to roll back the harness to its previous\nversion.\n3.6\n\nC ROSS -M ODULE I NTEGRATION\n\nAfter the five modules have been evolved independently, their validated variants are combined into\na unified harness. Since independently optimized modules may introduce duplicated mechanisms,\nconflicting behaviors, or inconsistent interactions when composed together, direct combination may\nnot produce a coherent final system.\nWe therefore perform an additional cross-module integration epoch on the evolution set. The\nintegrated harness is executed on evolution tasks, and the Code-Modify Agent analyzes the resulting trajectories to identify cross-module conflicts. It then refines module interactions by removing\nduplicated mechanisms, clarifying module responsibilities, and adjusting coordination logic where\nnecessary.\nAfter integration, the evolved function library is frozen and no further modifications are allowed\nduring downstream evaluation. The prompt used for cross-module integration is provided in Appendix C.4.\n3.7\n\nF UNCTION L IBRARY M ANAGEMENT\n\nModularRSI maintains an expanding library of evolved functions. We introduce two complementary\nmechanisms to control its complexity: Function Merge reduces redundancy in the persistent library,\nwhile Task-Aware Function Composition restricts the functions activated for each task.\nFunction Merge. Within each module, an LLM compares the descriptions and behaviors of its\nfunctions and merges those with highly similar or overlapping functionality, reducing redundancy\nwhile preserving their learned capabilities.\nTask-Aware Function Composition. It dynamically constructs the active harness for each task.\nEach evolved function is associated with a natural-language description of its current behavior.\nGiven the task description and the descriptions of all candidate functions, an LLM selects a subset of task-relevant functions, and only these functions are activated during execution.\nThose mechanisms are used during both trajectory collection and downstream evaluation. This\nallows the underlying function library to expand through evolution while keeping the active harness\ncompact and task-specific.\n6\n\n\fModularRSI evolution pool — task category distribution (2000 instances)\n\n(a) Category distribution by domain\nData processing\n\n219\n\nML &amp; science\nBuild &amp; deps\n\n111\n\n102\n\nLang &amp; API\nWeb &amp; network\n\n136\n\nAlgorithms\n\n41\n53\n\nData processing 381 (19.1%)\n\n244 (12.2%)\n\nML &amp; science 272 (13.6%)\nBuild &amp; deps 244 (12.2%)\n\n236 (11.8%)\n\n134\n186\n\n(b) Overall composition\n\n272 (13.6%)\n\n168\n\n133\n\nSystems &amp; OS\n\n381 (19.1%)\n\n162\n\n104\n\n2000\ninstances\n\n227 (11.3%)\n\n189 (9.4%)\n\nLang &amp; API 227 (11.3%)\nWeb &amp; network 189 (9.4%)\nAlgorithms 176 (8.8%)\nSecurity &amp; crypto 150 (7.5%)\n\n176 (8.8%)\n\n162\n\nSystems &amp; OS 236 (11.8%)\n\nDatabase 125 (6.2%)\n\n150 (7.5%)\n\nSecurity &amp; crypto\n\n49\n\n101\n\nDatabase\n\n57\n\n68\n\n125 (6.2%)\n\n100\n\n150\n\n0\n\n50\n\n200\n\nSWE (n=1000)\nTerminal (n=1000)\n250\n\n300\n\n350\n\n400\n\nNumber of instances\n\nFigure 2: The data distribution of our evolution data.\n\n4\n\nE VOLUTION DATASET AND P ROTOCOL\n\nTo construct diverse and generalizable evolution instances, we first extract high-level domain information (i.e., task category labels) from mainstream terminal-related benchmarks, including the\nTerminalBench and SWE-Bench families. Using these category labels as search guidance, human\nannotators retrieve relevant publicly available resources from external sources, including but not\nlimited to GitHub repositories 1 , Hugging Face 2 , Kaggle 3 , and Linux kernel documentation 4 . The\nretrieved resources are then used as source materials to construct new executable tasks in the Harbor\nformat. Importantly, downstream benchmarks provide only high-level domain guidance for resource\nretrieval; no benchmark instances or task-specific information are used during task construction.\nWe apply a multi-stage quality-control pipeline to the constructed instances. First, LLM-based filtering evaluates three aspects: Environment Completeness, ensuring that all required data, dependencies, files, and tools are available; Practicality and Non-triviality, excluding artificial or overly\nsimple tasks with limited reasoning or environment interaction; and Evaluator Validity, requiring\nthe test suite to assess functional correctness rather than superficial completion signals. We then\nperform executable validation by requiring the reference solution.sh to pass all task-specific\ntests while ensuring that a no-op submission cannot receive a positive reward. Finally, each instance is manually reviewed for task clarity, environment completeness, and evaluator correctness,\nfollowed by LLM-based semantic similarity screening to remove instances with high overlap with\ndownstream benchmarks.\nAs shown in Fig. 2, this pipeline yields 2,000 high-quality, benchmark-disjoint evolution instances.\nThe data are relatively balanced across task categories, with broadly comparable distributions for\nTB-related and SWE-related instances. Overlap between the two groups is limited by their distinct\nconstruction sources: SWE-related tasks are built around GitHub repositories and require repositorylevel software engineering, whereas TB-related tasks are constructed for direct interaction with terminal environments.\nThis standardized evolution set provides a shared foundation for our experiments and future research\non harness self-evolution, enabling evaluation of whether Harness RSI methods learn generalizable\nimprovements rather than adaptations to downstream evaluation benchmarks.\n\n1\n\nhttps://github.com/\nhttps://huggingface.co/\n3\nhttps://www.kaggle.com/\n4\nhttps://docs.kernel.org/\n2\n\n7\n\n\f5\n\nE XPERIMENT S ETTING\n\n5.1\n\nB ENCHMARKS\n\nTo validate the effectiveness of ModularRSI, we evaluate it against the baseline on two recent and\nchallenging terminal-related benchmarks: TerminalBench 2.0 (Merrill et al., 2026b) and SWEBench-Verified (Jimenez et al., 2024b). TerminalBench 2.0 contains 89 diverse long-horizon terminal tasks, while SWE-Bench-Verified contains 500 human-validated software engineering tasks\nfrom real-world repositories. Together, they provide complementary evaluation of general terminal interaction and repository-level software engineering. For reproducibility, we use the original\nreleased benchmark versions and conduct all evaluations under the Harbor framework.\n5.2\n\nM ETRICS\n\nConsidering the stability of the evaluation results and the need to compare both the efficiency and\nperformance of different harnesses, we evaluate the following four metrics:\nAccuracy (Acc): Accuracy measures the average success rate over all rollout trajectories. A trajectory is considered successful if the agent successfully completes the corresponding task according\nto the task-specific evaluator.\nPass@3: Pass@3 measures whether the agent can successfully solve a task within three independent\nrollout attempts. A task is counted as solved if at least one of the three trajectories succeeds, and the\nfinal score is averaged across all evaluation tasks.\nStepNum: Average Step measures the average number of agent-environment interaction steps\nrequired per rollout. It reflects the execution efficiency of the agent, with fewer steps generally\nindicating a more efficient problem-solving process.\nPass3 : Pass3 measures the consistency and reliability of the agent across 3 independent rollout\nattempts. A task is counted as successfully solved only if all 3 trajectories succeed, and the final\nscore is averaged across all evaluation tasks.\n5.3\n\nI MPLEMENTATION D ETAILS\n\nIn our experiments, all evolution processes, including single-module evolution and joint-module\nevolution, are conducted for 3 epochs. Due to computational and time constraints, we select 120\ninstances from each of the TB-related and SWE-related subsets of the 2,000-instance evolution\ndataset for harness evolution. The primary models used for evolution are DeepSeek-V4-FlashPreview and DeepSeek-V4-Flash-0731. We provision the deployed models with a TPM limit of 2\nmillion tokens and use a batch size of 10 throughout the evolution process.\n\n6\n\nR ESULTS\n\n6.1\n\nG ENERALIZATION B EYOND E VOLUTION E XPERIENCE\n\nThe central challenge of Harness RSI is not only improving performance on the tasks used for evolution, but discovering harness modifications that generalize beyond the evolution experience. To\nevaluate this capability, we construct two independent evolution sets, i.e., TB-related and SWErelated. From each set, we sample 120 instances for harness evolution, resulting in 120 TB-related\nand 120 SWE-related evolution tasks. We then evaluate the evolved harnesses on both TerminalBench 2.0 and SWE-Bench-Verified under in-domain and out-of-domain settings. The evolution\nsets are completely isolated from the evaluation benchmarks, preventing direct exposure to evaluation tasks during evolution.\nAs shown in Table 2, with DeepSeek-V4-Flash-Preview as the backbone model, ModularRSI consistently improves performance across both evaluation benchmarks under different evolution settings. In the in-domain setting, the evolved harness improves accuracy from 47.57 to 52.43 on\nTerminalBench 2.0 and from 73.40 to 76.45 on SWE-Bench-Verified. We further analyze perfor8\n\n\fTable 2: Cross-benchmark transfer of frozen evolved harnesses. After evolution on TB-related\nor SWE-related tasks, each harness is frozen and evaluated on both held-out benchmarks using the\nsame inference backbone.\nSWE-Bench-Verified\n\nTerminalBench 2.0\n\nAcc ↑ Pass@3 ↑ Pass3 ↑\n\nEvolution Set\n\nEval. Setting\n\nNo Evolution\nTB-Related\nSWE-Related\n\n–\n73.40\nOut-of-Domain 75.80\nIn-Domain\n76.45\n\n83.20\n84.67\n85.30\n\n62.80\n66.20\n66.80\n\nEval. Setting\n\nAcc ↑ Pass@3 ↑ Pass3 ↑\n\n–\n47.57\nIn-Domain\n52.43\nOut-of-Domain 49.40\n\n58.43\n65.17\n60.67\n\n30.34\n35.96\n30.34\n\nTable 3: Generalization across different inference models with a frozen evolved harness on TerminalBench 2.0.\nInference Model\n\nMethod\n\nAcc ↑\n\nPass@3 ↑\n\nPass3 ↑\n\nGLM-5.2\n\nBaseline\nModularRSI\n\n59.55\n61.80\n\n70.79\n74.16\n\n46.07\n49.44\n\nMiniMax-2.5\n\nBaseline\nModularRSI (Ours)\n\n41.57\n44.94\n\n56.18\n57.30\n\n24.72\n30.34\n\nDeepSeek-V4-Flash\n\nBaseline\nModularRSI (Ours)\n\n47.57\n52.43\n\n58.43\n65.17\n\n30.34\n35.96\n\nmance across successive RSI generations and observe a largely monotonic improvement throughout\nthe evolution process (see Appendix F).\nMore importantly, these gains transfer beyond the evolution domain. The harness evolved on TBrelated data improves SWE-Bench-Verified accuracy to 75.80, while the harness evolved on SWErelated data improves TerminalBench 2.0 accuracy to 49.40. These results suggest that ModularRSI\ndiscovers reusable improvements to the underlying agent execution mechanism, rather than merely\nspecializing to the tasks encountered during evolution.\nNotably, the gain is particularly pronounced for Pass3 on TerminalBench 2.0, which increases from\n30.34 to 35.96. This improvement suggests that harness evolution not only increases average tasksolving capability but also enhances execution reliability, reducing stochastic failures across repeated trials.\n6.2\n\nC ROSS -M ODEL G ENERALIZATION\n\nBeyond task-level generalization, we further examine whether the discovered harness improvements\nare transferable across different foundation models. Since different models exhibit different behaviors in planning, tool interaction, and error recovery, a model-specific optimization may fail to\ngeneralize.\nTo evaluate this capability, we freeze the harness evolved with DeepSeek-V4-Flash Preview on the\nTB-related evolution set and apply it to different foundation models on TerminalBench 2.0.\nAs shown in Table. 3, the evolved harness consistently improves Acc, Pass@3, and Pass3 across all\nevaluated foundation models. For example, the evolved harness improves GLM-5.2 accuracy from\n59.55 to 61.80 and MiniMax-2.5 accuracy from 41.57 to 44.94.\nThese results demonstrate that ModularRSI learns transferable improvements to the agent execution\nprocess rather than exploiting model-specific behaviors.\n6.3\n\nE FFECT OF M ODULAR E VOLUTION\n\nAs shown in Table 4, independently evolving modules and then integrating them achieves the best\noverall performance, improving Acc from 47.57 to 52.43. In contrast, both joint and non-modular\nevolution reduce accuracy below the baseline. This suggests that restricting the modification scope\nhelps reduce interference when optimizing the harness.\n9\n\n\fTable 4: Comparison of different harness evolution strategies on TerminalBench 2.0.\nMethod\n\nAcc ↑ Pass@3 ↑ Pass3 ↑ StepNum ↓\n\nBaseline\nNon-modular Evolution\nJoint All-Module Evolution\nModularRSI (Ours)\n\n47.57\n46.44\n44.19\n52.43\n\n58.43\n64.04\n61.80\n65.17\n\n30.34\n24.72\n24.72\n35.96\n\n34.70\n29.03\n44.34\n35.57\n\nTable 5: Performance of single-module evolution and cross-module integration on TerminalBench\n2.0. Each row under Single-Module Evolution reports the harness obtained by independently evolving only the corresponding module from the same baseline. ModularRSI (Ours) further integrates\nthe five independently evolved modules through Cross-Module Integration to construct the final\nevolved harness.\nMethod\n\nAcc ↑ Pass@3 ↑ Pass3 ↑ StepNum ↓\n\nBaseline\n\n47.57\n\n58.43\n\n30.34\n\n34.70\n\nSingle-Module Evolution\nContext Management\nTool Use\nAgent Loop\nObservation Management\nTask Completion Detection\n\n49.44\n50.19\n50.56\n49.81\n49.44\n\n61.80\n62.92\n64.04\n65.17\n65.17\n\n31.40\n30.34\n34.83\n33.70\n31.40\n\n35.10\n41.28\n40.40\n22.50\n31.06\n\nCross-Module Integration\nModularRSI (Ours)\n\n52.43\n\n65.17\n\n35.96\n\n35.57\n\nWe further examine the contribution of each independently evolved module before integration. Since\nModularRSI evolves all five modules independently for three epochs each, evaluating single-module\nvariants also helps assess whether improvements can be achieved without the larger aggregate trajectory budget of the full framework. As shown in Table 5, all single-module variants improve accuracy\nover the baseline, with different modules providing distinct benefits. Agent Loop yields the largest\nsingle-module accuracy gain, whereas Observation Management substantially reduces the average\nnumber of execution steps. Integrating the independently evolved modules further increases Acc to\n52.43 and Pass3 to 35.96, suggesting that the modules capture complementary improvements that\ncan be effectively combined.\n6.4\n\nC OMPARING WITH E XISTING RSI M ETHODS\n\nConsidering task compatibility, reproducibility,\nand method performance, we adapt and repro- Table 6: Comparison with existing harness evoduce AHE and Meta-Harness under a unified ex- lution methods on TerminalBench 2.0.\nperimental protocol. Specifically, all methods are\nMethod\nAcc ↑ Pass@3 ↑ Pass3 ↑\nadapted to the Harbor framework and evolve from\nBaseline\n61.79\n73.03\n50.56\nthe same Terminus-2 harness using the same 120\nMeta-Harness\n62.92\n74.16\n50.56\nevolution instances. ModularRSI evolves each\nAHE\n62.54\n73.03\n51.69\nmodule independently for three epochs, followed\nModularRSI (Ours) 67.42\n78.65\n56.18\nby a merging stage. To match the aggregate number of evolution rounds, accounting for both module-wise evolution and merging in ModularRSI,\nwe evolve AHE and Meta-Harness for 16 epochs. For all methods, the harness from the final generation is evaluated on the downstream benchmark. All methods use DeepSeek-V4-Flash-0731 for\nboth evolution and evaluation, with the same TPM limit of 2M tokens per minute. We additionally\ndisable web search for all methods to prevent the evolved harnesses from retrieving task solutions\nfrom external sources.\nAs shown in Tab. 6, although existing RSI methods can achieve strong performance when evolving directly on benchmark data, their improvements are much more limited under our benchmarkdisjoint protocol. Both AHE and Meta-Harness remain close to the Terminus-2 baseline, with accuracy changes of approximately one percentage point, whereas ModularRSI improves accuracy by\n10\n\n\fmore than five points. This substantially larger gain demonstrates the stronger generalizability of\nModularRSI to unseen tasks.\nT HE E FFECT OF C ONTRASTIVE A NALYSIS\n\nOur ModularRSI leverages contrastive trajectory\nanalysis and modular evolution to more accurately localize deficiencies in the harness and\nidentify generalizable harness improvements. To\nexamine the role of contrastive analysis, we analyze both the proportion of contrastive trajectory\npairs during evolution and representative case\nstudies.\n\nUsable pair ratio (%)\n\n6.5\n\n38\n37\n36\n35\n34\n33\n\n36.67%\n34.17%\nΔ = -7.50 pp\n\nEpoch 1\n\nEpoch 2\n\nSelf-evolution epoch\n\nEpoch 3\n\nSpecifically, as shown in Fig. 3, we report the\nFigure 3: The contrastive trajectory pairs ratio\nproportion of contrastive trajectory pairs among\nvariation during evolution.\nall trajectory groups in each epoch on TerminalBench 2.0. As evolution progresses, the proportion of available contrastive pairs gradually decreases. This trend suggests that the harness progressively incorporates the reusable behavioral improvements revealed by these contrastive examples,\nthereby reducing the occurrence of cases in which successful and failed trajectories coexist for the\nsame task.\nIn addition, the case studies in Appendix D further illustrate how our Contrastive Trajectory Analysis\nhelps identify generalizable harness improvements. In particular, comparing successful and failed\ntrajectories exposes key behavioral differences, allowing ModularRSI to abstract them into reusable\nharness mechanisms rather than task-specific fixes.\n6.6\n\nE FFECT OF E VOLUTION DATA Q UALITY\n\nEvolution-set\nscore (%)\n\nBeyond the evolution strategy, the quality of evo65.0\n66\nlution experience also affects the effectiveness of\n64\nHarness RSI. Since harness evolution relies on\n62\nexecution feedback to identify systematic failures\n61.8\n60\nand improve interaction strategies, the informaMedium\nHard &amp; Easy\n58\ntiveness of evolution tasks is crucial. In partic0\n1\n2\nular, the difficulty distribution of evolution data\nEpoch\nplays an important role in determining the quality\nof evolution signals. Moderately difficult tasks\nare more likely to provide informative contrasts: Figure 4: Accuracy variation during evoeasy tasks contain insufficient failure cases, while lution under different difficulty distributions.\nextremely difficult tasks rarely yield successful DeepSeek-V4-Flash Preview is used as the\ntrajectories that reveal effective interaction strate- foundation model.\ngies. Therefore, we hypothesize that a balanced\ndifficulty distribution can facilitate the discovery of generalizable harness improvements.\nTo verify this hypothesis, we construct two evolution settings with different difficulty distributions:\na Medium-centered setting and a Hard &amp; Easy setting. The detailed procedure for constructing these\nevolution datasets is described in the Appendix. E.\nAs shown in Fig. 4, the Medium-centered setting achieves\nconsistently stronger improvement throughout the evolution process. Moreover, as shown in Tab. 7 the evolved\nharness generalizes better to downstream evaluation: the\nharness evolved with the Medium-centered distribution\nachieves 76.45% accuracy on SWE-Bench Verified, outperforming the Hard &amp; Easy setting by 2.20 percentage points\n(74.25%). This demonstrates that evolution data with more\ninformative trajectory contrasts leads to more effective and\ngeneralizable harness improvements.\n11\n\nTable 7: Performance of Harnesses\nEvolved with Different EvolutionData Distributions on SWE-Bench\nVerified.\nDifficulty Distribution\n\nAcc ↑\n\nMedium-centered\nHard &amp; Easy\n\n76.45\n74.25\n\n\f7\n\nL IMITATIONS AND C ONCLUSION\n\nWe present ModularRSI, a benchmark-disjoint and modular framework for generalizable harness\nself-improvement. By contrasting execution trajectories and evolving harness modules independently, ModularRSI identifies reusable mechanism-level improvements while reducing task-specific\nadaptation. Experiments on TerminalBench 2.0 and SWE-Bench Verified demonstrate consistent\ngains across unseen tasks, domains, and foundation models.\nOur study has several limitations. First, we do not conduct a dedicated ablation that isolates the contribution of contrastive trajectory analysis, although our trajectory analysis and case studies provide\nsupporting evidence. In addition, due to computational cost, our main evolution experiments use\nonly a subset of the 2,000 curated evolution instances. We leave broader comparisons and largerscale studies to future work.\nOverall, our results demonstrate the potential of benchmark-disjoint, contrastive, and modular evolution for building more generalizable self-improving agent harnesses.\n\nR EFERENCES\nLakshya A Agrawal, Shangyin Tan, Dilara Soylu, Noah Ziems, Rishi Khare, Krista Opsahl-Ong,\nArnav Singhvi, Herumb Shandilya, Michael J Ryan, Meng Jiang, et al. Gepa: Reflective prompt\nevolution can outperform reinforcement learning. In International Conference on Learning Representations, volume 2026, pp. 8479–8565, 2026.\nMengzhuo Chen, Junjie Wang, Zhe Liu, Yawen Wang, Haiming Zheng, and Qing Wang. From\nfailed trajectories to reliable llm agents: Diagnosing and repairing harness flaws. arXiv preprint\narXiv:2606.06324, 2026a.\nMingju Chen, Can Lv, Guibin Zhang, Heng Chang, and Shiji Zhou. Harnessforge: Joint harness\nand policy evolution for adaptive agent systems, 2026b. URL https://arxiv.org/abs/\n2606.01779.\nZihao Cheng, Hongru Wang, Zeming Liu, Xinyi Wang, Xiangrong Zhu, Yuhang Guo, Wei Lin,\nJeff Z Pan, and Yunhong Wang. Terminal-world: Scaling terminal-agent environments via agent\nskills. arXiv preprint arXiv:2605.20876, 2026.\nXiang Deng, Jeff Da, Edwin Pan, Yannis Yiming He, Charles Ide, Kanak Garg, Niklas Lauffer,\nAndrew Park, Nitin Pasari, Chetan Rane, et al. Swe-bench pro: Can ai agents solve long-horizon\nsoftware engineering tasks? arXiv preprint arXiv:2509.16941, 2025.\nYuetian Du, Yucheng Wang, He Xu, Jiexu Xu, Shanwen Tan, Bing Zhao, Boyu Yang, Zhijie Xu,\nMing Kong, Hu Wei, Jie Liu, and Qiang Zhu. Living-harness is an interactive-agent evolver,\n2026. URL https://arxiv.org/abs/2607.26598.\nYingying Fan, Penghui Du, Leyan Zhu, Runze He, Zimeng Wu, Yuxuan Zhang, Liang Chen, Jiahao\nXie, Jiangtang Wang, Shuai Shao, et al. Medclaw: Heuristic agent harness for long-horizon\nsurgical video reasoning. arXiv preprint arXiv:2608.14015, 2026.\nKanishk Gandhi, Shivam Garg, Noah D Goodman, and Dimitris Papailiopoulos. Endless terminals:\nScaling rl environments for terminal agents. arXiv preprint arXiv:2601.16443, 2026.\nHanhua Hong, Yizhi LI, Jiaoyan Chen, Sophia Ananiadou, Xiaoli Li, Jung-jae Kim, and Chenghua\nLin. HiRAS: A hierarchical multi-agent framework for paper-to-code generation and execution.\nIn Findings of the Association for Computational Linguistics: ACL 2026, pp. 7624–7652, 2026.\nCarlos E Jimenez, John Yang, Alexander Wettig, Shunyu Yao, Kexin Pei, Ofir Press, and Karthik\nNarasimhan. Swe-bench: Can language models resolve real-world github issues? In International\nConference on Learning Representations, volume 2024, pp. 54107–54157, 2024a.\nCarlos E Jimenez, John Yang, Alexander Wettig, Shunyu Yao, Kexin Pei, Ofir Press, and Karthik R\nNarasimhan. SWE-bench: Can language models resolve real-world github issues? In The Twelfth\nInternational Conference on Learning Representations, 2024b. URL https://openreview.\nnet/forum?id=VTF8yNQM66.\n12\n\n\fYoonho Lee, Roshen Nair, Qizheng Zhang, Kangwook Lee, Omar Khattab, and Chelsea Finn. Metaharness: End-to-end optimization of model harnesses. arXiv preprint arXiv:2603.28052, 2026.\nJiahang Lin, Shichun Liu, Chengjun Pan, Lizhi Lin, Shihan Dou, Zhiheng Xi, Xuanjing Huang,\nHang Yan, Zhenhua Han, Tao Gui, et al. Agentic harness engineering: Observability-driven\nautomatic evolution of coding-agent harnesses. arXiv preprint arXiv:2604.25850, 2026.\nXinghua Lou, Miguel Lázaro-Gredilla, Antoine Dedieu, Carter Wendelken, Wolfgang Lehrach, and\nKevin P Murphy. Autoharness: improving llm agents by automatically synthesizing a code harness. arXiv preprint arXiv:2603.03329, 2026a.\nXinghua Lou, Miguel Lázaro-Gredilla, Antoine Dedieu, Carter Wendelken, Wolfgang Lehrach, and\nKevin P. Murphy. Autoharness: improving llm agents by automatically synthesizing a code harness, 2026b. URL https://arxiv.org/abs/2603.03329.\nXiaotian Luo, Dizhan Xue, Fengxingyu Wang, Chuanrui Hu, and Yafeng Deng. Harnessbank:\nSemantic gene-bank search with gated verification for agent-harness self-evolution, 2026a. URL\nhttps://arxiv.org/abs/2607.13683.\nYifu Luo, Zeyu Chen, Haoyu Wang, Xinhao Hu, Yuxuan Zhang, Zhizhou Sha, and Shiwei\nLiu. Learning from the self-future: On-policy self-distillation for dllms. arXiv preprint\narXiv:2606.18195, 2026b.\nMike Merrill, Alexander Shaw, Nicholas Carlini, Boxuan Li, Harsh Raj, Ivan Bercovich, Lin Shi,\nJeong Shin, Thomas Walshe, E Kelly Buchanan, et al. Terminal-bench: Benchmarking agents\non hard, realistic tasks in command line interfaces. In International Conference on Learning\nRepresentations, volume 2026, pp. 40903–40986, 2026a.\nMike A. Merrill, Alexander G. Shaw, Nicholas Carlini, Boxuan Li, Harsh Raj, Ivan Bercovich, Lin\nShi, Jeong Yeon Shin, Thomas Walshe, E. Kelly Buchanan, Junhong Shen, Guanghao Ye, Haowei\nLin, Jason Poulos, Maoyu Wang, Marianna Nezhurina, Jenia Jitsev, Di Lu, Orfeas Menis Mastromichalakis, Zhiwei Xu, Zizhao Chen, Yue Liu, Robert Zhang, Leon Liangyu Chen, Anurag\nKashyap, Jan-Lucas Uslu, Jeffrey Li, Jianbo Wu, Minghao Yan, Song Bian, Vedang Sharma,\nKe Sun, Steven Dillmann, Akshay Anand, Andrew Lanpouthakoun, Bardia Koopah, Changran\nHu, Etash Guha, Gabriel H. S. Dreiman, Jiacheng Zhu, Karl Krauth, Li Zhong, Niklas Muennighoff, Robert Amanfu, Shangyin Tan, Shreyas Pimpalgaonkar, Tushar Aggarwal, Xiangning\nLin, Xin Lan, Xuandong Zhao, Yiqing Liang, Yuanli Wang, Zilong Wang, Changzhi Zhou, David\nHeineman, Hange Liu, Harsh Trivedi, John Yang, Junhong Lin, Manish Shetty, Michael Yang,\nNabil Omi, Negin Raoof, Shanda Li, Terry Yue Zhuo, Wuwei Lin, Yiwei Dai, Yuxin Wang,\nWenhao Chai, Shang Zhou, Dariush Wahdany, Ziyu She, Jiaming Hu, Zhikang Dong, Yuxuan\nZhu, Sasha Cui, Ahson Saiyed, Arinbjörn Kolbeinsson, Jesse Hu, Christopher Michael Rytting,\nRyan Marten, Yixin Wang, Alex Dimakis, Andy Konwinski, and Ludwig Schmidt. Terminalbench: Benchmarking agents on hard, realistic tasks in command line interfaces, 2026b. URL\nhttps://arxiv.org/abs/2601.11868.\nMichael Nguyen, Quoc Nguyen, and Paul Vuong. Recursive self-evolving agents via held-out selection, 2026. URL https://arxiv.org/abs/2606.28374.\nWenbo Pan, Shujie Liu, Chin-Yew Lin, Jingying Zeng, Xianfeng Tang, Xiangyang Zhou, Yan Lu,\nand Xiaohua Jia. Evolving agents in the dark: Retrospective harness optimization via selfpreference, 2026. URL https://arxiv.org/abs/2606.05922.\nRenjie Pi, Grace Lam, Mohammad Shoeybi, Pooya Jannaty, Bryan Catanzaro, and Wei Ping. On\ndata engineering for scaling llm terminal capabilities, 2026. URL https://arxiv.org/\nabs/2602.21193.\nJincheng Ren, Siwei Wu, Yizhi Li, Kang Zhu, Shu Xu, Boyu Feng, Ruibin Yuan, Wei Zhang,\nRiza Batista-Navarro, Jian Yang, and Chenghua Lin. A self-evolving framework for efficient\nterminal agents via observational context compression, 2026. URL https://arxiv.org/\nabs/2604.19572.\n13\n\n\fJiajun Shi, Siyuan Tao, Yuhao Wu, Zexuan Wang, Jingyuan Zhang, Jiaheng Liu, Xinping Lei, Xinrong Zhang, Siyuan Fang, Zhewen Tan, et al. S3gym: Can llms turn self-testing and self-judging\ninto self-improvement? arXiv preprint arXiv:2608.31100, 2026.\nHaowen Wang, Yaxin Du, Jian Yang, Jiajun Wu, Shukai Liu, Yuxuan Zhang, Pingjie Wang, Siheng\nChen, Tuney Zheng, Ming Zhou, et al. Mira: Mid-training rubric anchoring for source-aware data\nselection. arXiv preprint arXiv:2605.30288, 2026a.\nYike Wang, Huaisheng Zhu, Zhengyu Hu, Yige Yuan, Zhengyu Chen, Shakti Senthil, Hannaneh\nHajishirzi, Yulia Tsvetkov, Pradeep Dasigi, and Teng Xiao. Rethinking the evaluation of harness\nevolution for agents. In COLM 2026 The 2nd Workshop on Lifelong Agents: Learning, Aligning,\nand Evolving, 2026b.\nYubo Wang, Jiarong Liang, Yuxuan Zhang, Xuye Liu, Cong Wei, Yuyu Zhang, Ping Nie, and Wenhu\nChen. Function-aware fill-in-the-middle as mid-training for coding agent foundation models.\narXiv preprint arXiv:2607.12463, 2026c.\nSiwei Wu, Yizhi Li, Yuyang Song, Wei Zhang, Yang Wang, Riza Batista-Navarro, Xian Yang,\nMingjie Tang, Bryan Dai, Jian Yang, and Chenghua Lin. Large-scale terminal agentic trajectory generation from dockerized environments. In Proceedings of the 43rd International Conference on Machine Learning, 2026a. URL https://icml.cc/virtual/2026/poster/\n64240.\nYuhao Wu, Jingyuan Zhang, Jiajun Shi, Xinping Lei, Qingshui Gu, Yuxuan Zhang, Zexuan Wang,\nChen He, Chen Huang, Maojia Song, et al. Harnessdev: Can llms create and evolve their own\nagent harness? arXiv preprint arXiv:2609.01437, 2026b.\nYuhao Wu, Jingyuan Zhang, Jiajun Shi, Yuxuan Zhang, Xinping Lei, Junting Zhou, Zexuan Wang,\nYuchen Wu, Huan Zhou, Duo Wang, et al. Aspire: Can models self-evolve from vague goals?\narXiv preprint arXiv:2608.31111, 2026c.\nZhiling Yan, Dingjie Song, Hanrong Zhang, Wei Liang, Yuxuan Zhang, Yutong Dai, Lifang He,\nPhilip S Yu, Ran Xu, Xiang Li, et al. Openskill: Open-world self-evolution for llm agents. arXiv\npreprint arXiv:2606.06741, 2026.\nJian Yang, Wei Zhang, Shawn Guo, Zhengmao Ye, Lin Jing, Shark Liu, Yizhi Li, Jiajun Wu, Cening\nLiu, X. Ma, Yuyang Song, Siwei Wu, Yuwen Li, L. Liao, T. Zheng, Ziling Huang, Zelong Huang,\nChe Liu, Yan Xing, Renyuan Li, Qingsong Cai, Hanxu Yan, Siyue Wang, Shikai Li, Jason Klein\nLiu, An Huang, Yongsheng Kang, Jinxing Zhang, Chuan Hao, Haowen Wang, Weicheng Gu,\nRan Tao, Mingjie Tang, Peihao Wu, Jianzhou Wang, Xianglong Liu, Weifeng Lv, and Bryan Dai.\nIquest-coder-v1 technical report, 2026a. URL https://arxiv.org/abs/2603.16733.\nJian Yang, Wei Zhang, Shuyue Guo, Yizhi LI, Linzheng Chai, Zhengmao Ye, Shukai Liu, Yuyang\nSong, Jiajun Wu, Che Liu, Tianyu Zheng, Siwei Wu, Leo L, Xudong Ma, Chuan Hao, Ran Tao,\nYan Xing, Jianzhou Wang, Mingjie Tang, Aishan Liu, Zhoujun Li, Xianglong Liu, Weifeng\nLv, and Bryan Dai. LoopCoder: Scaling code intelligence via looped language models. In\nMaria Liakata, Viviane P. Moreira, Jiajun Zhang, and David Jurgens (eds.), Findings of the Association for Computational Linguistics: ACL 2026, pp. 16209–16223, San Diego, California,\nUnited States, July 2026b. Association for Computational Linguistics. ISBN 979-8-89176-3951. doi: 10.18653/v1/2026.findings-acl.796. URL https://aclanthology.org/2026.\nfindings-acl.796/.\nHangfan Zhang, Shao Zhang, Kangcong Li, Chen Zhang, Yang Chen, Yiqun Zhang, Lei Bai, and\nShuyue Hu. Self-harness: Harnesses that improve themselves. arXiv preprint arXiv:2606.09498,\n2026a.\nJenny Zhang, Shengran Hu, Cong Lu, Robert Lange, and Jeff Clune. Darwin gödel machine: openended evolution of self-improving agents. In International Conference on Learning Representations, volume 2026, pp. 104223–104294, 2026b.\nQizheng Zhang, Changran Hu, Shubhangi Upasani, Boyuan Ma, Fenglu Hong, Vamsidhar Kamanuru, Jay Rainton, Chen Wu, Mengmeng Ji, Hanchen Li, et al. Agentic context engineering:\nEvolving contexts for self-improving language models. In International Conference on Learning\nRepresentations, volume 2026, pp. 86069–86100, 2026c.\n14\n\n\fYuxuan Zhang, Penghui Du, Bo Li, Cong Wei, Junwen Miao, Huaisong Zhang, Songcheng Cai,\nYubo Wang, Dongfu Jiang, Yuyu Zhang, et al. Rewardharness: Self-evolving agentic posttraining. arXiv preprint arXiv:2605.08703, 2026d.\nYuxuan Zhang, EunJeong Hwang, Huaisong Zhang, Penghui Du, Yiming Jia, Dongfu Jiang, Xuan\nHe, Shenhui Zhang, Ping Nie, Peter West, et al. Watch before you answer: Learning from visually\ngrounded post-training. arXiv preprint arXiv:2604.05117, 2026e.\nYuxuan Zhang, Yubo Wang, Yipeng Zhu, Penghui Du, Junwen Miao, Xuan Lu, Zhuofeng Li, Xingwei Qu, Zhengkang Guo, Yuanzhe Shen, et al. Clawbench: Can ai agents complete everyday\nonline tasks? arXiv preprint arXiv:2604.08523, 2026f.\nAdam Zweiger, Jyo Pari, Han Guo, Yoon Kim, and Pulkit Agrawal. Self-adapting language models.\nAdvances in Neural Information Processing Systems, 38:74084–74115, 2026.\n\n15\n\n\fA\n\nH ARNESS A RCHITECTURE\n\nAgent Loop\n\nexecution coordinator\n\nContext Management\n\nexecute\n\nTool Use\n\nEnvironment\n\nObservation\nManagement\n\nfiles / processes\n\nprompt\n\nLLM\n\nLoop control\n\nmodel inference\n\nstate / retry / stop\nresponse\n\nterminal\nstate / decision\n\nread output\n\nTask Completion\nDetection\n\nmodule call / return\n\nruntime relationships\n\nFigure 5: Architecture of the five-module harness.\nFigure 5 shows how the five modules interact during task execution. The outer box is Agent Loop,\nand the central Loop control box represents its runtime logic: maintaining execution state, scheduling calls, handling retries, and deciding whether to continue. Each of the other four modules exchanges inputs and outputs with this controller. The bidirectional module arrows indicate a call and\nits return. The LLM and environment are external resources: the LLM generates responses, while\nthe environment runs commands and stores files and processes. Before execution, the composer\nselects one implementation for each module.\nIn a normal iteration, Agent Loop first asks Context Management to update the conversation history,\ncompressing it when needed. It then sends the current prompt to the LLM. Tool Use parses the\nresponse into commands and a completion signal, executes the commands in the environment, and\nreturns execution results or errors. Observation Management reads the current terminal output and\nconverts it into agent-readable feedback. This differs from Context Management, which works on\nthe accumulated conversation. Agent Loop combines the feedback with tool results, updates its\nstate, and passes that state to Task Completion Detection.\nTask Completion Detection returns a stop recommendation and a reason. For example, the detector\nrequires two consecutive completion declarations. Agent Loop maintains that count and issues the\nconfirmation prompt after the first declaration; the detector checks whether the count meets its criterion. The loop follows the recommendation, while evolved loop variants can override it. If execution\ncontinues, the loop prepares the next prompt from the feedback. Parsing errors can instead trigger\na retry, and session failures or execution limits can end the run. The figure shows these modules’\nrelationships; the arrows do not prescribe a fixed module-to-module execution sequence.\nA.1\n\nM ODULE I NTERFACE E XCERPTS\n\nListing 1 shows the main inputs and outputs of all five modules. The signatures follow the implementation; imports, setup methods, and method bodies are omitted. Each implementation is registered\nwith a name, description, and configuration parameters. The shared ModuleCtx provides task\nconfiguration, environment access, and recording services.\nListing 1: Selected interfaces of the five harness modules. Ellipses denote omitted implementations.\n# 1. Agent Loop\n# Input: task, conversation, and the other four modules.\n# Output: execution status, final text, and failure tag.\nclass AgentLoop(Protocol):\nasync def run(\n\n16\n\n\fself, initial_prompt: str, original_instruction: str,\nobservation: Observation, context_mgmt: ContextMgmt,\ntools: ToolSet, verification: VerificationLoop,\nchat: Chat, ctx: ModuleCtx,\n) -&gt; AgentLoopResult: ...\n# 2. Observation Management\n# Reads the environment through ctx.\n# Output: observation text and updated observation state.\nclass Observation(Protocol):\nasync def capture(\nself, prev: ObsState, ctx: ModuleCtx,\n) -&gt; tuple[ObsResult, ObsState]: ...\n# 3. Tool Use\n# Model text -&gt; commands, completion signal, parsing errors.\n# A tool call -&gt; execution result (success, output, error).\nclass ToolSet(Protocol):\ndef parse_llm_response(\nself, response: str,\n) -&gt; LLMResponseParseResult: ...\nasync def execute(\nself, call: ToolCall, ctx: ModuleCtx,\n) -&gt; ToolResult: ...\n# 4. Context Management\n# Input: conversation history and the original task.\n# Output: updated Chat and an optional handoff prompt.\nclass ContextMgmt(Protocol):\nasync def maybe_compress(\nself, chat: Chat, original_instruction: str,\nctx: ModuleCtx,\n) -&gt; CompressResult: ...\nasync def force_summarize(\nself, chat: Chat, original_instruction: str,\nctx: ModuleCtx,\n) -&gt; CompressResult: ...\n# 5. Task Completion Detection\n# Input: loop state, including recent feedback and signals.\n# Output: a stop recommendation and its reason.\nclass VerificationLoop(Protocol):\nasync def should_terminate(\nself, state: AgentLoopState, ctx: ModuleCtx,\n) -&gt; tuple[bool, str]: ...\n\nThe completion detector returns a recommendation; Agent Loop maintains the state and controls\nwhether execution continues. Observation Management returns current environment feedback,\nwhereas Context Management updates the accumulated conversation history.\n\nB\n\nS TRUCTURED A NALYSIS F INDINGS\n\nThe three trajectory groups in Sec. 3.3 describe the available reward evidence. The implementation\nrefines these groups into routing buckets. The buckets select an analysis path. They do not change\nthe reward of a trajectory. Table 8 shows the mapping. Tasks with infrastructure-only failures are\nexcluded from harness diagnosis.\nEach analyzed task produces one finding record. The field task identifies the task. The field lens\nnames the analysis mode, and locked module names the module that may be changed in the\ncurrent evolution run. The field is culprit gives the causal decision. The field divergence\n17\n\n\fMethod group Implementation buckets\nPositive\nContrastive\nNegative\nExcluded\n\nall pass efficient, all pass wasteful\nmixed\nfixable fail, stuck fail, unreachable fail\ninfra only\n\nTable 8: Mapping from the method-level trajectory groups to the routing buckets used by the implementation.\nsummarizes the relevant trajectory evidence. The field would change outcome gives a counterfactual judgment: would the proposed module change plausibly change the task result? The fields\nfixable now and suggested change state whether and how the system can act on the diagnosis. For a negative attribution, other module or note may record an alternative explanation.\nThe field parse status records whether the structured output was parsed successfully. Some\noptional fields are therefore absent from some records.\nListing 2 shows two findings from one evolution batch. The first finding supports a change to the\nAgent Loop. The second finding rejects a change because the observed reward does not reflect an\nAgent Loop failure. We shorten the text values for readability. We keep the field names, decisions,\nand causal conclusions unchanged.\nListing 2: Abridged examples of structured analysis findings. The first record supports an edit. The\nsecond record abstains from an unsupported edit.\n{\n\"findings\": [\n{\n\"task\": \"draft_dp_3493beee_outa\",\n\"lens\": \"agent_loop\",\n\"is_culprit\": true,\n\"locked_module\": \"agent_loop\",\n\"divergence\": \"The passing roll ran build and package commands. The failing roll ran\nno build or validation command and repeatedly declared completion.\",\n\"would_change_outcome\": \"Yes. A completion gate that requires validation evidence\nwould force the missing build-and-check stage.\",\n\"fixable_now\": true,\n\"suggested_change\": \"Add an evidence-gated completion variant. Allow termination only\nafter a successful build, test, or run has been observed.\"\n},\n{\n\"task\": \"draft_dp_eae0d1ff_outb\",\n\"lens\": \"contrast\",\n\"is_culprit\": false,\n\"divergence\": \"Both rolls produced functionally equivalent solutions. The failing\nartifact compiled and passed differential tests against the reference program.\",\n\"would_change_outcome\": \"No. The artifact evidence points to verifier-side noise\nrather than an Agent Loop failure.\",\n\"fixable_now\": false\n}\n]\n}\n\nC\n\nA BRIDGED P ROMPTS U SED IN H ARNESS E VOLUTION\n\nThe full prompts contain task trajectories, module traces, findings, and code diffs. These inputs are\ninserted at runtime and can be long. The excerpts below preserve the original wording and order.\nText in angle brackets denotes runtime input. Bracketed lines mark omitted dynamic content or\nrepeated operational rules.\nC.1\n\nT RAJECTORY A NALYSIS\n\nThe analysis prompt has two modes. The contrastive mode compares successful and failed trajectories. The efficiency mode examines a successful but wasteful trajectory. Both modes use the same\nattribution rule and output format.\n18\n\n\fListing 3: Excerpt from the trajectory-analysis prompt. Dynamic evidence and tool instructions are\nomitted.\nYou are a READ-ONLY diagnostician deciding ONE thing: would\nchanging the ‘&lt;TARGET_MODULE&gt;‘ module actually CHANGE or\nIMPROVE this task’s outcome? You get the SAME task solved on\none roll and FAILED on another (same code, different sampling).\nThis is NOT blame-attribution. Report a culprit ONLY if there\nis a concrete ‘&lt;TARGET_MODULE&gt;‘ change that would plausibly\nmove THIS task from fail toward pass. If no such change would\nhelp, the answer is no culprit, and you do NOT fix.\n[... omitted: module scope, yardstick, and starter probes ...]\n# The task: &lt;TASK&gt;\n## PASSING roll\n&lt;PASSING_ROLL&gt;\n## FAILING roll\n&lt;FAILING_ROLL&gt;\n[... omitted: instructions for reading raw trajectories and\nmodule traces ...]\n# How to decide (in order)\n1. Divergence: where did the pass and fail rolls stop behaving\nthe same? What did the passing roll do there that the\nfailing roll did not? Cite episodes or steps.\n2. The counterfactual: picture a concrete change to\n‘&lt;TARGET_MODULE&gt;‘. Would the failing roll plausibly have\nmoved from fail toward pass with that change?\n- YES, and it fits inside the module: set ‘is_culprit‘ and\n‘fixable_now‘ to true and describe the change.\n- YES, but it needs an architecture change: set\n‘is_culprit‘ to true and ‘fixable_now‘ to false.\n- NO: set ‘is_culprit‘ to false. Do not invent a marginal\ntweak just to have a finding.\n# REQUIRED output\n&lt;contrast_finding&gt;\n{\n\"task\": \"&lt;TASK&gt;\",\n\"is_culprit\": true or false,\n\"locked_module\": \"&lt;TARGET_MODULE&gt;\",\n\"divergence\": \"&lt;TRAJECTORY_DIVERGENCE&gt;\",\n\"would_change_outcome\": \"&lt;COUNTERFACTUAL&gt;\",\n\"fixable_now\": true or false,\n\"suggested_change\": \"&lt;MODULE_CHANGE_IF_APPLICABLE&gt;\"\n}\n&lt;/contrast_finding&gt;\n[... omitted: the efficiency-mode prompt asks where a passing\nroll wasted work and whether the module can make the agent\nleaner without risking correctness ...]\n\nC.2\n\nH ARNESS M ODIFICATION\n\nThe modification prompt receives one selected direction and all findings that support it. It asks the\nCode-Modify Agent to implement the shared mechanism, rather than a task-specific patch.\nListing 4: Excerpt from the harness-modification prompt. Runtime proposal evidence is omitted.\nYou are implementing ONE agreed direction on the agent’s\n\n19\n\n\fmodules.\nThe direction below was chosen from a backlog of directions,\nand the evidence under it is the COMPLETE set of observations\nthat support it - every one of them, not a sample. Build the\nchange that addresses the direction across all of that\nevidence. Do NOT narrow it to whichever single task reads most\nvividly: a change that only rescues one named task is worthless\nhere and has sunk a lineage before.\n# The direction - proposal &lt;ID&gt; (lane=&lt;LANE&gt;, action=&lt;ACTION&gt;)\n&lt;TARGET_VARIANT_IF_ANY&gt;\nWhat should change about the agent’s behaviour:\n&lt;BEHAVIORAL_DELTA&gt;\nWhy this is believed to be the cause:\n&lt;CAUSAL_HYPOTHESIS&gt;\n# The evidence - &lt;N&gt; finding(s), all of them\n&lt;SUPPORTING_FINDINGS&gt;\n[... omitted: retry or incomplete-evidence notice, when\napplicable ...]\n# How to work\n1. Read the module(s) involved before editing.\n2. Make the change general: it has to hold for every finding\nabove, not one.\n3. &lt;ACTION-SPECIFIC ADD, MODIFY, OR REPLACE RULE&gt;\n4. ‘&lt;validate/&gt;‘, then ‘&lt;commit_patch/&gt;‘, then\n‘&lt;task_complete&gt;true&lt;/task_complete&gt;‘.\n[... omitted: shared editor tool syntax and path rules ...]\n\nC.3\n\nD IFFS R EVIEW\n\nThe review prompt is reward-blind. It receives the proposed diff, its stated intent, and the related\ntrajectory evidence. It checks whether the change is effective and whether it overfits the evolution\ntasks.\nListing 5: Excerpt from the diff-review prompt. Dynamic diffs, trajectories, and repeated rules are\nomitted.\n&lt;review_gate_mode&gt;true&lt;/review_gate_mode&gt;\nYou are the terminus-2-modular editor, reviewing a change you\njust made to the agent’s modules. The change is ALREADY\napplied to the staging copy you can read. Your job now is NOT\nto edit - it is to decide whether this change should be KEPT\nor REJECTED.\n# Review inputs\n&lt;DIFF&gt;\n&lt;INTENT&gt;\n&lt;REWARD-BLIND_TRAJECTORY_SUMMARIES&gt;\n[... omitted: architecture facts and raw-trajectory access\ninstructions ...]\n# How to review\n1. Effective? Require a concrete causal link between the\nchanged mechanism and a failure shown in the trajectories.\nFor a new variant, also check that the Composer could select\n\n20\n\n\fit for similar tasks.\n2. Overfit? Reject task names, task-specific files or outputs,\nand constants tuned to one task.\n[... omitted: detailed MODIFY/ADD tests and module-trace\ninterpretation ...]\nREJECT if the change is task-specific or fails the appropriate\neffectiveness test. Otherwise ACCEPT.\n# Output\n&lt;review_verdict decision=\"accept|reject\"\nreject_class=\"proposal|implementation\"\nreason=\"one sentence why\"\nrepair_brief=\"only for implementation reject\"/&gt;\n[... omitted: detailed verdict-field rules ...]\n\nC.4\n\nT HE C ROSS -M ODULE I NTEGRATION\n\nAfter the independently evolved module variants are combined, the run-in prompt guides the CodeModify Agent to repair interactions among them. The following excerpt preserves the original\ninstructions. It omits only the runtime trajectories and conflict records.\nListing 6: Excerpt from the cross-module run-in prompt. Dynamic evidence is omitted.\nYou are performing integration run-in on a library assembled\nfrom independently evolved module lineages. This is not\nfeature evolution. Make at most one coherent cross-module\nrepair; do not add a new capability, tool, behavioral\ndimension, or benchmark-specific special case.\n[... omitted: frozen-bundle audit and support-generation\nmetadata ...]\n# Same-task, same-bundle support evidence\n&lt;TRAJECTORY_SUMMARIES&gt;\n# Static conflict candidates\n&lt;CONFLICT_FINDINGS&gt;\n# Task\nRead the raw trajectories and the named source locations.\nDetermine whether one candidate explains a repeated pass/fail\nor step-amplification pattern. Prefer, in order: retire\nredundancy, merge overlapping evolved variants, make a small\nin-place repair, then create one replacement only if\nunavoidable. A static finding is a lead, not proof.\nDo not touch Kernel, composer, ‘active_bundle.json‘,\n‘baseline.py‘, or ‘editor_file_tools.py‘. Validate before\ncommitting.\n[... omitted: skill-loading and lineage-metadata rules ...]\nReturn ‘&lt;runin_meta&gt;‘ with ‘ADDRESSED‘, ‘INTERACTION‘, and\n‘NEW_CAPABILITY: no‘.\n\n21\n\n\fStatistic\n\nCount\n\nPercentage\n\n732\n150\n262\n648\n\n40.67%\n8.33%\n14.56%\n36.00%\n\nCurrent rollouts provide a success–failure pair\nAll-fail groups paired with historical success in replay\nAll current rollouts fail, with no earlier success\nAll current rollouts succeed\n\nTable 9: Trajectory evidence from the five runs and subsequent replay.\nSuccessful trajectory (r0)\nShared input\nDecision\nResponse\ncerpt\nCode\nOutput\nReward\n\nFailed trajectory (r1)\n\nThe same task instruction and Scala pipeline. The instruction requires excluding\nNULL categories.\nFollows the written requirement.\nFollows the legacy code.\nex- Episode 7: “I’ll include the filter to Episode 14: “The output includes rows\nmatch the task specification.”\nwith NULL category (matching Scala behavior which doesn’t filter them out).”\nEpisode 6 adds a filter using The generated script has no NULLisNotNull().\ncategory filter.\n47 rows; no NULL categories.\n52 rows; five NULL categories.\n1\n0\n\nTable 10: A success–failure pair from the same task and harness configuration. The response excerpts show how the two rollouts resolve the same conflict.\n\nD\n\nC ASE S TUDIES ACROSS T RAJECTORY G ROUPS\n\nD.1\n\nT RAJECTORY G ROUP D ISTRIBUTION\n\nFor 150 all-fail groups, a successful trajectory from an earlier encounter of the same task was available for contrastive pairing. Eight groups had no valid scores.\nHistorical successes were used for the 150 eligible all-fail groups during the later replay. Eight\ngroups have no score.\nD.2\n\nC ONTRASTIVE : K EEP THE TASK R EQUIREMENTS IN V IEW\n\nTask and trajectory pair. The task asks the agent to port a Scala sales pipeline to PySpark. It\nrequires removing rows whose product category is NULL, but the Scala code has no such filter. We\nselect one successful rollout (r0) and one failed rollout (r1) from the same task encounter in epoch\n2. Both use generation 7 with the same module bundle. Table 10 shows the pair used for diagnosis.\nChange. The Contrastive pair shows the key difference: r0 keeps the explicit requirement, while\nr1 drops it to match the legacy code. The analysis proposes a persistent task checklist. Together\nwith two other findings, this leads to planning with guard in generation 9. The loop shows\ntask requirements in later prompts. When the agent declares completion without commands, it can\nask the agent to check pending items. The variant passes review and sanity checks and is retained.\nLater observation. In epoch 3, the same task runs with the updated loop in generation 13. Rollout r0 keeps the NULL filter. At episode 17, the loop asks for another check before completion.\nThe agent then revisits the conflict and states that it will follow the written requirement. It runs a\ncommand to check the output. The output has 47 rows, and all 52 external tests pass. Two of the\nthree rollouts pass in this encounter, compared with one in the selected epoch-2 encounter. Listing 7\nshows this later execution. The Contrastive pair above comes from epoch 2.\nListing 7: A later execution of the same task. This is follow-up evidence, separate from the success–\nfailure pair used for diagnosis.\nEpoch 3, r0, episode 17, after a completion check:\n\n22\n\n\f\"The Scala code doesn’t explicitly filter NULL categories,\nbut the requirement says to exclude them. I’ll keep my\nimplementation as is since it matches the requirements.\"\nAction: run an output-schema and row-count check.\nOutput: 47 rows. External evaluation: 52 passed.\n\nD.3\n\nN EGATIVE : C HECK THE S TATED ACCEPTANCE C ONDITIONS\n\nProblem. The task asks the agent to build FFmpeg 0.10.16. It also requires ldd to show\nlibavcodec, libavformat, and libx264. All three epoch-1 rollouts fail, forming a Negative group. In r0, the binaries can convert and inspect a video, but ldd lists only libx264. The\nother two libraries are static archives. The agent still declares completion twice without running a\ncommand. The external evaluator reports one failed test and nine passed tests.\nChange. No successful trajectory is needed to see this mismatch. The task names the required\nlibraries, and the terminal shows which ones are linked. The Negative analysis proposes asking for\nfresh acceptance checks before allowing an empty completion. This finding and another finding\nlead to completion integrity guard in generation 6. The new loop reads the acceptance\nchecklist from the task. It shows the checklist again when the agent declares completion without\ncommands. It then asks the agent to run the checks. The variant is promoted, and this check is later\nincluded in planning with guard.\nLater observation. The task remains a Negative group in epoch 2. In epoch 3, it uses generation\n14, and all three rollouts pass. In r0, the loop repeats the acceptance checklist at episode 34. The\nagent responds by writing and running a verification script. The script includes ldd checks. Later\nterminal output lists all three required libraries, and all ten external tests pass. Thus, the later trace\nshows the requested change in behavior: the agent runs explicit checks instead of only repeating a\ncompletion claim.\nListing 8: FFmpeg: missing linkage in the original case and explicit verification in a later run.\nAddresses and unrelated output are omitted.\nEpoch 1, r0, linkage check:\nldd /usr/local/bin/ffmpeg 2&gt;&amp;1 |\ngrep -E ’libavcodec|libavformat|libx264’\nOutput: libx264.so.164 only.\nEpisodes 125 and 126: \"commands\": [], \"task_complete\": true\nExternal evaluation: 1 failed, 9 passed.\nEpoch 3, r0, episode 34:\nLoop: repeats the task’s acceptance checklist.\nAgent: writes and runs /tmp/verify_ffmpeg.sh.\nLinkage output visible at episode 38:\nlibavformat.so.53 =&gt; /usr/local/lib/libavformat.so.53 (...)\nlibavcodec.so.53 =&gt; /usr/local/lib/libavcodec.so.53 (...)\nlibx264.so.164 =&gt; /lib/x86_64-linux-gnu/libx264.so.164 (...)\nExternal evaluation: 10 passed.\n\nD.4\n\nP OSITIVE : AVOID S HELL R ETRIES W HEN W RITING F ILES\n\nProblem. This case comes from the Tool Use evolution run. The task asks the agent to fix a Zip\nSlip vulnerability in a Go file upload server. All three epoch-2 rollouts succeed, forming a Positive\ngroup, but they take 41, 24, and 43 episodes. In r0, the agent calls write file with multi-line\nGo code at episode 3. The tool dispatcher rejects the newlines and sends the call to the shell. The\nshell returns write file: command not found. The agent then retries with other ways to\nwrite the file. It eventually passes all 60 tests.\n23\n\n\fTable 11: Difficulty distributions of different evolution datasets.\nDifficulty Distribution\n\n0–20%\n\n20–40%\n\n40–60%\n\n60–80%\n\n80–100%\n\nMedium-centered\nHard &amp; Easy\n\n10%\n35%\n\n15%\n10%\n\n50%\n10%\n\n15%\n10%\n\n10%\n35%\n\nChange. The Positive analysis identifies the extra work caused by this failed helper call. It proposes routing write file and edit block by the command name and passing the remaining text as file content. The editor combines this finding with a parser-recovery finding to create\ntools/combined robust.py in generation 9. The variant passes review and sanity checks\nand is promoted. All four sanity rollouts select the new Tools variant.\nLater observation. In epoch 3, the same task uses combined robust in generation 12. Its\nmulti-line dispatch code is unchanged from generation 9. At episode 4, r0 again calls write file\nwith multi-line Go code. This time, the helper writes the file directly and returns wrote 2204\nbytes. All 60 tests pass, and r0 takes 26 episodes. Across the three rollouts, all rewards remain 1,\nwhile episode counts change from [41, 24, 43] to [26, 18, 31]. The mean falls from 36 to 25 episodes.\nListing 9 shows the change in tool behavior.\nListing 9: A successful task with avoidable helper retries, followed by a successful run using the\npromoted Tools variant. Go source is omitted.\nEpoch 2, r0, episode 3:\nwrite_file /opt/fileserver/extract.go package main\n[multi-line Go source]\nNext observation:\nbash: write_file: command not found\nFinal result: reward 1; 41 episodes; 60 tests passed.\nEpoch 3, r0, episode 4:\nwrite_file /opt/fileserver/extract.go package main\n[multi-line Go source]\nNext observation:\nwrote 2204 bytes to /opt/fileserver/extract.go\nFinal result: reward 1; 26 episodes; 60 tests passed.\n\nWhat the cases show. The Contrastive case identifies a requirement to preserve. The Negative\ncase identifies a check to repeat. The Positive case identifies a tool failure that causes extra work.\nEach finding contributes to a promoted module update. Later traces show the intended behavior and\nsuccessful task results, with fewer episodes in the Positive example. These runs also contain other\nupdates, so the comparisons do not isolate the effect of a single change.\n\nE\n\nT HE C URATION OF D IFFERENT DIFFICULTY SETTINGS\n\nAs shown in Table. 11, we construct two SWE-related evolution sets with different difficulty distributions. We estimate the difficulty of each instance based on the success rate of eight trajectories\ngenerated by four foundation models: MiniMax M2.7, GLM-5.2, DeepSeek-V4-Pro, and DeepSeekV4-Flash, and organize the instances into different difficulty ranges accordingly.\n\nF\n\nT HE E VOLUTION C URVE\n\nTo investigate the evolution process of ModularRSI, we evaluate harnesses from successive RSI\ngenerations on TerminalBench 2.0, as shown in Fig. 6. We report both task accuracy, computed\nfrom benchmark-provided rewards, and LLM-based trajectory scores. Specifically, we use Opus4.8 to assess the task-solving trajectories generated by each harness using the prompt provided in\nListing 10.\n24\n\n\f80\n\nAcc\nJudge\n\n74.0\n\n70\n\n60\n52.2\n\n50\n\n40\n\n0\n\n3\n\n6\n\n9\n\n12\n\nGeneration\n\n15\n\n18\n\n22\n\nFigure 6: Accuracy variation during evolution under different generation on TerminalBench 2.0.\nListing 10: Prompt used for LLM-based trajectory evaluation.\nYou are an expert evaluator of LLM agent trajectories.\nGiven a task and the corresponding agent trajectory, evaluate the\ntrajectory based only on observable actions, tool interactions,\nenvironment feedback, and the final outcome.\nTask:\n{TASK_DESCRIPTION}\nTrajectory:\n{TRAJECTORY}\nEvaluate the trajectory along the following five dimensions:\n1. Task Effectiveness:\nHow effectively the agent makes progress toward and satisfies the task\nrequirements.\n2. Interaction Quality:\nHow appropriately and accurately the agent interacts with tools and the\nenvironment, including its response to feedback and errors.\n3. Reasoning Process Reliability:\nWhether the observable decision process is coherent, evidence-driven,\nand appropriately validated.\n4. Context and State Management:\nHow well the agent maintains task constraints, intermediate findings,\nenvironment state, and prior observations throughout the trajectory.\n5. Efficiency and Robustness:\nWhether the agent avoids unnecessary actions and recovers effectively\nfrom errors, uncertainty, or unexpected environment behavior.\nScore each dimension independently from 1 to 5:\n1 = Very Poor\n2 = Poor\n3 = Adequate\n4 = Good\n5 = Excellent\nDo not infer that all dimensions are good simply because the task\n\n25\n\n\fsucceeds, or poor simply because it fails. Base each score on concrete\nevidence from the trajectory.\nCompute the overall score as the mean of the five dimension scores,\nand normalize it to a 0--100 scale.\nReturn only:\n{\n\"task_effectiveness\": &lt;1-5&gt;,\n\"interaction_quality\": &lt;1-5&gt;,\n\"reasoning_process_reliability\": &lt;1-5&gt;,\n\"context_and_state_management\": &lt;1-5&gt;,\n\"efficiency_and_robustness\": &lt;1-5&gt;,\n\"overall_score\": &lt;1.0-5.0&gt;,\n\"normalized_score\": &lt;0-100&gt;\n}\n\n26\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"