"<!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>Harness-S: Learning from Sibling Harnesses for\nGeneralizable Agent Training\nKangning Zhang1 , Wenxiang Jiao2,# , Bowen Fang3 , Shuai Shao1 , Jiachen Zhu1 , Rong Shan1 ,\nShijian Wang4 , Hao Wang5 , Yuan Lu2,# , Weiwen Liu1,# , Weinan Zhang1,#\n1\n4\n\nShanghai Jiao Tong University, 2 Xiaohongshu Inc., 3 Zhongguancun Institute of Artificial Intelligence,\nSoutheast University, 5 Carnegie Mellon University\n\narXiv:2611.04277v1 [cs.AI] 3 Nov 2026\n\n#\n\nCorresponding authors\n\nHarness evolution from a common base exhibits Locality, Complementarity, and Nonstationarity: variants\nrepair different failures, and their utility changes as the policy learns. Rather than seeking a universally\nsuperior harness, we introduce Harness-S to selectively rescue failures of a base execution system through\nsibling harnesses and transfer the resulting capabilities into a single policy that remains effective under\nthe original harness. Directional Harness Evolution develops specialized sibling harnesses along distinct\nrepair directions, forming a reusable Sibling Harness Pool that remains fixed during policy training. Complementary Harness Rescue Training invokes this pool only when all initial attempts under the base harness\nfail. The same policy generates fresh rollouts under selected auxiliary harnesses, and these trajectories replace the failed group for reinforcement learning. An Adaptive Harness Router selects the Top-k variants\nusing Harness Behavior Profiles and voting across multiple LLMs. Policy-aware profile re-anchoring refreshes\nthis evidence as the policy learns. Across AppWorld, SWE-Gym, and DBBench, the trained policy substantially outperforms policy-only training when returned to the original base harness. Behavioral analyses and\nheld-out cases support the transfer of harness-elicited behaviors into the policy itself. Reusing the router for\nRank-1 inference provides additional gains at the same executor rollout count.\nContact: zhangkangning@sjtu.edu.cn, wenxiangjiaonju@gmail.com, liuww@sjtu.edu.cn\nCode: https://github.com/DeepExperience/Harness-S\nKeywords: Language model agents, agent harnesses, reinforcement learning, harness complementarity, harness routing\n\n1\n\nIntroduction\n\nAn agent’s behavior depends jointly on its model policy and its harness: the prompts, tool interfaces, context and\nmemory mechanisms, and execution rules that govern interaction with the environment. Even with model weights\nheld fixed, the harness shapes the information the policy receives and how its decisions become actions. ReAct\ndemonstrates the value of interleaving reasoning and action (Yao et al., 2023b), while SWE-agent shows how the\ndesign of the agent–computer interface affects task execution (Yang et al., 2024b). Recent methods automate the\noptimization of prompts, workflows, and harness code from execution feedback (Hu et al., 2025; Zhang et al., 2025;\nAgrawal et al., 2026; Lee et al., 2026). A central question is whether specialized execution support can improve the\npolicy itself, so that its benefits persist under the original harness.\nWe study harness evolution from a common base H0 within a single execution system, a setting motivated by recent\nwork such as Meta-Harness (Lee et al., 2026), HarnessX (Chen et al., 2026b), and Life-Harness (Xu et al., 2026). We call\nthe resulting variants sibling harnesses: they share the execution foundation of a complete system, such as DeepSeek\nHarness (DeepSeek-AI, 2026), while modifying how it supports the policy. Within this setting, we observe three\nproperties:\n• Locality. Harness edits often repair a subset of failures while introducing regressions on previously solved\ntasks (Figure 1a). Their effects depend on the failures being targeted, so successive variants develop distinct\nstrengths.\n• Complementarity. Sibling harnesses can recover one another’s errors. Their oracle union covers more tasks\nthan individual variants or repeated sampling with H0 at the same rollout count (Figure 1b), showing the\nbenefit of diverse execution behaviors.\n1\n\n\fRegressed\n\nRepaired\n\nSingle Hi\n\n26\n\nH2 16\n\n24\n9\n\nH3\n\n19\n\nH4 17\n20\n\n0\n\n10\n\n20\n\n+8\n+10\n\n20\n10\n\n+15\n\n+3\n30\n\nStep\n\n65.65%\n\nSolved tasks (%)\n\n11\n\nH1\n\nUnion (oracle)\n\nH0 pass@K\n\nΔ Solved\n\n58.02%\n\n60\n40\n20\n0\n\n48.85%\n37.40%\n\n31.68%\n\nHi only\n\nH0 only\n\nBoth correct\n\nBoth wrong\n\nH1 : 0\n\n39\n\n26 11\n\n74\n\n+15\n\nH1 : 10\n\n48\n\n18 19\n\n65\n\n−1\n\nH1 : 20\n\n57\n\n18\n\n53\n\n−4\n\n42.75% 44.66%\n\nH2 : 0\n\n34\n\n22 16\n\n34.73% 35.50% 32.82%\n\nH2 : 10\n\n44\n\n27\n\n37.79%\n\nH1\n\nH2\n\nH3\n\nH4\n\n1\n\n2\n\n3\n\n4\n\nΔ Solved\n\n58\n\nH2 : 20\n0\n\n+6\n\n78\n23\n\n22\n50\n\n22\n\n56\n\n21\n\n49\n\n100\n\n+4\n+1\n150\n\nRollout count K\n\n(a) Locality\n\n(b) Complementarity\n\n(c) Nonstationarity\n\nFigure 1 Locality, complementarity, and nonstationarity in harness evolution (Qwen3.5-4B, AppWorld). (a) Repaired\nand regressed tasks relative to H0 ; ∆ Solved denotes repaired minus regressed tasks. (b) Individual success rates (bars), oracle\ncoverage using one rollout under each of H1 , . . . , HK (purple), and H0 pass@K using the same number of rollouts (orange). (c)\nPaired outcomes for fixed harnesses as the policy is trained; ∆ Solved is measured against H0 at each checkpoint.\n\n• Nonstationarity. A harness’s utility changes as the executing policy learns. Its advantage over H0 can become\na disadvantage, and the ranking of variants can reverse across policy checkpoints (Figure 1c).\nThese properties expose two limitations of harness optimization. (i) Combining local repairs into a universal harness\nis extremely difficult. Repairs may impose incompatible execution requirements, and even compatible edits can\ninterfere with one another. A single accumulated design can therefore lose the strengths of its constituent variants.\n(ii) Coupled harness–policy evolution incurs substantial evolution cost and limits harness reuse. Alternating harness\nand policy updates (Chen et al., 2026b,c) requires repeated generation and validation of variants as earlier repairs\nbecome less useful to the changing policy. Gains achieved by the evolved pair may also fail to transfer when the\npolicy returns to the base harness H0 . We introduce Harness-S to selectively rescue failures of the base system with\nspecialized sibling harnesses and transfer the resulting capabilities into a single policy that remains effective under the\noriginal H0 .\nDirectional Harness Evolution first develops variants along distinct repair directions. Starting from H0 , we diagnose failures in execution trajectories and let each child harness target a limited set of related causes. Joint validation\ncoverage selects the next parent set; all executable, protocol-compliant variants are retained. The resulting large,\nreusable Sibling Harness Pool preserves distinct repair specializations and remains fixed throughout policy training.\nComplementary Harness Rescue Training uses this pool to expand exploration on tasks the policy fails to solve\nwith H0 . When all initial rollouts for a task fail, the Adaptive Harness Router selects the Top-k auxiliary harnesses, and the same policy generates fresh rollouts under them from the task’s initial state. These rescue rollouts\nreplace the failed group for reinforcement learning, allowing the shared policy to learn from its own actions under\ncomplementary execution support. The objective is to retain the acquired behaviors when the policy returns to H0 .\nThe Adaptive Harness Router matches tasks to sibling harnesses using behavioral evidence and independent votes\nfrom multiple LLMs. Harness Behavior Profiles describe the task conditions under which each variant helps or hinders the current policy relative to H0 . To account for nonstationarity, policy-aware profile re-anchoring periodically\nrefreshes the profiles from current-policy validation trajectories, keeping routing aligned with the policy as it learns.\nOur contributions are fourfold:\n• We systematically identify Locality, Complementarity, and Nonstationarity in harness evolution and introduce\nHarness-S to learn complementary sibling capabilities in a single policy that remains effective under the original H0 .\n• We go beyond the best harness with Directional Harness Evolution: a pipeline that branches along distinct\nrepair directions and preserves complementary variants in a reusable Sibling Harness Pool.\n• Complementary Harness Rescue Training restores learning signals when all initial H0 attempts fail. The\nAdaptive Harness Router selects complementary siblings to recover successful alternatives and within-task\nreward contrasts for shared-policy optimization.\n\n2\n\n\fa Offline Harness Evolution\n\nH1\n\nb Complementary Harness Rescue Training\n\nH0\nH2\n\nc\n\nupdate policy\n\nH3\n\nH4\n\nsome succeed\n\nRound 3 Round 2\n\nall fail\n\nH5\n\nH6\n\nH7\n\nH9\n\nAdaptive Harness\nRouter\n\nH8\n\nH10\n\nH11\n\nH12\n\nH7\nH2\nH6\n⋮\n\nDirectional repair by distinct root cause\nH1\n\nBase\npolicy\n\nagent step\n\nroot cause\n\nedit H1\n\nguesses\nfield names\n\nread the\nschema first\n\nH5\n\nstops after\npage one\n\nkeep paging\nto the end\n\nH6\n\nroot-cause step\n\nSibling Harness Pool\n\nfailed run\n\nH1\n\nH2\n\nH3\n\nH4\n\nfixed during training\n\nH5\n\nH6\n\nH7\n\nsame policy, one rollout each\nH7 H2 H6 H1 H5 H8\nProfile re-anchoring\n\nH8 ⋯\n\nH3\n\nH4\n\nat checkpoints\n\nHow Router picks K harnesses for failed task x\n1\n\nrank weight\n¾\n½\n\n¼\n\nLLM1\n\nH7\n\nH2\n\nH6\n\nH1\n\nLLM2\n\nH7\n\nH6\n\nH2\n\nH5\n\nWhen\nplacing an order\nBehavior adds unrequested items\n\nLLM3\n\nH2\n\nH7\n\nH1\n\nH6\n\nValidation evidence\n\nTop-K\n\nH7\n\nH2\n\nH6\n\n⋯\n\nscore\n\n2.75\n\n2.25\n\n1.50\n\nH7\n\nvoter\n\nBehavior profile\nPrefer\nWhen\n\nchecking whether a desk\nwas returned this month\nBehavior filters name &amp; date jointly\n\nAvoid\n\nkeeps every child that runs, from every round\n\nH0\n\nRescue group replaces base rollouts\n\nTop-K\n\nval. success\nsimilar tasks\n\nKnowledge Transfer to Policy\n\n1 Learn from sibling harnesses\n\n8 rollouts\n\nPolicy πθ\n+ H0\n\nTrain\ntask\n\nGRPO update of shared policy\n\nRound 1\n\nstrong and diverse,\na parent next round\n\nSibling Harness Pool\nH6\npaginate every source\n\nH7\n\nfilter name &amp; date\n\nH8\n\ncomplete the task\n\nrescue training\n\nTrained\npolicy\n\nUseful behaviors become part of the policy.\n\n2 Stronger policy under H0\nAppWorld example: collect all promo codes\nfrom inbox, spam, and archive; then submit.\nBase policy\n+ H0\n\nTrained policy\n+ H0\n\nPage 1 only\n\nAll pages\n\nLearned behavior persists under H0.\n3 Rank-1 adds further gains\nSame trained\n+\npolicy\n\nH6\n\nRank-1\nAdditional task-specific gains (illustrative rollouts).\n\nFigure 2 Overview of Harness-S. (a) Directional Harness Evolution develops distinct repairs and retains valid variants in a\nSibling Harness Pool, fixed during policy training. (b) Complementary Harness Rescue Training routes all-failure tasks to Top-K\nauxiliary harnesses and updates the shared policy, with periodic profile re-anchoring. (c) Rescue training transfers knowledge\nfrom sibling harnesses into the shared policy, improving execution under the original H0 ; Rank-1 routing provides further gains\n(illustrative AppWorld example).\n\n• Across AppWorld, SWE-Gym, and DBBench, Harness-S outperforms policy-only training under H0 at both\nmodel sizes. Behavioral analyses, held-out cases, and reduced routing dependence support capability transfer;\nRank-1 routing adds gains, and improvements persist under unseen harnesses without further updates.\n\n2\n\nRelated Work\n\n2.1\n\nHarness Evolution\n\nExecution design shapes the behavior expressed by a language model, from reasoning and action representations (Yao\net al., 2023b; Xu et al., 2023; Wang et al., 2024b) to interaction interfaces and search (Yang et al., 2024b; Zhou et al.,\n2024a). Automatic optimization extends this design space through instruction refinement (Yang et al., 2024a; Yuksekgonul et al., 2024), evolutionary prompt search (Fernando et al., 2023; Guo et al., 2025), and program compilation\nor reflective selection (Khattab et al., 2023; Agrawal et al., 2026). Memory, skill libraries, and context adaptation\nprovide another route to improving execution from experience (Shinn et al., 2023; Wang et al., 2023, 2024c; Zhang\net al., 2026f). At the system level, agent design and workflow search optimize executable structures (Hu et al., 2025;\nZhang et al., 2025), while code evolution, end-to-end harness optimization, and runtime adaptation develop broader\ninterventions (Zhang et al., 2026a; Lee et al., 2026; Xu et al., 2026). Harness-S uses directional evolution to retain\ncomplementary local repairs in a reusable sibling pool. The implementations remain fixed during policy training;\ntheir behavioral profiles are refreshed to track changes in utility as the shared policy learns.\n\n2.2\n\nHarness–Policy Optimization\n\nReinforcement learning improves agent behavior through outcome feedback (Shao et al., 2024; Wang et al., 2025; Feng\net al., 2025; Wei et al., 2025), supported by executable environments and training interfaces (Pan et al., 2025; Luo et al.,\n2025). Interactive benchmarks cover web services (Yao et al., 2023a; Zhou et al., 2024b; Yao et al., 2024), applications\nand databases (Trivedi et al., 2024; Liu et al., 2025), and software engineering (Jimenez et al., 2024). Joint methods\nalternate harness and policy updates (Kim et al., 2026; Chen et al., 2026c), evolve matched pairs (Chen et al., 2026a),\nor learn runtime coordination (Ning et al., 2026). Model routing (Chen et al., 2023; Ong et al., 2025; Chen et al., 2024)\nand response ensembles (Jiang et al., 2023; Wang et al., 2024a) provide related approaches to allocating execution\n3\n\n\fresources.\nHarnessBandit schedules one harness per optimizer step using learnability and gradient-based cross-harness transferability signals (Wei et al., 2026). HarnessX couples harness evolution with cross-harness GRPO over a shared replay\nbuffer, grouping trajectories by task across harness and policy versions (Chen et al., 2026b). Harness-S instead asks\nwhether specialized harnesses can selectively rescue failures of a base execution system and transfer the resulting\ncapabilities into a single policy that remains effective under the original harness. Its allocation unit is a failed task\nunder H0 : only all-failure groups trigger fresh rollouts from the current policy across selected siblings in a fixed pool.\nEvaluation under H0 tests whether the resulting improvement survives removal of auxiliary execution support.\n\n2.3\n\nRecursive Self-Improvement\n\nRecent surveys distinguish self-improvement by whether updates modify model parameters or the surrounding scaffold (Ren et al., 2026). Program-level approaches improve optimization code or agent logic that supports subsequent improvements (Zelikman et al., 2024; Yin et al., 2025; Zhang et al., 2026a). AIDE2 applies this loop to research\nagents (Srikanth et al., 2026), while RRSI regularizes harness edits to favor transferable mechanisms (Xia et al., 2026).\nSpecForge refines behavioral specifications from execution feedback (Cheng et al., 2026); self-rewarding models and\nSEAL instead update parameters using self-generated rewards or adaptation data (Yuan et al., 2024; Zweiger et al.,\n2025). Harness-S uses a fixed sibling pool to rescue base-system failures and transfer the resulting behaviors into\none policy; policy updates refresh the evidence used for later rescue allocation. Its self-improvement loop operates\nover policy parameters and experience selection, with a fixed optimizer, verifier, and training-time harness pool,\nrather than recursively redesigning the improvement algorithm. Appendix H further discusses agent RL training,\nknowledge transfer, harness editing, and reusable skills.\n\n3\n\nHarness-S\n\nHarness-S uses selective rescue of H0 failures to transfer useful behaviors from sibling harnesses into a shared policy\n(Figure 2). Directional evolution builds a reusable pool of specialized variants; rescue training uses them to explore\ntasks that defeat the base harness. The Adaptive Harness Router selects variants using behavioral evidence that is\nrefreshed as the policy learns, and can be reused at inference.\n\n3.1\n\nPolicy, Harness, and Task Outcome\n\nA policy and its harness jointly determine how an agent executes a task. For task x, the policy πθ generates a\ntrajectory τ ∼ pθ,H (· | x) under harness H, with verifier-defined outcome Rx (τ ) ∈ {0, 1}. The harness controls the\ncontext and execution rules through which the policy interacts with the environment. We define its utility for that\npolicy and task as the expected success rate,\nuθ (H, x) = Eτ ∼pθ,H (·|x) [Rx (τ )].\n\n(1)\n\nThe Sibling Harness Pool H = {H0 , H1 , . . . , HM } contains variants descended from a common base H0 . All variants\nshare the execution foundation, environment interfaces, and task verifier, and use the same policy parameters. Their\nrelative utility varies across tasks and policy checkpoints, motivating task-specific selection that adapts as the policy\nlearns.\n\n3.2\n\nDirectional Harness Evolution\n\nStarting with P1 = {H0 }, we execute each parent H ∈ Pg on fresh training tasks to derive repair directions Dg (H).\nEach direction groups related local root causes supported by multiple failed tasks; the editor receives the parent and\nthese causes:\n\b\nCg = Edit(H, d) : H ∈ Pg , d ∈ Dg (H) ,\n(2)\nwhere Edit(H, d) modifies the parent’s components to address the causes in d.\n\n4\n\n\fParent selection maximizes joint validation coverage. We select at most B parents from Cgvalid , this round’s\nexecutable, protocol-compliant children. Let V(H) denote the validation tasks solved by H with the frozen policy:\n[\n(3)\nPg+1 ∈\narg max\nV(H) .\nP⊆Cgvalid , 1≤|P|≤B\n\nH∈P\n\nEach task counts once, favoring parents that cover one another’s failures.\nThe Sibling Harness Pool retains all valid children, including those not selected as parents:\nHg = Hg−1 ∪ Cgvalid ,\n\nH0 = {H0 }.\n\n(4)\n\nAfter T generations, H = HT is the fixed pool used for policy training. Appendices E and F report repair diversity\nand evolution prompts and settings.\n\n3.3\n\nComplementary Harness Rescue Training\n\nTraining uses the pool to revisit tasks that the policy fails to solve under H0 . For each task x, the current policy\n(s)\ngenerates K rollouts under H0 , forming G0 (x). If all attempts fail, the router selects a set SK (x) of distinct auxiliary\nharnesses using the latest calibration s (Equation (10)). The same policy makes one fresh attempt under each selected\nharness from the task’s initial state, yielding GR (x). The group retained for training is\n(\nG0 (x), maxτ ∈G0 (x) Rx (τ ) = 1,\nG(x) =\n(5)\nGR (x), otherwise.\nComplementarity gives the policy alternative paths through difficult tasks. Rescue groups containing successes and failures provide reward contrasts absent from the initial attempts. For a retained group of trajectories τx,j ,\nGRPO (Shao et al., 2024) assigns the relative advantage\nax,j =\n\nRx (τx,j ) − r̄x\n,\nmax(σx , ϵ)\n\n(6)\n\nHere r̄x and σx are the group’s reward mean and standard deviation, and ϵ &gt; 0 stabilizes division. The shared optimizer forms training advantages Ax,j from these group-relative rewards and maximizes the clipped token objective\nπθ (y | cH )\n,\nπθold (y | cH )\n\b\nℓ(ρ, A) = min ρA, clip(ρ, 1 − η− , 1 + η+ )A .\nρ=\n\n(7)\n\nHere y is a policy token in its generating harness context cH . The ratio compares current parameters θ with preupdate parameters θold ; η− , η+ are the clipping widths. Only policy tokens enter the objective. Algorithm 1 summarizes training; optimizer details appear in Appendix B.\n\n3.4\n\nAdaptive Harness Router\n\nHarness Behavior Profiles describe when a sibling helps or hinders the current policy:\n\u0001\n(s)\n(s)\n(s)\nPi = Pi,prefer , Pi,avoid ,\ne = {When : w, Behavior : b}.\n\n(8)\n\nAn LLM groups behavioral differences from paired validation trajectories into entries e, where w specifies the task\ncondition and b the behavior relative to H0 (Appendix D).\nVoting aggregates independent LLM rankings. Each of V voters uses the task, current profiles, validation success\nrates, and outcomes on similar tasks:\nqs (H | x) =\n\nV\nX\n\n\u0001\nω rankv,s (H | x) ,\n\n(9)\n\nv=1\n(s)\n\nSK (x) = TopKH∈H\\{H0 } qs (H | x).\n5\n\n(10)\n\n\fAlgorithm 1 Complementary Harness Rescue Training\nRequire: Policy πθ ; fixed pool H; validation tasks\n1: Construct profiles and validation evidence\n2: for each training batch do\n3:\nRe-anchor profiles if calibration is due\n4:\nfor each task x in the batch do\n5:\nSample K rollouts under H0 as G0 (x)\n6:\nif all rollouts fail then\n(s)\n7:\nSelect SK (x) with the router\n8:\nForm GR (x) with one fresh rollout per harness\n9:\nend if\n10:\nRetain G(x) using Equation (5)\n11:\nend for\n12:\nUpdate θ on retained groups using GRPO\n13: end for\n14: Re-anchor profiles with the final policy\nHere ω decreases with rank and is zero for unlisted candidates; the selected K distinct harnesses generate GR (x) in\nEquation (5).\nPolicy-aware profile re-anchoring refreshes the router’s evidence at checkpoints s. With policy πθs frozen, we\n(s)\ncollect validation trajectories and outcomes Ei under each Hi and recompute\n(s)\n\nPi\n\n(s)\n\n(s) \u0001\n\n= Profile Ei , E0\n\n.\n\n(11)\n\nPaired executions share tasks, initial states, and execution limits. Profiles and validation statistics are refreshed\ntogether and used until the next checkpoint; test outcomes are excluded.\n\n3.5\n\nKnowledge Transfer to Policy\n\nThe trained policy πθ∗ consolidates behaviors from sibling harnesses through rescue updates; these behaviors can\npersist under the original H0 . The behavioral cases in RQ4 and reduced dependence on auxiliary harnesses in RQ5\n(Sections 4.5 and 4.6) support this transfer.\nRank-1 routing adds further gains to the same trained policy. After final profile re-anchoring, we select from the\nfull pool, including H0 :\nb\nH(x)\n= arg max q∗ (H | x).\n(12)\nH∈H\n\nSelection precedes execution at a matched rollout count; Appendix C details voting.\n\n4\n\nExperiments\n\nWe examine whether complementary rescue improves agent performance and transfers useful behaviors into the\npolicy:\n• RQ1: Does Harness-S improve task success, including under the original H0 ?\n• RQ2: Does complementary rescue provide better learning signals than resampling or fixed harness mixtures?\n• RQ3: How do rescue allocation and profile re-anchoring affect recovery and final performance?\n• RQ4: Which behaviors change under H0 , and do rescue behaviors transfer to untrained instances?\n• RQ5: Do router ranks predict performance, and how does routing benefit change after training?\n• RQ6: Do policy improvements transfer to unseen harnesses without further updates?\n\n6\n\n\fTable 1 Main results on long-horizon agent tasks. All scores are percentages; higher means are better. Bold marks the best\nmean at each capacity among the compared non-frontier methods. Hbest is one selected harness held fixed across test tasks;\nHrank1 is the router’s top-ranked harness selected separately for each task. DSH denotes DeepSeek Harness. Scores are averaged\nover three independent randomized runs, each with three executor rollouts per task. Harness-S entries report mean ± standard\ndeviation across these runs.\nModel / method\n\nGPT-6-Sol\nDeepSeek-v4-Flash\nGLM-5.3-Flash\nBase model\nGRPO\nGRPO (H0 rescue)\nGRPO Mixed Harness\n\n(DSH H0 + Claude Code)\n\nGRPO Mixed Harness\n(DSH H0 + Top-4)\n\nMeta-Harness\nHarness-S (HE only)\n\nWHALE\nHarnessForge\n\nHarness-S\nHarness-S\n\n4.1\n\nParam. Test harness\n\n—\n—\n—\n\nH0\nH0\nH0\n\n4B\n9B\n4B\n9B\n4B\n9B\n4B\n9B\n4B\n9B\n4B\n9B\n4B\n9B\n4B\n9B\n4B\n9B\n4B\n9B\n4B\n9B\n\nH0\nH0\nH0\nH0\nH0\n\nHbest\nHrank1\n\nHbest\nHbest\n\nAppWorld\n\nSWE-Gym\n\nDBBench\n\nPass@3\n\nAvg@3\n\nPass@3\n\nAvg@3\n\nPass@3\n\nAvg@3\n\n82.82\n81.68\n80.15\n\nFrontier models\n76.34\n77.61\n65.65\n\n53.13\n51.88\n46.88\n\n47.50\n46.25\n43.13\n\n71.33\n75.00\n76.67\n\n68.89\n70.44\n72.11\n\nBase model and policy-only training\n42.62\n31.93\n19.38\n50.00\n39.69\n23.13\n60.31\n48.98\n24.38\n64.89\n53.31\n28.13\n61.83\n51.91\n25.63\n65.65\n54.83\n29.38\n57.63\n46.69\n25.63\n62.21\n50.89\n29.38\n58.78\n47.84\n26.88\n63.36\n52.16\n30.63\n\n17.50\n20.63\n22.50\n25.63\n23.33\n26.88\n23.33\n26.88\n24.38\n27.71\n\n59.00\n63.00\n66.67\n69.67\n67.33\n70.67\n65.67\n68.67\n64.67\n67.67\n\n56.89\n60.22\n64.00\n67.00\n64.67\n67.78\n62.78\n65.89\n61.89\n65.00\n\nFrozen policy + harness evolution\n48.09\n36.26\n21.88\n53.44\n42.88\n25.63\n56.87\n45.42\n25.00\n61.45\n50.13\n29.38\n\n20.00\n23.13\n23.75\n27.08\n\n62.67\n65.67\n69.33\n72.67\n\n60.11\n62.78\n66.78\n69.78\n\nPolicy–harness co-evolution\n63.36\n52.93\n29.38\n68.70\n58.02\n33.75\n59.54\n49.75\n27.50\n64.89\n54.83\n31.25\n\n26.88\n30.63\n25.00\n28.54\n\n70.67\n74.00\n69.00\n72.00\n\n68.11\n71.11\n66.22\n69.22\n\nHarness-S: offline evolution + policy training\n67.56 ± 1.87 56.87 ± 1.47 38.75 ± 2.22 28.75 ± 1.73 73.33 ± 2.36 71.00 ± 1.84\nH0\n72.52 ± 1.65 62.34 ± 1.28 40.00 ± 2.04 32.50 ± 1.51 76.33 ± 2.13 73.44 ± 1.67\n68.32 ± 1.74 61.45 ± 1.35 42.50 ± 2.04 32.29 ± 1.64 75.00 ± 2.23 72.67 ± 1.75\nHrank1\n75.19 ± 1.56 67.05 ± 1.20 43.75 ± 1.84 36.25 ± 1.45 78.00 ± 1.96 75.67 ± 1.55\n\nExperimental Setup\n\nWe evaluate Qwen3.5-4B and Qwen3.5-9B on AppWorld (Trivedi et al., 2024), DBBench (Liu et al., 2025),\nand SWE-Gym (Pan et al., 2025), covering application APIs, databases, and software engineering. Harness\nediting and policy optimization use training tasks; validation tasks guide complementary parent selection and profile\nanchoring. Pass@3 measures the fraction of tasks solved at least once, and Avg@3 averages success over three\nrollouts per task. Main-table scores are means over three independent randomized runs, with across-run standard\ndeviations for Harness-S. Routed evaluation selects one harness before each task’s three attempts. All experiments\nuse eight NVIDIA H800 GPUs.\nOur comparisons distinguish policy learning, harness evolution, and joint harness–policy adaptation (Table 1). The GRPO controls include H0 rescue and fixed mixtures with Claude Code or sibling harnesses, all evaluated\nunder H0 . WHALE uses rejection-sampling fine-tuning and HarnessForge adapts branch-specific policies; the GRPO\ncontrols share our optimizer. Meta-Harness, WHALE, and HarnessForge use one selected Hbest across test tasks;\nHrank1 denotes task-specific selection. Harness-S (HE only) freezes the starting policy, while full Harness-S evaluates\nthe same trained checkpoint under H0 and Hrank1 to distinguish retained policy improvement from inference-time\nsupport.\n7\n\n\fGRPO (H0 rescue)\n\nGRPO\n\nGRPO Mixed Harness\n(DSH H0 + Claude Code)\n100%\n\n100%\n\n75%\n\n75%\n\n50%\n\n50%\n\nHarness-S\n\nGRPO Mixed Harness\n(DSH H0 + Top-4)\n70%\n60%\n50%\n40%\n\n25%\n\n0%\n\n25%\n\n1–10\n\n11–20\n\n21–30\n\n31–40\n\n0%\n\n30%\n\n1–10\n\n11–20\n\n21–30\n\n31–40\n\n20%\n\n0\n\n10\n\n20\n\n30\n\nTraining stage\n\nTraining stage\n\nTraining step\n\n(a) Effective Group rate\n\n(b) Effective training-token share\n\n(c) H0 validation success\n\n40\n\nFigure 3 Training signals and policy improvement for Qwen3.5-4B on AppWorld. (a) Fraction of effective groups containing\nboth successes and failures. (b) Fraction of retained policy tokens belonging to these effective groups. Both quantities are\naggregated within each ten-step stage. (c) Checkpoint success on the same validation set under H0 .\n\nGRPO with H0 rescue and Harness-S share the all-failure trigger and per-task rescue allocation; their total\nsampling differs with rescue frequency. Dataset splits and implementation protocols appear in Appendices A\nand C, with costs reported in Appendix G.\n\n4.2\n\nOverall Performance (RQ1)\n\nHarness-S outperforms policy-only training, frozen-policy harness optimization, and joint adaptation\nunder both H0 and Hrank1 (Table 1). The routed 4B policy exceeds 9B GRPO with H0 rescue on every reported\nmetric; the routed 9B policy also exceeds the frontier-model references on DBBench.\nThe gains combine retained policy improvement with better execution support. Harness-S outperforms\nplain GRPO and GRPO with H0 rescue across all benchmark–capacity settings under H0 , indicating a benefit beyond\nadditional sampling. With the policy frozen, Harness-S (HE only) outperforms Meta-Harness, supporting the value\nof the sibling pool and task-specific selection. Routing the trained policy further improves both metrics in every\nsetting without increasing the executor rollout count. On AppWorld 4B, Harness-S outperforms H0 rescue with\nfewer rollouts and less training GPU time (Appendix G). Its full-pipeline GPU hours and external-model token use\nfall within the range of the joint-adaptation baselines.\n\n4.3\n\nLearning Mechanism (RQ2)\n\nSelective rescue supplies more within-task reward contrast than additional sampling or fixed harness\nmixtures. Figure 3 compares Qwen3.5-4B on AppWorld under GRPO, H0 rescue, the two fixed mixtures, and HarnessS. The Effective Group (EG) rate measures the fraction of retained groups containing both successes and failures.\nHarness-S leads in every stage, reaching 79.38% over the full run versus 70.94% for GRPO with H0 rescue and 64.69%\nfor standard GRPO. All-failure groups provide no within-task reward contrast; recovering some of these tasks supplies\nalternatives that GRPO can reinforce. Both fixed mixtures remain close to standard GRPO, suggesting that harness\ndiversity is more useful when directed toward tasks on which the base group fails.\nEffective groups also account for a larger share of the retained training tokens. The effective training-token\nshare counts policy tokens in effective groups relative to all retained policy tokens, accounting for differences in\ntrajectory length. Harness-S has the highest share throughout training, reaching 80.88% overall compared with 72.68%\nfor GRPO with H0 rescue. Its advantage therefore extends to the tokens used for optimization, accounting for the\nlengths of successful and unsuccessful trajectories.\nThese training advantages accompany stronger policy performance under H0 . From the same starting policy,\nHarness-S leads at every subsequent validation checkpoint and finishes at 63.33%, compared with 54.00% for GRPO\nwith H0 rescue and 48.00% for GRPO. Both fixed mixtures finish below GRPO despite intermediate gains from the\n\n8\n\n\fTable 2 Rescue success and final test performance on AppWorld (Qwen3.5-4B), in percent. Rule Router uses no Harness\nBehavior Profiles. Top-8 Fixed uses unchanged profiles; Top-8 Adaptive (Harness-S) uses profile re-anchoring. Bold marks the\nbest result; — denotes no rescue.\n\nSteps 1–10\nSteps 11–20\nSteps 21–30\nSteps 31–40\nPass@3\nAvg@3\n\nGRPO\n\nRandom\nHarness\n\n—\n—\n—\n—\n\n25.00\n18.18\n20.00\n25.00\n\n60.31\n48.98\n\n62.98\n50.76\n\nTop-4\n×2\n\nTop-8\nFixed\n\nTop-8\nAdaptive\n\nRescue success by training stage\n40.00\n26.67\n27.78\n44.44\n\n43.48\n43.75\n38.89\n33.33\n\n35.71\n24.24\n26.67\n38.89\n\n52.38\n66.67\n45.71\n50.00\n\nFinal test performance\n66.41\n52.93\n\n65.65\n55.60\n\n64.50\n52.16\n\n67.56\n56.87\n\nRule Router\n(w/o Profile)\n\nTable 3 Behavior frequencies under H0 (%). An LLM labels complete evaluation trajectories; percentages report the fraction\nexhibiting each behavior. Arrows indicate preferred directions.\nBehavior\n\nBase\n\nGRPO\n\nHarness-S\n\n22.9\n24.8\n13.8\n15.4\n69.2\n\n38.2\n20.5\n33.5\n30.1\n56.9\n\n67.6\n31.5\n38.3\n9.8\n69.4\n\n10.2\n15.4\n9.2\n16.3\n\n11.2\n13.3\n18.2\n23.5\n\n18.4\n48.5\n24.1\n27.5\n\nAppWorld\nSchema lookup before first API use ↑\nMultiple API calls in one execute block ↑\nExplicit pagination loops ↑\nRepeated execute code ↓\nRead-back after the last write ↑\nSWE-Gym\nAgent-written assertion checks ↑\nSwitch to assertions after blocked tests ↑\nFail-edit-retest of the same target ↑\nDiff inspection after the last edit ↑\n\nClaude Code mixture. The results support selective rescue as a source of learning signals whose benefits persist after\nauxiliary harness support is removed.\n\n4.4\n\nRescue Strategies (RQ3)\n\nTask-specific allocation and profile refresh improve rescue at a fixed rollout budget (AppWorld, Qwen3.54B; Table 2). Random Harness samples pool members, while Rule Router (without Profiles) ranks them by success\non similar validation tasks. LLM Router (4 × 2) allocates two rollouts to each of four selected harnesses; Top-8\nallocates one to each of eight, keeping the rescue rollout budget fixed. The fixed-profile Top-8 variant keeps its\nprofiles unchanged, while Harness-S re-anchors them during training. Rescue success measures the fraction of rescuetriggering tasks with at least one successful rollout (Appendix C).\nTask-specific selection improves rescue success across training stages. Both rule-based and LLM-guided strategies outperform random selection throughout training. Top-8 Adaptive also exceeds LLM Router (4 × 2), suggesting\nthat broader harness exploration recovers more failures than repeated sampling from fewer harnesses. Under the\nsame final AppWorld policy, individual siblings repair 11–15 base-harness failures, while the nine analyzed siblings\nrepair 29 in union (Appendix E). This is coverage obtained by executing each sibling once; routing must select candidates before observing their outcomes.\nAdaptive profiles improve routing over a fixed-profile Top-8 variant. With the rollout allocation held at one\nattempt per selected harness, re-anchoring yields higher rescue success in all four stages and improves final Avg@3\nby 4.71 percentage points. This comparison supports updating the router’s behavioral evidence as the policy learns.\nAll evaluated rescue strategies improve final test performance over GRPO, with Top-8 Adaptive achieving\nthe highest Pass@3 and Avg@3. The remaining strategies show a tradeoff: Rule Router achieves higher Pass@3\nthan LLM Router (4 × 2), but lower Avg@3. Rescue success therefore does not fully determine the downstream\nranking, although Top-8 performs best on both recovery during training and final test success.\n\n9\n\n\fTable 4 Two AppWorld behavior-transfer cases. All eight initial H0 attempts fail in training; the successful rescue enters an\napplied policy update. Held-out comparisons use H0 .\nStage\n\nObserved execution\n\nCase 1: Set intersection (held-out test instance)\nTraining rescue\nH2 selects liked songs that also occur in the library or playlists, then updates and sends the draft.\nThis successful rollout is used at update 10.\nGRPO\nUses a union of liked songs and the other sources, sending an overinclusive list. Failure.\nHarness-S\nApplies the intersection to the new song instances and sends the correct email. Success.\nCase 2: Account recovery (held-out validation instance)\nTraining rescue\nH5 completes a Venmo account workflow: reads email codes, resets the password, and verifies\nlogin. This successful rollout is used at update 3.\nGRPO\nOn the Amazon instance, requests a reset code and reads the inbox but leaves the password\nunchanged. Failure.\nHarness-S\nReads the new codes, resets the Amazon password, and verifies access with the new credentials.\nSuccess.\nTable 5 AppWorld router rankings before and after Harness-S training (Qwen3.5-4B; %). Each harness receives three rollouts\nper task. H0 rate is the task fraction placing H0 at that rank (—: fixed baseline). Bold marks best task scores.\nHarness\nH0\nRank-1\nRank-2\nRank-3\n\n4.5\n\nBefore training\n\nAfter training\n\nPass@3\n\nAvg@3\n\nH0 rate\n\nPass@3\n\nAvg@3\n\nH0 rate\n\n42.62\n56.87\n53.44\n50.38\n\n31.93\n45.42\n42.11\n39.19\n\n—\n1.53\n6.87\n4.96\n\n67.56\n68.32\n66.03\n64.89\n\n56.87\n61.45\n55.60\n54.20\n\n—\n22.52\n14.89\n13.36\n\nPolicy Behavior (RQ4)\n\nHarness-S changes how the policy gathers evidence and completes actions under H0 . Table 3 compares\nconcrete workflows of the base, GRPO, and Harness-S policies. On AppWorld, Harness-S consults API schemas\nbefore first use more often than GRPO and repeats execute code less often, while also increasing pagination, multi-call\nexecution, and read-back after writes. These shifts suggest greater use of interface information and state verification,\nrather than a uniform increase in tool activity. The frequencies describe behavior, not correctness: more calls or\nchecks are useful only when they serve the task.\nThe SWE-Gym trajectories show more explicit verification and recovery from blocked tests. Harness-S\nmore often writes assertion checks, revisits a failed target after editing, and inspects the final diff. When tests are\nblocked, switching to assertions occurs in 48.5% of Harness-S cases versus 13.3% for GRPO. These patterns describe\nalternative ways to validate a patch when the standard test workflow is unavailable.\nSuccessful rescue behaviors also reappear on untrained instances after auxiliary support is removed. Table 4 traces two AppWorld cases from successful training rescues to held-out execution under H0 . The trained policy\npreserves a set-intersection constraint and completes a feedback-dependent account-recovery workflow where GRPO\nfails. The first case concerns applying the same selection rule to new task instances; the second carries a recovery\nprocedure from Venmo to Amazon, including password reset and verification. They illustrate transfer of both a task\nconstraint and a multi-step procedure across distinct executions. Both successful rescues entered a policy update, and\nthe corresponding behavior later appears on a different instance under H0 . These cases connect auxiliary execution\nexperience to behavior retained by the policy after the specialized support is removed.\n\n4.6\n\nRouter Effectiveness (RQ5)\n\nThe router’s ranking predicts execution quality before and after training. Table 5 compares Qwen3.5-4B\nunder H0 and three task-specific router ranks, each evaluated with three rollouts per task. Both Pass@3 and Avg@3\ndecrease from Rank-1 to Rank-3 before and after training. All three ranked choices outperform H0 before training,\nshowing the value of specialized execution support for the initial policy. The preserved ordering indicates that routing\n\n10\n\n\fBase\nGRPO Mixed Harness\n\nGRPO\nHarness-S\n\nAppWorld\n80%\n\nSWE-Gym\n80%\n\n+7.25\n\n+9.16\n\n+4.96\n\n40%\n\n0%\n\n40%\n\nDSH H0\n\nClaude\nCode\n\n0%\n\nOpenClaw\n\n+14.37\n\nDSH H0\n\n+12.50\n\nClaude\nCode\n\n+10.62\n\nOpenClaw\n\nFigure 4 Cross-harness Pass@3 of Qwen3.5-4B. Mixed-harness GRPO uses DSH H0 and Claude Code. Annotations show\nHarness-S gains over GRPO in percentage points.\n\nremains useful as the policy improves.\nTraining makes H0 a more frequent leading choice. The fraction of tasks placing H0 at Rank-1 rises from 1.53%\nto 22.52%; its selection rates at Rank-2 and Rank-3 also increase. The largest increase occurs at Rank-1, showing that\nH0 more often becomes the router’s preferred execution choice. This increased preference for the base harness is\nconsistent with reduced dependence on auxiliary execution support.\nThe trained policy retains much of the routed advantage under the original harness. The Rank-1 margin\nover H0 shrinks from 14.21 to 0.76 points in Pass@3 and from 13.49 to 4.58 points in Avg@3. The trained policy under\nH0 also overtakes Rank-2 and Rank-3 on both metrics. Together with the cases in Section 4.5, these performance\nand routing changes support the internalization of behaviors elicited during rescue. Rank-1 retains an advantage in\nthe reported means; its larger remaining Avg@3 margin suggests that task-specific execution support still improves\nconsistency across attempts.\n\n4.7\n\nCross-Harness Generalization (RQ6)\n\nHarness-S retains its performance advantage under external execution harnesses without further policy\nupdates. Figure 4 compares the Qwen3.5-4B policies on AppWorld and SWE-Gym under DSH H0 , Claude Code, and\nOpenClaw. Harness-S achieves the highest Pass@3 across all evaluated benchmarks and execution harnesses.\nCross-harness transfer preserves the gains without eliminating sensitivity to the execution interface.\nHarness-S also exceeds mixed-harness GRPO under Claude Code and OpenClaw, indicating that fixed mixing is insufficient to match its transfer performance. Harness-S nevertheless scores below DSH H0 on both external harnesses\nand benchmarks. The results suggest that complementary rescue develops behaviors useful beyond the training\nharness, while execution support continues to influence how reliably those behaviors succeed.\n\n5\n\nConclusion and Future Directions\n\nHarness-S trains a shared policy to retain capabilities elicited by complementary sibling harnesses under the original\nH0 . Directional evolution preserves distinct repair strategies, while selective rescue recovers learning signals from\nbase-harness failures. Across AppWorld, SWE-Gym, and DBBench, gains persist under H0 ; behavioral analyses support transfer, and Rank-1 routing improves inference. Future work will study lasting transfer and efficient pool reuse\nacross policies. We will study how independently developed harnesses exchange task state across execution interfaces. Harness Scaling experiments will measure how additional repair diversity affects policy gains and calibration\ncost.\n11\n\n\fReferences\nRishabh Agarwal, Nino Vieillard, Yongchao Zhou, Piotr Stanczyk, Sabela Ramos, Matthieu Geist, and Olivier Bachem. On-Policy\nDistillation of Language Models: Learning from Self-Generated Mistakes, 2024. https://arxiv.org/abs/2306.13649.\nLakshya A Agrawal, Shangyin Tan, Dilara Soylu, Noah Ziems, Rishi Khare, Krista Opsahl-Ong, Arnav Singhvi, Herumb Shandilya,\nMichael J Ryan, Meng Jiang, Christopher Potts, Koushik Sen, Alexandros G. Dimakis, Ion Stoica, Dan Klein, Matei Zaharia, and\nOmar Khattab. GEPA: Reflective Prompt Evolution Can Outperform Reinforcement Learning, 2026.\nMarcin Andrychowicz, Filip Wolski, Alex Ray, Jonas Schneider, Rachel Fong, Peter Welinder, Bob McGrew, Josh Tobin, Pieter\nAbbeel, and Wojciech Zaremba. Hindsight Experience Replay, 2018. https://arxiv.org/abs/1707.01495.\nThomas Anthony, Zheng Tian, and David Barber. Thinking Fast and Slow with Deep Learning and Tree Search, 2017. https:\n//arxiv.org/abs/1705.08439.\nJose A. Arjona-Medina, Michael Gillhofer, Michael Widrich, Thomas Unterthiner, Johannes Brandstetter, and Sepp Hochreiter.\nRUDDER: Return Decomposition for Delayed Rewards, 2019. https://arxiv.org/abs/1806.07857.\nTianle Cai, Xuezhi Wang, Tengyu Ma, Xinyun Chen, and Denny Zhou. Large Language Models as Tool Makers, 2024. https:\n//arxiv.org/abs/2305.17126.\nDian Chen, Brady Zhou, Vladlen Koltun, and Philipp Krähenbühl. Learning by Cheating, 2019. https://arxiv.org/abs/1912.12294.\nKevin Chen, Marco Cusumano-Towner, Brody Huval, Aleksei Petrenko, Jackson Hamburger, Vladlen Koltun, and Philipp Krähenbühl. Reinforcement Learning for Long-Horizon Interactive LLM Agents, 2025. https://arxiv.org/abs/2502.01600.\nLingjiao Chen, Matei Zaharia, and James Zou. FrugalGPT: How to Use Large Language Models While Reducing Cost and Improving\nPerformance, 2023.\nMingju Chen, Can Lv, Guibin Zhang, Heng Chang, and Shiji Zhou. HarnessForge: Joint Harness and Policy Evolution for Adaptive\nAgent Systems, 2026a.\nShuhao Chen, Weisen Jiang, Baijiong Lin, James T. Kwok, and Yu Zhang. RouterDC: Query-Based Router by Dual Contrastive\nLearning for Assembling Large Language Models, 2024.\nTingyang Chen, Shuo Lu, Kang Zhao, Weicheng Meng, Hanlin Teng, Tianhao Li, Chao Li, Xule Liu, Jian Liang, Zhizhong Zhang,\nYuan Xie, Heng Qu, Kun Shao, and Jian Luan. HarnessX: A Composable, Adaptive, and Evolvable Agent Harness Foundry,\n2026b.\nZhengyu Chen, Teng Xiao, Huaisheng Zhu, Yige Yuan, Luan Zhang, and Jingang Wang. Co-Harness: Co-Evolving Harnesses and\nModel Weights for LLM Agents, 2026c.\nYutong Cheng, Haifeng Chen, Peng Gao, and Wei Cheng. SpecForge: Recursive Self-Improvement for Coding Agents via Behavioral Specifications, 2026.\nDeepSeek-AI. DeepSeek Harness: Everything is a Plugin. Open-source software, 2026. https://www.deepseek.com/harness/en/.\nAccessed: 2026-10-19.\nAdrien Ecoffet, Joost Huizinga, Joel Lehman, Kenneth O. Stanley, and Jeff Clune. Go-Explore: a New Approach for HardExploration Problems, 2021. https://arxiv.org/abs/1901.10995.\nJiazhan Feng, Shijue Huang, Xingwei Qu, Ge Zhang, Yujia Qin, Baoquan Zhong, Chengquan Jiang, Jinxin Chi, and Wanjun Zhong.\nReTool: Reinforcement Learning for Strategic Tool Use in LLMs, 2025.\nChrisantha Fernando, Dylan Banarse, Henryk Michalewski, Simon Osindero, and Tim Rocktäschel.\nReferential Self-Improvement Via Prompt Evolution, 2023.\n\nPromptbreeder: Self-\n\nYuxian Gu, Li Dong, Furu Wei, and Minlie Huang. MiniLLM: On-Policy Distillation of Large Language Models, 2026. https:\n//arxiv.org/abs/2306.08543.\nQingyan Guo, Rui Wang, Junliang Guo, Bei Li, Kaitao Song, Xu Tan, Guoqing Liu, Jiang Bian, and Yujiu Yang. EvoPrompt:\nConnecting LLMs with Evolutionary Algorithms Yields Powerful Prompt Optimizers, 2025.\nGeoffrey Hinton, Oriol Vinyals, and Jeff Dean. Distilling the Knowledge in a Neural Network, 2015. https://arxiv.org/abs/1503.\n02531.\nCheng-Yu Hsieh, Chun-Liang Li, Chih-Kuan Yeh, Hootan Nakhost, Yasuhisa Fujii, Alexander Ratner, Ranjay Krishna, Chen-Yu\nLee, and Tomas Pfister. Distilling Step-by-Step! Outperforming Larger Language Models with Less Training Data and Smaller\nModel Sizes, 2023. https://arxiv.org/abs/2305.02301.\n\n12\n\n\fShengran Hu, Cong Lu, and Jeff Clune. Automated Design of Agentic Systems, 2025.\nDongfu Jiang, Xiang Ren, and Bill Yuchen Lin. LLM-Blender: Ensembling Large Language Models with Pairwise Ranking and\nGenerative Fusion, 2023.\nCarlos E. Jimenez, John Yang, Alexander Wettig, Shunyu Yao, Kexin Pei, Ofir Press, and Karthik Narasimhan. SWE-bench: Can\nLanguage Models Resolve Real-World GitHub Issues?, 2024.\nBowen Jin, Hansi Zeng, Zhenrui Yue, Jinsung Yoon, Sercan Arik, Dong Wang, Hamed Zamani, and Jiawei Han. Search-R1: Training\nLLMs to Reason and Leverage Search Engines with Reinforcement Learning, 2025. https://arxiv.org/abs/2503.09516.\nOmar Khattab, Arnav Singhvi, Paridhi Maheshwari, Zhiyuan Zhang, Keshav Santhanam, Sri Vardhamanan, Saiful Haq, Ashutosh\nSharma, Thomas T. Joshi, Hanna Moazam, Heather Miller, Matei Zaharia, and Christopher Potts. DSPy: Compiling Declarative\nLanguage Model Calls into Self-Improving Pipelines, 2023.\nHaechan Kim, Yoonho Lee, Gisang Lee, Chelsea Finn, and Kangwook Lee. WHALE: A Simple Recipe for Joint Harness-Weight\nOptimization, 2026.\nYoon Kim and Alexander M. Rush. Sequence-Level Knowledge Distillation, 2016. https://arxiv.org/abs/1606.07947.\nYoonho Lee, Roshen Nair, Qizheng Zhang, Kangwook Lee, Omar Khattab, and Chelsea Finn. Meta-Harness: End-to-End Optimization of Model Harnesses, 2026.\nQingyao Li, Wenxiang Jiao, Shuai Shao, Kangning Zhang, Yuan Lu, Yi Guo, Weiwen Liu, Weinan Zhang, and Yong Yu. SkillGate:\nTraining In-Policy Skill Selection in Long-Horizon Agents, 2026. https://arxiv.org/abs/2608.18852.\nXiao Liu, Hao Yu, Hanchen Zhang, Yifan Xu, Xuanyu Lei, Hanyu Lai, Yu Gu, Hangliang Ding, Kaiwen Men, Kejuan Yang, Shudan\nZhang, Xiang Deng, Aohan Zeng, Zhengxiao Du, Chenhui Zhang, Sheng Shen, Tianjun Zhang, Yu Su, Huan Sun, Minlie Huang,\nYuxiao Dong, and Jie Tang. AgentBench: Evaluating LLMs as Agents, 2025.\nDavid Lopez-Paz, Léon Bottou, Bernhard Schölkopf, and Vladimir Vapnik. Unifying distillation and privileged information, 2016.\nhttps://arxiv.org/abs/1511.03643.\nXufang Luo, Yuge Zhang, Zhiyuan He, Zilong Wang, Siyun Zhao, Dongsheng Li, Luna K. Qiu, and Yuqing Yang. Agent Lightning:\nTrain ANY AI Agents with Reinforcement Learning, 2025.\nReiichiro Nakano, Jacob Hilton, Suchir Balaji, Jeff Wu, Long Ouyang, Christina Kim, Christopher Hesse, Shantanu Jain, Vineet\nKosaraju, William Saunders, Xu Jiang, Karl Cobbe, Tyna Eloundou, Gretchen Krueger, Kevin Button, Matthew Knight, Benjamin\nChess, and John Schulman. WebGPT: Browser-assisted question-answering with human feedback, 2022. https://arxiv.org/abs/\n2112.09332.\nXuying Ning, Dongqi Fu, Tianxin Wei, Yuanchen Bei, Xiyuan Yang, Wujiang Xu, Yueqi Song, Bingxuan Li, Zihao Li, Hanqing\nZeng, Xiang Shen, Yajuan Wang, Yifan Wu, Qifan Wang, Jiayi Liu, Hong Li, Yinglong Xia, Xiangjun Fan, Hanghang Tong, and\nJingrui He. EvoHarness-RL: Learning Runtime Harness Coordination for Self-Evolving Agents, 2026.\nIsaac Ong, Amjad Almahairi, Vincent Wu, Wei-Lin Chiang, Tianhao Wu, Joseph E. Gonzalez, M Waleed Kadous, and Ion Stoica.\nRouteLLM: Learning to Route LLMs with Preference Data, 2025.\nJiayi Pan, Xingyao Wang, Graham Neubig, Navdeep Jaitly, Heng Ji, Alane Suhr, and Yizhe Zhang. Training Software Engineering\nAgents and Verifiers with SWE-Gym, 2025.\nZhe Ren, Yimeng Chen, Dandan Guo, Guowei Rong, Tonghui Li, R. B. Xiong, Qingfeng Lan, Wenyi Wang, Li Nanbo, Yibo Yang,\nMingchen Zhuge, and Jürgen Schmidhuber. Self-Improvements in Modern Agentic Systems: A Survey, 2026.\nStephane Ross, Geoffrey J. Gordon, and J. Andrew Bagnell. A Reduction of Imitation Learning and Structured Prediction to NoRegret Online Learning, 2011. https://arxiv.org/abs/1011.0686.\nAndrei A. Rusu, Sergio Gomez Colmenarejo, Caglar Gulcehre, Guillaume Desjardins, James Kirkpatrick, Razvan Pascanu,\nVolodymyr Mnih, Koray Kavukcuoglu, and Raia Hadsell. Policy Distillation, 2016. https://arxiv.org/abs/1511.06295.\nTimo Schick, Jane Dwivedi-Yu, Roberto Dessì, Roberta Raileanu, Maria Lomeli, Luke Zettlemoyer, Nicola Cancedda, and Thomas\nScialom. Toolformer: Language Models Can Teach Themselves to Use Tools, 2023. https://arxiv.org/abs/2302.04761.\nSimon Schmitt, Jonathan J. Hudson, Augustin Zidek, Simon Osindero, Carl Doersch, Wojciech M. Czarnecki, Joel Z. Leibo, Heinrich\nKuttler, Andrew Zisserman, Karen Simonyan, and S. M. Ali Eslami. Kickstarting Deep Reinforcement Learning, 2018. https:\n//arxiv.org/abs/1803.03835.\nJohn Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal Policy Optimization Algorithms, 2017.\n\n13\n\n\fShuai Shao, Kangning Zhang, Qingyao Li, Shijian Wang, Hao Wang, Wenxiang Jiao, Yuan Lu, Yi Guo, Weiwen Liu, and\nWeinan Zhang. Harness-R1: Learning to Edit Executable Runtime Harnesses from Agent Failure Trajectories. arXiv preprint\narXiv:2608.02276, 2026. https://arxiv.org/abs/2608.02276.\nZhihong Shao, Peiyi Wang, Qihao Zhu, Runxin Xu, Junxiao Song, Xiao Bi, Haowei Zhang, Mingchuan Zhang, Y. K. Li, Y. Wu, and\nDaya Guo. DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models, 2024.\nNoah Shinn, Federico Cassano, Edward Berman, Ashwin Gopinath, Karthik Narasimhan, and Shunyu Yao. Reflexion: Language\nAgents with Verbal Reinforcement Learning, 2023.\nDhruv Srikanth, Bingchen Zhao, Dixing Xu, Yuxiang Wu, and Zhengyao Jiang. Recursive self-improvement of AI research agents,\n2026.\nHarsh Trivedi, Tushar Khot, Mareike Hartmann, Ruskin Manku, Vinty Dong, Edward Li, Shashank Gupta, Ashish Sabharwal, and\nNiranjan Balasubramanian. AppWorld: A Controllable World of Apps and People for Benchmarking Interactive Coding Agents,\n2024.\nGuanzhi Wang, Yuqi Xie, Yunfan Jiang, Ajay Mandlekar, Chaowei Xiao, Yuke Zhu, Linxi Fan, and Anima Anandkumar. Voyager:\nAn Open-Ended Embodied Agent with Large Language Models, 2023.\nJunlin Wang, Jue Wang, Ben Athiwaratkun, Ce Zhang, and James Zou. Mixture-of-Agents Enhances Large Language Model\nCapabilities, 2024a.\nXingyao Wang, Yangyi Chen, Lifan Yuan, Yizhe Zhang, Yunzhu Li, Hao Peng, and Heng Ji. Executable Code Actions Elicit Better\nLLM Agents, 2024b.\nZihan Wang, Kangrui Wang, Qineng Wang, Pingyue Zhang, Linjie Li, Zhengyuan Yang, Xing Jin, Kefan Yu, Minh Nhat Nguyen,\nLicheng Liu, Eli Gottlieb, Yiping Lu, Kyunghyun Cho, Jiajun Wu, Li Fei-Fei, Lijuan Wang, Yejin Choi, and Manling Li. RAGEN:\nUnderstanding Self-Evolution in LLM Agents via Multi-Turn Reinforcement Learning, 2025.\nZora Zhiruo Wang, Jiayuan Mao, Daniel Fried, and Graham Neubig. Agent Workflow Memory, 2024c.\nHongliang Wei, Xiaobing Tu, Yinggui Wang, Zhengxi Liu, Rongkun Xue, Jinkui Ren, Xiantao Zhang, Debin Zhao, and Xiaopeng\nFan. HarnessBandit: Joint Learnability-Transferability Scheduling for Multi-Harness Agentic Reinforcement Learning, 2026.\nYuxiang Wei, Olivier Duchenne, Jade Copet, Quentin Carbonneaux, Lingming Zhang, Daniel Fried, Gabriel Synnaeve, Rishabh\nSingh, and Sida I. Wang. SWE-RL: Advancing LLM Reasoning via Reinforcement Learning on Open Software Evolution, 2025.\nQingyun Wu, Gagan Bansal, Jieyu Zhang, Yiran Wu, Beibin Li, Erkang Zhu, Li Jiang, Xiaoyun Zhang, Shaokun Zhang, Jiale Liu,\nAhmed Hassan Awadallah, Ryen W White, Doug Burger, and Chi Wang. AutoGen: Enabling Next-Gen LLM Applications via\nMulti-Agent Conversation, 2023. https://arxiv.org/abs/2308.08155.\nZhiheng Xi, Jixuan Huang, Chenyang Liao, Baodai Huang, Honglin Guo, Jiaqi Liu, Rui Zheng, Junjie Ye, Jiazheng Zhang, Wenxiang\nChen, Wei He, Yiwen Ding, Guanyu Li, Zehui Chen, Zhengyin Du, Xuesong Yao, Yufei Xu, Jiecao Chen, Tao Gui, Zuxuan Wu,\nQi Zhang, Xuanjing Huang, and Yu-Gang Jiang. AgentGym-RL: Training LLM Agents for Long-Horizon Decision Making\nthrough Multi-Turn Reinforcement Learning, 2025. https://arxiv.org/abs/2509.08755.\nPeng Xia, Rujun Han, Zifeng Wang, Yanfei Chen, Yufan Zhuang, Yoonho Lee, Chengsong Huang, Han Yu, Zhongying CuiZhu,\nYifei Ming, Huaxiu Yao, Burak Gokturk, Tomas Pfister, and Chen-Yu Lee. RRSI: Regularized Recursive Self-Improvement of\nAgent Harnesses, 2026.\nBinfeng Xu, Zhiyuan Peng, Bowen Lei, Subhabrata Mukherjee, Yuchen Liu, and Dongkuan Xu. ReWOO: Decoupling Reasoning\nfrom Observations for Efficient Augmented Language Models, 2023.\nTianshi Xu, Huifeng Wen, and Meng Li. Adapting the Interface, Not the Model: Runtime Harness Adaptation for Deterministic\nLLM Agents, 2026.\nChengrun Yang, Xuezhi Wang, Yifeng Lu, Hanxiao Liu, Quoc V. Le, Denny Zhou, and Xinyun Chen. Large Language Models as\nOptimizers, 2024a.\nJohn Yang, Carlos E. Jimenez, Alexander Wettig, Kilian Lieret, Shunyu Yao, Karthik Narasimhan, and Ofir Press. SWE-agent:\nAgent-Computer Interfaces Enable Automated Software Engineering, 2024b.\nShunyu Yao, Howard Chen, John Yang, and Karthik Narasimhan. WebShop: Towards Scalable Real-World Web Interaction with\nGrounded Language Agents, 2023a.\nShunyu Yao, Jeffrey Zhao, Dian Yu, Nan Du, Izhak Shafran, Karthik Narasimhan, and Yuan Cao. ReAct: Synergizing Reasoning\nand Acting in Language Models, 2023b.\n\n14\n\n\fShunyu Yao, Noah Shinn, Pedram Razavi, and Karthik Narasimhan. τ -bench: A Benchmark for Tool-Agent-User Interaction in\nReal-World Domains, 2024.\nZhiyuan Yao, Yuxin Chen, Zhengxi Lu, Zishan Xu, Yueqing Sun, Yifu Guo, Yuquan Lu, Zhengzhou Cai, Kangning Zhang, Zhuowen\nHan, Zi-Han Wang, Ziang Ye, Qi Gu, Xunliang Cai, Weiwen Liu, and Yongliang Shen. SkillRise: Agentic Reinforcement Learning\nfor Cross-Task Skill Evolution, 2026. https://arxiv.org/abs/2607.26784.\nXunjian Yin, Xinyi Wang, Liangming Pan, Li Lin, Xiaojun Wan, and William Yang Wang. Gödel Agent: A Self-Referential Agent\nFramework for Recursively Self-Improvement. In Proceedings of the 63rd Annual Meeting of the Association for Computational\nLinguistics (Volume 1: Long Papers), pages 27890–27913, Vienna, Austria, 2025. Association for Computational Linguistics. doi:\n10.18653/v1/2025.acl-long.1354.\nQiying Yu, Zheng Zhang, Ruofei Zhu, Yufeng Yuan, Xiaochen Zuo, Yu Yue, Weinan Dai, Tiantian Fan, Gaohong Liu, Lingjun Liu,\nXin Liu, Haibin Lin, Zhiqi Lin, Bole Ma, Guangming Sheng, Yuxuan Tong, Chi Zhang, Mofan Zhang, Wang Zhang, Hang Zhu,\nJinhua Zhu, Jiaze Chen, Jiangjie Chen, Chengyi Wang, Hongli Yu, Yuxuan Song, Xiangpeng Wei, Hao Zhou, Jingjing Liu, WeiYing Ma, Ya-Qin Zhang, Lin Yan, Mu Qiao, Yonghui Wu, and Mingxuan Wang. DAPO: An Open-Source LLM Reinforcement\nLearning System at Scale, 2025. https://arxiv.org/abs/2503.14476.\nWeizhe Yuan, Richard Yuanzhe Pang, Kyunghyun Cho, Xian Li, Sainbayar Sukhbaatar, Jing Xu, and Jason Weston. Self-Rewarding\nLanguage Models, 2024. ICML 2024.\nMert Yuksekgonul, Federico Bianchi, Joseph Boen, Sheng Liu, Zhi Huang, Carlos Guestrin, and James Zou. TextGrad: Automatic\n\"Differentiation\" via Text, 2024.\nEric Zelikman, Yuhuai Wu, Jesse Mu, and Noah D. Goodman. STaR: Bootstrapping Reasoning With Reasoning, 2022. https:\n//arxiv.org/abs/2203.14465.\nEric Zelikman, Eliana Lorch, Lester Mackey, and Adam Tauman Kalai. Self-Taught Optimizer (STOP): Recursively Self-Improving\nCode Generation, 2024. COLM 2024.\nAohan Zeng, Mingdao Liu, Rui Lu, Bowen Wang, Xiao Liu, Yuxiao Dong, and Jie Tang. AgentTuning: Enabling Generalized Agent\nAbilities for LLMs, 2023. https://arxiv.org/abs/2310.12823.\nJenny Zhang, Shengran Hu, Cong Lu, Robert Lange, and Jeff Clune. Darwin Godel Machine: Open-Ended Evolution of SelfImproving Agents, 2026a.\nJiayi Zhang, Jinyu Xiang, Zhaoyang Yu, Fengwei Teng, Xionghui Chen, Jiaqi Chen, Mingchen Zhuge, Xin Cheng, Sirui Hong,\nJinlin Wang, Bingnan Zheng, Bang Liu, Yuyu Luo, and Chenglin Wu. AFlow: Automating Agentic Workflow Generation, 2025.\nKangning Zhang, Haotian Fang, Xukun Luo, Hao Yin, Yang Gao, Peng Yan, Weiwen Liu, Weinan Zhang, and Yong Yu. Learning\nfrom Unreachable Rewards: Hint-Conditioned Reinforcement Learning for Generative Recommendation. In Proceedings of the\n35th ACM International Conference on Information and Knowledge Management. Association for Computing Machinery, 2026b.\ndoi: 10.1145/3799682.3840842. https://arxiv.org/abs/2608.11980.\nKangning Zhang, Yixing Li, Shuai Shao, Qingyao Li, Zhengxi Lu, Zhiyuan Yao, Jianghao Lin, Wenxiang Jiao, Yuan Lu, Weiwen Liu,\nWeinan Zhang, and Yong Yu. VAD: Attributing Visual Evidence for Target Reconstruction in Multimodal On-Policy Distillation.\narXiv preprint arXiv:2607.28590, 2026c. https://arxiv.org/abs/2607.28590.\nKangning Zhang, Weiwen Liu, Wenxiang Jiao, Kounianhua Du, Yuan Lu, Weinan Zhang, and Yong Yu. LoopTool: Closing the\nData–Training Loop for Robust LLM Tool Calls. In Proceedings of the 64th Annual Meeting of the Association for Computational\nLinguistics (Volume 1: Long Papers), pages 21144–21164, San Diego, California, United States, July 2026d. Association for Computational Linguistics. ISBN 979-8-89176-390-6. doi: 10.18653/v1/2026.acl-long.968. https://aclanthology.org/2026.acl-long.968/.\nKangning Zhang, Shuai Shao, Qingyao Li, Jianghao Lin, Lingyue Fu, Shijian Wang, Wenxiang Jiao, Yuan Lu, Weiwen Liu, Weinan\nZhang, and Yong Yu. MMSkills: Towards Multimodal Skills for General Visual Agents. In Conference on Neural Information\nProcessing Systems (NeurIPS), 2026e. https://arxiv.org/abs/2605.13527. Accepted at NeurIPS 2026.\nQizheng Zhang, Changran Hu, Shubhangi Upasani, Boyuan Ma, Fenglu Hong, Vamsidhar Kamanuru, Jay Rainton, Chen Wu,\nMengmeng Ji, Hanchen Li, Urmish Thakker, James Zou, and Kunle Olukotun. Agentic Context Engineering: Evolving Contexts\nfor Self-Improving Language Models, 2026f.\nShaokun Zhang, Jieyu Zhang, Jiale Liu, Linxin Song, Chi Wang, Ranjay Krishna, and Qingyun Wu. Offline Training of Language\nModel Agents with Functions as Learnable Weights, 2024. https://arxiv.org/abs/2402.11359.\nAndrew Zhao, Daniel Huang, Quentin Xu, Matthieu Lin, Yong-Jin Liu, and Gao Huang. ExpeL: LLM Agents Are Experiential\nLearners, 2024. https://arxiv.org/abs/2308.10144.\n\n15\n\n\fAndy Zhou, Kai Yan, Michal Shlapentokh-Rothman, Haohan Wang, and Yu-Xiong Wang. Language Agent Tree Search Unifies\nReasoning Acting and Planning in Language Models, 2024a.\nShuyan Zhou, Frank F. Xu, Hao Zhu, Xuhui Zhou, Robert Lo, Abishek Sridhar, Xianyi Cheng, Tianyue Ou, Yonatan Bisk, Daniel\nFried, Uri Alon, and Graham Neubig. WebArena: A Realistic Web Environment for Building Autonomous Agents, 2024b.\nAdam Zweiger, Jyothish Pari, Han Guo, Ekin Akyürek, Yoon Kim, and Pulkit Agrawal. Self-Adapting Language Models, 2025.\n\n16\n\n\fAppendix\nA\n\nDataset Splits\n\nTable 6 lists task-instance counts. Harness editing and policy optimization use training tasks; parent selection and\nprofile anchoring use validation tasks. Test tasks are reserved for final evaluation.\nTable 6 Dataset splits. Number of task instances in each benchmark.\n\nBenchmark\n\nTrain\n\nValidation\n\nTest\n\nTotal\n\nAppWorld\nDBBench\nSWE-Gym\n\n320\n1,600\n240\n\n150\n200\n100\n\n262\n300\n160\n\n732\n2,100\n500\n\nB\n\nShared Policy Optimization\n\nThe baseline and Harness-S share the same optimizer, so their learning objectives differ only through the trajectories\nretained for each task. Each retained group contains G = K = 8 trajectories. Equation (6) first centers rewards\n−6\nwithin the task and normalizes them using population\nP standard deviation and ϵ = 10 . For a batch B, let Tx,j\ncontain the valid policy-token indices and Nx =\nj |Tx,j |. Using the generating context cHx,j ,ℓ , the PPO-style\nobjective (Schulman et al., 2017) is\nπθ (yx,j,ℓ | cHx,j ,ℓ )\n,\nπθold (yx,j,ℓ | cHx,j ,ℓ )\n\u0001\nℓx,j,ℓ (θ) = ℓ ρx,j,ℓ (θ), Ax,j ,\n\nρx,j,ℓ (θ) =\n\nJ(θ) =\n\nG\nX\n\nX\n1 X 1\nwx,j,ℓ ℓx,j,ℓ (θ).\n|B|\nNx j=1\nx∈B\n\n(13)\n(14)\n(15)\n\nℓ∈Tx,j\n\nHere ℓ is the clipped objective in Equation (7). The loss averages over valid policy tokens within each task, then\nequally over tasks in the batch; trajectories of different lengths therefore need not receive equal weight. Harnessinjected instructions and tool observations are excluded from the token loss. Each auxiliary trajectory retains its\ngenerating context when computing the probability ratio. Tasks with Nx = 0 contribute zero.\nThe rollout and training backends can assign different probabilities to the same sampled token. For recorded rollout\ntoken probability qx,j,ℓ , the detached correction is\n\u0012\n\u0013\nπθold (yx,j,ℓ | cHx,j ,ℓ )\nwx,j,ℓ = clip\n, 0, 2 .\n(16)\nqx,j,ℓ\nThe detached weight w multiplies the token objective without receiving gradients. Policy-ratio clipping uses η− =\n0.20 and η+ = 0.28, with no reference-model KL term.\n\nC\n\nImplementation of Comparison Variants\n\nThe adaptations start from the size-matched Qwen3.5 policy and common base harness. Environment interfaces and\ntask verifiers remain unchanged; each method retains its own search organization and policy-update objective. Hbest\nis fixed across test tasks, whereas Hrank1 is selected separately for each task. The base model denotes the unmodified\nstarting policy; frontier models evaluated under H0 serve as additional references.\nEvaluation protocol. Within each run, each test task receives three executor rollouts. Pass@3 measures the fraction\nof tasks with at least one successful rollout, while Avg@3 averages success over the three attempts. Main-table scores\nare means over three independent randomized runs; the reported Harness-S standard deviations are computed across\nruns. For the router-rank comparison, Rank-r denotes the candidate at position r for each task, evaluated separately\nwith the same rollout count.\n17\n\n\fGRPO and H0 rescue. Both use the shared optimizer in Appendix B and execute under H0 . Plain GRPO retains\neach initial group; the rescue control replaces an all-failure group with fresh H0 rollouts using the same per-task\nallocation as Harness-S. Total sampling depends on rescue frequency, which differs between policies, and includes\nboth discarded base attempts and rescue rollouts.\nRescue allocation variants. All rescue groups contain eight rollouts. Random Harness samples pool members.\nRule Router ranks candidates by success on similar validation tasks, without using profiles. LLM Router (4 × 2)\nallocates two rollouts to each of four selected harnesses; Top-8 allocates one to each of eight. The fixed-profile Top-8\nvariant keeps its profiles unchanged, while Harness-S refreshes them at calibration checkpoints. Rescue success is\nthe fraction of rescue-triggering tasks for which at least one fresh attempt succeeds.\nFixed mixed-harness GRPO. The Claude Code mixture allocates four rollouts to DSH H0 and four to Claude Code.\nThe Top-4 mixture combines DSH H0 with four selected siblings throughout training. The same mixture is used\nacross training tasks, without waiting for an all-failure base group. These controls expose one shared policy to\ndiverse harness contexts throughout training. Only policy parameters are updated, and both policies are evaluated\nunder H0 .\nMeta-Harness. With the policy frozen, the proposer uses previous implementations, scores, and trajectories to\nrevise harness code (Lee et al., 2026). The adaptation searches within the common execution framework, preserving\nenvironment interfaces and the task verifier. Candidates are checked for compatibility and evaluated on training\ntasks. A single selected Hbest is used across test tasks.\nWHALE. The adaptation alternates Meta-Harness-style search with rejection-sampling fine-tuning on successful trajectories (Kim et al., 2026). Successful trajectories supply the policy update, after which harness search proceeds with\nthe updated policy. This preserves the alternation between model adaptation and execution-support optimization.\nFinal evaluation uses the selected policy and its fixed Hbest .\nHarnessForge. Failure analysis guides harness changes, and successful search trajectories train the corresponding\nbranch policy (Chen et al., 2026a). Branches retain separate policy adaptations and the provenance of their training\ntrajectories. As recorded in Table 10, training reuses successful search trajectories, so zero additional training rollouts\ndoes not mean that the policy remains frozen. The final selected pair executes with a fixed Hbest .\nPool and evaluation. The pool contains H0 and 19 auxiliary harnesses; rescue selects eight auxiliaries and inference\nranks all 20. The HE-only variant freezes the starting policy; the two trained variants share a checkpoint and differ\nonly in test-harness selection. The nine siblings analyzed in Appendix E define the scope of that calibration analysis,\nnot the size of the routing pool.\nProfile refresh. For AppWorld 4B, profiles are built before training, refreshed every ten updates, and re-anchored\nwith the final policy. Each calibration freezes the current policy for paired validation execution. Routing uses the\nlatest profiles between checkpoints, with all harness implementations fixed.\nInference voting. Multiple LLMs independently rank candidates using the task, current profiles, validation success\nrates, and outcomes on similar validation tasks. Each ballot ranks four distinct candidates with weights 1, 3/4, 1/2,\nand 1/4. Unlisted candidates receive zero weight. Weights are summed across ballots; ties use validation success,\nthen harness ID. Candidate order varies across calls. The base harness uses its execution description and validation\nevidence. Each selected harness is fixed across the three evaluation rollouts for its task. The ranking is completed\nbefore any task outcome is observed, and failed attempts do not trigger a new inference-time selection.\n\nD\n\nSibling Harness Edits and Behavior Profiles\n\nTable 7 pairs three concrete configuration edits with favorable behavior-profile entries from the step-40 AppWorld\ncalibration of Qwen3.5-4B. The policy is frozen while each sibling is compared with H0 under matched validation\ntasks, execution limits, and task seeds. These examples use the paired calibration protocol in Appendix E.\nHarness Behavior Profiles describe execution differences observed in complete paired trajectories. The When field\nidentifies the task conditions, and Behavior records the corresponding execution pattern. Entries are organized into\nprefer and avoid lists; repeated observations are consolidated by task condition and behavior, while useful observations from individual tasks are retained. The table presents English translations of selected prefer entries alongside\ncore excerpts of the recorded configuration changes.\n18\n\n\fThe edits add guidance to the shared base execution system. A null entry means that H0 has no corresponding\nadditional rule or hook; its base instructions remain in place. The pagination and completion hooks append reminders,\nwhile the intersection rule supplies an instruction through action_guidance. Each profile describes execution under\nthe full sibling configuration. The S7 and S8 examples concern the same validation task, highlighting constraint\nfiltering and final submission, respectively.\nTable 7 Three sibling configuration edits and favorable behavior-profile excerpts on AppWorld. Each paired example succeeds\nwith the sibling and fails under H0 . Code shows the changed entry; [...] marks omitted rule text.\nCase 1: S6 — complete pagination across sources\nEdit: add an after-tool reminder to continue pagination until explicit exhaustion.\nstate.hooks.pagination-completion-guidance\nBefore (H0 )\nAfter (S6 )\nnull\n\n{\n\"action\": \"warn\",\n\"condition\": \"pagination_present\",\n\"event\": \"after_tool\",\n\"message\": \"Pagination metadata is present. Continue only until an empty or short page or an\nauthoritative total; do not treat the first page as complete.\",\n\"parameters\": {}\n}\n\nWhen\nBehavior\n\nAggregating information across inbox, spam, and archive.\nPaginate through all specified sources, merge the results, and remove duplicates. The paired H0 execution attempts a single-pass match and omits information from some sources.\n\nCase 2: S7 — joint filtering of target records\nEdit: add an action-guidance rule requiring the intersection of task conditions.\nstate.prompt_rules.reconcile-before-side-effect\nBefore (H0 )\nAfter (S7 )\nnull\n\n{\n\"slot\": \"action_guidance\",\n\"text\": \"[...] If the request combines conditions, fetch each condition separately and\ncompute the intersection; do not broaden an item to its containing collection. [...]\"\n}\n\nWhen\nBehavior\n\nFinding office desks returned in the current month.\nRetrieve all return records, then jointly filter for product names containing desk and a returned_at\ndate within the current month. The selected records satisfy both the product and time constraints.\n\nCase 3: S8 — reserving execution budget for submission\nEdit: add a low-budget reminder to finish necessary checks and reserve a step for completion.\nstate.hooks.low-budget-completion\nBefore (H0 )\nAfter (S8 )\nnull\n\n{\n\"action\": \"warn\",\n\"condition\": \"remaining_steps_lte\",\n\"event\": \"after_tool\",\n\"message\": \"Execution budget is low. Finish only the required verification and reserve one\nstep for complete_task; avoid unrelated exploration.\",\n\"parameters\": {\n\"threshold\": 3\n}\n}\n\nWhen\nBehavior\n\nTask-specific filtering and verification are complete, and the final answer must be submitted through the\ndedicated API.\nFinish verification and submit the answer with complete_task. The paired H0 trajectory reaches a\nconclusion but ends before submitting it.\n\n19\n\n\fReference sibling\n\nS1\n\n–\n\n60\n\n60\n\n67\n\n60\n\n60\n\n53\n\n60\n\n67\n\nS2\n\n64\n\n–\n\n64\n\n50\n\n57\n\n64\n\n43\n\n50\n\n57\n\nS3\n\n69\n\n69\n\n–\n\n62\n\n62\n\n62\n\n46\n\n54\n\n62\n\nS4\n\n71\n\n50\n\n57\n\n–\n\n71\n\n79\n\n64\n\n57\n\n64\n\nS5\n\n75\n\n67\n\n67\n\n83\n\n–\n\n83\n\n58\n\n50\n\n58\n\nS6\n\n64\n\n64\n\n57\n\n79\n\n71\n\n–\n\n71\n\n64\n\n64\n\nS7\n\n73\n\n55\n\n55\n\n82\n\n64\n\n91\n\n–\n\n73\n\n73\n\nS8\n\n64\n\n50\n\n50\n\n57\n\n43\n\n64\n\n57\n\n–\n\n57\n\nS9\n\n71\n\n57\n\n57\n\n64\n\n50\n\n64\n\n57\n\n57\n\n–\n\nS1\n\nS2\n\nS3\n\nS4\n\nS5\n\nS6\n\nS7\n\nS8\n\nS9\n\n100%\n\n50%\n\n0%\n\nOther sibling\nFigure 5 Shared repair coverage. Each cell gives the percentage of the row sibling’s repairs also supplied by the column sibling;\ndiagonal entries are omitted.\n\nE\n\nSibling Harness Diversity\n\nWe compare nine siblings using the final AppWorld Qwen3.5-4B policy and one greedy rollout per validation task.\nEach harness uses the same task initialization and execution limits. One task has an invalid paired outcome and is\nexcluded from every sibling, leaving 149 shared tasks. For each sibling, Ri contains failures of H0 repaired by Si .\nFigure 5 shows the directed overlap |Ri ∩ Rj |/|Ri |, averaging 62.47% across distinct ordered pairs. The denominator\nis the row sibling’s repair set, so the matrix is directional: overlap can differ when the row and column are exchanged.\nHigh overlap indicates that another sibling supplies many of the same repairs; lower overlap identifies task coverage\nnot shared by that pair. This comparison concerns repairs of H0 failures, rather than overall success across all\nvalidation tasks. The incomplete overlap supports retaining different repair directions among these nine analyzed\nsiblings; the routing pool contains 20 harnesses. Individually, the analyzed siblings repair 11–15 base-harness failures,\nwhile their union repairs 29. This union is oracle coverage obtained by executing each sibling once; routing must\nselect candidates before observing their task outcomes.\n\nF\n\nDirectional Harness Evolution: Prompts and Settings\n\nThe AppWorld search freezes Qwen3.5-4B Base and uses the 320 training tasks for failure analysis, candidate editing,\nand local tests. Validation tasks guide complementary parent selection and profile anchoring. Table 8 summarizes the\nconfiguration. The analysis prompt requires every valid failure to be grouped by root cause or marked unresolved.\nThe evidence determines how many groups are formed. Each candidate then targets a limited set of related causes\nsupported by multiple failed tasks. Component choices follow this diagnosis: edits can alter prompts, skills, context,\nmemory, hooks, or the tool view. Other candidate briefs provide context for seeking different mechanisms, triggers,\nor recovery strategies.\nLocal evaluation tests whether an edit repairs the targeted failures while preserving behavior on successful controls.\nEach candidate can submit an initial measured version and one revision within the task budget in Table 8. The editing\nagent submits an artifact containing the candidate state and its self-review, then requests static checks or measured\nrollouts before final submission. The execution host supplies these outcomes; candidate self-assessment does not\ndetermine success. Newly generated valid variants compete for B = 4 parent slots under the validation-coverage\nobjective in Equation (3). Selected parents are paired with locally diagnosed root causes for the next round of editing,\n\n20\n\n\fTable 8 Selected settings for the AppWorld directional evolution run. Proposal counts are budgets, not counts of accepted\nvariants.\nSetting\n\nValue\n\nSearch\nDevelopment tasks\nRepair direction\nLocal evaluation\nRevision budget\nHarness editor\nPolicy sampling\nExecution limits\nEditable components\n\n3 rounds; proposal budgets 7 / 8 / 8; 4 parent slots\nSampled from the 320-task training set\n2–3 related root causes per candidate; at least 2 distinct failed tasks per cause\nAt most 30 tasks, including at most 10 successful controls\nInitial candidate plus at most one revision\nGLM-5.3; temperature 0.6; thinking enabled with high reasoning effort\nGreedy decoding; one rollout per task; seed 42\n32 model calls and 30 environment actions; 65,532 context tokens and 8,192 output tokens per call\nPrompt, Skill, Context, Memory, Hooks, Tool View\n\nwhile the archive retains all executable, protocol-compliant variants. The resulting implementations remain fixed\nduring policy training; only their profiles and allocation are updated.\nPrompt excerpts. Stages receive the parent harness, complete trajectories, and scoring diagnostics; hidden scoring\nanswers are not supplied to the executor policy. The saved instructions include:\n• Attribution: “For EACH failure, follow the earliest decision or tool result explaining the failed check, then\ninspect the later effect.”\n• Planning: “Choose among all six editable components according to the diagnosed cause; do not default to\nprompt/skill edits.”\n• Submission: “Submit must summarize observed gains, regressions and unresolved causes; never claim unrun\ntests.”\n\nG\n\nComputational Efficiency\n\nAll experiments use eight NVIDIA H800 GPUs; external-model usage is reported separately in API tokens. The two\ntables distinguish policy-training expenditure from the complete search-and-training pipeline.\nTable 9 GRPO training cost and H0 test Avg@3 on AppWorld (Qwen3.5-4B). All settings use 40 updates. Parentheses give\nrollout counts relative to plain H0 GRPO.\nTraining Training H0 test\nrollouts GPU·h Avg@3 (%)\n\nSetting\n\n2,560\n(100.00%)\n3,616\n(141.25%)\n2,560\n(100.00%)\n2,560\n(100.00%)\n3,032\n(118.44%)\n\nPlain H0 GRPO\nGRPO (H0 rescue)\nDSH H0 + Top-4\nDSH H0 + Claude Code\nHarness-S / Top-8\n\n50.58\n\n48.98\n\n97.77\n\n51.91\n\n58.47\n\n47.84\n\n50.03\n\n46.69\n\n67.19\n\n56.87\n\nTable 10 Full-pipeline resources for harness search and policy adaptation. Training rollouts count additional samples;\nHarnessForge reuses successful search trajectories. API tokens are in millions (M).\nAPI\nSearch Training\nrollouts rollouts GPU·h tokens (M)\n\nMethod\nMeta-Harness\nWHALE\nHarnessForge\nHarness-S\n\n8,000\n8,640\n5,680\n4,010\n\n21\n\n0\n2,560\n0\n3,032\n\n35.24\n95.84\n65.39\n75.79\n\n4.89\n9.80\n24.40\n18.69\n\n\fTraining costs include unsuccessful attempts as well as retained trajectories. All variants in Table 9 use 40\nupdates, but the rescue methods incur additional rollouts when the initial H0 group fails. Harness-S improves H0\nAvg@3 by 7.89 points over plain GRPO with 18.44% more rollouts. It also outperforms H0 rescue with fewer rescue\nattempts and lower GPU time. The fixed mixtures match the plain-GRPO rollout count but do not obtain the same\nretained-performance benefit.\nDirectional evolution reduces the search component of the pipeline. Table 10 reports 29–54% fewer search\nrollouts for Harness-S, with GPU hours and API tokens within the range of the joint-adaptation baselines. Relative to\nWHALE, Harness-S uses fewer GPU hours but more API tokens; relative to HarnessForge, it uses fewer API tokens\nbut more GPU hours. HarnessForge’s zero additional training rollouts reflects reuse of successful search trajectories\nfor policy updates. Re-anchoring supports reuse across policy checkpoints; extending the pool between training runs\ncan amortize earlier evolution effort.\n\nH\n\nExtended Related Work\n\nH.1\n\nAgent RL Training\n\nInteractive environments make action selection and observation handling part of the training problem. Toolformer\nlearns API use through self-supervised examples, while AgentTuning initializes agent capabilities through instruction tuning on interaction trajectories (Schick et al., 2023; Zeng et al., 2023). Such supervision can initialize tooluse behavior before reinforcement learning from task outcomes. WebGPT combines browsing demonstrations with\nhuman-preference feedback (Nakano et al., 2022). ReTool learns to interleave reasoning with code execution, while\nSearch-R1 learns multi-turn search interactions and masks retrieved content during optimization (Feng et al., 2025;\nJin et al., 2025). SWE-RL develops software-engineering reasoning from software evolution data with rule-based solution rewards (Wei et al., 2025). The supervision source and action interface jointly determine which behaviors can\nbe learned.\nLong interactions introduce credit-assignment and rollout-quality problems beyond optimizing individual responses.\nRAGEN identifies instability associated with collapsing reward variation and studies how rollout diversity and feedback shape multi-turn learning (Wang et al., 2025). LOOP trains agents directly in stateful environments such as\nAppWorld using a memory-efficient PPO variant (Chen et al., 2025). AgentGym-RL explores a complementary curriculum, gradually increasing interaction horizons to balance early exploitation with broader exploration (Xi et al.,\n2025). Agent Lightning separates execution from optimization and decomposes trajectories into transitions with\nassigned credit (Luo et al., 2025). These directions distinguish the learning objective, interaction curriculum, and\nruntime interface through which training experience is collected.\nClassical RL offers additional ways to learn when successful outcomes are rare or delayed. Hindsight Experience\nReplay reuses unsuccessful attempts by relabeling them with goals that were achieved (Andrychowicz et al., 2018).\nRUDDER redistributes delayed rewards through return decomposition (Arjona-Medina et al., 2019), whereas GoExplore separates returning to promising states from exploring beyond them (Ecoffet et al., 2021). These methods\nintervene in goal assignment, credit distribution, and state coverage, respectively. The distinction matters for language agents: changing how experience is generated and changing what an existing trajectory teaches are different\ninterventions.\nUniformly rewarded groups limit the signal available to group-relative updates. PPO uses a surrogate objective to\ncontrol policy updates, while GRPO estimates advantages from rewards within a sampled group (Schulman et al.,\n2017; Shao et al., 2024). DAPO uses dynamic sampling to retain groups with reward variation, filtering groups whose\nsamples are all correct or all incorrect (Yu et al., 2025). Model-aware tool-use data evolution in LoopTool and hintconditioned generative recommendation in HCGRec address related data and exploration bottlenecks (Zhang et al.,\n2026d,b). Harness-S changes execution support before generating fresh attempts on the same failed task. It keeps the\ntask and verifier fixed while seeking the successful alternatives needed for policy updates.\n\nH.2\n\nKnowledge Transfer\n\nThe form of supervision determines what a student can inherit from a teacher. Classical knowledge distillation transfers predictive distributions (Hinton et al., 2015), while Sequence-Level Knowledge Distillation trains autoregressive\n\n22\n\n\fstudents with teacher-generated sequences (Kim and Rush, 2016). These approaches transfer information at different\ngranularities: relations among candidate outputs versus complete generated solutions. The distinction is relevant\nwhen successful behavior consists of a sequence of decisions rather than a single prediction.\nMultiple specialists can also be consolidated into a shared decision-making model. Policy Distillation combines taskspecific reinforcement-learning policies into a single network (Rusu et al., 2016). Kickstarting combines guidance from\npreviously trained agents with continued reinforcement learning, allowing a student to benefit from several experts\nand improve beyond them (Schmitt et al., 2018). The resulting learner can act without querying every original expert,\nseparating the resources used to acquire a capability from those required to deploy it.\nAdditional computation and reasoning traces provide another source of transferable knowledge. Expert Iteration\nalternates tree-search planning with training a policy to generalize the resulting decisions (Anthony et al., 2017).\nSTaR trains on successful self-generated rationales, including rationales regenerated with access to the correct answer\nafter failure (Zelikman et al., 2022). Distilling Step-by-Step uses teacher-generated rationales as additional supervision\nalongside task labels (Hsieh et al., 2023). These approaches differ in how they obtain useful traces, but all use richer\ntraining-time computation to shape a model’s subsequent behavior.\nTransfer must also account for the distribution induced by the learner. DAgger aggregates expert-labeled states visited\nby successive learner policies to address distribution shift in sequential imitation (Ross et al., 2011). Generalized\nKnowledge Distillation similarly obtains teacher feedback on student-generated sequences (Agarwal et al., 2024).\nMiniLLM studies on-policy optimization of reverse KL divergence to limit student probability mass on outputs that\nthe teacher assigns low likelihood (Gu et al., 2026). Together, these works show why the training distribution and\nthe matching objective are separate design choices.\nTeachers may additionally have information that the deployed learner will not receive. Generalized distillation connects this setting to learning with privileged information (Lopez-Paz et al., 2016); Learning by Cheating applies it to\ndriving by training a vision-based policy from an agent with privileged environmental state (Chen et al., 2019). VAD\nexamines the source of multimodal teacher feedback through controlled visual-evidence interventions (Zhang et al.,\n2026c). Harness-S instead obtains behavioral diversity by executing the same current policy under different harness\ncontexts. Task outcomes supervise its trajectories, and evaluation under H0 tests whether useful behaviors persist\nwhen auxiliary execution support is removed.\n\nH.3\n\nHarness Editing and Reusable Skills\n\nThe execution interface determines how a language model’s outputs become actions. ReAct interleaves reasoning\nand environment interaction (Yao et al., 2023b); SWE-agent and CodeAct study dedicated computer interfaces and\nexecutable code actions, respectively (Yang et al., 2024b; Wang et al., 2024b). AutoGen extends the design space to\nconfigurable conversations among agents, tools, and human participants (Wu et al., 2023). These systems establish\ndifferent control structures and action representations that later optimization procedures can modify.\nExecution support can be optimized at several levels of granularity. OPRO uses evaluated solutions to guide new\nprompt proposals (Yang et al., 2024a). EvoPrompt applies evolutionary operators to prompt populations, while\nPromptbreeder also evolves the mutation prompts that generate candidates (Guo et al., 2025; Fernando et al., 2023).\nDSPy compiles modular language-model pipelines against task metrics (Khattab et al., 2023). TextGrad propagates\ntextual feedback through computation graphs, and AFlow searches code-represented workflows with execution feedback (Yuksekgonul et al., 2024; Zhang et al., 2025). AgentOptimizer treats an agent’s functions as adjustable parameters while keeping the underlying language model fixed (Zhang et al., 2024). Thus, prompt editing, workflow search,\nand function revision expose different parts of an execution system to optimization.\nMaintaining an archive supports exploration of multiple improvement directions. ADAS searches code-defined agents\nusing previous discoveries, and the Darwin Gödel Machine branches from an archive of executable agents whose modifications are evaluated empirically (Hu et al., 2025; Zhang et al., 2026a). GEPA combines trajectory-based reflection\nwith complementary prompt candidates on a Pareto frontier (Agrawal et al., 2026). Meta-Harness gives its proposer\naccess to earlier implementations, scores, and execution traces (Lee et al., 2026). Harness-R1 makes the editing policy\nitself learnable from the outcomes of its runtime changes (Shao et al., 2026). Archive design and proposal learning\ntherefore address distinct parts of search: retaining alternative behaviors and improving how candidates are generated.\n\n23\n\n\fReusable tools and skills reduce the need to rediscover useful procedures. LLMs As Tool Makers separates a model\nthat constructs reusable tools from one that applies them, allowing construction costs to be shared across later requests (Cai et al., 2024). Voyager accumulates executable skills through interaction, while Agent Workflow Memory\ninduces reusable routines from past experience (Wang et al., 2023, 2024c). The reusable object can consequently range\nfrom a callable function to a workflow supplied as context, with different requirements for retrieval and execution.\nNatural-language memory offers another way to preserve experience without immediately updating model weights.\nReflexion stores linguistic feedback for subsequent trials, ExpeL extracts insights from past tasks, and ACE incrementally curates strategies in context playbooks (Shinn et al., 2023; Zhao et al., 2024; Zhang et al., 2026f). MMSkills\nextends reusable packages to multimodal evidence; SkillRise and SkillGate learn skill curation and selection, respectively (Zhang et al., 2026e; Yao et al., 2026; Li et al., 2026). Representing a procedure, deciding when to retrieve it, and\nretaining its benefits in policy parameters remain separate questions.\nExecution resources can evolve jointly with the policy or be allocated during its training. Co-Harness and WHALE\nalternate harness and model optimization, while HarnessForge evolves coupled harness–policy systems (Chen et al.,\n2026c; Kim et al., 2026; Chen et al., 2026a). HarnessBandit instead schedules one harness per optimizer step using\nlearnability and cross-harness transferability signals (Wei et al., 2026). Harness-S allocates a fixed sibling pool at\nthe task level, invoking auxiliary harnesses after all initial attempts under H0 fail. Policy-aware profiles track which\nvariants remain useful, while rescue trajectories update one shared policy. This links harness search to policy learning\nthrough complementary exploration, with base-harness evaluation separating retained policy gains from additional\ninference-time support.\n\n24\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"