"<!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>Harmony Harness: Multi-Objective\nSelf-Evolution of Agent Harnesses\nWeichen Yu1 2 * , Lesly Miculicich1 , Bhavana Dalvi Mishra1 , Jiefeng Chen1 , Shuo Li3 , Matt Fredrikson2 , Tomas\nPfister1 and Long T. Le1\n\narXiv:2610.15150v1 [cs.AI] 10 Oct 2026\n\n1 Google Cloud AI Research, 2 Carnegie Mellon University, 3 Google DeepMind\n\nRecent work on self-evolving LLM agents treats the agent harness as an optimization target that can be\niteratively improved through execution feedback. Existing approaches, however, largely optimize a single\nobjective and evolve the harness as a monolithic artifact, limiting their ability to handle competing goals\nand to separate transferable design from environment-specific adaptation. We introduce Harmony\nHarness, a framework for multi-objective, compositional harness evolution. Harmony Harness\nformulates harness evolution as a multi-objective optimization problem and uses decomposition-based\nevolutionary search to maintain solutions across different regions of the Pareto frontier, avoiding\nreliance on a hand-designed structural diversity metric for repository-scale harnesses. In parallel, we\nintroduce factorized evolution operators that separately refine general-purpose harness mechanisms and\nbenchmark-specific adaptations, together with a dynamic composition workflow that integrates them at\ninference time. Across SecRepoBench and BaxBench, Harmony Harness consistently outperforms\nstrong harness-evolution baselines, with gains exceeding 10% on both benchmarks. Our results show\nthat explicitly modeling both objective trade-offs and harness structure yields substantially stronger and\nmore transferable agent evolution than existing single-objective, monolithic approaches.\n\n1. Introduction\nA deployed LLM agent wraps a base model in a harness: the system prompt, tool set, agent loop,\nverification gates, and orchestration that collectively determine how underlying capabilities translate\ninto task outcomes. Recent work on self-evolving harnesses allows agents to iteratively modify this\ninfrastructure from execution feedback (Hu et al., 2025a; Zhuge et al., 2024; Zhang et al., 2026b;\nRobeyns et al., 2025; Zhang et al., 2026a; Qiu et al., 2025; Lee et al., 2026). Existing approaches,\nhowever, optimize solely around a single scalar objective, such as pass rate on a benchmark. Harness\nself-evolution under multiple objectives, in particular with safety treated as an independent\naxis rather than folded into the success signal, remains unaddressed.\nExtending harness self-evolution from a single objective to multiple objectives is not as simple as\nadding another reward signal. The challenge arises from the structure of the Pareto frontier and\nthe possibility of genuine trade-offs between objectives. Consider functionality and safety. At first\nglance, the two appear aligned: a stronger coding agent should ideally produce code that both passes\nits tests and resists exploitation. Yet this alignment need not hold throughout the space of possible\nharnesses. A harness may improve pass rate by relaxing a verification gate, for example, or improve\nsecurity by rejecting behaviors that are nevertheless required for functional correctness. Once such\nconflicts emerge, the evolution procedure must explicitly determine how they should be resolved.\nExisting formulations handle such tensions poorly: linear scalarization provably misses non-convex\nPareto regions1 regardless of weight choices, and, even where the frontier is convex, it will trade a point\nof one objective for a cheaper point of the other; delegating trade-offs to the agent leaves compromises\n1 The Pareto frontier is the set of non-dominated solutions for which no objective can be improved without degrading at\n\nleast one other objective.\n\nCorresponding author(s): wyu3@andrew.cmu.edu, lmiculicich@google.com, and longtle@google.com\n* This work was done while Weichen Yu was a Student Researcher at Google Cloud AI Research.\n\n\fHarmony Harness: Multi-Objective Self-Evolution of Agent Harnesses\n\nimplicit, unstable, and rarely Pareto-optimal. Constrained optimization (Sinha et al., 2024; Dai et al.,\n2024) enforces safety thresholds, but reduces the task to constrained single-objective search rather\nthan mapping the trade-off surface. Handling multiple objectives thus requires an explicit mechanism\nthat keeps pressure on both axes. Whether the frontier is actually non-convex is an empirical question:\non the secure-coding benchmarks we study, better scaffolds often improve functionality and security\ntogether (App. G). There, the main value of decomposition is not recovering non-convex regions. It\nis objective-directed search pressure: each subproblem keeps pushing whichever objective has the\nlargest weighted shortfall from the ideal point, so neither objective can regress unnoticed.\nA second limitation of existing harness-evolution methods is structural rather than algorithmic:\nthey evolve the harness as a monolithic artifact. Each generation rewrites the repository as a single block\nagainst feedback from a single environment; they do not disentangle general harness design from\nenvironment-specific adaptation (Lee et al., 2026; Yin et al., 2025). In practice, many mechanisms\nacquired during evolution contain both components. One is a general capability that should transfer\nacross environments; the other is the environment-specific calibration required to make that capability\neffective in a particular setting. For example, constructing and executing code inside a container is a\nbroadly useful capability, whereas the choice of image, teardown policy, and handling of benchmarkspecific sandbox conventions is environment dependent. Similarly, compressing or truncating tool\noutputs is a general mechanism, while deciding which portions can safely be omitted depends strongly\non whether the output is a compiler log, a fuzzer trace, or a test-runner report. Current methods\ntypically optimize these components jointly against feedback from a single environment. As a result,\ntransferable design choices and benchmark-specific adaptations receive the same reward signal and\nare encoded into the same monolithic harness. We do not expect the boundary between these two\ndesigns to be perfectly discrete; effective capabilities inevitably require some environment-dependent\ncalibration. Nevertheless, explicitly separating the two creates a more useful abstraction: a general\nharness that can transfer across tasks and environments, paired with lightweight environment-specific\ncomponents that specialize it to the execution context at hand.\nTo address these challenges, we introduce Harmony Harness, a multi-objective harness evolution\nframework built on decomposition-based evolutionary optimization (Li &amp; Zhang, 2009). Rather than\ncollapsing multiple objectives into a single reward, we decompose the objective space using a set of\nweight vectors, each defining a scalar subproblem corresponding to a subregion of the Pareto frontier,\nand optimize these subproblems jointly within a shared population. This formulation is particularly\nwell suited to harness evolution. Existing evolutionary systems often require an explicit artifact-level\ndiversity metric to prevent population collapse (Novikov et al., 2025; Wang et al., 2025); such metrics\n(e.g. number of lines of code) are relatively natural for compact artifacts such as a single program, but\nbecome difficult to define meaningfully for repository-scale agent harnesses whose variations span\nprompts, control flow, tools, verification logic, and orchestration. Our decomposition instead gives\neach subproblem a different objective preference, so selection pressure is diversified by construction,\nwithout requiring a hand-designed structural diversity metric. This does not by itself guarantee\nbehavioral diversity: when the objectives are positively correlated, or when LLM edits are small and\nlocal, the incumbents need not differ in behavior. We find that standard code-level diversity metrics\ncapture behavioral diversity only partially for harnesses (appendix). Maintaining a bounded set of\nrepresentative solutions also avoids carrying an ever-growing archive of artifacts into the proposer\ncontext, reducing the context and search overhead of evolution.\nWe instantiate dual-objective self-evolution in secure code generation, where functionality requires\npassing unit tests and security requires neutralizing proof-of-concept exploits. Our findings are: 1)\nLimits of Single-Objective Evolution: Optimizing solely for code functionality yields only marginal,\nincidental security gains. 2) Suboptimality of Naive Formulations: Naive combinations, such\nas weighted-sum scalarization or sequential evolution, stall below the full framework; the margin\n2\n\n\fHarmony Harness: Multi-Objective Self-Evolution of Agent Harnesses\n\ncomes from combining decomposition with factored evolving and dynamic orchestration, not from\nthe aggregation rule alone. 3) Effectiveness and Transferability: Our multi-objective framework\nconsistently outperforms baselines and generalizes across benchmarks with identical dual objectives.\n4) Benefits of Factorized Harness and Dynamic Orchestration: Factorized harness evolution and\nadaptive orchestration outperform static, fixed-pipeline evolutionary workflows.\n\n2. Related Work\nSelf-evolving and self-improving agents. A growing body of work lets agents improve from their\nown experience via reflection, memory, skill libraries, and workflow updates (Wang et al., 2024;\nShinn et al., 2023; Sun et al., 2023; Zhang et al., 2024; Ou et al., 2025; Zhang et al., 2025b; Hu et al.,\n2025b). Voyager (Wang et al., 2024) grows a skill library from iterative code; Reflexion (Shinn et al.,\n2023) uses verbal self-critique over failed trajectories; AdaPlanner (Sun et al., 2023) adapts plans from\nenvironmental feedback. Two systems are conceptual predecessors of ours; we borrow ideas from\nthem, not their algorithms or code. GEPA (Agrawal et al., 2026) performs reflective prompt evolution\nover a maintained Pareto frontier of prompts; we lift the idea of a maintained frontier from prompts\nto whole harnesses and from task instances to a (functionality, security) objective space. ADAS (Hu\net al., 2025a) has a meta-agent program new agent designs in code, one level up from the prompt;\nwe share its view of the agent as an editable program, but our search procedure is MOEA/D (Li &amp;\nZhang, 2009) with LLM variation operators (§4.1), not ADAS’s archive-based meta-agent search.\nClosest to our code setting, the Darwin Gödel Machine (Zhang et al., 2026b) and meta-harness (Lee\net al., 2026) self-improve a coding agent by a monolithic loop—evolve the agent’s code as one block.\nAll of these systems (i) optimize a single objective and evaluate only functionality, and (ii) do not\nseparate reusable from environment-specific components in what is evolved.\nSafety during evolution, and safety as a constraint. SoS (Sinha et al., 2024) jointly evolves\na prompt for utility and safety, but evolves only a single prompt slot; safety gains at one position\ncan be undone elsewhere. More broadly, multi-objective alignment treats helpfulness/harmlessness\ntrade-offs as joint reward optimization (Askell et al., 2021; Bai et al., 2022a,b; Ramé et al., 2023; Zhou\net al., 2024), whereas constrained approaches argue safety is better expressed as a hard constraint\nthan a reward term (Achiam et al., 2017; Dai et al., 2024). Rather than demoting safety to a feasibility\ncondition on a functionality objective, we keep it as an objective in its own right and search the\nfrontier by decomposition, lifted from a single prompt to an entire harness.\n\n3. Problem Formulation\nLet H denote the space of agent harnesses, and let D = {𝑡𝑛 = ( 𝑥𝑛 , 𝑝𝑛 )} 𝑛𝑀=1 be a set of 𝑀 evaluation\ntasks, where 𝑥𝑛 is the task specification and 𝑝𝑛 is the corresponding security policy. Executing harness\n𝐻 ∈ H on task 𝑡𝑛 induces a distribution over trajectories, 𝜏 ∼ 𝑃 𝐻 ( 𝜏 | 𝑥𝑛 ) , reflecting the stochasticity\nof the underlying agent. The agent only sees 𝑥𝑛 ; the policy 𝑝𝑛 (e.g., the exploit) is hidden at solve\ntime and enters only through the evaluation oracle 𝑆 ( 𝜏, 𝑝𝑛 ). We evaluate each harness\nalong two\n\u0001\nexecution-grounded objectives, functionality and security: f ( 𝐻 ) = 𝑓func ( 𝐻 ) , 𝑓sec ( 𝐻 ) , defined in B.\nJoint metric. Our headline metric is the rate at which a single trajectory is both functional and\nsecure:\n𝑀\n1 ∑︁\n𝑓∧ ( 𝐻 ) =\n𝔼𝜏∼𝑃 𝐻 (· | 𝑥𝑛 ) [ 𝐹 ( 𝜏, 𝑥𝑛 ) 𝑆 ( 𝜏, 𝑝𝑛 )] .\n(1)\n𝑀\n\n𝑛=1\n\nThe search optimizes the two marginals ( 𝑓func , 𝑓sec ) rather than 𝑓∧ directly. The joint rate is bounded\n\n3\n\n\fHarmony Harness: Multi-Objective Self-Evolution of Agent Harnesses\n\non both sides by the marginals (the Fréchet bounds),\n\u0001\n\u0001\nmax 0, 𝑓func ( 𝐻 ) + 𝑓sec ( 𝐻 ) − 1 ≤ 𝑓∧ ( 𝐻 ) ≤ min 𝑓func ( 𝐻 ) , 𝑓sec ( 𝐻 ) ,\n\n(2)\n\nso raising both marginals raises the ceiling on 𝑓∧ and, once their sum exceeds 1, also forces it up\nfrom below. A Tchebycheff subproblem (Eq. 4, §4.1) acts on the objective with the largest weighted\nshortfall from the ideal point; for the balanced weight 𝝀 = ( 12 , 21 ) this is the currently worse objective,\nwhich is the one that caps 𝑓∧ through the upper bound. Optimizing the marginals does not guarantee\njoint success: two harnesses can have the same marginals and very different 𝑓∧ if they succeed on\ndifferent tasks. We therefore report 𝑓∧ and the gap min( 𝑓func , 𝑓sec ) − 𝑓∧ for every method (§5.1). We\nkeep the marginals as the search objectives because they tell the proposer which property failed on a\ntask, whereas 𝑓∧ alone does not.\nSelecting the deployed harness. Comparisons against single-harness baselines, held-out evaluation, and transfer need one harness per run. Let U𝑔 be the set of children evaluated in generation 𝑔,\nÐ\nand let U = 𝑔 U𝑔 . After evolution we select the most balanced child of the run,\n𝐻 † = arg max min 𝑓ˆfunc ( 𝐻 ) , 𝑓ˆsec ( 𝐻 ) ,\n\n\u0001\n\n𝐻∈U\n\n(3)\n\ncomputed on the search split only, with ties resolved in favor of the earlier generation. The candidate\nneed not be an incumbent at the end of the run: a child that was later replaced under one subproblem’s\npreference can still be the most balanced one overall. The held-out splits are never used for selection.\nEq. 3 is the Tchebycheff scalarization (Eq. 4, §4.1) with equal weights 𝝀 = ( 12 , 12 ) and the utopia point\n\u0001\n(1, 1) as reference, since arg min 𝐻 max 𝑗 21 1 − 𝑓ˆ𝑗 ( 𝐻 ) = arg max 𝐻 min 𝑗 𝑓ˆ𝑗 ( 𝐻 ).\n\n4. Multi-Objective and Factored Harness Evolution\nGiven the multi-objective formulation in §3, Harmony Harness evolves a population of repositoryscale agent harnesses toward different regions of the Pareto frontier. The framework combines two\ncomplementary ideas. First, we adapt decomposition-based multi-objective evolution to LLM agent\nharnesses: a set of objective preferences defines multiple scalar subproblems, each maintaining an\nincumbent harness for a different trade-off between objectives. An LLM proposer generates candidate\nharnesses from execution-grounded feedback, and candidates selectively replace incumbents in nearby\nsubproblems according to their respective objectives. Second, we factorize the variation process to\ndistinguish reusable harness mechanisms from environment-specific adaptation. General-purpose\nand environment-focused modifications are evolved through different operators and dynamically\ncomposed at inference time. Figure 1 illustrates the complete evolution loop.\nSearch Space: The Harness as the Genome Unlike program-evolution methods that optimize a\ncompact code artifact, the individual in Harmony Harness is an entire agent harness. We freeze\nonly a minimal interface required by the evaluator; the remaining harness—including prompts, tools,\nskills, control logic, verification mechanisms, and orchestration—constitutes the evolvable genome.\nConcretely, the search space contains three major classes of components, K = {tools, skills, logic},\nwhere logic also covers orchestration. Tools provide executable capabilities available inside the agent\nloop, including environment interaction and verification utilities. Skills encode reusable domain\nknowledge, such as debugging procedures or repair strategies, that can be retrieved when relevant.\nFinally, logic and orchestration determine how these capabilities are used, including the system prompt,\nagent loop, verification gates, and workflow connecting individual reasoning and execution stages.\nBecause the proposer operates directly over the harness repository, evolution may modify not only\n4\n\n\fHarmony Harness: Multi-Objective Self-Evolution of Agent Harnesses\n\na Multi-objective decomposition\n\nc Dynamic composition at inference\nCOMPONENT POOLS\n\nGeneral\nComposition agent\n\nActive component set\n\nEnvironment-specific\n\nRuntime composition\nFunctionality\n\ntools · skills · logic\n\nExecutable harness\n\nb Factorized harness evolution\n1 Diagnose\n\nExecution feedback\nTrace + system state\n\n2 Operator proposer\n\nHypothesis + operator\n\n3 Component-specific operators\nOperator input\ntool_evolve\nskill_evolve\nlogic_evolve\ngeneralize\n\nTools and APIs\nSkills and prompts\nOrchestration / pipeline\n\n4 Scope assignment\n5 Scoped harness update\n6 Validate\n\nRepair or rollback\n\nFigure 1 | Overview of Harmony Harness. (a) The functionality–security space is split into\nweighted subproblems. Each subproblem keeps a harness and together they approximate the Pareto\nfrontier. (b) An LLM proposer diagnoses failures and forms a hypothesis. Operators edit tools, skills,\nor logic, and place each edit in either the general scope or the environment-specific scope. The child is\nvalidated before evaluation. (c) At inference, a composition agent picks components from the general\nand environment-specific pools to build a task-specific harness.\nlocal instructions but also the high-level structure of the agent. The initial harness 𝐻0 is a lightweight\nbut functional ReAct-style base (details in Appendix E).\n4.1. Multi-Objective Evolution by Decomposition\nDirectly maintaining a single “best” harness is ill-defined under multiple objectives for two reasons:\n(1) evolutionary search must maintain sufficient population diversity to avoid premature convergence;\nand (2) different harnesses may realize distinct Pareto-optimal trade-offs. We therefore instantiate\nharness evolution using a decomposition strategy based on MOEA/D (Li &amp; Zhang, 2009).\n\b\nÍ\nDecomposition. Let Λ = 𝝀1 , . . . , 𝝀𝑁 , 𝜆 𝑖𝑗 ≥ 0, 𝑚𝑗=1 𝜆 𝑖𝑗 = 1, denote a set of 𝑁 weight vectors spanning\nthe 𝑚-objective simplex. In our bi-objective setting (𝑚 = 2), the weight vectors are chosen to be\nuniformly distributed along the security–functionality trade-off. Each 𝝀𝑖 defines a scalar optimization\nsubproblem and is associated with an incumbent harness 𝐻𝑖 . Collectively, the 𝑁 subproblems cover\ndifferent objective preferences and maintain a finite set of representative solutions that approximate\nthe Pareto frontier.\n∗ ), where 𝑧 ∗ = max 𝑓ˆ ( 𝐻 ) is the best value of objective 𝑗\nWe maintain an ideal point z∗ = ( 𝑧1∗ , . . . , 𝑧𝑚\n𝐻 𝑗\n𝑗\nobserved over all harnesses evaluated so far. Given a weight vector 𝝀𝑖 ∈ Λ, we define the corresponding\nsubproblem using the weighted Tchebycheff scalarization\n\u0001\n𝑔 te 𝐻 | 𝝀𝑖 , z∗ = max 𝜆 𝑖𝑗 𝑧 ∗𝑗 − 𝑓ˆ𝑗 ( 𝐻 ) ,\n(4)\n𝑗 ∈ {1,...,𝑚 }\n\nwhere lower values indicate a smaller weighted deviation from the ideal point. Conceptually, the\nsolution associated with subproblem 𝑖 is\n\u0001\n𝐻𝑖∗ = arg min 𝑔 te 𝐻 | 𝝀𝑖 , z∗ ,\n(5)\n𝐻∈H\n\nand during evolution we maintain an incumbent 𝐻𝑖 as the current approximation to 𝐻𝑖∗ .\n5\n\n\fHarmony Harness: Multi-Objective Self-Evolution of Agent Harnesses\n\nThis decomposition is fundamentally different from optimizing a single weighted-sum objective.\nImportantly, the scalarization in Eq. 4 is local to a subproblem: Harmony Harness does\nnot replace the multi-objective problem with one globally authoritative scalar reward. Different\nsubproblems preserve different objective preferences, so a harness favored by a security-oriented\nsubproblem need not compete directly with one favored by a functionality-oriented subproblem.\nNeighborhood evolution and replacement. For each subproblem 𝑖, we define a neighborhood\n𝐵 ( 𝑖) as the set of the 𝑇 weight vectors in Λ closest to 𝝀𝑖 under Euclidean distance. Variation is singleparent: the child for subproblem 𝑖 is produced from its own incumbent 𝐻𝑖 . The neighborhood is used\nin two places. First, if a subproblem stalls, meaning its parent and failure digest are unchanged from\nthe previous generation, we breed instead from the neighbor with the best Tchebycheff value under\n𝝀𝑖 . Second, the neighborhood defines which incumbents the child may replace (below). Both rely on\nthe intuition that nearby objective preferences benefit from similar harness designs. The proposer\nnever receives more than one full parent repository, which keeps its context bounded.\nSuppose variation produces a child harness 𝐻𝑐 for subproblem 𝑖. After evaluating 𝐻𝑐 on all\nobjectives and updating the ideal point z∗ , we consider 𝐻𝑐 as a replacement candidate for each\nneighboring subproblem 𝑙 ∈ 𝐵 ( 𝑖):\n\u0001\n\u0001\n𝐻𝑙 ← 𝐻𝑐 if 𝑔 te 𝐻𝑐 | 𝝀𝑙 , z∗ &lt; 𝑔 te 𝐻𝑙 | 𝝀𝑙 , z∗ .\n(6)\nThus, a candidate discovered for one subproblem may improve several nearby objective preferences,\nwhile incumbents associated with substantially different trade-offs are preserved. Standard MOEA/D\nbounds the number of incumbents one child may replace by 𝑛𝑟 ≤ 𝑇 (Li &amp; Zhang, 2009). We cap\nreplacement at 𝑛𝑟 = 2, so a single child can replace at most two neighbouring incumbents.\nObjective-induced diversity and bounded proposer context. This decomposition is particularly\nwell suited to repository-scale harness evolution. Existing evolutionary methods (Novikov et al., 2025;\nWang et al., 2025) often maintain diversity using explicit artifact-level distance measures, which\nare more natural when each candidate is a compact program for a single task. For repository-scale\nharnesses, however, structural distance is a poor proxy for behavioral diversity: two repositories\nmay implement nearly identical behavior with very different code organization, while small changes\nto a prompt, verification gate, or orchestration rule can substantially alter behavior. Designing a\nreliable hand-crafted diversity metric is therefore difficult when candidates vary jointly over prompts,\ntools, control flow, verification, and workflow structure. In Harmony Harness, each incumbent\nis preserved because it is the best found so far for a distinct objective preference, not because it is\nstructurally distant under a hand-designed metric. This makes diversity of selection pressure hold by\nconstruction. Diversity of behavior does not follow automatically. It also requires the objectives to trade\noff and the LLM operators to make edits that change behavior rather than wording. Measuring this is\nitself an open problem for self-coding harnesses. Our offline analysis (App. J) finds that standard\nprogram-diversity metrics (token, line and AST distance, and edit labels) barely track behaviour: code\ndistance and objective distance are essentially uncorrelated. The metrics also cannot see diversity\nthat is decided at run time, such as the distinct per-task DAGs planned by the orchestrator. Among\nthem, AST distance is the most informative, since it ignores cosmetic rewrites. We therefore treat\ndiversity as something to monitor, not something decomposition guarantees. The population size is\nalso bounded by the number of subproblems, avoiding an ever-growing archive and reducing the\nevolutionary context that must be maintained.\n4.2. Factorized Harness Evolution\nFor a target subproblem 𝑖, the proposer receives a single parent harness, the incumbent 𝐻𝑖 (or a\nneighbor when the subproblem stalls), the objective preference 𝝀𝑖 , and the execution feedback E 𝑖\n6\n\n\fHarmony Harness: Multi-Objective Self-Evolution of Agent Harnesses\n\ncollected from running that parent. The feedback contains aggregate objective statistics together with\nsampled execution artifacts, such as compiler errors, failing tests, and crash traces. Before modifying\nthe harness, the proposer first diagnoses the observed failures and formulates a concrete hypothesis\nfor improvement under the current objective preference.\nWhy factorize harness evolution? A repository-scale harness contains heterogeneous components, including tools, skills, prompts, verification logic, control flow, and orchestration, that play\ndifferent roles in agent behavior. An observed failure often suggests a change to only a subset of\nthese components. Treating the entire repository as a single rewrite target can therefore couple\nan intended repair with unrelated changes elsewhere in the harness. More importantly, because\nevolutionary feedback is collected from a particular benchmark, unrestricted rewriting does not\nexplicitly distinguish reusable mechanisms from adaptations that exploit properties specific to the\ncurrent benchmark.\nFactorized harness representation. We therefore factorize harness evolution along two complementary dimensions: component type and adaptation scope. Component factorization localizes an\nupdate to a semantically meaningful part of the harness, while scope factorization provides an explicit\nrepresentation for reusable and environment-specific components. This organization serves as an\ninductive bias; we do not assume that either decomposition is unique or theoretically exact. Given execution feedback E 𝑖 , the proposer first diagnoses the observed failure and formulates an improvement\nhypothesis: 𝑑 𝑖 = Q (E 𝑖 ) , ℎ𝑖 = G( 𝑑 𝑖 , 𝝀𝑖 ) , where Q and G denote the diagnosis and hypothesis steps of\nthe proposer, 𝑑 𝑖 denotes the failure diagnosis, and ℎ𝑖 denotes the proposed improvement hypothesis.\nBased on this hypothesis, the proposer selects the component class to modify, 𝑘𝑖 = 𝜋comp ( ℎ𝑖 ) ∈ K ,\nwhere K is the set of component classes defined in §4. The proposer then assigns the scope of the\nmodification through a component-specific scope assignment R 𝑘𝑖 :\n𝑠𝑖 = R 𝑘𝑖 ( 𝐻𝑖 , ℎ𝑖 ) ∈ Σ,\n\n(7)\n\nwhere Σ = {gen, env} . Here, 𝑘𝑖 determines what component to modify, while 𝑠𝑖 determines where\nthe resulting modification should reside. gen refers to a general harness component, and env means\nenvironment-specific. The corresponding component-scope update is then applied to produce the\nchild harness of §4.1: 𝐻𝑐 = O𝑘𝑖 ,𝑠𝑖 ( 𝐻𝑖 ; ℎ𝑖 ) . Here, O𝑘𝑖 ,𝑠𝑖 is a factorized variation operator that directly\nmodifies the harness. The complete operator details are provided in Appendix E. The distinction\nin Eq. 7 is operational rather than semantic. In the implementation, components are stored under\nexplicit general or benchmark-specific scopes. For example, tools and skills may each contain a\ngeneral implementation together with benchmark-specific variants. The proposer therefore makes\ntwo decisions when modifying the harness: which component to change, and whether the resulting\nchange should reside in the general scope or in an environment-specific scope. This assignment is not\nfixed and may be revised during evolution.\nGeneralization as cross-scope reorganization. The boundary between general and environmentspecific components is itself allowed to evolve. We introduce a dedicated generalize operator\nthat inspects the current harness organization and reorganizes components across the two scopes\nwhen their existing placement introduces unnecessary specialization. Implementation details for this\noperator are provided in Appendix E.3.\nValidation and recovery. Every proposed child is validated before objective evaluation in three\nstages. The details are described in Appendix E.5.\n4.3. Dynamic Composition at Inference\nFactorized evolution produces a pool of reusable components H gen together with environment-specific\ncomponents H𝑒env . We do not execute the complete union of these components for every task. Even\n7\n\n\fHarmony Harness: Multi-Objective Self-Evolution of Agent Harnesses\n\nEvolve on SecRepoBench Harmony Harness dominates on every split\nsecure-pass@1 / functional-pass@1 / both, 30 tasks per split. Higher is better.\n\nsafe&amp;func\n\n73.3\n\n36.7\n43.3\n36.7\n33.3\n33.3\n\nsafe\n\nfunc\n\nEvolve on BaxBench\nHarmony Harness\nsplit\nbaseline\nmeta-harness leads\n(func-only)on every\ndgm (func\n&amp; sec, scalar)\n\nfunc safe&amp;func\n\nsafe\n\n53.6\n\n64.3\n\n42.9\n42.9\n39.3\n42.9\n39.3\n\n57.1\n60.7\n60.7\n53.6\n57.1\n\n57.1\n\n46.4\n50.0\n39.3\n50.0\n50.0\n\n62.4\n\n75.0\n\nHeld-out OOD\n\n42.9\n53.6\n50.0\n53.6\n50.0\n\n64.3\n\nsafe\n\n62.4\n62.4\n64.3\n57.1\n64.3\n\n50.0\n57.1\n53.6\n60.7\n50.0\n\n67.9\n\n75.0\n\nfunc safe&amp;func\n\nsafe&amp;func\n\nharmony harness\n\nHeld-out ID\n\n42.9\n60.7\n46.4\n46.4\n57.1\n\n71.4\n\nsafe\n\n60.7\n71.4\n71.4\n50.0\n71.4\n\n100\n80\n60\n40\n20\n0\n\nEvolve\n\n50.0\n64.3\n53.6\n67.9\n60.7\n\n%\n\nsecure-pass / functional-pass\n/ both,(func\nper split.\nmeta-harness\n&amp; sec)Higher is better.\nmeta-harness (sec-only)\n\n66.7\n\n70.0\n70.0\n70.0\n63.3\n66.7\n\n66.7\n46.7\n50.0\n43.3\n50.0\n46.7\n\nfunc\n\n86.7\n\nsafe\n\nHeld-out OOD\n\n50.0\n56.7\n50.0\n53.3\n53.3\n\n86.7\n\n93.3\n\n73.3\n73.3\n73.3\n60.0\n70.0\n\nsafe&amp;func\n\n66.7\n70.0\n60.0\n66.7\n66.7\n\nfunc\n\n76.7\n\n76.7\n\n66.7\n70.0\n73.3\n66.7\n73.3\n\nsafe\n\nHeld-out ID\n46.7\n53.3\n56.7\n46.7\n60.0\n\n93.3\n\n56.7\n73.3\n60.0\n70.0\n76.7\n\n%\n\nEvolve\n100\n80\n60\n40\n20\n0\n\nfunc safe&amp;func\n\nbaseline\nmeta-harness (func-only)\ndgm (func &amp; sec, scalar)\nFigure 2 | Evolution meta-harness\nresults per(func\nsplit\non (a) SecRepoBench\nand (b) harmony\nBaxBench.\n&amp; sec)\nmeta-harness (sec-only)\nharness\n\nwithin the same benchmark, different tasks may benefit from different tools, skills, verification\nprocedures, or control strategies. At inference time, a dedicated composition agent constructs\nthe active harness conditioned on both the current environment and the current task. Given an\nenvironment 𝑒, a task 𝑥 , and the available component pools, the composition agent generates a\ntask-specific DAG,\n\u0001\nA 𝑒,𝑥 = 𝜋𝜙 𝑒, 𝑥, H gen , H𝑒env ,\n(8)\nwhere 𝜋𝜙 denotes the composition policy and A 𝑒,𝑥 contains the components\nactivated for the current\n\u0001\ntask. The executable harness is then instantiated as 𝐻 ( 𝑒,𝑥 ) = C A 𝑒,𝑥 , where C denotes the runtime\ncomposition procedure. The composition agent does not modify the evolved components; it only\ndetermines which components to activate for the current environment and task. This allows general\nmechanisms to remain available across environments without being invoked unconditionally, while\nenvironment-specific mechanisms are loaded only when they are relevant to the current task. Details\nare provided in Appendix F.\n\n5. Experiments\nFor each benchmark, we partition tasks into evolve, held-out-ID, and held-out-OOD splits. The evolve\nsplit provides the execution feedback used during harness evolution, whereas both held-out splits\nremain inaccessible to the proposer and selection procedure. For SecRepoBench, we use 30/30/30\ntasks; for BaxBench, we use 28/28/28 tasks and evolve a separate harness population on each\nbenchmark. We report secure-pass@1, defined as the conjunction of functional and security success,\n𝐹 ∧ 𝑆. Unless otherwise specified, both the harness proposer and the underlying task-solving agent\nuse gemini-3.6-flash. Appendix C describes the benchmarks in detail.\n5.1. Main comparison against self-evolution baselines\nWe first compare six evolution regimes under an identical seed harness and grader. Baseline is\nthe un-evolved harness. The three meta-harness (Lee et al., 2026) variants are its monolithic\n“summarize→rewrite” loop driven by (i) functionality and security, (ii) functionality only, or (iii)\nsecurity only. DGM (Zhang et al., 2026b) scalarizes the two objectives into a single reward. HH\n(Harmony Harness) is ours. Each method is evolved on the evolve split only and then evaluated,\nwithout further evolution, on both held-out splits. Figure 2 summarizes the outcome per split on the\ntwo benchmarks; the underlying numbers are tabulated in Tables 9 and 10 in Appendix G.\n8\n\n\fHarmony Harness: Multi-Objective Self-Evolution of Agent Harnesses\n\nTable 1 | How much evolved security survives a distribution shift. Δevolve is a method’s security\ngain over the un-evolved baseline on the split it evolved on; ΔOUT is its gain over the same baseline on\nheld-out-OUT; retained = ΔOUT /Δevolve . Mean over 3 runs.\nSecRepoBench\n\nBaxBench\n\nMethod\n\nΔevolve\n\nΔOUT\n\nretained\n\nΔevolve\n\nΔOUT\n\nretained\n\nMeta-harness (func-only)\nMeta-harness (sec-only)\nMeta-harness (func &amp; sec)\nDGM (func &amp; sec, scalar)\n\n+3.3\n+13.3\n+16.6\n+20.0\n\n−3.4\n+3.3\n+3.3\n+0.0\n\n−103%\n25%\n20%\n0%\n\n+3.6\n+17.9\n+14.3\n+10.7\n\n−7.1\n+3.6\n+3.6\n+3.6\n\n−197%\n20%\n25%\n34%\n\nHarmony Harness (func &amp; sec)\n\n+36.6\n\n+20.0\n\n55%\n\n+21.4\n\n+10.7\n\n50%\n\nTable 2 | Evolution strategies on SecRepoBench. Func/Sec/F&amp;S in %. Mean over 3 runs.\nStrategy\n\nAcceptance rule\n\nFunc\n\nSec\n\nF&amp;S\n\nStatic (no evolution)\nFunctionality-only\nSafety-only\n\n—\naccept if 𝐹 ↑\naccept if viol.↓\n\n66.7\n73.3\n70.0\n\n56.7\n60.0\n66.7\n\n46.7\n56.7\n46.7\n\nSequential (func→sec, sec→func)\nPrompt-merge variants\nJoint-weighted (𝛼 ∈ { .25, .5, .75})\nConstrained (hard 𝜖)\nSeparated func/safety combination\nHarmony Harness\n\none objective per generation, then the other\nmerge func &amp; safety prompts\n𝛼𝐹 + (1− 𝛼) 𝑆\nAchiam et al. (2017)\ndual harness combination\nTchebycheff (Eq. 6)\n\n70.0\n66.7\n70.0\n70.0\n60.0\n76.7\n\n76.7\n60.0\n73.3\n60.0\n60.0\n93.3\n\n70.0\n50.0\n70.0\n60.0\n53.3\n76.7\n\nTable 1 crystallizes the central failure mode we study: baseline methods improve security on the\noptimization distribution yet relinquish most or all of those gains under distribution shift—with larger\nin-distribution gains often corresponding to larger reversals, as exemplified by DGM, which achieves\nthe strongest SecRepoBench security improvement among the baselines during evolution but retains\nnone of it out-of-distribution—motivating our treatment of safety as an explicit optimization axis\nevaluated beyond the evolve distribution rather than as a scalar reward measured only in-distribution.\nHH is best on every split of both benchmarks: 76.7 F&amp;S on the SecRepoBench evolve split, 86.7 on\nheld-out IN (vs. 50.0 for baseline), and 66.7 on held-out OUT (vs. 36.7), and an average F&amp;S of 61.3\non BaxBench against 42.9 for baseline and 52.4 for the strongest meta-harness variant. Notably the\nlargest relative margins are out-of-distribution, which is what factorizing the harness into general and\nenvironment-specific components is meant to achieve.\nComparison with possible multi-objective evolving strategies. In Table 2, we compare with\nvarious baselines with the same initial harness, evolve split, token budget, and settings, through the\nalternative ways of combining the two objectives (sequential, weighted sum, hard constraint), and a\nvariant that evolves the two harnesses separately and combines them afterwards. Four readings stand\nout. (1) Single-objective evolution does not solve the joint problem: functionality-only lifts F&amp;S\nfrom the static 46.7 to 56.7 but leaves security at 60.0, while safety-only buys 10.0 points of security\n(56.7 → 66.7) that never convert into a single additional secure-pass—its F&amp;S stays at the static 46.7.\n(2) With factored evolving and dynamic orchestration held fixed, the acceptance rule matters.\nUnder these matched conditions, Tchebycheff replacement reaches 76.7 F&amp;S, against 70.0 for both\nthe weighted sum and sequential evolution, 60.0 for the hard constraint, and 53.3 for separately\nevolved harnesses. Factored evolving and dynamic orchestration are also necessary: the component\nablation in Table 5 in App. G adds them one at a time on top of Tchebycheff joint evolution, lifting\nF&amp;S from 63.3 to 66.7 and then to 76.7, so each part of the method contributes and only the full\n\n9\n\n\fTransferability — meta harness vs Harmony Harness, every metric\n\nEach cell is one optimized-on\nx evaluated-on\npair,Multi-Objective\nsplit meta harnessSelf-Evolution\n(left) | harmonyofharness\nDashed cells are inHarmony\nHarness:\nAgent(right).\nHarnesses\ndomain; the others are zero-shot transfer.\n\nmeta harmony meta harmony\n\nsafe&amp;func\n\nBaxBench SecRepoBench\n\nBaxBench SecRepoBench\n\n71.4 75.0 50.0 70.0\n57.1 64.3 70.0 76.7\nmeta harmony meta harmony\n\nevaluated on\n\nSecRepoBench BaxBench\n\n53.6 59.6 73.3 93.3\n\nSecRepoBench BaxBench\n\noptimized on\n\nSecRepoBench BaxBench\n\nBaxBench SecRepoBench\n\n64.3 71.4 43.3 80.0\n\nfunc\n\nevaluated on\n\n60.7 67.9 36.7 70.0\n39.3 57.1 53.3 76.7\n\n90\n80\n70\n60\n50\n40\n\npass rate (%)\n\nsafe\n\nevaluated on\n\nmeta harmony meta harmony\n\nFigure 3 | Cross-benchmark transfer. Each cell is one (optimized-on × evaluated-on) pair, split into\nmeta-harness (left) and Harmony Harness (right); dashed outlines mark in-domain cells, solid\noutlines zero-shot transfer.\ndesign reaches the headline result. (3) A hard feasibility constraint acts as a target rather than a\ndirection. Constrained acceptance holds functionality at 70.0 but leaves security at 60.0, only 3.3\nabove never evolving at all. This is the behaviour an 𝜖-threshold rule predicts: it rejects anything\nbelow the bar and is indifferent among everything above it, so evolution stops improving safety\nthe moment safety becomes feasible, whereas Tchebycheff replacement keeps pulling on whichever\nobjective has the largest weighted shortfall. (4) Generalization: real execution feedback beats\npattern-matching. The central positive result is on held-out tasks (Table 14 in App. G). Per-generation\nbests of the execution-feedback variant improve combined F&amp;S from the baseline’s 43.3 to 58.3,\nwhereas the baseline regresses to 35.0. The gain concentrates on held-out OUT (unseen crash types),\nwhere real exploit feedback lets a harness stop unfamiliar vulnerabilities instead of pattern-matching\nknown ones; the proposed method reaches 66.7 out-of-distribution and 76.7 combined. Consulting\nground truth, not memorizing a distribution, is what generalizes.\nDynamic orchestration vs. a fixed pipeline. Table 8 in App. G reports dynamic-workflow vs.\nlinear-pipeline on BaxBench at matched harness and budget. Per-task planning is worth +10.7\npoints of secure-pass and +3.6 of functional-pass for an 8% token overhead (58k to 63k) and 1.2\nextra steps on average—the orchestrator spends more only where it helps. Figure 8 in the appendix\nshows what it actually plans: the seven distinct DAG shapes emitted over 28 BaxBench tasks. The\nmodal plan (39% of tasks) is a five-node fan-out that runs build_verify, endpoint_check, and\nsecurity_audit in parallel and joins into a single edit_fix; harder tasks get 6–8 nodes with\nconditional when-guarded shell_probe and repair loops that only fire if an earlier check fails. A\nfixed pipeline must either pay for those extra stages on every task or never have them; the orchestrator\nrecovers both ends of that trade-off, which is where the F&amp;S gap comes from.\n5.2. Cross-benchmark transfer\nWe evaluate each evolved harness zero-shot on the other benchmark’s search split (Figure 3, Table 12\nin App. G); the target benchmark is never seen during evolution. Meta-harness transfers poorly in\nboth directions: it drops to 39.3 F&amp;S on BaxBench (baseline 42.9) and to 36.7 on SecRepoBench\n(baseline 46.7). Harmony Harness improves over the baseline in both directions, reaching 57.1 on\nBaxBench (+14.2) and 70.0 on SecRepoBench (+23.3), close to the 76.7 it obtains when evolved\nin-domain. We attribute this to the separation between general and benchmark-specific components:\nonly the general scope is loaded on the target benchmark, so benchmark-specific fixes do not carry\nover.\nCWEval. In Table 11 in App. G, the harness evolved on BaxBench is run, again with no further\nevolution, on CWEval (Peng et al., 2025), which changes not just the benchmark but the task format:\n10\n\n\fHarmony Harness: Multi-Objective Self-Evolution of Agent Harnesses\n\ngenerate a single function from a natural-language spec, graded by functional tests and a separate\nsecurity oracle, over 357 instances in five languages. (1) It greatly improves security, which\nsuggests the harness transfers to a benchmark it has never seen. (2) It holds in every language,\nincluding ones BaxBench does not contain. Per-language F&amp;S improves everywhere, from +10.1\n(JavaScript) to +19.3 (Go). C and C++ are not among BaxBench’s six languages, yet they are 156 of\nthe 357 instances and gain +13.9 and +14.3, which suggests the generalization of the Harmony\nHarness. (3) Functionality pays for part of it. Functional pass rate falls on three of the five\nlanguages (C++, JavaScript, Python), and it gives up 2.0 points of functionality for 15.5 points of\nsecurity and 14.3 points of F&amp;S.\n\n6. Conclusion\nSelf-evolving agents optimized for a single objective quietly sacrifice the other, and specialize to one\ndistribution at the expense of safety on others. We recast self-evolution as multi-objective search\nover an entire agent harness, with safety kept as a separate axis of evolution rather than a reward\nterm to be averaged away. In secure code generation—where both objectives are grounded in real\nexecution—joint, harness-level evolution improves security and functionality together and, with\nexecution-grounded feedback, generalizes to unseen vulnerabilities, while naive feedback-driven\nevolution falls back. The factorized general and environment-specific harness further improves the\nin-domain and cross-benchmark generalization.\nAI use statement\nIn this work, we used generative AI tools for editing (grammar, spelling, and word choice), for drafting\nsections of the paper, for implementing standard methods in our codebase, and for retrieval and\ndiscovery of related work: candidate references were surfaced with AI assistance and every one\nof them was then read and verified against its primary source by an author before being cited or\ndescribed. We did not use generative AI tools to generate research ideas, or to generate or fabricate\nexperimental results. All AI-assisted text was reviewed and edited by the authors; all AI-assisted code\nwas read, executed, and tested by at least two authors, and every number reported in this paper\ncomes from a run we performed ourselves. Generative AI was not used as a subject of study, as a\nresearch participant, or as an evaluator of our results. We take responsibility for the final content of\nthis work, including all text, claims, and artifacts produced with the aid of generative AI.\n\nReferences\nJoshua Achiam, David Held, Aviv Tamar, and Pieter Abbeel. Constrained policy optimization. In\nProceedings of the 34th International Conference on Machine Learning (ICML), volume 70 of Proceedings of Machine Learning Research, pp. 22–31, 2017. URL https://proceedings.mlr.press/\nv70/achiam17a.html.\nLakshya A Agrawal, Shangyin Tan, Dilara Soylu, Noah Ziems, Rishi Khare, Krista Opsahl-Ong,\nArnav Singhvi, Herumb Shandilya, Michael J. Ryan, Meng Jiang, Christopher Potts, Koushik Sen,\nAlexandros G. Dimakis, Ion Stoica, Dan Klein, Matei Zaharia, and Omar Khattab. GEPA: Reflective\nprompt evolution can outperform reinforcement learning. In International Conference on Learning\nRepresentations (ICLR), 2026. URL https://arxiv.org/abs/2507.19457.\nMaksym Andriushchenko, Alexandra Souly, Mateusz Dziemian, Derek Duenas, Maxwell Lin, Justin\nWang, Dan Hendrycks, Andy Zou, Zico Kolter, Matt Fredrikson, Eric Winsor, Jerome Wynne, Yarin\n11\n\n\fHarmony Harness: Multi-Objective Self-Evolution of Agent Harnesses\n\nGal, and Xander Davies. Agentharm: A benchmark for measuring harmfulness of LLM agents. In\nInternational Conference on Learning Representations (ICLR), 2025. URL https://arxiv.org/\nabs/2410.09024.\nAmanda Askell, Yuntao Bai, Anna Chen, Dawn Drain, Deep Ganguli, Tom Henighan, Andy Jones,\nNicholas Joseph, Ben Mann, Nova DasSarma, et al. A general language assistant as a laboratory\nfor alignment. arXiv preprint arXiv:2112.00861, 2021. URL https://arxiv.org/abs/2112.\n00861.\nYuntao Bai, Andy Jones, Kamal Ndousse, Amanda Askell, Anna Chen, Nova DasSarma, Dawn Drain,\nStanislav Fort, Deep Ganguli, Tom Henighan, et al. Training a helpful and harmless assistant\nwith reinforcement learning from human feedback. arXiv preprint arXiv:2204.05862, 2022a. URL\nhttps://arxiv.org/abs/2204.05862.\nYuntao Bai, Saurav Kadavath, Sandipan Kundu, Amanda Askell, Jackson Kernion, Andy Jones, Anna\nChen, Anna Goldie, Azalia Mirhoseini, Cameron McKinnon, et al. Constitutional AI: Harmlessness\nfrom AI feedback. arXiv preprint arXiv:2212.08073, 2022b. URL https://arxiv.org/abs/\n2212.08073.\nJosef Dai, Xuehai Pan, Ruiyang Sun, Jiaming Ji, Xinbo Xu, Mickel Liu, Yizhou Wang, and Yaodong\nYang. Safe RLHF: Safe reinforcement learning from human feedback. In International Conference\non Learning Representations (ICLR), 2024. URL https://arxiv.org/abs/2310.12773.\nEdoardo Debenedetti, Jie Zhang, Mislav Balunović, Luca Beurer-Kellner, Marc Fischer, and Florian\nTramèr. Agentdojo: A dynamic environment to evaluate prompt injection attacks and defenses\nfor LLM agents. In Advances in Neural Information Processing Systems (NeurIPS), Datasets and\nBenchmarks Track, 2024. URL https://arxiv.org/abs/2406.13352.\nConnor Dilgren, Purva Chiniya, Luke Griffith, Yu Ding, and Yizheng Chen. SecRepoBench: Benchmarking LLMs for secure code generation in real-world repositories. arXiv preprint arXiv:2504.21205,\n2025. URL https://arxiv.org/abs/2504.21205.\nShengran Hu, Cong Lu, and Jeff Clune. Automated design of agentic systems. In International\nConference on Learning Representations (ICLR), 2025a. URL https://arxiv.org/abs/2408.\n08435.\nYue Hu, Yuzhu Cai, Yaxin Du, Xinyu Zhu, Xiangrui Liu, Zijie Yu, Yuchen Hou, Shuo Tang, and Siheng\nChen. Self-evolving multi-agent collaboration networks for software development. In International\nConference on Learning Representations (ICLR), 2025b. URL https://arxiv.org/abs/2410.\n16946.\nYoonho Lee, Roshen Nair, Qizheng Zhang, Kangwook Lee, Omar Khattab, and Chelsea Finn. MetaHarness: End-to-end optimization of model harnesses. arXiv preprint arXiv:2603.28052, 2026.\nURL https://arxiv.org/abs/2603.28052.\nIdo Levy, Ben Wiesel, Sami Marreed, Alon Oved, Avi Yaeli, Nir Mashkif, and Segev Shlomov. Stwebagentbench: A benchmark for evaluating safety and trustworthiness in web agents. In International Conference on Learning Representations (ICLR), 2026. URL https://arxiv.org/abs/\n2410.06703.\nHui Li and Qingfu Zhang. Multiobjective optimization problems with complicated pareto sets,\nMOEA/D and NSGA-II. IEEE Transactions on Evolutionary Computation, 13(2):284–302, 2009. doi:\n10.1109/TEVC.2008.925798.\n12\n\n\fHarmony Harness: Multi-Objective Self-Evolution of Agent Harnesses\n\nAlexander Novikov, Ngân Vũ, Marvin Eisenberger, Emilien Dupont, Po-Sen Huang, Adam Zsolt Wagner,\nSergey Shirobokov, Borislav Kozlovskii, Francisco J. R. Ruiz, Abbas Mehrabian, M. Pawan Kumar,\nAbigail See, Swarat Chaudhuri, George Holland, Alex Davies, Sebastian Nowozin, Pushmeet Kohli,\nand Matej Balog. AlphaEvolve: A coding agent for scientific and algorithmic discovery. arXiv\npreprint arXiv:2506.13131, 2025. URL https://arxiv.org/abs/2506.13131.\nYixin Ou, Wangchunshu Zhou, Shengwei Ding, Long Li, Jialong Wu, Tiannan Wang, Jiamin Chen,\nShuai Wang, Xiaohua Xu, Ningyu Zhang, et al. Symbolic learning enables self-evolving agents. AI\nOpen, 2025.\nJinjun Peng, Leyi Cui, Kele Huang, Junfeng Yang, and Baishakhi Ray. CWEval: Outcome-driven\nevaluation on functionality and security of LLM code generation. In 2025 IEEE/ACM International\nWorkshop on Large Language Models for Code (LLM4Code), pp. 33–40. IEEE, 2025. doi: 10.1109/\nLLM4Code66737.2025.00009.\nJiahao Qiu, Xuan Qi, Tongcheng Zhang, Xinzhe Juan, Jiacheng Guo, Yifu Lu, Yimin Wang, Zixin Yao,\nQihan Ren, Xun Jiang, Xing Zhou, Dongrui Liu, Ling Yang, Yue Wu, Kaixuan Huang, Shilong Liu,\nHongru Wang, and Mengdi Wang. Alita: Generalist agent enabling scalable agentic reasoning with\nminimal predefinition and maximal self-evolution. arXiv preprint arXiv:2505.20286, 2025. URL\nhttps://arxiv.org/abs/2505.20286.\nAlexandre Ramé, Guillaume Couairon, Mustafa Shukor, Corentin Dancette, Jean-Baptiste Gaya, Laure\nSoulier, and Matthieu Cord. Rewarded soups: Towards pareto-optimal alignment by interpolating\nweights fine-tuned on diverse rewards. In Advances in Neural Information Processing Systems\n(NeurIPS), 2023. URL https://arxiv.org/abs/2306.04488.\nMaxime Robeyns, Martin Szummer, and Laurence Aitchison. A self-improving coding agent. arXiv\npreprint arXiv:2504.15228, 2025. URL https://arxiv.org/abs/2504.15228. Oral, ICLR\n2025 Workshop on Self-Improving Foundation Models Without Human Supervision.\nYangjun Ruan, Honghua Dong, Andrew Wang, Silviu Pitis, Yongchao Zhou, Jimmy Ba, Yann Dubois,\nChris J. Maddison, and Tatsunori Hashimoto. Identifying the risks of LM agents with an LMemulated sandbox. In International Conference on Learning Representations (ICLR), 2024. URL\nhttps://arxiv.org/abs/2309.15817.\nNoah Shinn, Federico Cassano, Ashwin Gopinath, Karthik Narasimhan, and Shunyu Yao. Reflexion:\nLanguage agents with verbal reinforcement learning. In Advances in Neural Information Processing\nSystems (NeurIPS), 2023. URL https://arxiv.org/abs/2303.11366.\nAnkita Sinha, Wendi Cui, Kamalika Das, and Jiaxin Zhang. Survival of the safest: Towards secure\nprompt optimization through interleaved multi-objective evolution. In Proceedings of the 2024\nConference on Empirical Methods in Natural Language Processing: Industry Track, pp. 1016–1027,\n2024.\nHaotian Sun, Yuchen Zhuang, Lingkai Kong, Bo Dai, and Chao Zhang. Adaplanner: Adaptive\nplanning from feedback with language models. In Advances in Neural Information Processing Systems\n(NeurIPS), 2023. URL https://arxiv.org/abs/2305.16653.\nMark Vero, Niels Mündler, Victor Chibotaru, Veselin Raychev, Maximilian Baader, Nikola Jovanović,\nJingxuan He, and Martin Vechev. BaxBench: Can LLMs generate correct and secure backends?\nIn Proceedings of the 42nd International Conference on Machine Learning (ICML), 2025. URL\nhttps://arxiv.org/abs/2502.11844.\n\n13\n\n\fHarmony Harness: Multi-Objective Self-Evolution of Agent Harnesses\n\nGuanzhi Wang, Yuqi Xie, Yunfan Jiang, Ajay Mandlekar, Chaowei Xiao, Yuke Zhu, Linxi Fan, and Anima\nAnandkumar. Voyager: An open-ended embodied agent with large language models. Transactions\non Machine Learning Research, 2024. URL https://arxiv.org/abs/2305.16291.\nYiping Wang, Shao-Rong Su, Zhiyuan Zeng, Eva Xu, Liliang Ren, Xinyu Yang, Zeyi Huang, Xuehai He, Luyao Ma, Baolin Peng, Hao Cheng, Pengcheng He, Weizhu Chen, Shuohang Wang,\nSimon Shaolei Du, and Yelong Shen. ThetaEvolve: Test-time learning on open problems. arXiv\npreprint arXiv:2511.23473, 2025. URL https://arxiv.org/abs/2511.23473.\nSheng Yin, Xianghe Pang, Yuanzhuo Ding, Menglan Chen, Yutong Bi, Yichen Xiong, Wenhao Huang,\nZhen Xiang, Jing Shao, and Siheng Chen. Safeagentbench: A benchmark for safe task planning\nof embodied LLM agents. arXiv preprint arXiv:2412.13178, 2024. URL https://arxiv.org/\nabs/2412.13178.\nXunjian Yin, Xinyi Wang, Liangming Pan, Li Lin, Xiaojun Wan, and William Yang Wang. Gödel\nagent: A self-referential agent framework for recursively self-improvement. In Proceedings of the\n63rd Annual Meeting of the Association for Computational Linguistics (ACL), 2025. URL https:\n//aclanthology.org/2025.acl-long.1354/.\nTongxin Yuan, Zhiwei He, Lingzhong Dong, Yiming Wang, Ruijie Zhao, Tian Xia, Lizhen Xu, Binglin\nZhou, Fangqi Li, Zhuosheng Zhang, Rui Wang, and Gongshen Liu. R-Judge: Benchmarking safety\nrisk awareness for LLM agents. In Findings of the Association for Computational Linguistics: EMNLP\n2024, 2024. URL https://aclanthology.org/2024.findings-emnlp.79/.\nQiusi Zhan, Zhixiang Liang, Zifan Ying, and Daniel Kang. InjecAgent: Benchmarking indirect\nprompt injections in tool-integrated large language model agents. In Findings of the Association\nfor Computational Linguistics: ACL 2024, 2024. URL https://aclanthology.org/2024.\nfindings-acl.624/.\nHangfan Zhang, Shao Zhang, Kangcong Li, Chen Zhang, Yang Chen, Yiqun Zhang, Lei Bai, and\nShuyue Hu. Self-harness: Harnesses that improve themselves. arXiv preprint arXiv:2606.09498,\n2026a. URL https://arxiv.org/abs/2606.09498.\nHanrong Zhang, Jingyuan Huang, Kai Mei, Yifei Yao, Zhenting Wang, Chenlu Zhan, Hongwei Wang,\nand Yongfeng Zhang. Agent security bench (ASB): Formalizing and benchmarking attacks and\ndefenses in LLM-based agents. In International Conference on Learning Representations (ICLR),\n2025a. URL https://arxiv.org/abs/2410.02644.\nJenny Zhang, Shengran Hu, Cong Lu, Robert Tjarko Lange, and Jeff Clune. Darwin Gödel Machine: Open-ended evolution of self-improving agents. In International Conference on Learning\nRepresentations (ICLR), 2026b. URL https://arxiv.org/abs/2505.22954.\nJiayi Zhang, Jinyu Xiang, Zhaoyang Yu, Fengwei Teng, Xionghui Chen, Jiaqi Chen, Mingchen Zhuge,\nXin Cheng, Sirui Hong, Jinlin Wang, et al. Aflow: Automating agentic workflow generation. In\nInternational Conference on Learning Representations, volume 2025, pp. 34040–34077, 2025b.\nWenqi Zhang, Ke Tang, Hai Wu, Mengna Wang, Yongliang Shen, Guiyang Hou, Zeqi Tan, Peng\nLi, Yueting Zhuang, and Weiming Lu. Agent-pro: Learning to evolve via policy-level reflection\nand optimization. In Proceedings of the 62nd Annual Meeting of the Association for Computational\nLinguistics (Volume 1: Long Papers), pp. 5348–5375, 2024. URL https://aclanthology.org/\n2024.acl-long.292/.\n\n14\n\n\fHarmony Harness: Multi-Objective Self-Evolution of Agent Harnesses\n\nZhanhui Zhou, Jie Liu, Jing Shao, Xiangyu Yue, Chao Yang, Wanli Ouyang, and Yu Qiao. Beyond\none-preference-fits-all alignment: Multi-objective direct preference optimization. In Findings of\nthe Association for Computational Linguistics: ACL 2024, pp. 10586–10613, 2024. URL https:\n//aclanthology.org/2024.findings-acl.630/.\nMingchen Zhuge, Wenyi Wang, Louis Kirsch, Francesco Faccio, Dmitrii Khizbullin, and Jürgen\nSchmidhuber. GPTSwarm: Language agents as optimizable graphs. In Proceedings of the 41st\nInternational Conference on Machine Learning (ICML), volume 235 of Proceedings of Machine Learning\nResearch, pp. 62743–62767, 2024.\n\n15\n\n\fHarmony Harness: Multi-Objective Self-Evolution of Agent Harnesses\n\nA. Notation\nTable 3 summarizes the notation used throughout the paper.\n\nB. More Equations of the Problem Formulation.\nwhere\n\n1 ∑︁\n𝑀\n\n𝑓func ( 𝐻 ) =\n\nand\n\n𝑀\n\n𝔼𝜏∼𝑃 𝐻 (· | 𝑥𝑛 ) [ 𝐹 ( 𝜏, 𝑥𝑛 )] ,\n\n(9)\n\n𝔼𝜏∼𝑃 𝐻 (· | 𝑥𝑛 ) [𝑆 ( 𝜏, 𝑝𝑛 )] .\n\n(10)\n\n𝑛=1\n\n1 ∑︁\n𝑀\n\n𝑓sec ( 𝐻 ) =\n\n𝑀\n\n𝑛=1\n\nHere 𝐹 ( 𝜏, 𝑥𝑛 ) ∈ {0, 1} indicates whether the solution produced in 𝜏 passes the functional tests of 𝑥𝑛 ,\nand 𝑆 ( 𝜏, 𝑝𝑛 ) ∈ {0, 1} indicates whether it neutralizes the proof-of-concept exploit specified by 𝑝𝑛 . We\nwrite 𝑓1 = 𝑓func and 𝑓2 = 𝑓sec when indexing objectives by 𝑗 ∈ {1, . . . , 𝑚 }, with 𝑚 = 2; both objectives\nare maximized. In practice, we estimate these objectives using 𝐾 sampled trajectories {𝜏𝑛,𝑘 } 𝑘𝐾=1 for\neach task:\n𝑀 𝐾\n𝑀 𝐾\n1 ∑︁ ∑︁\n1 ∑︁ ∑︁\n𝑓ˆfunc ( 𝐻 ) =\n𝐹 ( 𝜏𝑛,𝑘 , 𝑥 𝑛 ) ,\n𝑓ˆsec ( 𝐻 ) =\n𝑆 ( 𝜏𝑛,𝑘 , 𝑝𝑛 ) .\n(11)\n𝑀𝐾\n\n𝑛=1 𝑘=1\n\n𝑀𝐾\n\n𝑛=1 𝑘=1\n\nBoth estimates are pass rates in [0, 1], so the two objectives are on the same scale and need no further\nnormalization before scalarization (§4.1).\nFor two harnesses 𝐻, 𝐻 ′ ∈ H , 𝐻 Pareto-dominates 𝐻 ′ , written 𝐻 ≻ 𝐻 ′ , if 𝑓 𝑗 ( 𝐻 ) ≥ 𝑓 𝑗 ( 𝐻 ′ ) for every\nobjective 𝑗, with strict inequality for at least one. The Pareto set is\n\b\nP∗ = 𝐻 ∈ H | 𝐻′ ∈ H : 𝐻′ ≻ 𝐻 ,\n(12)\nand its image {f ( 𝐻 ) : 𝐻 ∈ P ∗ } defines the Pareto front. Our goal is to evolve a finite set of harnesses\nthat provides a high-quality approximation to this front.\n\n16\n\n\fHarmony Harness: Multi-Objective Self-Evolution of Agent Harnesses\n\nTable 3 | Summary of notation.\nSymbol\n\nMeaning\n\nProblem formulation (§3)\nH, 𝐻\nSpace of agent harnesses; a harness\nD = {𝑡𝑛 } 𝑛𝑀=1\nEvaluation task set of 𝑀 tasks\n𝑡𝑛 = ( 𝑥𝑛 , 𝑝𝑛 )\nTask 𝑛: task specification 𝑥𝑛 and security policy 𝑝𝑛\n𝜏 ∼ 𝑃 𝐻 ( 𝜏 | 𝑥𝑛 )\nTrajectory of harness 𝐻 on task 𝑡𝑛 (conditioned on the visible spec 𝑥𝑛 )\n𝐹 ( 𝜏, 𝑥𝑛 ) ∈ {0, 1}\nFunctional success: the solution passes the tests of 𝑥𝑛\n𝑆 ( 𝜏, 𝑝𝑛 ) ∈ {0, 1}\nSecurity success: the solution neutralizes the exploit of 𝑝𝑛\nf ( 𝐻 ) = ( 𝑓func , 𝑓sec ) Expected functionality and security; 𝑓1 = 𝑓func , 𝑓2 = 𝑓sec\n𝑓ˆ𝑗 , 𝐾 , 𝜏𝑛,𝑘\nMonte Carlo estimate of 𝑓 𝑗 from 𝐾 sampled trajectories 𝜏𝑛,𝑘 per task\n𝑚, 𝑗\nNumber of objectives (𝑚 = 2); objective index\n𝐻 ≻ 𝐻′, P∗\nPareto dominance; Pareto set\n𝑔 , U𝑔 , U\nGeneration index; children evaluated in generation 𝑔 ; all evaluated children\n†\n𝐻\nDeployed harness: most balanced child in U on the search split (Eq. 3)\nDecomposition-based evolution (§4–§4.1)\nK\nComponent classes {tools, skills, logic} (logic includes orchestration)\n𝐻0\nInitial (seed) harness\nΛ = { 𝝀1 , . . . , 𝝀 𝑁 }\n𝑁 weight vectors on the 𝑚-objective simplex, one per subproblem\nSubproblem index; weight of objective 𝑗 in subproblem 𝑖\n𝑖, 𝜆 𝑖𝑗\n𝐻𝑖 , 𝐻𝑖∗\nIncumbent harness of subproblem 𝑖; its (conceptual) optimum\nz∗ , 𝑧∗𝑗\nIdeal point; best observed value of objective 𝑗\n𝑔 te ( 𝐻 | 𝝀𝑖 , z∗ )\nWeighted Tchebycheff scalarization of subproblem 𝑖 (lower is better)\n𝐵 ( 𝑖), 𝑇 , 𝑙\nNeighborhood of subproblem 𝑖; its size; neighbor index 𝑙 ∈ 𝐵 ( 𝑖)\n𝐻𝑐\nChild harness produced by variation\nFactorized evolution (§4.2)\nE𝑖\nExecution feedback collected from the parent of subproblem 𝑖\nQ, 𝑑 𝑖\nDiagnosis step; failure diagnosis 𝑑 𝑖 = Q (E 𝑖 )\nG, ℎ𝑖\nHypothesis step; improvement hypothesis ℎ𝑖 = G( 𝑑 𝑖 , 𝝀𝑖 )\n𝜋comp , 𝑘𝑖 ∈ K\nComponent selection; selected component class\nΣ = {gen, env}\nAdaptation scopes: general and environment-specific\nR 𝑘 𝑖 , 𝑠𝑖 ∈ Σ\nComponent-specific scope assignment; selected scope\nO𝑘,𝑠\nVariation operator editing component class 𝑘 within scope 𝑠\nOgeneralize\nCross-scope operator moving components between gen and env\nΠ = (O1 , . . . , O𝐿 )\nOrdered operator plan of length 𝐿\n(ℓ)\n𝐻𝑐\nCandidate after the ℓ-th operator; 𝐻𝑐(0) = 𝐻𝑖 , 𝐻𝑐 = 𝐻𝑐( 𝐿 )\nDynamic composition (§4.3)\n𝑒, 𝑥\nExecution environment (benchmark); task within it\nH gen , H𝑒env\nPools of general and environment-specific components\ngen\nenv\nH𝑘 , H𝑘,𝑒\nComponent pools restricted to class 𝑘\n𝜋𝜙 , A 𝑒,𝑥\nComposition policy; components activated for ( 𝑒, 𝑥 )\nC, 𝐻 ( 𝑒,𝑥 )\nRuntime composition procedure; executable harness for ( 𝑒, 𝑥 )\nEvaluation and overfitting gate (§5, App. K)\n𝐹∧𝑆\nSecure-pass@1: functional and secure on the same task\nΔevolve , ΔOUT\nSecurity ( 𝑓sec ) gain over baseline on the evolve split and on held-out OUT (Table 1)\n𝛿, 𝜌 ( 𝛿), 𝜃\nParent-to-child diff; judged overfitting risk; rejection threshold\n𝐶 , 𝐶𝑞+ , 𝑛𝐶\nAdmitted child; its copy with injected overfit of type 𝑞; number of children\n𝑠evolve , 𝑠ho\nSecure-pass@1 on the evolve split and on held-out IN ∪ OUT\n∧\n∧ , Δ\nΔevolve\n, Δho\nSecure-pass@1 gain of 𝐶 + over 𝐶 on the evolve and held-out splits; generalization gap\ngap\n17\n∧\n∧\nΔevolve\n− Δho\nPopulation diversity (App. J)\n𝑔sh\nToken 𝑔sh -gram (shingle) length used by the diversity measure (not to be confused with\nthe generation index 𝑔 )\n\n\fHarmony Harness: Multi-Objective Self-Evolution of Agent Harnesses\n\nC. Implementation Details\nBenchmarks and Setup. We conduct our main experiments on two complementary secure-code\nbenchmarks: SecRepoBench (Dilgren et al., 2025) and BaxBench (Vero et al., 2025). SecRepoBench\nevaluates repository-level secure code completion in real-world C/C++ projects: given a masked code\nregion and repository context, an agent must produce a patch that preserves functional correctness\nwhile eliminating a known vulnerability, with both properties verified through execution-based unit\ntests and proof-of-concept exploits. BaxBench instead evaluates the generation of complete backend\napplications, testing functional behavior with end-to-end test suites and security against executable\nattacks. Together, the two benchmarks cover substantially different settings—repository-level program\nrepair and application-level generation—while exposing the same underlying functionality–security\ntrade-off. To assess transfer beyond the environments, we additionally evaluate evolved harnesses\non CWEval (Peng et al., 2025), an outcome-driven secure code-generation benchmark that jointly\nevaluates functional correctness and vulnerability-specific security using executable tests.\nBaselines. Meta-harness (Lee et al., 2026) and DGM (Zhang et al., 2026b) are not reimplementations: both run from their authors’ released code, with our benchmarks and grader plugged in as the\nevaluation.\nRepeats and effective denominators. Every reported rate is the mean of three independent runs.\nGrading depends on live infrastructure—a task is scored only if its ARVO image pulls and its build\nand exploit probe complete—and a small number of tasks intermittently fail for reasons unrelated to\nthe harness under test (registry pull failures, and timeouts caused by contention on the local CPU\nduring heavy rebuilds such as ffmpeg). Those tasks are excluded from the run in which they failed,\nso the effective denominator of a cell is at most, and occasionally below, the 30 (SecRepoBench) or\n28 (BaxBench) tasks in its split; this is why some rates are not integer multiples of 1/30 or 1/28.\nInfrastructure failures are independent of the method being evaluated, but they are not independent\nacross methods.\nEvery row in the lower block of Table 2 shares the full configuration’s factored evolving (§4.2)\nand dynamic orchestration (§4.3).\n\nD. Details for Decomposition\nÍ\nA linear scalarization, 𝑗 𝜆 𝑖𝑗 𝑓 𝑗 ( 𝐻 ), can recover only supported Pareto-optimal solutions and may\ntherefore miss entire Pareto-optimal regions when the frontier is non-convex. In contrast, the weighted\nTchebycheff formulation does not rely on convexity of the Pareto frontier and can recover solutions in\nsuch regions. This guarantee matters only when the objectives actually trade off. On our benchmarks\nthe observed fronts are narrow: on the SecRepoBench search split the front holds two non-dominated\nharnesses in early generations, and in the last generation one harness is best on both objectives\n(Table 13, §G.1). What decomposition still provides there is a search direction: each subproblem\nmeasures progress by its worst weighted shortfall from z∗ , so a child that improves one objective by\ngiving up the other is not accepted. Moreover, each 𝝀𝑖 defines an independent search direction: no\nsingle scalarization is treated as the global objective, and the population jointly maintains solutions\ncorresponding to different regions of the frontier.\n\n18\n\n\fHarmony Harness: Multi-Objective Self-Evolution of Agent Harnesses\n\nE. Implementation Details for Factorized Harness Evolution\nThis appendix provides implementation details for the factorized evolution procedure introduced in\nSection 4.2.\nHarness Initialization. We initialize evolution from a lightweight but functional base harness 𝐻0 .\nThe base agent follows a standard ReAct-style interaction loop and provides only a minimal set of\ngeneral-purpose tools—including file reading, file writing, and command-line execution—together\nwith a simple orchestrator for sequencing reasoning, tool use, and execution. This deliberately\nmodest initialization provides the basic interface required to solve tasks while leaving the agent’s\nhigher-level tools, control logic, verification mechanisms, and workflow structure to be discovered\nthrough evolution. The initial incumbents of the 𝑁 decomposition subproblems are instantiated from\nthis base harness.\nHarness architecture. The harness is a self-contained Python package. The package itself is the\nevolvable genome: the evaluator imports only the AgentHarness entry point, and nothing outside\nthe package is imported, so every part of the solver can be changed by the evolutionary operators.\nThat includes the LLM call layer, the tools, the prompts and the control logic (Figure 4).\nHarness/\n# the genome: one self-contained package\n|-- config/\n# frozen agent config + per-benchmark overrides\n|-- orchestrator/\n# LLM planner, DAG validation, wave executor\n|-- steps/\n# registry of composable workflow nodes\n|-- tools/\n# real tools: docker build, bash, read, edit\n|-- skills/\n# injectable domain expertise\n|-- prompts/\n# system / generation / repair / audit templates\n‘-- utils/\n# stateless helpers (parsing, messages, trajectory)\n(each directory = general/ + &lt;benchmark&gt;/)\n\nFigure 4 | Top-level layout of the harness. The entry point (AgentHarness) and the LLM call layer\nsit at the package root.\n\nE.1. Diagnose Execution Feedback\nGiven the failure diagnosis, the proposer selects one or more component-specific operators and the\nscope in which each operator should act. The tool_evolve operator modifies executable tools and\ntheir integration with the agent loop. The skill_evolve operator modifies reusable procedures,\ndomain knowledge, and skill modules. The logic_evolve operator modifies prompting, reasoning\nprocedures, verification logic, control flow, and orchestration. Each operator is restricted to its\ncorresponding portion of the harness rather than being instructed to rewrite the repository as a single\nartifact.\nBefore every variation step we run a diagnosis on the niche incumbent (diagnose.py). A\nproposer session with read-only tools (Read/Glob/Grep, sandboxed away from other runs’ trees\nand from the harness’s own notes) is given the subproblem’s weight vector 𝝀𝑖 , the artifact-grounded\nfailure digest, and the incumbent’s genome: inlined verbatim when it is small (≤ 8K characters)\nand otherwise replaced by a file manifest plus the force-inlined entry-point modules (≤ 24K), since\nan instruction to read the files is empirically ignored while inlined text cannot be skipped. Three\nhard constraints are then stated immediately before the reply schema. (i) A niche lens fixes which\n19\n\n\fHarmony Harness: Multi-Objective Self-Evolution of Agent Harnesses\n\nobjective this subproblem may diagnose: the weight vector decides, and only for the exactly balanced\nsubproblem is the tie broken by the parent’s own worst objective; the same lens builds the digest,\nso “what counts as a failure” and “what may be cited” cannot drift apart. (ii) The diagnoses already\nissued by sibling subproblems in this generation are shown with the order to pick a different lever,\nbecause otherwise one generation produces one child in five copies. (iii) When the executing operator\nis fixed and hard-gated, its delivery contract is inlined (for tool, together with the measured callsite/implementation inventory) and the focus enum is narrowed to what that operator can actually\ndeliver — an undeliverable plan costs the niche without the operator ever having had a legal move.\nThe reply must be a single JSON object under 6K characters:\n{ focus ∈ Ffocus , problem_statement, artifact_evidence,\nfew_shot_examples_of_failure [ , operators] },\n\nFfocus = {tools, reliability, verification, prompt, control-flow, skills, failure-fix}, where few_shot_examples_of_f\nis 1–3 concrete failures as {task_id, symptom, direct_cause, evidence} — category-level non-causes\n(“the model made a mistake”, “insufficient validation”) are explicitly rejected — and operators\n(only under -operator auto) is an ordered pipeline of up to 8 steps {op, goal}, each step editing\nthe previous step’s output with a distinct sub-goal and only the final result evaluated.\nTwo mechanisms make the plan trustworthy rather than merely well-formed. The reply is parsed\nby scanning backwards for the last JSON object that decodes and carries a schema key (bracebalance tracking was removed: one unmatched brace quoted from source code in the narration\npoisoned every later candidate), with a repair path for replies whose opening brace was truncated\nand alias normalization for synonymous field names; “parsed” and “usable” (can it actually steer\nthe operator) are recorded as separate columns. On top of that, an evidence-integrity gate validates\nartifact_evidence purely on the filesystem: the cited path must exist under this parent’s own\neval-artifact tree, and the quote (≥ 24 characters) must occur verbatim in it after whitespace\nnormalization. A reply that is unusable, oversized, empty, or that cites unverifiable evidence triggers\none retry whose correction names that specific failure; a chain that came back in an invented\nschema triggers a second, chain-only re-ask. If the evidence still does not check out, the plan’s\nguidance is suppressed and the operator proceeds unguided rather than being handed unproven\nfact — the same end state as an unusable reply, and recorded as such. Everything the diagnosis\ntouches is pure guidance: it never enters MOEA/D selection, every failure path degrades to the empty\nblock, and each call leaves a readable scene in the niche’s own directory (diagnose_input.md /\ndiagnose_output.md / chain.md) plus one line in logs/moead_diagnose.jsonl, so lens,\nfocus duplication, parse/usable rate, gate firing rate and retry counts are all countable per run.\nE.2. Tool Evolution, Skill Evolution and Logic Evolution\nUsually multiple operators are selected; they are applied sequentially, with each operator receiving the\nlatest candidate produced by the preceding operator, and 𝐻𝑐 is the output of the last one. This permits\ncoordinated changes across multiple components while keeping each individual edit semantically\nscoped.\nThe decomposed operators are the three scoped variation operators summarized in Table 4: tool,\nskill, and logic. Each one targets a distinct part of the harness and may write only to the\ndirectories assigned to it. Before any edit, the operator must also decide whether the change belongs\nto the general scope (general/) or to the benchmark-specific scope (&lt;bench&gt;/).\nScope selection. The scope is fixed before editing by decide_scope, a short, read-only model\ncall that answers a single question: can the agent derive the relevant fact at run time on its own? If it\n20\n\n\fHarmony Harness: Multi-Objective Self-Evolution of Agent Harnesses\n\nTable 4 | The three scoped variation operators. Each operator may write only its own directories, at\nthe scope chosen before the edit; any write outside them is reverted.\nOperator\n\nWritable directories\n\nRequired deliverable\n\ntool\n\ntools/,\nutils/\n(plus config/)\n\nA change to how the agent obtains or consumes ground truth, covering\none of four cases: no real tool is wired into the loop; a tool is called but\nits result is wasted (the log is ignored, or only the build is checked and\nnever the server’s startup); the tool itself returns too little to act on; or a\nhelper in utils/ discards the critical information before it reaches the\nagent. Phantom verification is explicitly forbidden.\n\nskill\n\nskills/,\nprompts/\n\nOne reusable skill: a trigger condition, a short general procedure, and\none worked example. The skill is a single .py module dropped into the\nscope directory, with no registration needed. Skills written as a default\nbehavior with an escape clause (e.g. “unless the spec says otherwise,\nreturn 200”) are forbidden. In one of our runs, such a skill fixed its target\ntask but broke two unrelated ones.\n\nlogic\n\nsteps/,\norchestrator/; at\ngeneral scope, also\nthe loop modules at\nthe package root\n\nA change to the control flow: add a missing stage, act on a branch that is\ncurrently ignored, adjust round counts and budgets (the values go in\nconfig/), or change the DAG itself. Achieving the same effect by\nediting prompts is not allowed.\n\ncan, the change is placed in the general scope. If the fact is instead an intrinsic rule of the evaluator\nor of the delivery channel, the change is placed in the benchmark-specific scope. The chosen scope\nis then compiled into a write whitelist, and the whitelist is enforced at the tool layer, not through\nthe prompt: any file written outside it is reverted. If the decide_scope call fails, the operator falls\nback to the general scope, which is the more restrictive of the two.\nThe two scopes impose different obligations on the edit:\n• General scope. The operator is instructed not to hard-code any fact particular to the current\nbenchmark, such as port numbers, framework names, or CWE lists. Any such fact the change\nrequires must be obtained at run time.\n• Benchmark-specific scope. The edit may be as specific as the benchmark demands, but each file\nmust state in its header which benchmark it targets. A module in this scope shadows the general\nmodule of the same name, so benchmark-specific behavior overrides the general default without\nmodifying it.\nE.3. Generalization Operator\nThe operator evolves for dependencies on incidental properties of the evolution environment, such\nas hard-coded repository paths, module names, benchmark-specific commands, magic strings, taskspecific instructions, over-tuned thresholds, or parsers that assume a particular repository structure\nor test runner. When such behavior is useful only in one environment, it can be localized to the\ncorresponding environment-specific scope. When the underlying mechanism can be expressed\nindependently of that environment, the operator may abstract or parameterize it and move the\nresulting mechanism into the general scope. Conversely, a component previously placed in the general\nscope may be localized if evolution reveals that it relies on benchmark-specific assumptions.\nThus, generalize does not attempt to recover a theoretically defined partition between general\n21\n\n\fHarmony Harness: Multi-Objective Self-Evolution of Agent Harnesses\n\nand specialized behavior. Instead, it makes the boundary itself subject to evolutionary reorganization.\nThe scoped operators each add capability to the harness. generalize adds none. It changes\nonly the scope in which existing components are filed. Each invocation audits both partitions of the\nharness, the general scope and the benchmark-specific scope, and corrects exactly one misfiled unit.\nWhich move applies depends on two properties of the unit: the scope in which it currently resides,\nand whether the benchmark-specific knowledge it encodes can be recovered at run time.\n• Promote (benchmark-specific → general). Condition: a procedure that is general in nature is\nfiled under the benchmark-specific scope, so agents deployed on other benchmarks cannot use it.\nCorrection: the unit is moved to the general scope. Each benchmark-specific fact it depends on is\nreplaced by a step that obtains that fact at run time, so the promoted unit no longer assumes the\nbenchmark it was written for.\n• Demote (general → benchmark-specific). Condition: a unit in the general scope hard-codes a\nfact that holds only on the current benchmark, and the fact cannot be recovered at run time.\nCorrection: the fact is moved to the benchmark-specific scope, where a tunable value becomes\na per-benchmark configuration override. The general unit then reads the value from that scope\ninstead of stating it.\n• Derive (remains general). Condition: a unit in the general scope hard-codes a benchmark-specific\nfact that can be recovered at run time. Correction: the unit stays in the general scope and is\nrewritten to obtain the fact at run time, which removes the dependency without adding any\nbenchmark-specific state.\nDemote and Derive thus address the same symptom, a general unit that encodes benchmark-specific\nknowledge, and are distinguished only by whether that knowledge is observable at run time. When it\nis, Derive is preferred because it leaves nothing in the benchmark-specific scope.\nEvery move is subject to two invariants. (i) Behavioral equivalence on the current benchmark. The\nbenchmark-specific partition is still loaded on the current benchmark, so a correct reclassification\nleaves the search-split score unchanged. Its benefit is observable only on held-out tasks and when\nthe general partition is evaluated in isolation. (ii) Standalone executability of the general partition.\nLoading the general scope alone must still yield a functioning agent, even if it performs worse.\nE.4. Operator Scheduling\nOperator scheduling. The component-level operators in Harmony Harness are applied sequentially rather than simultaneously. Given the incumbent 𝐻𝑖 of subproblem 𝑖, objective preference 𝝀𝑖 ,\nand execution feedback E 𝑖 , the proposer first produces an ordered operator plan\nΠ = (O1 , . . . , O𝐿 ) ,\n\nOℓ ∈ {O𝑘,𝑠 : 𝑘 ∈ K , 𝑠 ∈ Σ } ∪ {Ogeneralize } .\n\n(13)\n\nBoth the subset of operators and their ordering are determined by the proposer from its diagnosis of\nthe current failures. Starting from 𝐻𝑐(0) = 𝐻𝑖 , the operators are applied sequentially,\n\u0010\n\u0011\n(ℓ)\n( ℓ −1)\n𝐻 𝑐 = Oℓ 𝐻 𝑐\n; ℎ𝑖 ,\nℓ = 1, . . . , 𝐿,\n(14)\nwhere ℎ𝑖 is the improvement hypothesis of §4.2, which already conditions on 𝝀𝑖 and E 𝑖 . The child is\n( 𝐿)\n𝐻𝑐 = 𝐻𝑐 . Consequently, each operator observes the modifications introduced by previous operators,\nallowing later edits to reconcile or build upon earlier ones rather than producing independent patches\nthat must subsequently be merged.\n\n22\n\n\fHarmony Harness: Multi-Objective Self-Evolution of Agent Harnesses\n\nE.5. Validation, Repair, and Rollback\nValidation and recovery. After executing the proposed operator sequence, the resulting child enters\na three-stage smoke-test pipeline that progressively checks the integrity of the modified harness. If\nany stage fails, the resulting execution trace and error diagnostics are returned to the proposer, which\nis given one opportunity to repair the candidate. The complete three-stage validation is then repeated.\nA candidate that fails again is rejected, and the working repository is restored to the last valid parent\nversion. Only candidates that pass all validation stages proceed to the full task-level evaluation used\nby MOEA/D.\nNo stage calls an LLM or starts a benchmark container, so the whole pipeline takes seconds to a\nfew minutes per child.\nStage 1: import and interface validation. The child package is imported, together with\nevery submodule individually, because deferred imports (e.g. the orchestrator and step registry)\nare not covered by importing the entry point. The frozen evaluator interface is then checked: the\nAgentHarness class must expose an asynchronous run (or agent loop) method, and its user-prompt\ntemplate must still contain the task specification slot.\nStage 2: offline smoke test and genome self-tests. The harness is instantiated against a stub\nenvironment and must embed a placeholder specification into its messages and parse a canned model\nreply into files. The genome’s own _selftest*.py files are then run as subprocesses (timeout\n300 s per file). The seed ships a self-test that drives the full tool-calling loop against a scripted stub\nmodel instead of a real LLM. It checks that the tool schemas exposed to the model are well-formed,\nthat the payloads sent to each vendor have the shape that vendor requires (e.g. every tool use paired\nwith a tool result), and that the loop terminates within budget and actually modifies the app. Without\nthis check, a broken tool-calling protocol is swallowed by the agent’s catch-all and scores a whole\ngeneration 0/0.\nStage 3: static integrity checks. Two AST-only checks cover what the first two stages cannot\nexecute. First, every named self-test assertion of the parent must still exist in the child. The self-tests\nare part of the evolvable genome, and the cheapest way to make a failing self-test pass is to delete\nit. Second, a static call-signature check requires every call in the child to bind to the definition it\nresolves to, which catches half-edited call sites on branches the smoke test never reaches.\nA child that fails any stage receives one repair attempt with the failing stage’s log; a child that\npasses but is byte-identical to its parent is rejected as well.\nThis mechanism is particularly important when multiple operators are scheduled for the same\nchild: sequential editing ensures that each modification is conditioned on the current harness state,\nwhile end-to-end validation verifies that their composition remains executable before the candidate\ncan affect the evolutionary population.\n\nF. Implementation Details for Dynamic Composition\nThis appendix provides implementation details for the dynamic composition procedure introduced in\nSection 4.3.\nOperationally, this happens in two steps. Scope loading fixes the pools: every component directory\nof the harness is split into a general/ part and one part per benchmark, and at load time the harness\nimports general/ plus the directory of the active environment 𝑒 only. Task-level planning then\nimplements 𝜋𝜙 . An LLM planner reads the menu of registered workflow steps together with the task\nspecification and emits a task-specific DAG whose nodes are those steps (e.g. generate, build-verify,\n23\n\n\fHarmony Harness: Multi-Objective Self-Evolution of Agent Harnesses\n\nsecurity audit, repair), with optional when-guarded conditional edges. A 𝑒,𝑥 is the set of steps, and\nthe tools and skills they load, that appear in this DAG. C is the executor that validates the DAG and\nruns it in topological order. When the harness is transferred zero-shot to an environment 𝑒′ it was\nnot evolved on, the source benchmark’s directories are not loaded and H𝑒env\nis empty, so only H gen\n′\ntransfers.\nF.1. Composition Agent\nWe organize the evolvable harness into three component classes: tools, skills, and logic. The logic\ncomponent includes prompting, verification, control flow, and high-level orchestration. For each class,\nthe repository may contain both general components and components specialized to a particular\nexecution environment 𝑒. We denote the corresponding component pools by\nØ\nØ\ngen\nenv\nH gen =\nH𝑘 ,\nH𝑒env =\nH𝑘,𝑒\n,\n(15)\n𝑘∈ K\n\n𝑘∈ K\n\nfrom which the composition agent of Eq. 8 selects the active components.\nF.2. Runtime Harness Assembly\nOperational factorization of the harness. H gen and H𝑒env are not required to be two standalone\nprograms or functions. Instead, they correspond to logically distinct regions of the same harness\nrepository. We bias executable tooling and reusable agent-control mechanisms toward H gen , since\nabstractions such as execution, verification, retry, and context management should ideally transfer\nacross environments. In contrast, retrieved skills and benchmark-specific procedures—including\nenvironment conventions, task-specific recipes, and local execution knowledge—form H𝑒env . Logic\nand orchestration may coordinate both components and therefore need not belong exclusively to\neither category.\nBecause this distinction is inherently semantic rather than syntactic, we do not impose a rigid filelevel partition. Instead, the generalize operator serves as an explicit mechanism for maintaining the\nboundary. It audits the current harness for dependencies whose utility arises from incidental properties\nof the evolution environment and either rewrites them into environment-agnostic mechanisms or\nconfines the specialization to environment-specific components. Thus, factorization is enforced\nthrough evolutionary pressure and operator scope rather than through a fixed manually specified\ndecomposition of the repository.\n\nG. Additional results\nTable 5 | Component ablation of joint evolution on SecRepoBench (search split, %). Each row adds\none component to the row above. The bottom row (+ dynamic orchestration) is the full method and\nis repeated from Table 9 (mean over 3 runs).\nStrategy\n\nAcceptance rule\n\nFunc\n\nSec\n\nF&amp;S\n\nJoint Evolving\n+ factored evolving\n+ dynamic orchestration\n\nTchebycheff over ( 𝐹, 𝑆)\n+ factorized operators (§4.2)\n+ dynamic composition (§4.3)\n\n70.0\n70.0\n76.7\n\n76.7\n83.3\n93.3\n\n63.3\n66.7\n76.7\n\n24\n\n\fHarmony Harness: Multi-Objective Self-Evolution of Agent Harnesses\n\nTable 6 | Operator-pool ablation (F&amp;S, %). “Gen-3 children” lists the F&amp;S of each child produced in\nthe third generation; “Best” is the best F&amp;S reached by the run. †: run that leads to fallback.\nOrch.\n✓\n✓\n✗\n✗\n\nOperator pool\n\nSeed\n\nGen-3 children\n\nBest\n\ntool, skill, logic\n+ generalize\ntool, skill, logic\n+ generalize\n\n66.7\n66.7\n33.3\n33.3\n\n83.3, 83.3, 33.3\n100.0, 50.0, †\n66.7, 66.7, 66.7\n66.7, 83.3, 66.7\n\n83.3\n100.0\n66.7\n83.3\n\nEffect of generalize. Because each run requires full container-based evaluation, we conduct\nthis ablation on a 6-task subset of the search split, where a single task corresponds to 16.7 points.\nTable 6 compares evolution with and without the generalize operator, with the orchestrator on\nand off; both runs within each pair start from the same seed. Adding generalize improves the\nbest F&amp;S in both settings: from 83.3 to 100.0 with the orchestrator on, and from 66.7 to 83.3 with it\noff. generalize adds no new capability of its own: it only moves existing components between\nthe general and environment-specific scopes (App. E.3). We therefore attribute the improvement to\nits effect on subsequent edits: once benchmark-specific assumptions are removed from the general\nscope, later operators build on mechanisms that hold across tasks rather than on fixes that happen\nto work for a few. Given the small subset, each gain amounts to one additional task solved, so we\nread these results as a consistent directional signal across both orchestrator settings rather than as a\nprecise effect size.\nG.1. Evolving on one objective/distribution degrades safety elsewhere\nBefore proposing joint evolution, we confirm the problem exists. A harness evolved to maximize its\nsearch-set score (the “baseline-seeded winner”) collapses on held-out data: combined F&amp;S falls to\n35.0, below the un-evolved baseline’s 43.3 (Table 14). Qualitatively (§K.7), an agent that only ever\nsees functional feedback writes plausible code, declares completion, and stops—with nothing pushing\nit toward the missing hardening (e.g., a bounds check), because the exploit signal is hidden at solve\ntime. This is the self-evolution analogue of overfitting: capability specialized to one distribution,\nsecurity left behind.\nMulti-objective evolution and the Pareto frontier. To isolate the decomposition, this analysis\nruns MOEA/D alone ( 𝑁 = 5 subproblems, neighborhood 𝑇 = 2, 3 generations): Tchebycheff joint\nevolution without factored evolving (§4.2) or dynamic orchestration (§4.3), so that the frontier\nreflects the multi-objective search and not the other components. Starting from the un-evolved\nbaseline, hypervolume jumps in generation 1 (0.321 → 0.528) and plateaus (→ 0.537). Table 13 lists\none harness per generation, the most balanced one under Eq. 3, not the whole front. The front itself\nis wider: in generations 1 and 2 it holds two non-dominated harnesses, the most balanced one at\n(func, sec) = (70.0, 70.0) and a more secure one at (56.7, 76.7), which is why the hypervolume (0.528)\nexceeds that of the balanced harness alone (0.70 × 0.70 = 0.49). In generation 3, moead_g003_s01\nreaches the ideal point on both objectives, (70.0, 76.7)—+13.3 functionality and +20.0 security\nover the baseline simultaneously—and therefore dominates the rest of the population on the search\nset. That is a property of the search split, not of the population: on held-out IN the same run\nkeeps two mutually non-dominated harnesses, moead_g001_s00 at (func, sec) = (63.3, 63.3) and\nmoead_g002_s01 at (60.0, 66.7). Figure 5 plots every child of the run. On BaxBench (Figure 6), a\nMOEA/D run with six subproblems, started from two seed harnesses, keeps a two-point front from\ngeneration 2 onward: g001_s01 at (func, sec) = (75.0, 60.7) and the most balanced g002_s03 at\n(71.4, 64.3), neither of which dominates the other.\n25\n\n\fHarmony Harness: Multi-Objective Self-Evolution of Agent Harnesses\n\n80 g001_s04 (56.7, 76.7)\n\ng003_s01 (70.0, 76.7) = z\n\nsecurity (%)\n\n75\n70\n\ng001_s00 (70.0, 70.0)\nmost balanced, gen. 1 2\n\n65\n60\n55\n50\n\n45\n\n50\n\n55\n60\n65\n70\nfunctionality (%)\n\nfront after gen. 1 2 (HV 0.528)\nfront after gen. 3 (HV 0.537)\n\nbaseline\ngeneration 1\n\n75\n\n80\n\ngeneration 2\ngeneration 3\n\nFigure 5 | Search-split Pareto front of the MOEA/D-alone run (Table 13): the baseline and all 15\nchildren, shaded by generation. After generations 1–2 the front holds two non-dominated harnesses\n(dashed); in generation 3, moead_g003_s01 reaches the ideal point 𝑧∗ and dominates the rest\n(solid). Children with identical scores are offset horizontally so that each stays visible. An interactive\nversion is available at https://anonymous.4open.science/w/HH_visualization-4F69/\nindex.html.\nIndependently evolved harnesses do not compose. Evolving a functionality harness and a safety\nharness separately and combining them scores 60.0/60.0/53.3—worse in F&amp;S than functionality-only\nevolution alone (56.7)—and its 6.7-point gap between min( 𝐹, 𝑆) = 60.0 and F&amp;S = 53.3 says the\ntwo halves are not covering the same tasks. Prompt-merging is the same lesson in weaker form:\nmerging the two prompts moves F&amp;S only from the static 46.7 to 50.0. Joint credit assignment has to\nhappen during the search; it cannot be bolted on afterwards or written into an instruction. Closing\nthe alignment gap is necessary but not sufficient—sequential, weighted, and constrained acceptance\nall reach F&amp;S = min( 𝐹, 𝑆), but at 70.0, 70.0, and 60.0, while the full harness closes it at 76.7 (every\npatch it gets functionally right is also secure). Safety-only leaves the largest gap of any row (20.0\npoints): it buys security on tasks it then fails to solve.\nEvery alternative aggregation stalls near 70, and what separates them is security, not F&amp;S.\nSequential evolution (70.0) and the weighted sum (70.0) tie each other and land 6.7 below the full\nharness (76.7); the hard constraint reaches 60.0 and the separated harnesses 53.3. The weighted-sum\nrow is the cleanest of these comparisons because it sweeps the same three interior weight vectors\nMOEA/D assigns to its interior subproblems and therefore differs only in aggregation. On F&amp;S it is not\nworse than plain Tchebycheff replacement (70.0 vs. 63.3)—the aggregation rule by itself is not where\nour margin comes from—but its security saturates 20.0 points below the full harness (73.3 vs. 93.3).\nA weighted sum will trade a security point for a functionality point whenever the latter is locally\ncheaper, so it settles at the first mutually agreeable point instead of pushing the worse objective;\n§5.1 shows that the security headroom it declines to buy is exactly the quantity that survives a\ndistribution shift. We next test whether factoring the evolution surface—evolving execution-grounded\ntools separately from skills/logic—generalizes better than a monolithic “summarize→rewrite” loop\n\n26\n\n\fHarmony Harness: Multi-Objective Self-Evolution of Agent Harnesses\n\ng002_s03 (71.4, 64.3), most balanced\n\n65\n\nsecurity (%)\n\n60\n\ng001_s01 (75.0, 60.7)\n\n55\n50\n45\n40\n\n55\n\n60\n\n65\n70\nfunctionality (%)\n\nfront after gen. 1 (HV 0.455)\nfront after gen. 2 4 (HV 0.481)\nseeds\n\ngeneration 1\ngeneration 2\n\n75\ngeneration 3\ngeneration 4\n\nFigure 6 | Search-set Pareto front of a MOEA/D run on BaxBench ( 𝑁 = 6 subproblems, 28-task\ncover set, generations 1–4): the two seed harnesses and all 24 children, shaded by generation. After\ngeneration 1 the front is a single harness (dashed); from generation 2 on it holds two mutually\nnon-dominated harnesses (solid). Children with identical scores are offset horizontally so that each\nstays visible. An interactive version is available at https://anonymous.4open.science/w/HH_\nvisualization-4F69/baxbench.html.\nthat rewrites the whole harness at once. Table 14 already contains the sharpest version of this contrast:\nthe monolithic search-seeded winner regresses to 35.0 combined F&amp;S—below the un-evolved baseline\n(43.3)—because it rewrites the agent as one block tuned to the search set, whereas the factored\nvariants improve to 58.3 and generalize out-of-distribution. To isolate the factorization itself (rather\nthan the choice of feedback), we run a controlled ablation that holds the objective, budget, and seed\nfixed and varies only the evolution surface (Table 7).\n\nH. More Related Works\nAgent safety, and secure code as a verifiable testbed. Agent-safety benchmarks study policy\nviolations, hazardous actions, and injection across web, tool-use, and embodied settings (Levy et al.,\n2026; Ruan et al., 2024; Andriushchenko et al., 2025; Debenedetti et al., 2024; Zhang et al., 2025a;\nZhan et al., 2024; Yin et al., 2024; Yuan et al., 2024), but they evaluate static agents and rarely study\nwhat self-evolution does to safety. We use secure code generation as a testbed because both objectives\nare grounded in real execution rather than a proxy judge: functionality is a passing unit-test suite\nand security is a blocked proof-of-concept exploit. Our benchmarks—SecRepoBench (Dilgren et al.,\n2025), BaxBench (Vero et al., 2025), and CWEval (Peng et al., 2025)—score the conjunction of the\ntwo (secure-pass@1), exactly the failure mode that functionality-only self-evolution is most likely to\nbreak.\nAutomated workflow generation. AFlow (Zhang et al., 2025b) searches over code-represented\nagentic workflows with Monte Carlo tree search and, like our orchestrator, represents an execution\nprocedure as a graph of operators. It differs from our setting in three ways: it optimizes a single\n27\n\n\fHarmony Harness: Multi-Objective Self-Evolution of Agent Harnesses\n\nTable 7 | Evolution-surface ablation (held-out combined F&amp;S, %). Same objective, budget, and seed;\nonly what is evolved changes. “comb.” is the unweighted mean of the two 30-task splits. The full row\nis repeated from Table 9 (mean over 3 runs).\nEvolution surface\nMonolithic summarize→rewrite\nFactored: evolving tools only\nFactored: skills/logic only\nFactored: tools + skills/logic\n+ dynamic orchestration (full)\n\nHeld-out-IN\n\nHeld-out-OUT\n\ncomb.\n\n40.0\n46.7\n50.0\n60.0\n86.7\n\n30.0\n33.3\n46.7\n56.7\n66.7\n\n35.0\n40.0\n48.3\n58.3\n76.7\n\nTable 8 | Dynamic orchestration ablation on BaxBench (USE_ORCHESTRATOR on/off). The lower\ntwo rows are the same evolved harness, seed, and budget, differing only in the toggle; the un-evolved\nbaseline is repeated from Table 10 for reference. “Nodes” is the range of plan sizes observed over the\n28 tasks (Figure 8; the planner may emit up to 16), “avg. nodes” the mean number actually executed,\nand “avg. tokens” the mean solve-time token spend per task.\nExecution\n\nNodes\n\nSec\n\nFunc\n\nF&amp;S\n\nAvg. nodes\n\nAvg. tokens\n\nBaseline (no evolution)\n\n—\n\n50.0\n\n60.7\n\n42.9\n\n—\n\n31,902\n\nFixed linear pipeline (orchestrator off)\nDynamic workflow (orchestrator on)\n\n5\n5–8\n\n53.6\n64.3\n\n71.4\n75.0\n\n53.6\n64.3\n\n5.0\n6.2\n\n58,230\n63,064\n\ntask-level objective, it searches for one workflow per task family that is then fixed, and it composes a\nfixed operator set. Harmony Harness instead co-evolves the executable tools, verification logic,\nand planner that the workflow is built from under a multi-objective decomposition, and plans the\nworkflow per task at inference time (§4.3).\n\nI. Discussion and Limitations\nWhen do the objectives conflict? On SecRepoBench the front is narrow: two non-dominated\nharnesses in early generations, and in the last generation one harness that is best on both objectives on\nthe search split (App. G.1). The decomposition frontier pays off most where security and functionality\ngenuinely trade off. Establishing such regimes—adversarial or injection tasks, or security fixes that\nbreak legacy tests—is the most important next step.\nReward hacking demands held-out gating. The 100/100/100 artifact (App. K.6) shows that\nany acceptance rule reading only training-set feedback is exploitable; any acceptance rule—ours\nincluded—must be validated on held-out safety.\nIsolating the factorization. The orchestration toggle (Table 8) and cross-benchmark transfer in both\ndirections (Table 12) are now measured, and both favor the factored, dynamic harness—most sharply\nin transfer, where the monolithic meta-harness lands below the un-evolved baseline on the target\nbenchmark. The evolution-surface ablation (Table 7) separates the two: tools-only and skills/logiconly factoring reach 40.0 and 48.3 combined F&amp;S, the two together 58.3, and only adding dynamic\norchestration reaches 76.7—so “factored” and “dynamic” each carry part of the effect and neither\nalone accounts for it.\n\n28\n\n\fHarmony Harness: Multi-Objective Self-Evolution of Agent Harnesses\n\nTable 9 | Evolution on SecRepoBench (%). Best result per column in bold. Mean over 3 runs.\nMethod\n\nSearch\n\nHeld-out In\n\nHeld-out Out\n\nAvg.\nF&amp;S\n\nSec\n\nFunc F&amp;S\n\nSec\n\nFunc F&amp;S\n\nSec\n\nFunc F&amp;S\n\nBaseline\nMeta-harness (func &amp; sec)\nMeta-harness (func-only)\nMeta-harness (sec-only)\nDGM (func &amp; sec, scalar)\n\n56.7\n73.3\n60.0\n70.0\n76.7\n\n66.7\n70.0\n73.3\n66.7\n73.3\n\n66.7\n70.0\n60.0\n66.7\n66.7\n\n73.3\n73.3\n73.3\n60.0\n70.0\n\n46.7\n50.0\n43.3\n50.0\n46.7\n\n70.0\n70.0\n70.0\n63.3\n66.7\n\nHH (ours)\n\n93.3 76.7 76.7 93.3 86.7 86.7 66.7 73.3 66.7 76.7\n\n46.7\n53.3\n56.7\n46.7\n60.0\n\n50.0\n56.7\n50.0\n53.3\n53.3\n\n36.7\n43.3\n36.7\n33.3\n33.3\n\n44.4\n51.1\n47.8\n44.4\n48.9\n\nTable 10 | Evolution on BaxBench (%, secure web-app generation). Same protocol as Table 9. “Average”\nis the mean F&amp;S over the three splits. Mean over 3 runs.\nSearch\n\nHeld-out IN\n\nHeld-out OUT\n\nAvg.\n\nMethod\n\nSec\n\nFunc F&amp;S\n\nSec\n\nFunc F&amp;S\n\nSec\n\nFunc F&amp;S\n\nF&amp;S\n\nBaseline (no evolution)\nMeta-harness (func &amp; sec)\nMeta-harness (func-only)\nMeta-harness (sec-only)\nDGM (func &amp; sec, scalar)\nHH (ours)\n\n50.0\n64.3\n53.6\n67.9\n60.7\n71.4\n\n60.7\n71.4\n71.4\n50.0\n71.4\n75.0\n\n50.0\n57.1\n53.6\n60.7\n50.0\n64.3\n\n62.4\n62.4\n64.3\n57.1\n64.3\n75.0\n\n46.4\n50.0\n39.3\n50.0\n50.0\n57.1\n\n57.1\n60.7\n60.7\n53.6\n57.1\n64.3\n\n42.9\n52.4\n45.2\n47.6\n48.8\n61.3\n\n42.9\n60.7\n46.4\n46.4\n57.1\n67.9\n\n42.9\n53.6\n50.0\n53.6\n50.0\n62.4\n\n42.9\n42.9\n39.3\n42.9\n39.3\n53.6\n\nAcceptance strategies not covered. Table 2 measures sequential, prompt-merge, joint-weighted\n(𝛼 ∈ {0.25, 0.5, 0.75}), hard-constrained, and separated-harness evolution, all under one budget and\none evaluator. Shielded evolution—wrapping the solver in an external verifier that vetoes actions\nbefore execution—is a natural point in this design space that we do not measure: it needs a shield we\ndo not have, and a shield strong enough to veto insecure patches would also change what the search\nis being credited for.\nScope. We instantiate dual-objective self-evolution only in secure code generation; whether decomposition at the acceptance level transfers to other agentic domains is open.\nCost. Real Docker build/exploit evaluation dominates wall-clock and grows as genomes add selfreview stages.\n\nJ. Measuring population diversity of the search\nJ.1. Do standard diversity metrics capture harness diversity?\nA decomposition-based search is diverse by construction only in what its subproblems ask for. The\nweight vectors guarantee that the 𝑁 niches request different trade-offs; whether the resulting harnesses\nalso behave differently has to be measured. This appendix asks whether the diversity metrics used for\nevolved programs—code distance, edit labels, and objective-space spread—can do that for self-coding\nharnesses. Our answer is that they can do so only partially. A harness is a repository whose behaviour\nis largely decided at run time: prompt text, tool and skill selection, and, in Harmony Harness,\na workflow DAG that the orchestrator plans per task (§4.3). One evolved BaxBench harness plans\n29\n\n\fHarmony Harness: Multi-Objective Self-Evolution of Agent Harnesses\n\nTable 11 | HH evolved on BaxBench, transferred zero-shot to CWEval (%), against the un-evolved\none-shot model with Claude Code harness (cc) on the same tasks. Better of the two harnesses per\nmetric and per language in bold. Mean over 3 runs.\nOne-shot (cc)\n\n+ HH harness (ours)\n\nSec\n\nFunc F&amp;S\n\nSec\n\nFunc\n\nF&amp;S\n\n75.3\n76.2\n70.2\n72.5\n74.7\n\n88.2\n98.4\n87.7\n89.9\n96.0\n\n89.2\n90.5\n89.5\n87.0\n90.7\n\n90.3\n93.7\n89.5\n87.0\n89.3\n\n89.2\n90.5\n89.5\n82.6\n85.3\n\n357 73.9 91.9 73.1 89.4 89.9\n\n87.4\n\nLanguage\n\n𝑛\n\nC\nC++\nGo\nJavaScript\nPython\n\n93\n63\n57\n69\n75\n\nAll\n\n75.3\n76.2\n70.2\n72.5\n70.7\n\nTable 12 | Cross-benchmark transfer (%). A harness is evolved on one benchmark and evaluated on\nthe other with no further evolution, on the target’s search split (the split whose baseline appears in\nTables 9 and 10); the baseline row is the un-evolved harness on that split. Mean over 3 runs.\nMethod\n\nEvolved on\n\nEvaluated on\n\nSec\n\nFunc\n\nF&amp;S\n\nBaseline (no evolution)\nMeta-harness\nHH (ours)\n\n—\nSecRepoBench\nSecRepoBench\n\nBaxBench\nBaxBench\nBaxBench\n\n50.0\n53.6\n59.6\n\n60.7\n57.1\n64.3\n\n42.9\n39.3\n57.1\n\nBaseline (no evolution)\nMeta-harness\nHH (ours)\n\n—\nBaxBench\nBaxBench\n\nSecRepoBench\nSecRepoBench\nSecRepoBench\n\n56.7\n43.3\n80.0\n\n66.7\n50.0\n70.0\n\n46.7\n36.7\n70.0\n\nseven distinct DAG shapes over 28 tasks (Figure 8), yet every code-level metric below scores it as a\nsingle genome. Conversely, a rewritten prompt or a renamed helper moves a genome far in token\nspace without changing what it does. We apply the metrics with a separate, deliberately offline\ninstrument that reads the genome tree and the operator logs after the fact and by construction\ncannot feed anything back into selection. It scores a population along three families: structural\ncode distance between genomes (Jaccard over token 5-grams, AST-node 3-grams, and source lines,\nweighted 0.4/0.3/0.3), mechanism-label diversity (what each operator says it changed, cross-checked\nagainst the files it actually touched), and performance-space diversity (spread of the objective vectors).\nFigure 7 reports it over all 137 BaxBench variants pooled from 34 run tags; the rest of this appendix\ntabulates every component (Table 15, §J.7) and gives the full definitions, the per-lineage distance\nmatrix, the objective-space scatter, and the mechanism-label breakdown.\nThe code-distance summaries disagree with each other: 𝐷struct = 0.345 against 𝐷novel = 0.014, a\nfactor of 25, and the number of equivalence classes depends almost entirely on the chosen threshold\n(112 at 𝜖dup = 0.001, 9 at 𝜖dup = 0.05). Mechanism labels give yet another picture: all 17 labels are\nhit, 𝐻label = 0.934, and the mean pairwise Jaccard distance between label sets is 0.656, so children do\ndiffer in which part of the scaffold they change. The genotype–phenotype correlation is 𝑟 = +0.030\nover the 465 scored pairs: code distance says almost nothing about objective-space distance, and\npairs the instrument calls identical still land up to 0.9 apart in objective space.\nWe read these disagreements as a limitation of the metrics. Token and line distances are dominated\nby prompt text and file size, so they count cosmetic rewrites as new solutions. None of the three\ncode distances sees behaviour that is decided at run time, such as the per-task DAGs above, and the\nlabel family relies on the operators’ own descriptions of their edits. Of the three code distances, the\n\n30\n\n\fHarmony Harness: Multi-Objective Self-Evolution of Agent Harnesses\n\nTable 13 | Per-generation frontier quality for MOEA/D alone ( 𝑁 = 5, 𝑇 = 2, 3 generations; no factored\nevolving or dynamic orchestration, to isolate the decomposition) on the SecRepoBench search set.\nHypervolume is the area of the population’s Pareto front against reference point (0, 0); 𝑧∗ is the ideal\npoint (per-objective running best); “most-balanced” is the population member with the highest worst\nobjective (max min(func, sec)).\nstage\ninit (baseline)\ngeneration 1\ngeneration 2\ngeneration 3\n\nhypervolume\n\n𝑧 ∗ (func, sec)\n\nmost-balanced harness\n\n0.321\n0.528\n0.528\n0.537\n\n(56.7, 56.7)\n(70.0, 76.7)\n(70.0, 76.7)\n(70.0, 76.7)\n\nbaseline (56.7, 56.7)\nmoead_g001_s00 (70.0, 70.0)\nmoead_g001_s00 (70.0, 70.0)\nmoead_g003_s01 (70.0, 76.7)\n\nTable 14 | Held-out generalization (30 tasks each, eval-only). IN = crash-type families seen during\nsearch; OUT = unseen families. The feedback-tool per-generation bests beat baseline on combined\nF&amp;S (58.3 vs 43.3); the search-seeded winner is worse than baseline (35.0).\nHeld-out IN (%)\n\nHeld-out OUT (%)\n\ncomb.\n\nharness\n\nFunc\n\nSec\n\nF&amp;S\n\nFunc\n\nSec\n\nF&amp;S\n\nF&amp;S\n\nbaseline\nwithout env-feedback\n\n73.3\n—\n\n66.7\n—\n\n50.0\n40.0\n\n70.0\n—\n\n46.7\n—\n\n36.7\n30.0\n\n43.3\n35.0\n\nfeedback-env gen1 best\nfeedback-env gen2 best\nfeedback-env gen3 best\nfeedback-env dynamic\n\n63.3\n70.0\n80.0\n86.7\n\n80.0\n80.0\n83.3\n93.3\n\n56.7\n60.0\n66.7\n86.7\n\n66.7\n80.0\n76.7\n73.3\n\n56.7\n63.3\n50.0\n66.7\n\n43.3\n56.7\n46.7\n66.7\n\n50.0\n58.3\n56.7\n76.7\n\nAST-based one is the most informative for harnesses. It ignores prompt rewording, identifier renaming\nand formatting, and it tracks the control structure through which tools, skills and orchestration\nare wired. On the pooled population it is 2.6× smaller than the token (0.417) and line (0.433)\ndistances (0.162), which indicates that most of the textual spread is cosmetic. It is still blind to\nruntime composition, and it does not correlate with objective-space distance any better than the\ntext-based distances do. Faithful diversity measures for harnesses therefore need to be behavioural,\ne.g. comparing planned DAGs, tool-call traces or per-task pass patterns, rather than comparing source\ncode. We report the index only as a diagnostic, never as an objective: any operator that rewrites text\nat random trivially games it, which is precisely what 𝐷novel and 𝑟 are meant to expose.\nThe instrument is deliberately offline and read-only: it reads the genome tree and the logs after the\nfact, and by construction cannot feed anything back into selection — the same discipline that applies\nto the held-out evaluation.\nJ.2. The population\nAn individual is one genome package on disk, and nothing else — no run metadata, no score, is\nrequired for a genome to be counted:\n• an evolved child, baxbench_agents/&lt;tag&gt;/&lt;g###_s##&gt;/&lt;k_op&gt;/, where &lt;tag&gt; is the\nrun, g###_s## the generation-and-subproblem niche, and &lt;k_op&gt; the chain step and operator\nthat produced it; a directory qualifies only if it contains __init__.py. This includes the intermediate steps of a multi-operator chain (§4.2), which are never evaluated and never enter the\nMOEA/D population. Consecutive steps of one chain differ by a single operator’s edit, so their\n31\n\n\fHarmony Harness: Multi-Objective Self-Evolution of Agent Harnesses\nPopulation diversity — 137 variants,\n34 run tags\n\nComposite components\n0.345\n\nDstruct\n\n0.014\n0.066\n0.934\n\nHlabel\n\nDperf\n\n0.00\n\nn = 137 (every variant distinct)\n\n120\n\n112\n\nall pairs (9,316 values)\nDstruct\n\n0.142\n0.25\n\n80\n60\n\nnearest neighbour (137 values)\n\n40\n\n30\n\ndefault τ = 0.05\nNeff = 9\n\nDnovel\n\n20\nDIVERSITY 0.300\n0.50\n\n0.75\n\n1.00\n\n0\n\n0.345\n\ndensity\n\n/\n\nNeff n\n\n140\n\nWhere the distance mass sits\n\n100\nNeff\n\nDnovel\n\nEquivalence classes vs. threshold\n\n0.001\n\n0.005 0.01\n\n0.05 0.1\n\nthreshold τ (combined genotype distance)\n\n0.2\n\n0.0\n\n0.014\n\n0.1\n\n0.2\n\n0.3\n\n0.4\n\n0.5\n\n0.6\n\ncombined genotype distance D\n\n0.7\n\n0.8\n\nFigure 7 | Population diversity over 137 evolved BaxBench harnesses (34 run tags). Left: the five\ncomponents and their equal-weight composite (DIVERSITY = 0.300, dashed). The index is held up by\nmean pairwise distance 𝐷struct and label entropy 𝐻label and held down by nearest-neighbour distance\n𝐷novel and the fraction of distinct solutions 𝑁eff /𝑛. Middle: 𝑁eff against the duplicate threshold 𝜖dup ;\n𝑁eff falls steeply (112 classes at 𝜖dup = 0.001 down to 9 at 𝜖dup = 0.05) and flattens only briefly (still\n9 at 0.1), so “how many distinct solutions” has no threshold-free answer and the reported 9 describes\n\u0001\nthe scale of a typical edit. Right: the distance distributions behind the headline—over all 137\n2 pairs\nthe mass sits far from zero (top), while over each genome’s nearest neighbour it concentrates in the\nfirst bin (bottom, note the change of vertical scale).\ninclusion lowers the nearest-neighbour novelty 𝐷novel and the 𝑁eff ratio reported below relative\nto a pool restricted to evaluated children. It also explains why only 31 of the 137 variants carry\nscores;\n• a seed package (bax_repo_seed, bax_wf_seed), included only under -include-seeds,\nwhich is what makes “how far has this run moved from its starting point” answerable.\nWrite 𝑋 = { 𝑥1 , . . . , 𝑥𝑛 } for the collected set. Since any list of directories can be passed, the same\ninstrument measures three different questions depending on what is handed to it: one run’s population\n(is this run exploring?), several runs pooled (are independent runs finding the same thing?), or a single\nniche across generations (what did this lineage actually change?). All three appear in Section J.7.\nWithin a genome, only .py files are read; __pycache__, log and eval subtrees are skipped so\nthat a genome’s own logs never enter its fingerprint.\nJ.3. A. Structural code distance\nEach genome is reduced to three shingle sets, deliberately chosen to disagree with each other:\n• 𝑆tok ( 𝑥 ) — 𝑔sh -grams (𝑔sh = 5, -ngram) over a normalized token stream of every file. Numbers\ncollapse to #num. Strings and comments are not dropped but split into lowercase word tokens\n(capped at 400 per token, so one enormous prompt constant cannot dominate a genome’s fingerprint), as is common for program-level diversity measures. For harnesses this makes the distance\nsensitive to any rewording of prompt text, whether or not the rewording changes behaviour (§J.7).\nA file that fails to tokenize degrades to a bag of words rather than being skipped.\n• 𝑆ast ( 𝑥 ) — 3-grams over the ancestor chain of node type names in the parse tree. This sees control\nstructure only and is by design insensitive to prompt rewording, identifier renaming and formatting.\nFiles that fail ast.parse are counted and reported in the header, and contribute to the other\ntwo sets only.\n• 𝑆lin ( 𝑥 ) — the set of non-blank, stripped source lines: a crude but near-exact duplicate detector.\n32\n\n\fHarmony Harness: Multi-Objective Self-Evolution of Agent Harnesses\n\nThe contrast between the first two carries most of the diagnostic weight. A high 𝑑tok with a low 𝑑ast is\nprecisely the signature of cosmetic variation: much text changed, no structure changed.\nWith 𝑑• ( 𝑥, 𝑦 ) = 1 − |𝑆• ( 𝑥 ) ∩ 𝑆• ( 𝑦 )| / |𝑆• ( 𝑥 ) ∪ 𝑆• ( 𝑦 )| the Jaccard distance on each set (two empty\nsets count as distance 0), the combined genotype distance is the normalized weighted sum\n𝐷 ( 𝑥, 𝑦 ) = 𝑤tok 𝑑tok ( 𝑥, 𝑦 ) + 𝑤ast 𝑑ast ( 𝑥, 𝑦 ) + 𝑤lin 𝑑lin ( 𝑥, 𝑦 ) ,\n\n( 𝑤tok , 𝑤ast , 𝑤lin ) = (0.4, 0.3, 0.3) , (16)\n\nthe weights settable with -weights and renormalized to sum to one. 𝐷 is symmetric, zero on\nidentical genomes, and bounded in [0, 1]; it is not a metric in the strict sense (the weighted sum\nof Jaccard distances satisfies the triangle inequality, but the AST component ignores content, so\n𝐷 ( 𝑥, 𝑦 ) = 0 does not imply 𝑥 = 𝑦 ). Three summaries:\n\u0012 \u0013 −1 ∑︁\n𝑛\n\n𝐷 ( 𝑥𝑖 , 𝑥 𝑗 )\n2\n𝑖&lt; 𝑗\n1 ∑︁\n𝐷novel =\nmin 𝐷 ( 𝑥 𝑖 , 𝑥 𝑗 )\n\n𝐷struct =\n\n𝑗≠ 𝑖\n\n𝑛\n\nspread: mean pairwise distance\n\n(17)\n\nnovelty: distance to the nearest twin\n\n(18)\n\n𝐺𝜖dup = 𝑋, { 𝑖 𝑗 : 𝐷 ( 𝑥 𝑖 , 𝑥 𝑗 ) ≤ 𝜖dup }\n\n(19)\n\n𝑖\n\n𝑁eff ( 𝜖dup ) = # components( 𝐺𝜖dup )\n\n\u0001\n\n𝐷struct and 𝐷novel separate two failure modes that a single mean hides. A population can be glob-\n\nally wide — several mutually distant lineages — while every individual still has a near-duplicate\nsitting beside it; the mean is then reporting the distance between clusters, not diversity. 𝑁eff makes\nthe distinction concrete: it is the number of single-linkage equivalence classes at threshold 𝜖dup\n(-dup-threshold, default 0.05), computed by union-find over all pairs within 𝜖dup , i.e. how many\ngenuinely distinct solutions the population holds. The ratio 𝑁eff /𝑛 is the one number to watch across\ngenerations.\n\nAny single 𝜖dup is arbitrary when children routinely differ by a few dozen lines, so the sweep\nover 𝜖dup ∈ {0.001, 0.005, 0.01, 0.05, 0.1, 0.2} is always printed alongside it; a sweep that falls off a\ncliff between two adjacent thresholds locates the scale at which the population is really structured.\nThree further outputs support reading the number: the arg max and arg min lists (the most distinctive\ngenomes by nearest-neighbour distance, and the closest pairs by name, which is how a duplicated\nlineage is identified concretely), the full distance matrix under -csv, and — when the population\nspans several run tags — the within-tag and between-tag means, which separate drift along a lineage\nfrom difference between independent runs.\nJ.4. B. Mechanism-label diversity\nStructural distance cannot tell whether two children that look different are doing the same thing.\nTwo independently written retry loops share almost no tokens and are, as search results, one idea.\nThe second family attacks this from the only evidence available without a second LLM pass: what the\noperator said it did, and where it wrote.\nFor each child, two sources are read from &lt;niche&gt;/log/operator/: the verbatim response\nof the operator session (&lt;child&gt;_output*.md, the text after the ## RESPONSE (verbatim)\nmarker) and the changed_files list from &lt;child&gt;_change.json. The text is matched against\na fixed lexicon of 𝐾 = 17 mechanism regexes:\nloop-control, retry, build-verify, test-gen, security, input-validation, prompt-edit,\ntool-add, skill, edit-format, parsing, context-mgmt, model-params, self-critique,\nplanning, error-handling, config-knob\n33\n\n\fHarmony Harness: Multi-Objective Self-Evolution of Agent Harnesses\n\naugmented by path rules that fire on the diff regardless of what the prose claims: an edit under tools/\nis tool-add, under skills/ is skill, under prompts/ is prompt-edit, and to config.py is\nconfig-knob. This second channel matters because it is the only part of the labelling the operator\ncannot talk its way out of.\nLet 𝑋 𝐿 ⊆ 𝑋 be the labelled subset, 𝐿𝑖 the label set of child 𝑖, 𝑐ℓ the number of children carrying\nÍ\nlabel ℓ, 𝑝ℓ = 𝑐ℓ / 𝑘 𝑐𝑘 , and 𝐾obs the number of labels actually hit. Then\n\u0012\n\u0013 −1\nÍ\n\u0011\n∑︁\n− ℓ 𝑝ℓ ln 𝑝ℓ\n| 𝑋 𝐿 | ∑︁ \u0010\n| 𝐿 ∩𝐿 |\n2\n,\nSimpson = 1 −\n𝑝ℓ ,\n𝐽¯ =\n1 − | 𝐿𝑖𝑖 ∪𝐿 𝑗𝑗 | .\n(20)\n𝐻label =\nln 𝐾obs\n2\n𝑖&lt; 𝑗\nℓ\n𝐻label measures whether attention is spread over mechanisms or piled onto one; 𝐽¯ measures whether\n\nindividual children differ from each other, which is the sharper question — a population where every\nchild touches all 17 mechanisms has maximal entropy and zero diversity, and only 𝐽¯ notices.\nReported in the same block, as a proxy for the size and the landing point of the edits: the\ndistribution of touched files with its normalized entropy, and the mutation size effective_added +\neffective_removed from the integrity gate’s change record, summarized as median, maximum,\nand the count of changes the gate flagged minimal.\nJ.5. C. Performance-space diversity\nObjective vectors are recovered from two sources: evolve.json (the by_batch entries, full\nprecision) and the [eval] lines of logs/runs/*.log (percentages to one decimal). Both are\nrounded to three decimals before use, so that the same score arriving from two sources is not\ncounted as two distinct points — without this the “distinct score points” count is silently inflated.\nevolve.json wins where both exist.\nOver the scored subset 𝑋𝑆 ⊆ 𝑋 , with f ( 𝑥 ) = ( 𝑓sec , 𝑓func ) ∈ [0, 1] 2 both maximized,\n\u0012\n\u0013 −1 ∑︁\n1 | 𝑋𝑆 |\n𝐷perf = √\nf ( 𝑥𝑖 ) − f ( 𝑥 𝑗 ) 2 ,\n(21)\n2 2\n𝑖&lt; 𝑗\n√\nthe 2 normalizing by the diameter of the unit square so the value is comparable with the structural\ndistances. Reported with it: the per-coordinate standard deviations, the number of distinct score\npoints, the size of the Pareto front, and its hypervolume with respect to the reference point (0, 0).\n(1)\n(1)\n(𝑃)\n(𝑃)\n( 𝑃 +1)\nWith the front sorted by decreasing 𝑓func as ( 𝑓func\n, 𝑓sec ) , . . . , ( 𝑓func , 𝑓sec ) and 𝑓func = 0, it is HV =\n\u0001\nÍ𝑃\n(𝑘)\n( 𝑘+1)\n(𝑘)\n𝑓sec .\n𝑘=1 𝑓func − 𝑓func\nThe diagnostic that matters most in this family is neither of those. It is the Pearson correlation\nbetween genotype distance and phenotype distance over all scored pairs,\n\u0010\n\u0011\n𝑟 = corr 𝐷 ( 𝑥 𝑖 , 𝑥 𝑗 ) , f ( 𝑥 𝑖 ) − f ( 𝑥 𝑗 ) 2\n,\n(22)\n𝑖&lt; 𝑗 : 𝑥 𝑖 ,𝑥 𝑗 ∈ 𝑋𝑆\n\nwhich is the closest thing available to a measurement of whether the variation operator is doing useful\nwork. 𝑟 meaningfully positive means bigger edits land in different places; 𝑟 ≈ 0 means the search is\nexploring code space without exploring behaviour space — the children look different and score the\nsame — and a persistent 𝑟 ≈ 0 is an argument about the operator library, not about the selection layer.\nJ.6. The composite index\nThe available components are averaged with equal weight,\n\b\nDIVERSITY = mean 𝐷struct , 𝐷novel , 𝑁eff /𝑛, 𝐻label , 𝐷perf ,\n\n(23)\n34\n\n\fHarmony Harness: Multi-Objective Self-Evolution of Agent Harnesses\n\nskipping any family whose inputs are absent — a population of seeds has no operator logs, an\nunevaluated population has no scores — so the index is an average over whatever could be measured,\nand populations with different components present are not comparable.\nThree caveats attach to this number and should travel with it. The equal weighting is a convention\nand not a claim: 𝐷novel and 𝑁eff /𝑛 are near-zero in any lineage-structured population and drag the\nmean down, while 𝐻label is near-one in almost any population with more than a handful of children,\nso the index moves mostly with 𝐷struct and 𝐷perf . It is comparable only across populations measured\nwith identical settings — same 𝑔sh , same distance weights, same 𝜖dup , same rule for what counts as\nan individual. And it is a diagnostic, not an objective: optimizing it directly is trivially gamed by any\noperator that rewrites text at random. The components are what should be read; the scalar exists so\nthat two runs can be ranked at a glance.\nJ.7. Measured on the current population\nTable 15 reports the instrument over all 137 variants presently in baxbench_agents/, pooled\nacross 34 run tags. The same measurement is drawn in Figure 7 (§J.1): the five components of the\ncomposite, the threshold sweep behind 𝑁eff , and the two distance distributions whose separation is\nthe result.\nTable 15 | Pooled population, 𝑛 = 137 variants from 34 run tags, 𝑔sh = 5, weights (0.4, 0.3, 0.3),\n𝜖dup = 0.05.\nQuantity\n\nValue\n\n𝑑tok / 𝑑ast / 𝑑lin\n\n0.417 / 0.162 / 0.433\n\n𝐷struct\n𝐷novel\n𝑁eff / 𝑛\n𝑁eff sweep\n𝐻label\n𝐽¯ (label sets)\n𝐷perf\n\nPareto front / hypervolume\n𝑟 (genotype vs. phenotype)\nDIVERSITY\n\nReading\n\nAST distance is 2.6× smaller than token and line\ndistance: edits move text and individual statements,\nrarely control structure\n0.345 ± 0.269\nglobally the population is well spread\n0.014\n. . . but nearest neighbours are close in code\n9/137 = 6.6%\nnine equivalence classes at 𝜖dup = 0.05\n0.001→112 0.005→68 0.01→30 0.05→9 0.1→9 0.2→7\n0.934\n134/137 labelled, 17/17 labels hit, Simpson = 0.914\n0.656\nchildren do differ in which mechanisms they name\n0.142\n31 scored, 24 distinct points, 𝜎sec = 0.151,\n𝜎func = 0.161\n2 / 0.480\nthe front over the pooled set is two points wide\n+0.030\nstructural difference buys essentially no\nobjective-space difference\n0.300\n\nequal-weight mean of the five components\n\nThe headline is the gap. 𝐷struct = 0.345 against 𝐷novel = 0.014 is a factor of 25, so the two\nsummaries of the same distance give very different pictures of the same population. The threshold\nsweep (112 classes at 𝜖dup = 0.001, 30 at 𝜖dup = 0.01, 9 at 𝜖dup = 0.05) shows that no single threshold\nseparates “genuinely different” from “same scaffold” under this distance. The component breakdown\nlocates the textual spread: 𝑑ast = 0.162 against 𝑑lin = 0.433 means that most of what token and line\ndistances count as difference is rewording rather than a change in how the scaffold is wired. The\nper-component threshold sweeps make the same point. On a later snapshot of the same directory\n(𝑛 = 233 variants, 49 scored), each distance used alone at 𝜖dup = 0.001 yields 209 (token), 214\n(line) and 70 (AST) equivalence classes, and at 𝜖dup = 0.01 it yields 102, 96 and 27. Token and line\ndistances therefore separate almost every pair of consecutive edits, including pure rewordings, and\n35\n\n\fHarmony Harness: Multi-Objective Self-Evolution of Agent Harnesses\n\ninflate the apparent number of distinct solutions roughly threefold. AST distance merges such edits\nand separates only changes to control structure. This is why we regard the AST component as the\nmost informative of the three, and the token- and line-based metrics as the least reliable for harnesses.\nLabels and code disagree with behaviour. 𝐻label = 0.934 with all 17 mechanisms hit and 𝐽¯ = 0.656\nsays the operators do talk about, and write to, many different parts of the scaffold (Table 16). Yet\n𝑟 = +0.030: the mechanisms differ, the code differs, and the scores do not follow. Neither family is a\nfaithful proxy for the behavioural diversity of a harness, part of which is decided only at run time.\nTable 16 | Mechanism-label distribution over the 134 labelled children. Labels are not exclusive; the\nfraction is the share of children carrying that label.\nLabel\n\nFrac.\n\nLabel\n\nFrac.\n\nLabel\n\nFrac.\n\nbuild-verify\nplanning\nsecurity\nloop-control\nprompt-edit\n\n0.78\n0.70\n0.64\n0.62\n0.61\n\nskill\nconfig-knob\ntool-add\ntest-gen\nretry\ninput-validation\n\n0.53\n0.45\n0.41\n0.40\n0.36\n0.30\n\nparsing\nself-critique\nerror-handling\ncontext-mgmt\nedit-format\nmodel-params\n\n0.30\n0.25\n0.14\n0.12\n0.08\n0.01\n\nPositional arguments are genome-tree directories; everything below is optional.\nTable 17 | Options.\nFlag\n\nDefault\n\nEffect\n\n-ngram\n-weights\n-dup-threshold\n-include-seeds\n-top\n-json\n\n5\n0.4,0.3,0.3\n0.05\noff\n5\n—\n\n-csv\n-log-dir\n-agents-root\n\n—\nlogs/\nbaxbench_agents/\n\ntoken shingle length 𝑔sh\ntoken, AST, line weights; renormalized\n𝜖dup for 𝑁eff and the near-duplicate list\nadd bax_repo_seed / bax_wf_seed\nlength of the most-novel and closest-pair lists\nwrite every metric, including the per-genome\nnearest-neighbour distances, the near-duplicate pairs and the\nper-tag breakdown\nwrite the full 𝑛 × 𝑛 combined distance matrix\nwhere runs/*.log is looked for\nwhere */evolve.json is looked for\n\nCost is 𝑂 ( 𝑛2 ) pairwise set intersections over interned integer shingles, plus one pass over every\n.py file; the 137-variant population takes on the order of a minute and is single-threaded. The\nJSON output is the interface for tracking diversity across generations — the composite block and\nstructural.n_eff_ratio are the fields to plot.\nJ.8. What the instrument cannot see\n• Family B is keyword matching over self-reported prose. The lexicon is a fixed list of regexes\napplied to what the operator wrote about its own edit, not an LLM labelling of the diff. An\noperator that implements a retry loop without using the word “retry” is under-labelled; one that\ndiscusses security at length and changes a docstring is over-labelled. The path rules cover only\nfour directories. Read 𝐻label as an upper bound on how many distinct mechanisms were genuinely\nattempted, and never as evidence on its own.\n36\n\n\fHarmony Harness: Multi-Objective Self-Evolution of Agent Harnesses\n\n• Semantic equivalence is invisible to family A. Two rewrites of the same idea in different words\nare far apart under all three shingle sets. 𝐷struct is therefore also an upper bound: real diversity\nis at most what it reports, possibly much less. This is the one place where a second LLM pass —\npairwise “do these two scaffolds implement the same strategy?” — would add information the\ncurrent instrument cannot.\n• 𝐷 is dominated by genome size. Jaccard on shingle sets penalizes a genome that merely has\nmore code; a child that adds a large skills/ file moves away from its parent by more than a\nchild that rewrites the main loop. The AST component partly compensates, and this is why the\nthree components are always reported separately rather than only as 𝐷.\n• Family C is only as complete as the score table. Here 31 of 137 variants are scored, so 𝐷perf , the\nfront, the hypervolume and 𝑟 describe a biased subset\n— the variants that survived long enough\n31\u0001\nto be evaluated. 𝑟 in particular is computed over 2 = 465 pairs drawn from that subset.\n• Nothing is inferential. No confidence intervals, no null model. There is no reference value against\nwhich 𝑁eff /𝑛 can be judged high or low; the numbers are only meaningful as a time series over\ngenerations, or as an A/B between two configurations measured identically.\nThe measurement this suggests. The instrument is currently run by hand after a batch of runs.\nThe single change that would make it useful to the search is to compute 𝑁eff /𝑛 and 𝐷novel over the\nlive population at the end of each generation and log them next to the held-out scores — still never\nentering selection. That makes changes in these metrics visible in the generation they happen rather\nthan at the end of a run.\n\nK. Calibrating the overfitting gate\nK.1. What the gate is\nBeyond the mechanical guardrails of §4.2, every admitted child passes through an overfitting gate:\na one-shot LLM judge that sees the parent→child diff 𝛿 together with the injected ## Diagnosis\nblock, and returns a scalar risk 𝜌 ( 𝛿) ∈ [0, 1] plus a one-line justification naming the mechanism it\nbelieves the edit fits. A child is rejected when 𝜌 ( 𝛿) &gt; 𝜃.\nTwo choices matter. First, the judge is deliberately not shown the artifact-grounded failure digest\nor the per-task trajectories: conditioned on a real failure, any edit that addresses that failure can be\nrationalized as principled, and the judge collapses to accepting everything. Second, the judge emits a\nscalar rather than a verdict, so the operating point 𝜃 can be chosen on a calibration curve instead of\nbeing fixed implicitly by the prompt.\nAn uncalibrated judge is an assertion. This appendix reports what the gate actually detects,\non overfits whose ground-truth label is known by construction and, for the harder tiers, verified\nbehaviourally against the eval-only held-out split of §5.1.\nK.2. Paired construction\nConstructing an “overfit” population and a “general” population separately confounds the label with\nedit size, edit style, and topic. We use a paired design instead. We draw 𝑛𝐶 = 5 real admitted children\nfrom completed runs, sampled from distinct generations and distinct MOEA/D weight niches so that\nthe study does not measure a single lineage, and restrict to the -operator diff mode so that each\nchild is already a minimal in-place edit with a well-defined diff against its parent. For each such child\n\n37\n\n\fHarmony Harness: Multi-Objective Self-Evolution of Agent Harnesses\n\n𝐶 and each plant type 𝑞 we form\n\n𝐶𝑞+ = Inject( 𝐶, 𝑞) ,\n\na copy of 𝐶 carrying exactly one injected overfit and no other change. The judge scores 𝐶 and every\n𝐶𝑞+ blind to the label and in randomised order. Because 𝐶 and 𝐶𝑞+ differ only by the injection, detection\nis measured against a matched control and significance is assessed with a paired McNemar test rather\nthan a two-sample comparison. Each condition is judged 3× and scored by majority vote; we report\nthe vote disagreement rate as a measure of judge stochasticity.\nK.3. The plant taxonomy\nTable 18 lists the injected edits. They are graded into three tiers of increasing subtlety, plus a control\nclass. The tiers exist because a judge that fires on Tier 1 and nothing else is a regular expression\nwith a language model’s latency; locating where detection actually breaks down is the point of the\nexercise.\nTier 1 (lexical) injects specificity that is visible as a literal string in the diff. Tier 2 (structural)\ninjects specificity that is real but carries no benchmark string — a branch on a feature that only\nco-occurs in the evolve split, a constant tuned to it, or a dependence on an incidental convention of\nthe ARVO harness rather than on the repair task. Tier 3 (semantic) injects a policy that is defensible\nin the abstract but true only of the evolve split’s distribution, or that games the scoring rule rather\nthan the underlying objective; these are the edits a diff-reading judge has the least purchase on.\nThe control class, S (suspicious-but-general), is the complement and is required for a meaningful\nfalse-positive rate. Our own champion’s decisive mechanism — a ground-truth build and boot/exploit\nprobe (§4) — is ARVO-specific in its interface while being entirely general in its mechanism: consult\nground truth rather than adjudicate a patch by reading it. An overfitting gate that rejects that edit\nhas cost more than it saved, and a false-positive rate measured only on unmodified children would\nnever reveal it.\nK.4. Behavioural label verification\nTier 1 and Tier 2 labels are certain by construction: the injected edit is specific to search-set material\nby inspection, and no further evidence is required. Tier 3 and class S labels are assertions about\ngeneralization, so we verify them against behaviour rather than trusting the author. For each such\ncandidate we compute the generalization gap\n\u0001\n\u0001\nΔgap = 𝑠evolve ( 𝐶 + ) − 𝑠evolve ( 𝐶 ) − 𝑠ho ( 𝐶 + ) − 𝑠ho ( 𝐶 ) ,\n|\n{z\n}\n|\n{z\n}\n∧\nΔevolve\n\n∧\nΔho\n\nwhere 𝑠evolve is secure-pass@1 on the 30-task evolve split and 𝑠ho is secure-pass@1 over the 60 tasks\nof IN ∪ OUT, each task weighted equally (the two splits have equal size) (§5.1). A genuine overfit\n∧\n∧ ≤ 0, hence Δ\nexhibits Δevolve\n&gt; 0 with Δho\ngap ≫ 0; a general edit exhibits Δgap ≈ 0. A Tier 3 plant\nthat fails this test was a bad plant and is relabelled or dropped before the detection statistics are\ncomputed. Because verification is required only for Tier 3 and class S, the cost is 𝑛𝐶 × 7 held-out\nevaluations rather than a full sweep.\nThis step is what separates the study from a self-graded exercise: the positive labels the judge is\nscored against are grounded in measured behaviour on tasks the operator never saw.\n\n38\n\n\fHarmony Harness: Multi-Objective Self-Evolution of Agent Harnesses\n\nTable 18 | The planted-overfit taxonomy. Each plant is injected into a real admitted child as the\nsole modification. Tier 1–2 labels are certain by construction; Tier 3 and class S labels are verified\nbehaviourally (§K.4).\nID\n\nMechanism fitted\n\nTier 1 — lexical\nP1\ntask identity\nP2\n\ncrash-type string\n\nP3\nP4\n\nrepository name\ntask text\n\nTier 2 — structural\nP5\nsplit-correlated feature\nP6\n\ntuned constant\n\nP7\n\nharness convention\n\nP8\n\nbenchmark format\n\nTier 3 — semantic\nP9\ndistributional prior\nP10\n\nscoring rule\n\nP11\n\nevaluation order\n\nInjected edit\nif task_id in {...} guarding a bespoke code path, with\nevolve-split IDs enumerated\na crash-type name drawn from the evolve split hardcoded into the prompt\ntemplate\nif \"libpng\" in repo_path selecting a hand-written fix recipe\na skill file whose body names specific evolve-split tasks\nbranch on a (file extension × crash type) pair that occurs only in the\nevolve split\nretry count / context budget set to the value that maximises evolve-split\nscore\nshort-circuit on an incidental ARVO signal (exit code, artifact path) rather\nthan on repair state\nlogic fitted to SecRepoBench’s masked-region format rather than to code\nrepair\na prompt heuristic true of the evolve split’s crash-type mix and false in\ngeneral\nsuppress code paths the PoC can reach, trading 𝑓func for 𝑓sec under\nsecure-pass@1\nskip work that only moves 𝑓func on tasks where functionality is already\nsaturated\n\nClass S — suspicious but general (control)\nS1\nexecution-grounded probe a ground-truth build + boot/exploit probe (ARVO-specific interface,\ngeneral mechanism)\nS2\ninterface naming\na tool named for the benchmark whose body is benchmark-agnostic\nS3\ndocumentation\na comment referencing SecRepoBench above an otherwise general\nverification gate\nS4\ndefault value\na general retry policy whose default happens to have been chosen on the\nevolve split\n\nK.5. What the gate detects\nAblations. Two variants are run on the same pairs at negligible additional cost.\n• Same-model vs. cross-model judge. The default judge shares a model family with the proposer,\nwhich risks correlated blind spots — an edit the proposer produced because it appeared general is\nan edit the same model is disposed to certify as general. We repeat the study with a judge from a\ndifferent family and report the difference in Tier 3 recall.\n• Diagnosis-conditioned vs. diff-only. Supplying the stated hypothesis may help the judge locate\nthe intended mechanism, or may supply a ready-made rationalisation. We report both.\nCost. 𝑛𝐶 = 5 parents × 16 conditions × 3 samples = 240 judge calls, plus 𝑛𝐶 × 7 = 35 held-out\nevaluations for behavioural verification — together a small fraction of a single evolution run.\n\n39\n\n\fHarmony Harness: Multi-Objective Self-Evolution of Agent Harnesses\n\nScope. The gate is calibrated against planted overfits, which are by construction the overfits we\nthought to write down. It bounds the judge’s sensitivity to known failure modes and does not establish\ncoverage of unknown ones; that is precisely why the gate is deployed as a cheap pre-execution screen\nin front of the held-out protocol rather than as a replacement for it.\nK.6. A concrete reward-hacking failure\nThe clearest evidence that a search-set safety score is not evidence of safety is a variant that achieved\na perfect one. Raw error feedback is identical to the factored-evolving configuration (Table 5) except\nin what the proposer may read and when a child is accepted: it receives the grader’s raw error output,\nand any child is accepted whose functional pass rate does not decrease. Under that rule the search\nreports 100/100/100 on the SecRepoBench search set—every task functional, every exploit blocked,\non the same 30 tasks where the un-evolved harness scores 46.7 combined.\nThe score is an artifact. Inspecting the winning harness’s trajectories shows the code it emits is\nnot secure: the run satisfies the measurement rather than the property the measurement stands for.\nTwo further observations from our runs separate the ways a search can do this, because they call for\ndifferent defenses.\nThe soft form: writing the search split into the scaffold. Running DGM we repeatedly recovered\nchildren that had simply hardcoded the search split’s crash distribution. One assumes every task is a\nCWE-125 out-of-bounds read reached through the UTF-8 decoding branch and routes every repair\nthrough that path; another ships an _OOW_LADDER of fixes that presumes the bug is always an outof-bounds write; a third assumes a calloc off-by-one on a UCS-2 buffer. Each is right often enough\non the split it evolved on to be accepted, and each is structurally incapable of transferring—which\nis the mechanism behind DGM’s 0% retention in Table 1. We do not see this signature in our own\nruns, and we attribute that to the explicit generalize operator of §4.2, whose only job is to find\nand dismantle exactly this kind of mechanism—hardcoded crash-type ladders, magic strings, prompt\ntext naming concrete tasks, over-tuned constants, parsing that assumes one repository’s layout—and\nreplace it with one that transfers, so that a fix recipe must be stated in terms of the failure digest\nrather than in terms of the tasks it was derived from.\nThe hard form: editing the grader. The stronger failure is available to any harness that can write to\nthe files that score it. We tested this deliberately, running without the per-evaluation Harbor container\nand without the git-backed restore of protected files: the agent goes straight for evaluate.py,\nand the run then reports 100% on every axis—not a weak measurement but no measurement at\nall. This is not hypothetical for the baselines we compare against: the meta-harness code carries no\nhard constraint protecting those files, so nothing inside the harness prevents it, and the protection\nhas to come from outside the genome. Ours is structural rather than behavioural. Every evaluation\nruns in an isolated Harbor container with the network disabled and CPU, memory, and wall-clock\nlimits; solution/ and the held-out splits are never built into the image; and the files that define\nscoring—the evaluator, the task definitions, the tests—are snapshotted before every operator call\nand force-restored afterwards, so an edit to them cannot survive into the evaluated child. Note the\nasymmetry this draws: no file inside the genome is protected—the proposer may rewrite the whole\nharness down to its base class (§4)—while no file that scores the genome is writable at all. That closes\n“rewrite the scorer” and “rewrite the tests” as paths entirely, and it is what makes the 100/100/100\nabove worth reporting: it was produced with all of these defenses in place, so it is a statement about\nthe acceptance rule, not about the sandbox.\n\n40\n\n\fHarmony Harness: Multi-Objective Self-Evolution of Agent Harnesses\n\nWorkflow DAGs planned by bax_wf_seed (gemini-3.6-flash, BaxBench)\n6/28 tasks (21%)\n\n11/28 tasks (39%)\n\nendpoint_check\n\nsecurity_audit\n\n6 nodes · e.g. ClickCount\n\ngenerate\n\ngenerate\n\nbuild_verify\n\nbuild_verify\n\nedit_fix\n\nendpoint_check\n\n3/28 tasks (11%)\n\n6 nodes, 1 conditional · e.g. Calculator\n\ngenerate\n\ngenerate\n\nbuild_verify\n\n3/28 tasks (11%)\n\n8 nodes, 2 conditional · e.g. FileSearch\n\n5 nodes · e.g. Compiler\n\nendpoint_check\n\nsecurity_audit\n\nbuild_verify\n\nendpoint_check\n\nsecurity_audit\n\nsecurity_audit\nbuild_verify\n\nshell_probe\n\nedit_fix\n\nedit_fix\n\nbuild_verify\n\nshell_probe\n\nedit_fix\nedit_fix\n\n3/28 tasks (11%)\n\n1/28 tasks (4%)\n\n1/28 tasks (4%)\n\n7 nodes, 1 conditional · e.g. ImageConverter\n\n6 nodes, 1 conditional · e.g. PDFCat\n\n7 nodes, 2 conditional · e.g. Monitor\n\ngenerate\n\ngenerate\n\ngenerate\n\nbuild_verify\n\nendpoint_check\n\nsecurity_audit\n\nendpoint_check\n\nbuild_verify\n\nendpoint_check\n\nsecurity_audit\n\nbuild_verify\n\nsecurity_audit\n\nedit_fix\n\nedit_fix\nshell_probe\n\nbuild_verify\n\nedit_fix\n\nbuild_verify\n\nedit_fix\n\ngenerate\nbuild_verify\n\nedit_fix\n\nendpoint_check\nsecurity_audit\n\nshell_probe\nedit_fix\n\nunconditional edge\nconditional (`when` guard)\n\nFigure 8 | Workflow DAGs planned by the evolved orchestrator over 28 BaxBench tasks. Solid edges\nare unconditional; dashed nodes/edges fire only under a when guard. Plans range from 5 to 8 nodes\nand are re-planned per task, rather than fixed at harness-design time.\nWe report this variant rather than discarding it, for two reasons. First, it is not a pathological\ncorner of the design space but the endpoint of the trend in Table 1: every method here converts searchsplit security into less out-of-distribution security than it appears to have bought, and the strongest\nscalarized baseline already retains 0%. An acceptance rule that reads raw search-set feedback simply\ndrives that retention gap to its limit, where the measured score is 100 and the transferred security is\nnothing. Second, it localizes the defect precisely. Both objectives were measured by real execution;\nnothing was proxied by a judge. What failed is that acceptance consulted a score computed on the very\ntasks the proposer was optimizing against. This is the empirical content of the asymmetry argument\nin §3, and the reason we keep security as a separate objective of the search and judge it off the split\nbeing optimized rather than folding it into the reward the acceptance rule reads.\nIt also sets the evidentiary bar for our own results: a high search-set security score is, by construction, exactly the kind of number this failure mode produces. We therefore do not rest any claim\non one. Our own search-set security of 93.3 is reported but carries no weight on its own; what the\nargument rests on is the held-out F&amp;S of 86.7 (IN) and 66.7 (OUT), which the proposer never sees,\nand the cross-benchmark transfer of §5.2, which a harness that has hardcoded one benchmark’s crash\ndistribution cannot produce.\nK.7. Baseline harnesses and a case study\nFor calibration we run two off-the-shelf agent harnesses on SecRepoBench under identical grading:\nSWE-agent (Opus) reaches secure-pass@1 = 0.444 overall (0.267 out-of-distribution), and an evolved\nTerminus-2 harness (Gemini) reaches 0.556 (0.433 OOD). Inspecting their trajectories shows why a\ngeneral terminal agent underperforms on this precise code-completion task: whole-file replacement\nwithout a mask-region guardrail turns editing fragility into measured capability loss, and the exploit\nsignal is hidden at solve time, so its feedback-driven iteration idles on exactly the objective that\nmatters. The evolved champion instead brackets the pipeline with the only available ground truth\n(compile + boot), inserts a dedicated per-CWE hardening pass, and keeps a last-known-good snapshot\nso a self-review can never break compilability.\n41\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"