"<!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>LongHorizon-Harness:\nAdvancing LongHorizon Agents for Real-World Tasks\nZiyu Ma∗ , Hailang Huang∗ , Shun Zou∗ , Yong Wang∗† , Shidong Yang, Yiming Hu, Fei Wei,\nXiangxiang Chu\n\narXiv:2608.01964v1 [cs.CV] 3 Aug 2026\n\nDreamX Team, Alibaba Group\n\n∗\n\nEqual contribution\n\n†\n\nProject lead\n\nLarge language model (LLM) agents increasingly undertake long-horizon tasks that require sustained\nreasoning, tool use, and revision across many interdependent steps. However, existing agent harnesses\nmaintain task execution, task state, and completion assessment within a growing context, making the\nstate difficult to track and allowing incorrect self-assessments to propagate into later decisions. We\nreformulate long-horizon execution as a task-state management problem and propose LongHorizonHarness, which maintains the task state explicitly outside execution and updates it only with facts\nindependently verified from the environment. Its Manage-Execute-Audit (MEA) loop uses a manager\nto maintain the task state and determine the next subtask, a fresh-context executor to perform it,\nand a read-only auditor to verify the resulting environment state before the next round. A lightweight\nAgentAdapter supports interchangeable model and harness backends without modifying their native\nagent loops. LongHorizon-Harness improves Qwen 3.7-Plus from 51.8% to 80.7% on WeaveBench,\nfrom 69.7% to 77.2% on Terminal-Bench 2.1, and from 2.8% to 8.3% on OSWorld 2.0. It also raises\nClaude Opus 4.7 from 20.0% to 34.3% on an OSWorld 2.0 subset, demonstrating consistent gains\nacross models, harnesses, and interaction domains.\nGithub: https://github.com/AMAP-ML/LongHorizon-Harness\nWebsite: https://lh-harness.pages.dev\n\nFigure 1 Left: LongHorizon-Harness improves long-horizon execution across benchmarks and backbones. With\nthe same backbone and execution backend, it lifts WeaveBench PassRate from 51.8% to 80.7%, Terminal-Bench 2.1\nfrom 69.7% to 77.2%, and OSWorld 2.0 binary completion by 3.0×, and the gains transfer from Qwen 3.7-Plus to\nClaude Opus 4.7. Right: Audited state transitions. Instead of one continuously growing session that judges its own\nprogress, a manager re-plans the next subtask from audited facts, a fresh-context executor performs it, and a read-only\nauditor certifies what actually changed in the environment. Audit reports are the only cross-round memory, and\ninterchangeable backends (e.g., Claude Code, Codex) serve each role.\n\n1\n\n\f1\n\nIntroduction\n\nOver the past few years, large language models (LLMs) have evolved from conversational models into the\ndecision-making core of autonomous agents for software engineering (Yang et al., 2024; Wang et al., 2025;\nRen et al., 2026; Ding et al., 2025), general-purpose assistance (Anthropic, 2025; OpenAI, 2025a;b; Anthropic,\n2026), scientific discovery (Sun et al., 2025; Wei et al., 2025a), computer use (Anthropic, 2024; OpenAI,\n2025c; Google DeepMind, 2025; Sager et al., 2026; Zhou et al., 2026; Zheng et al., 2026), and multimodal\ninteraction (Zhang et al., 2023; Agashe et al., 2025). Across these applications, agents increasingly face\nlong-horizon execution, which requires repeated reasoning, tool use, observation, and revision over many\ninterdependent steps, sometimes across multiple context windows or sessions. The length of tasks that agents\ncan complete increasingly determines how much work can be delegated to them. METR (Kwa et al., 2026)\nreports that the task-completion horizon of advanced agents has doubled roughly every seven months, with\nthe trend accelerating to about four months for recent models. Frontier coding agents can already sustain\nhours-long work on a single project (OpenAI, 2025a; Anthropic, 2025; Yang et al., 2026a). However, a longer\nhorizon does not by itself make execution reliable (Dong et al., 2026).\nThe difficulty of long-horizon execution lies not in any individual step, but in sustaining coherent progress\nacross a long sequence of interdependent actions. Across systems and domains, three challenges consistently\nemerge: (i) Compounding errors and goal drift. Errors in earlier actions or decisions accumulate along the\ntrajectory, distort subsequent choices, and gradually steer the agent away from its original objective (Sun\net al., 2026). (ii) Context rot. As the interaction history grows, relevant information becomes increasingly\ndifficult to retrieve and use, and agent performance can degrade sharply once context utilization crosses a\ncritical threshold (Liu et al., 2024; Hong et al., 2025). (iii) Task-state loss. Long-horizon tasks are difficult\nto complete without an accurate and up-to-date task state (i.e., the requirements to satisfy, actions already\ncompleted, artifacts produced, and facts discovered from the environment), but agents often fail to recover,\nretain, and update this state throughout task execution.\nExtensive efforts have strengthened agents from both the model and harness sides. Frontier models continue to\nscale in size, extend their context windows, and acquire stronger coding and agentic capabilities by training on\nlarge-scale, high-quality data (Wei et al., 2025b; Chu et al., 2026; Li et al., 2025; Ma et al., 2026; Ji et al., 2025;\nYang et al., 2026b). In parallel, agent harnesses such as Claude Code (Anthropic, 2025), Codex CLI (OpenAI,\n2025a), and OpenClaw (OpenClaw Contributors, 2026) have become the standard system layer for organizing\nprompting, tool use, context management, and multi-step execution around the model. For long-horizon tasks,\nthese harnesses already support planning, task decomposition, tool use, and subagents that execute or review\nwork in isolated contexts. However, existing harnesses still face two structural limitations: (i) Task execution\nand task-state management share the same growing context. The agent uses the same context to execute the\ntask and maintain its task state, while the growing execution history makes task state increasingly difficult to\ntrack. (ii) Task execution and completion assessment remain coupled. The agent performs each subtask and\njudges whether it has been completed, with an incorrect judgment potentially being recorded as part of the\ntask state and used as a premise for subsequent decisions.\nTo address these limitations, we propose LongHorizon-Harness, a framework that organizes long-horizon\nexecution as a sequence of independently audited task-state transitions. Our key idea is to maintain the\ntask state as an explicit record outside task execution, update it only with facts independently verified from\nthe environment, and derive each next subtask from the current record and the original goal. Specifically,\nLongHorizon-Harness follows a Manage-Execute-Audit (MEA) loop as shown in Fig. 1. A manager reads\nthe current task state and defines one subtask with its dependencies, constraints, and acceptance criteria.\nAn executor performs only this subtask in a fresh context, while a read-only auditor independently inspects\nthe environment to determine what changed, what was completed, and what remains unmet (Zhuge et al.,\n2024; Zheng et al., 2023). The manager updates the task state from the audit result and begins the next\nround, while the executor’s interaction history is discarded after each round so that only compact, verified\ntask state persists across the task. Through a lightweight AgentAdapter, LongHorizon-Harness preserves the\nnative agent loops (Yao et al., 2023) of existing systems and supports interchangeable backends for all three\nroles, spanning models such as Claude Opus, GPT, and Qwen and harnesses such as Codex CLI (OpenAI,\n2025a), Claude Code (Anthropic, 2025), OpenClaw (OpenClaw Contributors, 2026), and Hermes Agent (Nous\nResearch, 2026).\n\n2\n\n\fFigure 2 Overview of LongHorizon-Harness. LongHorizon-Harness processes a long-horizon task T through repeated\nManage-Execute-Audit rounds, shown by the dashed box and numbered flow ❶–❸. The manager reads task state Si\nand constructs subtask contract ci , which specifies the goal, acceptance criteria, boundary constraints, and relevant\nprior evidence (❶). The manager may instead request user information or authorization through the ask route. The\nselected GUI or CLI executor performs the subtask in a fresh, budget-bounded context and modifies the environment\n(❷). The auditor independently inspects the resulting environment through read-only tools and produces audit report\nvi (❸). The manager uses vi to update the task state before the next round.\n\nWe evaluate LongHorizon-Harness on three recent long-horizon benchmarks, WeaveBench (Li et al., 2026),\nOSWorld 2.0 (Yuan et al., 2026), and Terminal-Bench 2.1 (Merrill et al., 2026), which together cover crossinterface coordination, desktop workflows, and challenging command-line tasks. Under matched model\nbackends and evaluation protocols, LongHorizon-Harness raises WeaveBench PassRate from 51.8% to 80.7%\nusing Qwen 3.7-Plus and Claude Code, nearly doubling the strongest officially reported result of 41.2%\nobtained by Claude Opus 4.7 with Claude Code. On Terminal-Bench 2.1, it improves performance from 69.7%\nto 77.2% with Qwen 3.7-Plus. On the full OSWorld 2.0 benchmark, it raises binary completion from 2.8% to\n8.3% with Qwen 3.7-Plus; on a 34-task subset, it improves the result from 20.0% to 34.3% with Claude\nOpus 4.7. Our contributions are summarized as follows:\n• We reformulate long-horizon execution from a single growing trajectory into a task-state management\nproblem. The task state is maintained explicitly outside execution, updated only with independently\nverified facts, and used to determine each next subtask under the original goal.\n• We design LongHorizon-Harness, which realizes this principle through a Manage-Execute-Audit loop. In\neach round, the manager defines one subtask from the current task state, the executor performs it in a\nfresh context, and the auditor independently inspects the environment before the manager updates the\nstate and begins the next round.\n• We evaluate LongHorizon-Harness on WeaveBench, OSWorld 2.0, and Terminal-Bench 2.1. With\nQwen 3.7-Plus, it improves WeaveBench PassRate from 51.8% to 80.7%, Terminal-Bench 2.1 from 69.7%\nto 77.2%, and OSWorld 2.0 binary completion from 2.8% to 8.3%, while also delivering consistent gains\nwith Claude Opus 4.7.\n\n3\n\n\f2\n\nMethod\n\n2.1\n\nOverview\n\nGiven a long-horizon task T and a computer environment, LongHorizon-Harness executes the task through a\nsequence of dynamically determined rounds rather than a single continuously growing session. The harness\nmaintains an explicit task state outside task execution and advances it only with evidence independently\nverified from the environment. Across rounds, only the task state and its supporting audit reports persist;\nthe executor’s raw interaction trajectory is discarded after each round. Fig. 2 provides an overview of the\nframework.\nEach round follows a Manage-Execute-Audit (MEA) loop. Let Si denote the task state available at the\nbeginning of round i, ei−1 ∈ E the current environment state, and Vi−1 = (v1 , . . . , vi−1 ) the accumulated\naudit reports. The manager constructs a bounded subtask contract ci . A fresh-context executor performs the\ncontract, transforms the environment from ei−1 to ei , and returns an execution report oi . A separate auditor\nthen inspects ei through read-only tools and produces audit report vi . The manager incorporates vi into the\nnext task state Si+1 before determining whether another round is required. The loop ends when the audited\nstate satisfies the original task, no permitted subtask can advance the remaining requirements, user input is\nrequired, or the round budget is exhausted.\n\n2.2\n\nManager\n\nThe manager owns the persistent task state and determines how the task should proceed. It has access to the\noriginal task T , the current task state, and all accumulated audit reports, but has no direct interface to the\ncomputer environment. It cannot observe application state, inspect workspace contents, invoke GUI or CLI\ntools, or modify the environment. Its decisions are based entirely on the task state and environment evidence\nrecorded by the auditors.\nAfter round i, the manager updates the task state and produces the next control decision:\n(Si+1 , qi+1 , ci+1 ) = Φmgr (T , Si , Vi ) ,\n\n(1)\n\nwhere Vi = (v1 , . . . , vi ) and qi+1 is one of execute, done, blocked, and ask. The contract ci+1 is returned\nonly when further execution is required.\nTask-state update. The task state is a structured collection of task-relevant records: a requirement represents\nan objective or constraint derived from the original task, an artifact represents an output created or modified\nduring execution, and a fact records environment information needed by subsequent rounds. Each record is\nmarked as completed, pending, blocked, or untrusted, and retains references to the audit evidence supporting\nits current status. The initial state S1 is constructed from T with its requirements marked as pending. After\neach round, the manager applies the verified findings in vi to Si , adding or updating the corresponding records\nwhile leaving unresolved ones pending, blocked, or untrusted as appropriate. Executor claims do not directly\nchange the persistent state: a record is marked as completed only when supported by clean audit evidence.\nNext-subtask construction. The manager compares Si+1 against the original task, selects an unresolved\nobjective that can be advanced from the current state, and checks its dependencies and prerequisites. It then\nconstructs a bounded contract ci+1 specifying the immediate goal, acceptance criteria, boundary constraints,\nand the task-state records and prior audit reports relevant to execution and verification. The contract is\nrouted to a GUI or CLI executor according to the primary environment transition it requires. The manager\nreturns done when the audited state satisfies T without unresolved integrity violations, blocked when no\npermitted action can advance the remaining requirements, and ask when progress requires user information\nor authorization; otherwise, it returns execute together with ci+1 .\n\n2.3\n\nExecutor\n\nThe executor performs the contract selected by the manager and is the only role permitted to intentionally\nmodify the environment. In round i, it receives the original task T , the current task state Si , the subtask\n4\n\n\fcontract ci , and only the prior audit reports referenced by the contract. It transforms the environment from\nei−1 to ei :\n(ei , oi ) = Φexec (T , Si , ci ; ei−1 ) ,\n(2)\nwhere oi summarizes the actions performed, resulting state, artifacts produced or modified, and issues\nencountered during execution. The report oi describes the executor’s outcome but does not establish that the\ncontract has been completed.\nFresh-context execution. Each executor invocation runs as a fresh, budget-bounded episode containing only\nthe information supplied for the current round. It does not receive the raw interaction trajectories of earlier\nrounds. Within the episode, the executor may perform multiple cycles of planning, environment interaction,\nobservation, and revision. When the episode ends, its raw trajectory and internal reasoning are discarded;\nonly oi is forwarded for auditing.\nGUI and CLI capability boundaries. GUI and CLI executors operate through different environment interfaces.\nThe GUI executor receives screen-oriented capabilities such as taking screenshots, clicking, scrolling, and\nentering text, and is responsible for transitions centered on application and interface state. The CLI executor\nreceives capabilities such as shell execution, file editing, coding, and testing, and is responsible for transitions\ncentered on workspace, process, and program state.\nThe harness exposes only the environment interface and tool set assigned to the selected executor role.\nCapabilities outside that role are unavailable unless explicitly provided by its configuration. This separates\nresponsibility for different classes of state-changing actions while allowing the manager to select the interface\nappropriate for each contract.\nBackend execution. Executors are instantiated through a common agent-adapter interface. Given a contract,\na role-specific environment interface, and an execution budget, the adapter launches an existing backend\nsuch as Claude Code, Codex CLI, or OpenClaw as one bounded episode. The backend retains its native\nplanning and tool-use loop and may normally invoke the shell, edit files, write code, run tests, or interact\nwith applications when those capabilities are exposed by its assigned role. The harness does not replace the\nbackend’s internal execution process; it controls the supplied context, available tools, environment permissions,\nexecution budget, and returned report.\n\n2.4\n\nAuditor\n\nThe auditor independently verifies the environment state produced by the executor. After execution, it receives\nthe original task T , the task state Si , the contract ci , the prior audit reports referenced by the contract, and\nthe executor report oi . It does not receive the executor’s raw interaction trajectory or internal reasoning. The\nauditor inspects the resulting environment ei and produces\nvi = Φaud (T , Si , ci , oi ; ei ) ,\n\n(3)\n\nwhere vi is appended to the persistent audit history and returned to the manager before the next round.\nIndependent environment inspection. The auditor starts from a fresh context that excludes the executor’s raw\ninteraction trajectory and internal reasoning. It may use oi to locate relevant files, windows, logs, processes,\nor other outputs, but determines completion by independently comparing the resulting environment against\nthe goal, acceptance criteria, and boundary constraints in ci . A GUI auditor examines application and\nscreen state through observation-oriented interactions, whereas a CLI auditor uses non-mutating commands\nand inspection tools to examine files, metadata, logs, processes, tests, and workspace state. In both cases,\naudit conclusions must be supported by evidence obtained directly from the environment rather than by the\nexecutor’s completion claim.\n\n5\n\n\fTable 1 Results on WeaveBench. Gray rows denote official results reported by (Li et al., 2026), using the best\nreported thinking mode for each backbone; models other than GPT-5.5 and Claude Opus 4.7 were evaluated only with\nOpenClaw. Black rows denote our runs with Qwen 3.7-Plus. Our runs use root privileges inside the task virtual\nmachine, whereas the official results use a regular user account and are therefore included as reference points rather\nthan matched comparisons. PR denotes full-task PassRate (%), and Overall denotes the mean score over all 114 tasks.\nThe remaining columns report PassRate across the eight benchmark domains.\nModel\n\nHarness\n\nPR↑ Overall↑ DSK DOC GAM WEB DAV OPS SPA DES\n\nClaude Opus 4.7\n\nClaude Code\nOpenClaw\nHermes Agent\nCodex CLI\n\n41.2\n35.1\n28.1\n13.2\n\n0.532\n0.482\n0.516\n0.378\n\n55.6\n55.6\n33.3\n16.7\n\n47.1\n29.4\n47.1\n11.8\n\n23.5\n23.5\n11.8\n11.8\n\n53.3\n66.7\n26.7\n6.7\n\n23.1\n15.4\n30.8\n7.7\n\n50.0 33.3 40.0\n41.7 16.7 20.0\n50.0 8.3 10.0\n25.0 16.7 10.0\n\nGPT-5.5\n\nCodex CLI\nOpenClaw\nHermes Agent\nClaude Code\n\n35.1\n33.3\n31.6\n14.9\n\n0.499\n0.466\n0.466\n0.299\n\n38.9\n38.9\n55.6\n33.3\n\n29.4\n35.3\n29.4\n11.8\n\n23.5\n35.3\n35.3\n11.8\n\n53.3\n21.4\n40.0\n0.0\n\n15.4\n23.1\n7.7\n15.4\n\n50.0\n38.5\n25.0\n16.7\n\nGPT-5.4\nGPT-5.3-codex\nGPT-5.2-codex\nGPT-5.1-codex\nGemini 3.1 pro\nQwen3.5-397B-A17B\nQwen3-VL-8B-Think\nGUI-Owl-1.5-32B\n\nOpenClaw\nOpenClaw\nOpenClaw\nOpenClaw\nOpenClaw\nOpenClaw\nOpenClaw\nOpenClaw\n\n22.8\n18.4\n6.1\n1.8\n1.8\n0.9\n0.9\n0.0\n\n0.465\n0.456\n0.321\n0.226\n0.223\n0.318\n0.092\n0.065\n\n55.6\n33.3\n5.6\n0.0\n0.0\n0.0\n0.0\n0.0\n\n35.3\n23.5\n11.8\n5.9\n0.0\n0.0\n0.0\n0.0\n\n5.9\n29.4\n0.0\n0.0\n0.0\n0.0\n0.0\n0.0\n\n0.0\n0.0\n0.0\n0.0\n0.0\n0.0\n0.0\n0.0\n\n23.1 23.1\n7.7 16.7\n15.4 16.7\n7.7\n0.0\n0.0\n8.3\n0.0\n8.3\n8.3\n0.0\n0.0\n0.0\n\nQwen 3.7-Plus\n\nClaude Code\n51.8\nLongHorizon-Harness (Claude Code) 80.7\n\n0.702\n0.835\n\n83.3 76.5 29.4\n88.9 100.0 58.8\n\n46.7\n73.3\n\n53.8 66.7 16.7 20.0\n84.6 91.7 66.7 80.0\n\n58.3 10.0\n33.3 40.0\n25.0 20.0\n25.0 0.0\n8.3\n8.3\n0.0\n0.0\n8.3\n0.0\n0.0\n0.0\n\n20.0\n20.0\n0.0\n0.0\n0.0\n0.0\n0.0\n0.0\n\nRead-only authority. The auditor may change its observation view when necessary for inspection but cannot\nmodify task-relevant environment state. It cannot create, edit, overwrite, move, or delete protected artifacts,\nexecute state-changing commands, or perform GUI actions that alter the result under inspection. The harness\nmonitors task-relevant workspace and artifact state throughout auditing; any detected mutation is recorded\nas an integrity violation, and the resulting report cannot support a completed task-state record.\nAudit-result construction. The audit report vi records three classes of findings. First, it assigns a completion\nstatus of complete, incomplete, or blocked by evaluating the contract’s acceptance criteria. Second, it assigns\nan integrity status of clean, suspect, or violation by checking workspace mutations, artifact validity and\nprovenance, and relevant deletion constraints. Third, it records the task-state updates supported by the\ninspection, including verified facts, supporting evidence, and remaining gaps.\nThe auditor may propose changes to requirement, artifact, and fact records, but the manager determines\nhow these findings are incorporated into Si+1 . Consequently, oi remains an unverified execution summary,\nwhereas vi provides the environment-grounded evidence that may advance the persistent task state.\n\n3\n\nExperiments\n\n3.1\n\nExperimental Setup\n\nCompared configurations. We use Qwen-3.7-Plus as the primary backbone model, and additionally evaluate\nClaude Opus-4.7 to assess the generality across backbone models. For each backbone model, we compare the\noriginal Claude Code evaluation framework (Anthropic, 2025) with LongHorizon-Harness, where the latter\nuses Claude Code as its execution backend. Unless otherwise specified, the manager, executor, and auditor\nare instantiated with the same backbone model, ensuring that the comparison reflects the effect of task-state\nmanagement rather than differences in model capability.\n\n6\n\n\fTable 2 Results on OSWorld 2.0. Gray rows denote official results reported by (Yuan et al., 2026) under batchedand single-action settings, while the black row denotes LongHorizon-Harness with Qwen 3.7-Plus in the hybrid setting.\nBinary is the percentage of tasks whose final benchmark score equals 1, and Partial is the mean benchmark score over\nall 108 tasks. Bold marks the best official result.\n\nModel\n\nHarness / Mode\n\nBinary↑\n\nPartial↑\n\nClaude Opus 4.8\nClaude Opus 4.7\nGPT-5.5\n\nBatched actions\nBatched actions\nBatched actions\n\n20.6\n18.2\n13.0\n\n54.8\n48.9\n49.5\n\nClaude Opus 4.8\nClaude Opus 4.7\nClaude Sonnet 4.6\nMiniMax M3\nKimi 2.6\nQwen 3.7-Plus\n\nSingle action\nSingle action\nSingle action\nSingle action\nSingle action\nSingle action\n\n18.5\n13.9\n8.3\n4.6\n4.6\n2.8\n\n49.3\n49.1\n41.5\n22.3\n22.1\n21.5\n\nQwen 3.7-Plus\n\nLongHorizon-Harness (hybrid)\n\n8.3\n\n35.2\n\nImplementation details. LongHorizon-Harness integrates existing agent backends through a unified AgentAdapter interface. Each role is assigned an independent execution budget: the executor is limited to 1800\nseconds per round, while both the manager and the auditor are limited to 300 seconds. We set the maximum\nnumber of MEA rounds to Nmax = 25.\nBenchmarks and metrics. We evaluate LongHorizon-Harness on three recent benchmarks that cover complementary forms of long-horizon execution.\nWeaveBench (Li et al., 2026) consists of 114 tasks that require coordinated GUI and CLI interactions within\nthe same workflow. We follow the standard WeaveBench evaluation protocol, using the task definitions,\nworkspaces, runtime assets, and judge templates released by the official benchmark for all tasks. We report\nPassRate, defined as the percentage of fully passed tasks, and Overall, defined as the average score across all\ntasks. In addition, we report PassRate for each of the eight domains covered by the benchmark.\nOSWorld 2.0 (Yuan et al., 2026) consists of 108 desktop workflow tasks, with a median human completion time\nof approximately 1.6 hours. We use the official osworld-v2-2026.06.24 release and its standard Docker-based\nVM infrastructure. We report two metrics: Binary and Partial Accuracy. Binary Accuracy counts a task as\nsuccessful only when its final score is 1, while Partial Accuracy is the average score over all tasks.\nTerminal-Bench 2.1 (Merrill et al., 2026) is designed to evaluate challenging and realistic command-line tasks.\nWe follow the evaluation setup used for the Qwen-series models, and evaluate on Terminal-Bench 2.1 using\nHarbor with the Docker backend. Final results report the average score over three independent runs per task,\nand are compared against the official leaderboard results.\n\n3.2\n\nMain Results\n\nEffectiveness on long-horizon computer use. Table 1 reports the results on WeaveBench. The Claude Code\nharness with Qwen 3.7-Plus achieves a PassRate of 51.8% and a mean task score of 0.702. Using the same\nmodel and retaining Claude Code as the executor backend, LongHorizon-Harness increases these results to\n80.7% and 0.835, respectively. This matched comparison isolates the contribution of the additional task-state\nmanagement layer. Performance also improves across all eight task domains, showing that the gain is not\nconcentrated in a particular application category. Since the officially reported configurations use a different\nprivilege setting, we include them as reference points but base our main conclusion on the matched Claude\nCode comparison.\n7\n\n\fFigure 3 Results on Terminal-Bench 2.1. LongHorizon-Harness retains Claude Code as its executor backend and\nimproves success rate from 69.7% to 77.2%. Values marked with ∗ are externally reported metrics.\nTable 3 OSWorld 2.0 Opus 4.7 subset (34 tasks). Both rows use Claude Opus 4.7 as the backbone.\n\nModel\n\nHarness / Mode\n\nClaude Opus 4.7\nClaude Opus 4.7\n\nSingle action\nLongHorizon-Harness (hybrid)\n\nBinary↑\n\nPartial↑\n\n20.6\n35.3\n\n55.8\n66.9\n\nTable 2 reports the results on OSWorld 2.0. With Qwen 3.7-Plus, LongHorizon-Harness increases binary\ncompletion from 2.8% to 8.3% and partial score from 21.5% to 35.2%. The higher partial score shows\nthat the agent satisfies a larger fraction of the task requirements, while the threefold increase in binary\ncompletion shows that this progress more frequently leads to a fully completed workflow. Together, the results\non WeaveBench and OSWorld 2.0 show that explicit task-state management improves both cross-interface\nexecution and sustained progress over long visual computer-use trajectories.\nComplementarity with backbone capability. Table 3 further evaluates LongHorizon-Harness with Claude\nOpus 4.7 on a 34-task subset of OSWorld 2.0. It increases binary completion from 20.6% to 35.3% and partial\nscore from 55.8% to 66.9%. The consistent improvements with Qwen 3.7-Plus and Claude Opus 4.7 show\nthat the framework does not merely compensate for a weaker model. The backbone determines the quality of\nthe actions and decisions produced within each round, while LongHorizon-Harness determines how reliably\nverified outcomes are maintained and used across rounds. Stronger models and explicit task-state management\ntherefore provide complementary gains.\nGeneralization beyond computer use. Fig. 3 reports the results on Terminal-Bench 2.1. Due to the limited\nbudget, we only run three configurations ourselves: Claude Code with Qwen 3.7-Plus, LongHorizon-Harness\nwith Claude Code and Qwen 3.7-Plus, and LongHorizon-Harness with Codex and GPT-5.6 Luna. All other\nresults are quoted from the official Terminal-Bench 2.1 leaderboard or the corresponding model’s official\nreport. LongHorizon-Harness improves the success rate of Qwen 3.7-Plus with Claude Code from 69.7% to\n77.2%. With Codex as the executor backend, LongHorizon-Harness further reaches 83.1% using GPT-5.6 Luna.\nTerminal-Bench tasks are performed entirely through the command line and require neither visual perception\nnor GUI–CLI routing. The gain therefore cannot be attributed to mechanisms specific to computer-use agents.\nIt shows that explicit task-state maintenance, bounded execution contexts, and independent auditing also\n\n8\n\n\fFigure 4 Cost–performance frontier on OSWorld 2.0. Binary completion (left) and partial score (right) versus average\noutput tokens per task. Colored curves show the official results under different reasoning-effort settings (Yuan et al.,\n2026), with marker size indicating the reasoning effort. The blue star denotes LongHorizon-Harness with Qwen 3.7-Plus,\nand the dashed arrow shows its improvement over the official single-action Qwen 3.7-Plus baseline.\n\nFigure 5 Token consumption by role. Average tokens per task consumed by the manager, executor, and auditor in\nLongHorizon-Harness, compared with the corresponding baseline. Segment labels report the fraction consumed by\neach role. All LH-Harness roles use Qwen 3.7-Plus. WeaveBench and Terminal-Bench 2.1 report total tokens, whereas\nOSWorld 2.0 reports output tokens because the official provides only output-token statistics (Yuan et al., 2026).\n\nbenefit general long-horizon agent execution. Across hybrid-interface, desktop, and pure CLI environments,\nLongHorizon-Harness consistently improves how agents preserve and convert intermediate progress into\ncompleted tasks.\n\n3.3\n\nAnalysis\n\nWe next examine the computational cost of these gains, the task conditions under which they arise, and how\nthe model and harness jointly determine the capability of the resulting agent system.\nCost–performance trade-off. Fig. 4 shows that LongHorizon-Harness moves Qwen 3.7-Plus to a substantially\nstronger point on the OSWorld 2.0 cost–performance frontier. The same model improves from 2.8% to 8.3% in\nbinary completion and from 21.5% to 35.2% in partial score, although its average output-token consumption\nincreases from 28.9K to 104K per task. This result shows that a stronger harness can raise the task-level\nperformance achievable by a fixed model. The increased cost observed with Qwen 3.7-Plus is specific to this\nmodel–task configuration; as analyzed below, the token cost of LongHorizon-Harness depends strongly on the\ncapability of the underlying executor.\nComputation across roles. Fig. 5 decomposes the token consumption of LongHorizon-Harness across the\nmanager, executor, and auditor. The manager accounts for only 2.8%, 2.0%, and 8.1% of the total tokens on\nWeaveBench, OSWorld 2.0, and Terminal-Bench 2.1, respectively, showing that explicit task-state maintenance\nintroduces little computational overhead. The auditor accounts for 19.4%, 24.8%, and 38.1% of the tokens,\n\n9\n\n\findicating that independent verification constitutes the main additional investment of the framework. The\noverall token change nevertheless differs across benchmarks. LongHorizon-Harness consumes 2.3× the baseline\ntokens on WeaveBench and 3.6× the baseline output tokens on OSWorld 2.0, whereas it consumes 24% fewer\ntokens on Terminal-Bench 2.1 while achieving a higher success rate. These results show that the framework\ndoes not impose a fixed token multiplier. Its total cost depends on both the task and the number of execution\nand recovery rounds required by the underlying model.\n\nFigure 6 Performance gains across task types. LongHorizon-Harness (blue) is compared with the same-model baseline\n(gray) across WeaveBench domains (left), OSWorld 2.0 capability tags (middle), and Terminal-Bench 2.1 categories\n(right). The rightmost column of each panel reports the absolute performance change in points. Blue connectors\nindicate improvements, and red connectors indicate regressions. Parenthesized values report the number of OSWorld\ntasks or Terminal-Bench trajectories in each category.\n\nTask-dependent effectiveness. Fig. 6 compares the gains of LongHorizon-Harness across task types. On\nWeaveBench, Design and Spatial/3D obtain the largest PassRate improvements of 60.0 and 50.0 points,\nrespectively, whereas the Desktop domain, which already reaches 83.3% with the baseline, improves by 5.6\npoints. On OSWorld 2.0, some of the largest gains appear in streaming interaction, human-in-the-loop, and\ntutorial-following tasks. On Terminal-Bench 2.1, system-administration and game tasks improve substantially,\nwhile several short analytical categories show smaller gains or regressions. Despite operating through different\ninterfaces, the categories with larger improvements commonly require agents to preserve, inspect, and revise\nmultiple dependent environment states over an extended trajectory. The smaller improvements on several\nanalytical categories suggest that LongHorizon-Harness provides less benefit when task performance is\ndominated by an individual model capability, such as visual perception, mathematical reasoning, coding, or\nalgorithm design. Independent auditing can detect an incorrect result and initiate recovery, but it cannot supply\na capability that the model does not possess. The effectiveness of LongHorizon-Harness is thus determined less\nby whether a task uses a GUI or CLI than by whether its primary bottleneck lies in long-horizon execution\nreliability or in solving an individual step.\nAgent capability as a system property. Table 4 compares the Claude Code baseline and LongHorizon-Harness\non the same 17 WeaveBench Games tasks using Claude Opus 4.7 and Qwen 3.7-Plus. LongHorizon-Harness\nimproves the mean score of Opus from 0.680 to 0.809 and that of Qwen from 0.524 to 0.733, with the largest\ngains concentrated on tasks where the corresponding baseline performs poorly. All six tasks on which the\nQwen baseline scores at or below 0.04 recover to scores between 0.30 and 0.92, showing that the framework\nprimarily raises the failure floor by recovering trajectories that would otherwise end in near-total failure.\nQwen with LongHorizon-Harness further reaches a mean score of 0.733, exceeding the 0.680 obtained by Opus\nwith the base Claude Code harness. This comparison demonstrates that agent capability is a property of\nthe complete model–harness system. The model determines the actions and solutions available within each\nexecution round, while the harness determines how reliably these local capabilities are decomposed, verified,\nrecovered, and accumulated into end-to-end task completion. A stronger harness can consequently raise the\ntask-level performance achievable with a fixed model, even though it does not add new primitive capabilities\nto that model. The token results reveal the same dependence on both components: LongHorizon-Harness\nincreases Qwen’s average consumption from 10.7M to 34.3M tokens per task, but reduces Opus consumption\n10\n\n\fTable 4 Per-task scores and token consumption on the WeaveBench Games subset (17 tasks). CC = Claude Code;\nLH = LongHorizon-Harness wrapping Claude Code as its backend. Tok denotes total tokens per task (M). Bold marks\nthe better score per backbone.\nClaude Opus 4.7\nScore\n\nQwen 3.7-Plus\n\nTok (M)\n\nScore\n\nTok (M)\n\nTask\n\nCC\n\nLH\n\nCC\n\nLH\n\nCC\n\nLH\n\nCC\n\nLH\n\nmines_solve\ngame_ui_bug\nstockfish_puzzle\ngdb_pygame_cheat\nmines_visual\nquadrapassel_autoplay\npokerth_equity_play\nsokoban_solver\nrhythm_autoplay\ngnuchess_blunder_hunt\nanagramarama_word_grid\ngodot_scene_debug\nhedgewars_mission_debug\nsupertux_level_repair\nxmoto_level_repair\nkmahjongg_pair_solver\npysol_freecell\n\n0.958\n0.830\n0.603\n0.920\n0.800\n0.600\n0.050\n0.990\n0.880\n0.720\n0.550\n0.958\n0.790\n0.600\n0.600\n0.350\n0.360\n\n0.920\n0.910\n0.550\n0.950\n0.860\n0.870\n0.400\n0.950\n0.900\n0.920\n0.750\n0.920\n0.810\n0.720\n0.550\n0.830\n0.940\n\n8.8\n11.7\n7.5\n33.9\n29.1\n50.5\n4.6\n4.4\n10.5\n20.1\n6.6\n11.4\n19.6\n19.7\n8.1\n8.8\n24.8\n\n4.9\n8.3\n3.4\n5.6\n4.3\n13.4\n23.1\n3.3\n6.9\n14.0\n18.3\n7.8\n8.5\n11.8\n23.4\n13.2\n18.0\n\n0.040\n0.750\n0.000\n0.720\n0.000\n0.000\n0.000\n0.960\n0.950\n0.830\n0.750\n0.930\n0.740\n0.000\n0.920\n0.790\n0.520\n\n0.590\n0.850\n0.550\n0.860\n0.470\n0.300\n0.920\n0.958\n0.830\n0.940\n0.830\n0.870\n0.830\n0.650\n0.850\n0.750\n0.410\n\n6.0\n10.0\n0.9\n5.9\n3.7\n10.0\n9.0\n3.9\n8.5\n19.5\n12.8\n8.6\n14.4\n7.5\n19.4\n30.1\n12.5\n\n97.2\n34.2\n15.2\n13.9\n50.1\n59.1\n16.2\n4.2\n19.6\n21.4\n12.5\n17.1\n13.1\n21.0\n83.3\n35.4\n68.8\n\nMean\n\n0.680\n\n0.809\n\n16.5\n\n11.1\n\n0.524\n\n0.733\n\n10.7\n\n34.3\n\nfrom 16.5M to 11.1M. This opposite pattern suggests that a stronger model can satisfy subtask contracts with\nfewer audit–replan rounds, whereas a weaker model must spend additional inference on repeated execution\nand recovery. Model capability and harness design jointly determine both the achievable performance and the\ncomputational cost of a long-horizon agent.\n\n3.4\n\nCase Studies\n\nWe further compare paired trajectories in which the Claude Code baseline and LongHorizon-Harness execute\nthe same task using the same Qwen 3.7-Plus model. These cases examine what persists between rounds\nunder the Manage-Execute-Audit loop. Unresolved failures and completed progress are carried outside the\nexecution history, completion claims are checked before entering the task state, and unmet dependencies\nremain available when the manager defines subsequent subtasks. The examples also illustrate how persistent\ntask state connects executors that operate in separate, fresh contexts.\nRecovering from a stalled interaction. Fig. 7 compares how the two systems proceed after the same GUI\ninteraction fails. The baseline recognizes that the Wireshark “Decode As” dialog is unresponsive, but this\nobservation remains embedded in its growing execution history. It consequently returns to the same interaction\nfor more than 400 steps without collecting the remaining task evidence. LongHorizon-Harness instead records\nthe failed interaction and the unresolved evidence gaps in the task state. Later executors focus directly\non the missing simulcast-layer charts and packet-level evidence, increasing the score from 0.59 to 0.92. By\nexternalizing the stalled interaction, LongHorizon-Harness preserves the progress already verified and provides\nthe next executor with only the unresolved requirements. Recovery therefore resumes from the latest audited\ntask state rather than from the failed trajectory that produced it.\nAuditing apparent completion. Fig. 8 presents a case in which the executor stops at a visually plausible result\nthat does not satisfy the full task specification. The baseline directly edits the document XML and terminates\nafter the headings appear correct. However, the task requires the styles to be applied through the LibreOffice\nworkflow, and the result therefore receives a score of 0.00. LongHorizon-Harness performs the prescribed GUI\noperations, confirms the style changes during execution, and rechecks the document page by page. The auditor\n11\n\n\fthen parses the document XML and confirms that all 15 headings have the required underlying style, yielding\na score of 0.89. This independent audit prevents the executor’s plausible but non-compliant completion claim\nfrom becoming part of the persistent task state. Subsequent planning can instead proceed from the document\nstate confirmed in the environment, rather than from the executor’s assessment of its own result.\nPreserving pre-repair evidence. Fig. 9 presents a task in which part of the required evidence belongs to the\nenvironment state before the repair. The baseline captures an initial view of the formula errors, but modifies\nthe spreadsheet before completing the full pre-repair evidence sequence. Its direct XML edit also leaves formula\nerrors after the file is reopened, producing an inconsistent before-and-after record. LongHorizon-Harness\nrecords the missing pre-repair evidence as a pending requirement. The next executor first completes this\nevidence, then repairs the spreadsheet and checks the resulting formula cells. The auditor subsequently reviews\nthe complete sequence of nine screenshots, increasing the score from 0.45 to 0.87. Keeping the pre-repair\nevidence explicit changes the next subtask selected from the task state: the original spreadsheet state is\ndocumented before the repair is allowed to modify it. The resulting execution order preserves a consistent\nevidence chain across the state transition.\nContinuing from verified progress. Fig. 10 compares two trajectories in which the model can perform the\ncentral optimization but differs in how the remaining workflow is maintained. The baseline improves the target\npage, yet the same growing session must continue operating DevTools, tracking the remaining deliverables,\ncollecting evidence, and assessing its own progress. Repeated DevTools interactions eventually exhaust the\navailable budget, leaving the task incomplete. LongHorizon-Harness retains the completed optimization in the\ntask state and derives subsequent subtasks from the remaining requirements. Fresh-context executors then\nconfirm the page state, inspect the relevant script structure, and collect the performance trace, while the\nauditor checks the final screenshot against its metadata. The score increases from 0.53 to 0.85. Because the\ncompleted optimization persists outside the execution history, later executors can focus on the remaining\nevidence without reconstructing or carrying the preceding optimization process. The manager maintains\ncontinuity across the full workflow, while each executor uses its context for the current environment transition,\nallowing the model’s local progress to be carried forward into a more complete task result.\n\n12\n\n\fBaseline (Claude Code + Qwen3.7-Plus) · score 0.59\n\nI see the \"Decode As\" dialog. It shows \"UDP port 50000\nInteger, base 10 (none) (none)\". I need to double-click on the\n\"Current\" column to change it from \"(none)\" to \"RTP\". Let me…\n\nI need to add the other two ports (50001 and 50002) to the RTP\ndecode. Let me close this dialog, add the decode, and reopen\nit. Actually, let me try a different approach. Instead of closing…\n\nThe dialog keeps showing up. The OK button is not responding\nto my clicks. Let me try pressing Enter instead to confirm the\ndialog.\n\nThe Decode As dialog is still empty. The xdotool clicks are not\nhitting the right spots. The dialog seems to be unresponsive to\nmy automated interactions. I've been spending too much time…\n\nOpens Wireshark's 'Decode As' dialog to decode by\nhand, the failure is about to get trapped inside this GUI\ncontext.\n\nOnly one stream decoded; the local failure is noticed\nbut never stored as a state object, so it can only be\npatched by hand.\n\nThe OK button keeps not responding, the failure stays\nin the execution context and degenerates into repeated\nclicking.\n\nStill stuck on the same dialog after 400+ steps, the\nfailure is never externalized, so the task spins until the\nbudget runs out.\n\nLongHorizon-Harness (Claude Code + Qwen3.7-Plus) · score 0.92\n\n✓\n\nNow I need to hover over the bytesSent chart at ~45s. Looking\nat the chart, the bytesSent overlay chart is the first one. The xaxis spans from 0s to 90s. I need to hover at the 45s mark,…\n\nThe tooltip shows t=46.5s with `fps=0 frameWidth=0x0` for the\nf layer - exactly the degradation evidence needed. Let me save\nthis screenshot.\n\nI can see all the key charts now - framesPerSecond showing\nthe f layer drop, and qualityLimitationReason with color-coded\nsegments (green=none, red=bandwidth). Let me close…\n\nWireshark is open with 21018 packets. Now let me open the RTP\nStreams analysis view.\n\nRenders the three-layer curves on the real desktop, flayer plateau clearly visible, every step points to\ncheckable evidence.\n\nHovers at t ≈45s to capture the f-layer fps=0\ndegradation evidence, the goal becomes checkable\nforensic points.\n\nAll key charts are in place; each screenshot\ncorresponds to one verifiable proposition in the report.\n\nLoads 21018 packets for cross-validation, where the\nbaseline stalled, the executor turns it into checkable\nevidence.\n\nFigure 7 Recovering from a stalled interaction. The case is WEB_task_16, a WebRTC simulcast-layer audit. Top:\nThe Claude Code baseline recognizes that Wireshark’s “Decode As” dialog is unresponsive, but continues retrying\nthe same interaction for more than 400 steps and obtains a score of 0.59. Bottom: LongHorizon-Harness records the\nunresolved evidence gaps in the task state. Subsequent execution rounds collect the missing chart- and packet-level\nevidence, resulting in a score of 0.92.\n\nBaseline (Claude Code + Qwen3.7-Plus) · score 0.00\n\n✕\n✕\nThe style dropdown shows \"FakeBoldParagraph\" for \"Results\" proving it's not a real Heading 1. The font is also \"Liberation\nSerif 16pt\" vs \"Heading 1\" with \"Liberation Sans 18pt\". Let me…\n\nThe TOC shows all 15 entries perfectly! Now let me save the\ndocument and export to PDF.\n\nPDF Options dialog is open. Let me click Export to generate the\nPDF.\n\nLet me click on \"Results\" heading to show it's now properly\nHeading 1, and capture this as additional proof.\n\nThe screenshot confirms the problematic heading; the\nevidence gathering itself is fine.\n\nThe TOC 'looks perfect' so it is saved, visual\ncorrectness is mistaken for content correctness.\n\nClicking export and the dialog closing is treated as\nsuccess, without verifying the PDF was actually\nproduced.\n\nShows only 'it looks right'; the XML was edited directly,\nnot the style dropdown as claimed, judged noncompliant.\n\nLongHorizon-Harness (Claude Code + Qwen3.7-Plus) · score 0.89\n\n✓\n\nNow I can clearly see \"Results\" has style \"FakeBoldParagraph\"\nwith Liberation Serif 16pt. This confirms the inspection. Let me\nnow change it to \"Heading 1\" using the style dropdown. I'll clic…\n\nExcellent! \"Results\" is now successfully changed to \"Heading 1\"!\nThe style dropdown shows \"Heading 1\" and the text now\nmatches the size of \"Background\" and \"Methodology\". Let me…\n\nThe document looks great - all headings on page 1 now visually\nmatch as Heading 1. Let me take a proof screenshot showing\nthe style verification, then scroll down to check page 2.\n\nPerfect! All 15 headings in the document are now using\n`Heading_20_1` (which is the ODT encoding of \"Heading 1\") with\noutline-level=\"1\". This is exactly what was required. Let me no…\n\nVerifies each heading's true underlying style before\nediting, instead of assuming from appearance.\n\nConfirms the state has actually changed after each edit\nbefore moving on.\n\nNot satisfied with 'looks right', it scrolls page by page\nto re-check every heading.\n\nThe verifier re-parses the XML to confirm all 15\nheadings, completion = an independently auditable\nstate proposition.\n\nFigure 8 Auditing apparent completion. The case is DOC_task_2, which requires heading-style normalization. Top:\nThe Claude Code baseline edits the document XML directly and terminates with a visually plausible result. Because\nthe required LibreOffice workflow is not followed, the result receives a score of 0.00. Bottom: LongHorizon-Harness\napplies the heading styles through the prescribed GUI workflow and rechecks the document. The auditor then parses\nthe document XML to confirm the final style of all 15 headings, obtaining a score of 0.89.\n\n13\n\n\fBaseline (Claude Code + Qwen3.7-Plus) · score 0.45\n\n✕\n✕\nI can see many #REF! errors (shown as Err:510) in the SalesData\nsheet. Let me take screenshot 1 and then click on an error cell\nfor screenshot 2.\n\nI see \"Search key not found\" - that's because I'm searching in\nFormulas, but the #REF! text appears in the cell values, not in\nthe formulas themselves. The formulas contain `VLOOKUP(...)`…\n\nNow let me close LibreOffice, fix the XML, and repack.\n\nThe formulas still show Err:510. Let me click on cell F2 to see\nwhat the formula bar shows.\n\nFirst captures the REF! errors, this is the 'pre-repair'\nevidence window.\n\nThe search tool repeatedly fails to find the target;\nevidence collection is unstable.\n\nRepairs by editing the XML directly, the data is fixed,\nbut the original file's forensic context is also erased.\n\nAfter reopening, the formulas still show Err:510; the\nbefore/after states are misaligned and progress is not\nmonotonic.\n\nLongHorizon-Harness (Claude Code + Qwen3.7-Plus) · score 0.87\n\n✓\n\nI'm on the SalesData sheet. I can see columns F, G, H showing\n\"Err:510\" errors. Let me click on cell F2 to see the formula in\nthe formula bar.\n\nExcellent! The SalesData sheet now shows all normal values\nwith no errors! Let me take the screenshots. Starting with\nview_01.\n\nLet me click on cell F2 to select it and show the VLOOKUP\nformula in the formula bar.\n\nLet me also verify the complete set of 9 screenshots and check\nthe current desktop state.\n\nFirst captures the REF! errors in the pre-repair state,\nlocking down the evidence window.\n\nConfirms all values are back to normal after the repair;\nthe state transition is explicitly verified.\n\nChecks the VLOOKUP formula cell by cell, ensuring\npost-repair evidence matches the pre-repair state one\nto one.\n\nThe verifier reviews the complete set of 9 screenshots,\nconfirming a time-consistent evidence chain.\n\nFigure 9 Preserving pre-repair evidence. In DOC_task_4, the agent must repair a Calc VLOOKUP formula while\npreserving before-and-after evidence. Top: The Claude Code baseline records initial formula errors but edits the\nspreadsheet before completing the required pre-repair evidence, leaving the final file and evidence sequence inconsistent\nand scoring 0.45. Bottom: LongHorizon-Harness keeps the missing pre-repair evidence as a pending requirement,\nrecords it before modification, and audits the full nine-screenshot sequence, scoring 0.87.\n\nBaseline (Claude Code + Qwen3.7-Plus) · score 0.53\n\nChrome is open with the Acme Catalog page. I can see the\npage loaded. Now I need to: 1. Close the popup dialogs 2.\nOpen DevTools (F12) 3. Go to Performance tab 4. Record a…\n\nI can see the tooltip showing \"2258 ms\" for the \"Evaluate script\"\ntask. The summary shows: - Range: 0 ms – 2.26 s - 2258 ms\nhighlighted - 2101 ms Scripting Now I need to hover directly…\n\nThe click isn't working on the \"Bottom-up\" tab. The Summary\ntab is still active. Let me try using the keyboard shortcut or\nclicking more precisely. In Chrome DevTools, I can use…\n\nThe click still didn't work. The Coverage panel still shows \"Click\nthe record button ⊙ to start capturing coverage.\" I've been\ntrying for a very long time and the Coverage panel's record…\n\nThe page being visible on screen is treated as a\nprogress signal, but visible does not mean the state is\ncorrect.\n\nGrabs a number and moves on, without checking\nwhether it matches the long task the constraints\nactually require.\n\nGUI evidence gathering keeps failing and it can only\ngrind on alone; the failure is never externalized to any\nrole.\n\nStill stuck on the same click after 400 steps; a single\nagent shoulders every cognitive responsibility until\nexhausted.\n\nLongHorizon-Harness (Claude Code + Qwen3.7-Plus) · score 0.85\n\n✓\n\nThe Acme Catalog page is loaded. Now I need to open\nDevTools and start working. Let me open the Performance\npanel first.\n\nGood - index.bad.html has blockerA.js and legacy-bundle.js as\nsynchronous scripts in the head. They're collapsed in the\nDevTools. Let me navigate to the Performance panel to record…\n\nThe recording is complete. I can see the flame chart with a long\n\"Evaluate script\" task. Let me stop the recording and click on the\nlong task.\n\nLet me audit the current state of the view_perf_after.png\ndeliverable. I need to: 1. Check if the file exists and its size 2.\nCheck if the meta.json exists and its contents 3. Verify the…\n\nFirst confirms the target Acme Catalog page loaded\ncorrectly, treating 'visible' as a premise to be checked.\n\nChecks the page's actual synchronous-script\nstructure, rather than assuming 'loaded means correct'.\n\nRecords the Performance trace as specified, obtaining\nverifiable real evidence.\n\nThe verifier independently audits the deliverable,\nrewriting 'done' into a cross-modal consistent state\nproposition.\n\nFigure 10 Continuing from verified progress. WEB_task_10 is a Lighthouse performance-optimization task. Top: The\nClaude Code baseline completes the core optimization but gets stuck during DevTools evidence collection, fails to\nproduce all required deliverables, and scores 0.53. Bottom: LongHorizon-Harness preserves the verified optimization\nstate, delegates the remaining evidence requirements to later rounds, and audits the final screenshot and metadata,\nscoring 0.85.\n\n14\n\n\f4\n\nConclusion\n\nIn this work, we introduce LongHorizon-Harness, a general framework for long-horizon agent execution\nthat separates task-state management from environment interaction through a Manage–Execute–Audit loop.\nLongHorizon-Harness maintains progress as explicit, audited task state, executes each subtask in a fresh\ncontext, and carries only independently verified outcomes across rounds. Experiments on WeaveBench,\nOSWorld 2.0, and Terminal-Bench 2.1 show consistent improvements across hybrid GUI–CLI workflows,\nprofessional desktop tasks, pure command-line environments, and different model backbones. These results\ndemonstrate that long-horizon agent capability is determined not only by the underlying model, but also by\nthe harness that organizes, verifies, and converts its local capabilities into end-to-end task completion.\n\n15\n\n\fReferences\nSaaket Agashe, Jiuzhou Han, Shuyu Gan, Jiachen Yang, Ang Li, and Xin Eric Wang. Agent S: An open agentic\nframework that uses computers like a human. In The Thirteenth International Conference on Learning Representations,\n2025. https://arxiv.org/abs/2410.08164.\nAnthropic. Claude computer use. https://www.anthropic.com/news/3-5-models-and-computer-use, 2024.\nAccessed: 2025-05-03.\nAnthropic. Claude Code. https://www.anthropic.com/product/claude-code, 2025. Accessed: 2026-06-22.\nAnthropic. Claude Cowork. https://www.anthropic.com/product/claude-cowork, 2026. Accessed: 2026-06-24.\nXiangxiang Chu, Hailang Huang, Xiao Zhang, Fei Wei, and Yong Wang. Gpg: A simple and strong reinforcement\nlearning baseline for model reasoning. In ICLR, 2026.\nJingzhe Ding, Shengda Long, Changxin Pu, Huan Zhou, Hongwan Gao, Xiang Gao, Chao He, Yue Hou, Fei Hu,\nZhaojian Li, et al. Nl2repo-bench: Towards long-horizon repository generation evaluation of coding agents. arXiv\npreprint arXiv:2512.12730, 2025.\nGuanting Dong, Xiaoshuai Song, Yuyang Hu, Jiajie Jin, Chenghao Zhang, Yifei Chen, Xiaoxi Li, Huaying Yuan, Xinyu\nYang, Tongyu Wen, Jiejun Tan, Hongjin Qian, Shijue Huang, Junting Lu, Zhenyu Li, Wanjun Zhong, Yutao Zhu,\nTat-Seng Chua, Zhicheng Dou, and Ji-Rong Wen. Towards long-horizon agents: A survey. Preprints, July 2026. doi:\n10.20944/preprints202607.1328.v1. https://doi.org/10.20944/preprints202607.1328.v1.\nGoogle DeepMind. Introducing the Gemini 2.5 Computer Use model. https://blog.google/innovation-and-ai/mo\ndels-and-research/google-deepmind/gemini-computer-use-model/, 2025. Accessed: 2026-06-22.\nKelly Hong, Anton Troynikov, and Jeff Huber. Context rot: How increasing input tokens impacts LLM performance.\nhttps://research.trychroma.com/context-rot, 2025.\nYuxiang Ji, Ziyu Ma, Yong Wang, Guanhua Chen, Xiangxiang Chu, and Liaoni Wu. Tree search for llm agent\nreinforcement learning. arXiv preprint arXiv:2509.21240, 2025.\nThomas Kwa, Ben West, Joel Becker, Amy Deng, Katharyn Garcia, Max Hasin, Sami Jawhar, Megan Kinniment,\nNate Rush, Sydney Von Arx, et al. Measuring AI ability to complete long software tasks, 2026. https://arxiv.or\ng/abs/2503.14499.\nRenda Li, Hailang Huang, Fei Wei, Feng Xiong, Yong Wang, and Xiangxiang Chu. Adacurl: Adaptive curriculum\nreinforcement learning with invalid sample mitigation and historical revisiting. arXiv preprint arXiv:2511.09478,\n2025.\nWanli Li, Bowen Zhou, Yunyao Yu, Zhou Xu, Yifan Yang, Dongsheng Li, and Caihua Shan. WeaveBench: A long-horizon,\nreal-world benchmark for computer-use agents with hybrid interfaces, 2026. https://arxiv.org/abs/2606.09426.\nNelson F. Liu, Kevin Lin, John Hewitt, Ashwin Paranjape, Michele Bevilacqua, Fabio Petroni, and Percy Liang.\nLost in the middle: How language models use long contexts. Transactions of the Association for Computational\nLinguistics, 12:157–173, 2024. doi: 10.1162/tacl_a_00638.\nZiyu Ma, Shidong Yang, Yuxiang Ji, Xucong Wang, Yong Wang, Yiming Hu, Tongwen Huang, and Xiangxiang Chu.\nSkillclaw: Let skills evolve collectively with agentic evolver. arXiv preprint arXiv:2604.08377, 2026.\nMike A. Merrill, Alexander G. Shaw, Nicholas Carlini, Boxuan Li, Harsh Raj, Ivan Bercovich, et al. Terminal-Bench:\nBenchmarking agents on hard, realistic tasks in command line interfaces, 2026. https://arxiv.org/abs/2601.11868.\nNous Research. Hermes agent CLI. https://hermes-agent.ai/tools/hermes-agent-cli, 2026. Accessed: 2026-05-05.\nOpenAI. Introducing Codex. https://openai.com/index/introducing-codex/, May 2025a. Accessed: 2026-05-07.\nOpenAI. Introducing ChatGPT agent: bridging research and action. https://openai.com/index/introducing-cha\ntgpt-agent/, July 2025b. Accessed: 2026-05-07.\nOpenAI. Operator. https://openai.com/research/operator, 2025c. Accessed: 2025-05-03.\nOpenClaw Contributors. OpenClaw: Open-source autonomous AI agent platform. https://openclaw.ai/, 2026.\nAccessed: 2026-06-22.\n\n16\n\n\fQingnan Ren, Shun Zou, Shiting Huang, Ziao Zhang, Kou Shi, Zhen Fang, Yiming Zhao, Yu Zeng, Qisheng Su, Lin\nChen, et al. Saasbench: Exploring the boundaries of coding agents in long-horizon enterprise saas engineering. arXiv\npreprint arXiv:2605.17526, 2026.\nPascal J Sager, Benjamin Meyer, Peng Yan, Rebekka von Wartburg-Kottler, Layan Etaiwi, Aref Enayati, Gabriel\nNobel, Ahmed Abdulkadir, Benjamin F Grewe, and Thilo Stadelmann. A comprehensive survey of agents for\ncomputer use: Foundations, challenges, and future directions. Journal of Artificial Intelligence Research, 85, 2026.\nQiushi Sun, Zhoumianze Liu, Chang Ma, Zichen Ding, Fangzhi Xu, Zhangyue Yin, Haiteng Zhao, Zhenyu Wu, Kanzhi\nCheng, Zhaoyang Liu, et al. ScienceBoard: Evaluating multimodal autonomous agents in realistic scientific workflows,\n2025. https://arxiv.org/abs/2505.19897.\nYiyou Sun, Xinyang Han, Weichen Zhang, Yuanbo Pang, Tianyu Wang, Yuhan Cao, Yixiao Huang, et al. Agents’ Last\nExam, 2026. https://arxiv.org/abs/2606.05405.\nXingyao Wang, Boxuan Li, Yufan Song, Frank F. Xu, Xiangru Tang, Mingchen Zhuge, Jiayi Pan, Yueqi Song, Bowen Li,\nJaskirat Singh, Hoang H. Tran, Fuqiang Li, Ren Ma, Mingzhang Zheng, Bill Qian, Yanjun Shao, Niklas Muennighoff,\nYizhe Zhang, Binyuan Hui, Junyang Lin, Robert Brennan, Hao Peng, Heng Ji, and Graham Neubig. OpenHands:\nAn open platform for AI software developers as generalist agents. In The Thirteenth International Conference on\nLearning Representations, 2025. https://arxiv.org/abs/2407.16741.\nJiaqi Wei, Yuejin Yang, Xiang Zhang, Yuhan Chen, Xiang Zhuang, Zhangyang Gao, Dongzhan Zhou, Guangshuai\nWang, Zhiqiang Gao, Juntai Cao, et al. From ai for science to agentic science: A survey on autonomous scientific\ndiscovery. arXiv preprint arXiv:2508.14111, 2025a.\nYuxiang Wei, Olivier Duchenne, Jade Copet, Quentin Carbonneaux, Lingming Zhang, Daniel Fried, Gabriel Synnaeve,\nRishabh Singh, and Sida I. Wang. SWE-RL: Advancing LLM reasoning via reinforcement learning on open software\nevolution, 2025b. https://arxiv.org/abs/2502.18449.\nJohn Yang, Carlos E. Jimenez, Alexander Wettig, Kilian Lieret, Shunyu Yao, Karthik Narasimhan, and Ofir Press.\nSWE-agent: Agent-computer interfaces enable automated software engineering, 2024. https://arxiv.org/abs/24\n05.15793.\nJohn Yang, Kilian Lieret, Jeffrey Ma, Parth Thakkar, Dmitrii Pedchenko, Sten Sootla, Emily McMilin, Pengcheng\nYin, Rui Hou, Gabriel Synnaeve, et al. Programbench: Can language models rebuild programs from scratch. arXiv\npreprint arXiv:2605.03546, 2026a.\nShidong Yang, Ziyu Ma, Tongwen Huang, Yiming Hu, Yong Wang, and Xiangxiang Chu. Coevolve: Training llm agents\nvia agent-data mutual evolution. In Proceedings of the 64th Annual Meeting of the Association for Computational\nLinguistics (Volume 1: Long Papers), pages 23015–23036, 2026b.\nShunyu Yao, Jeffrey Zhao, Dian Yu, Nan Du, Izhak Shafran, Karthik Narasimhan, and Yuan Cao. ReAct: Synergizing\nreasoning and acting in language models. In International Conference on Learning Representations (ICLR), 2023.\nMengqi Yuan, Zilong Zhou, Xinzhuang Xiong, Weiming Wu, Jiayang Sun, Jiamin Song, Kaiqian Cui, Tianbao Xie,\nBowen Wang, Haoyuan Wu, Yitong Li, Dunjie Lu, Haikong Lu, Qi Zhen, Xinyuan Wang, Tao Yu, et al. OSWorld 2.0:\nBenchmarking computer use agents on long-horizon real-world tasks, 2026. https://arxiv.org/abs/2606.29537.\nChi Zhang, Zhao Yang, Jiaxuan Liu, Yucheng Han, Xin Chen, Zebiao Huang, Bin Fu, and Gang Yu. AppAgent:\nMultimodal agents as smartphone users, 2023. https://arxiv.org/abs/2312.13771.\nLianmin Zheng, Wei-Lin Chiang, Ying Sheng, Siyuan Zhuang, Zhanghao Wu, Yonghao Zhuang, Zi Lin, Zhuohan Li,\nDacheng Li, Eric P. Xing, Hao Zhang, Joseph E. Gonzalez, and Ion Stoica. Judging LLM-as-a-Judge with MT-Bench\nand Chatbot Arena. In Advances in Neural Information Processing Systems, 2023.\nYuhao Zheng, Li’an Zhong, Yi Wang, Rui Dai, Kaikui Liu, Xiangxiang Chu, Linyuan Lv, Philip Torr, and\nKevin Qinghong Lin. Code2world: A gui world model via renderable code generation. arXiv preprint\narXiv:2602.09856, 2026.\nJiamu Zhou, Jihong Wang, Weiming Zhang, Weiwen Liu, Zhuosheng Zhang, Xingyu Lou, Weinan Zhang, Huarong\nDeng, and Jun Wang. Colorbrowseragent: An intelligent gui agent for complex long-horizon web automation. arXiv\npreprint arXiv:2601.07262, 2026.\nMingchen Zhuge, Changsheng Zhao, Dylan R. Ashley, Wenyi Wang, Dmitrii Khizbullin, Yunyang Xiong, Zechun\nLiu, Ernie Chang, Raghuraman Krishnamoorthi, Yuandong Tian, Yangyang Shi, Vikas Chandra, and Jürgen\nSchmidhuber. Agent-as-a-Judge: Evaluate agents with agents, 2024. https://arxiv.org/abs/2410.10934.\n\n17\n\n\fA\n\nDetailed Experimental Setup\n\nA.1\n\nWeaveBench\n\nWeaveBench (Li et al., 2026) consists of 114 long-horizon computer-use tasks spanning eight domains: Desktop\nApplications, Document Processing, Games, Web Development, Data Analysis and Visualization, DevOps,\nSpatial/3D Applications, and Design. Each task requires the agent to use both GUI and CLI interactions\nwithin the same workflow, rather than relying solely on command-line or browser operations. We follow\nthe standard WeaveBench evaluation protocol: each task is launched in an isolated containerized Ubuntu\ndesktop VM, and task executions do not share runtime state. The task definitions, workspaces, runtime assets,\njudge templates, and scoring procedure are all taken from the official release. The evaluator uses Claude\nOpus 4.7 as a trajectory-aware judge. We report two aggregate metrics: PassRate, defined as the fraction\nof tasks with score at least 0.8, and Overall, defined as the average score over all 114 tasks. In addition to\nthe aggregate results, we report domain-level PassRate for the eight domains: Desktop Applications (DSK),\nDocument Processing (DOC), Games (GAM), Web Development (WEB), Data Analysis and Visualization\n(DAV), DevOps (OPS), Spatial/3D Applications (SPA), and Design (DES).\nFor the model and execution framework, we evaluate Qwen 3.7-Plus. The Claude Code runtime version\nis claude-code 2.1.76. Each task is allowed up to 25 Manage-Execute-Audit rounds. The per-round\ntimeout is 1800 seconds for the executor, and 300 seconds for both the manager and the verifier. The\nClaude Code reasoning effort on the task side is set to high; the judge is executed with OpenClaw, with\nAJ_THINKING=medium.\nFor GUI tools, we preserve the basic WeaveBench computer-use interface, including the screenshot perception\ntool and desktop actuation tools implemented with pyautogui, such as click, double-click, mouse move,\nkeyboard input, scroll, drag, and wait. In addition, we introduce a restricted evidence-preservation tool,\nsave_screenshot. This tool does not provide any new environment-control capability, nor does it expose\nadditional information to the agent; it can only save the currently visible real desktop screen to the target\ndirectory as an official screenshot artifact required by certain tasks.\nSince GUI tasks frequently provide screenshot inputs, we use an image URL proxy for visual inputs: screenshots\nare uploaded to an image-hosting backend and referenced as image URLs in model requests, avoiding oversized\nrequest bodies caused by multiple base64-encoded screenshots.\n\nA.2\n\nOSWorld 2.0\n\nOSWorld 2.0 (Yuan et al., 2026) consists of 108 professional desktop workflow tasks, with a median human\ncompletion time of approximately 1.6 hours. We use the official OSWorld-v2 osworld-v2-2026.06.24\nrelease, including the corresponding task definitions, task assets, Docker VM image, and mocked websites.\nExperiments are conducted using the standard OSWorld Docker-based VM infrastructure in an Ubuntu\ndesktop environment, with a default resolution of 1920 × 1080. Final scoring is performed by the native\nOSWorld env.evaluate() procedure.\nUnlike the main official baselines, which typically rely only on GUI actions, LongHorizon-Harness uses a hybrid\ntool pool on OSWorld-v2. GUI actions are executed by a computer MCP server inside the VM, supporting\ndesktop operations such as clicking, typing, dragging, and hotkeys. The CLI role can execute shell commands\nin the same VM for filesystem inspection, script execution, and long-context task processing. These tools are\nhosted inside the VM through a fixed version of claude-code 2.1.176.\nFor model inference, we set thinking.type=enabled, max_tokens=65,536, and effort=max. The native\nOSWorld evaluator and user simulator use the same qwen3.7-plus configuration as the execution agent. For\nhuman-in-the-loop tasks in the benchmark that require user information or authorization, we do not introduce\nmanual intervention; instead, we use the native OSWorld user-simulator interface to provide responses.\nWe report two metrics: Binary Accuracy and Partial Accuracy. Binary Accuracy counts a task as successful\nonly when its final score is 1, while Partial Accuracy is the average fine-grained score over all 108 tasks and\nmeasures partial task completion.\n\n18\n\n\fTable 5 Detailed per-task results on the OSWorld 2.0 Opus 4.7 subset. Ours denotes LongHorizon-Harness.\n\nA.3\n\nTask\n\nBaseline\n\nOurs\n\nTask\n\nBaseline\n\nOurs\n\n001\n002\n003\n004\n005\n006\n007\n010\n011\n012\n013\n014\n015\n016\n017\n060\n061\n\n0.7778\n0.7500\n1.0000\n0.8000\n0.0000\n0.5556\n0.4000\n1.0000\n0.2963\n0.6000\n1.0000\n0.9000\n0.2840\n0.8571\n0.1429\n0.1000\n0.3574\n\n1.0000\n1.0000\n1.0000\n0.7667\n1.0000\n0.8889\n0.8000\n1.0000\n0.5556\n1.0000\n0.7500\n0.7400\n0.7667\n0.7524\n0.0000\n0.1000\n0.3891\n\n018\n019\n020\n021\n022\n023\n025\n027\n028\n030\n032\n033\n034\n051\n052\n054\n062\n\n0.0000\n0.5200\n0.1000\n1.0000\n1.0000\n0.9300\n0.2401\n0.5000\n0.4000\n1.0000\n0.9111\n0.1000\n0.5938\n0.0000\n1.0000\n0.3628\n0.5033\n\n0.0000\n0.7600\n1.0000\n0.0000\n1.0000\n0.9300\n0.0833\n0.0000\n1.0000\n0.0000\n0.2000\n1.0000\n0.8750\n0.6000\n1.0000\n1.0000\n0.7753\n\nTerminal-Bench 2.1\n\nTerminal-Bench 2.1 (Merrill et al., 2026) is designed to evaluate agents on challenging and realistic softwareengineering and command-line tasks. We use Harbor as the evaluation framework, with the Docker backend\nproviding an isolated execution environment for each task. During evaluation, we preserve the CPU, memory,\nand environment constraints originally defined for each task.\nTo ensure consistency with existing evaluations of Qwen-series models, both the baseline and CUA-Harness\nsettings use Claude Code as the underlying CLI execution agent, connected to the qwen3.7-plus model.\nThe Claude Code version is v2.1.211. Since the Claude Code command-line interface does not directly\nexpose all low-level request parameters, we introduce a transparent request proxy inside the container. All\nmodel requests are configured with temperature=1.0, top_p=0.95, top_k=20, enable_thinking=true, and\nmax_tokens=65,536.\nEach trial has a timeout of 5 hours. We run three independent trials per task, report the average score over\nthe three runs for each task, and compare against the Claude Code baseline under the same model setting as\nwell as the official leaderboard results.\n\nB\n\nDetailed Experimental Results\n\nB.1\n\nDetailed Results on the OSWorld 2.0 Opus 4.7 Subset\n\nTable 5 reports the per-task scores on the 34-task OSWorld 2.0 Opus 4.7 subset. The baseline uses the\nstandard single-action GUI setting, while LongHorizon-Harness uses our hybrid GUI+CLI tool pool. On this\nsubset, LongHorizon-Harness improves the partial score from 55.83% to 66.86%, and the binary accuracy\nfrom 20.6% to 35.3%.\n\nB.2\n\nFine-Grained Breakdown by Benchmark and Task Type\n\nBeyond the Opus 4.7 subset reported above, we provide a fine-grained breakdown of the main evaluation\nresults by benchmark, domain, task property, and failure mode. We use LongHorizon-Harness (LH-Harness) as\nthe abbreviated name in the tables. The purpose of this analysis is to identify where the harness changes the\nexecution dynamics, rather than only reporting aggregate gains. Across benchmarks, the largest improvements\nappear when progress can be represented as verifiable environment state: installed binaries, repository states,\n19\n\n\fTable 6 WeaveBench domain-level results. Score ∆ is LH-Harness minus baseline. Pass-rate improvement is reported\nin percentage points.\nDomain\n\nBaseline\n\nLH-Harness\n\nScore ∆\n\nPass-rate ∆\n\nDES\nSPA\nGAM\nDAV\nOPS\nDOC\nWEB\nDSK\n\n0.5630\n0.5800\n0.5235\n0.6981\n0.7758\n0.8009\n0.7287\n0.8671\n\n0.8160\n0.8192\n0.7328\n0.8608\n0.9090\n0.8929\n0.8147\n0.8465\n\n+0.2530\n+0.2392\n+0.2093\n+0.1627\n+0.1332\n+0.0920\n+0.0860\n-0.0205\n\n+60.00 pp\n+50.00 pp\n+29.41 pp\n+30.77 pp\n+25.00 pp\n+23.53 pp\n+26.67 pp\n+5.56 pp\n\nTable 7 Fine-grained results for WeaveBench Games tasks. Task names omit the shared GAM_task_* prefix for\ncompactness.\nTask\ngnome_mines_solve\ngame_ui_bug\nstockfish_puzzle_analysis\ngdb_pygame_cheat\nmines_visual\nquadrapassel_autoplay\npokerth_equity_play\nsokoban_solver\n\nBaseline\n\nLH-Harness\n\n0.040\n0.750\n0.000\n0.720\n0.000\n0.000\n0.000\n0.960\n\n0.590\n0.850\n0.550\n0.860\n0.470\n0.300\n0.920\n0.958\n\nTask\nrhythm_autoplay\ngnuchess_pgn_blunder_hunt\nanagramarama_word_grid\ngodot_scene_node_debug\nhedgewars_lua_mission_debug\nsupertux_level_repair_play\nxmoto_level_xml_repair_ride\nkmahjongg_pair_solver\npysol_freecell_fcsolve\n\nBaseline\n\nLH-Harness\n\n0.950\n0.830\n0.750\n0.930\n0.740\n0.000\n0.920\n0.790\n0.520\n\n0.830\n0.940\n0.830\n0.870\n0.830\n0.650\n0.850\n0.750\n0.410\n\nscreenshots with well-defined metadata, application configuration, structured files, or cross-checked evidence\nfrom multiple interfaces. The remaining failures concentrate in tasks where the decisive condition is difficult to\nclose under the available verifier, such as hidden performance thresholds, embodied visual precision, temporal\nvideo evidence, or task semantics that admit several plausible interpretations.\nB.2.1\n\nWeaveBench\n\nTable 6 reports the domain-level breakdown on WeaveBench. LH-Harness improves the mean score in seven\nof the eight domains, with the largest gains in Design (DES), Spatial/3D Applications (SPA), and Games\n(GAM). Pass rate also increases in every domain, including Desktop (DSK), where the mean score slightly\ndecreases despite a higher pass rate. This pattern indicates that the harness mainly raises the lower tail\nof long-horizon trajectories: it converts many near-failures into partial or complete successes, while a small\nnumber of already-strong baseline trajectories can be affected by additional verification and repair steps.\nThe Games domain provides a useful stress test because it combines visual interaction, symbolic state,\nsearch, and environment-specific constraints. Table 7 shows that the largest gains occur on tasks where the\nbaseline often fails to establish a stable state representation. For example, Mines, Stockfish puzzle analysis,\nQuadrapassel autoplay, PokerTH equity play, and SuperTux level repair all improve from near-zero or zero\nbaseline scores to nontrivial completion. In these cases, the harness helps by decomposing the task into\nexplicit subgoals and by carrying forward verified facts rather than a long interaction transcript. In contrast,\nwhen the baseline already solves the core task, additional rounds provide less benefit and can even slightly\nreduce score, as in rhythm autoplay, X-Moto, KMahjongg, and FreeCell.\nB.2.2\n\nOSWorld 2.0\n\nTable 8 reports the OSWorld 2.0 breakdown by capability tag. Tags are not mutually exclusive, so a task\nmay contribute to multiple rows. LH-Harness improves all six tag groups, but the magnitude and residual\nfailure modes differ substantially. The largest gain appears in streaming interaction tasks, where the baseline\nscore is zero and LH-Harness reaches 0.500 on average. Human-in-the-loop tasks also improve strongly,\nindicating that the harness benefits from converting user-provided information into persistent state constraints.\nTutorial-following tasks improve because symbolic instructions can often be decomposed into bounded subtasks\n\n20\n\n\fTable 8 OSWorld 2.0 results by capability tag. Tags are overlapping. “Zero” and “Full” count tasks in the tag group\nwhere LH-Harness obtains score 0 or 1, respectively.\nTag\n\nn Baseline LH-Harness\n\nstreaming_interaction\nhuman_in_the_loop\ntutorial_following\nimplicit_state_inference\nvisual_spatial_precision\ncross_source_reasoning\n\n6\n6\n22\n43\n45\n46\n\n0.000\n0.225\n0.157\n0.241\n0.198\n0.263\n\n0.500\n0.557\n0.374\n0.366\n0.298\n0.361\n\n∆ Zero Full\n+0.500\n+0.332\n+0.217\n+0.125\n+0.100\n+0.098\n\n3\n1\n7\n15\n14\n11\n\n3\n0\n2\n6\n4\n3\n\nwith explicit acceptance criteria.\nThe tag-level results suggest five more specific observations. First, in human-in-the-loop tasks, the main\nbenefit comes from treating the user’s response as a durable constraint rather than as a transient dialogue\nturn. The same mechanism can also fail: if newly supplied information does not override stale evidence, the\nverifier may confirm an outdated state. Second, the harness is stronger at following symbolic tutorials than\nembodied tutorials. Commands, tables, file names, and web fields can be decomposed into auditable steps;\nvideo timelines, CAD geometry, and fine mouse operations remain difficult to translate into reliable low-level\nactions. Third, implicit state inference works best when there is an authoritative closure over the environment\nstate, such as a file, database entry, application setting, or evaluator-visible artifact. Without such closure,\nplausible evidence can be mistaken for completed evidence. Fourth, visual-task gains mainly arise when a\nvisual requirement can be rewritten as a file, code, metadata, or search problem. When the requirement\nremains purely spatial or motor-level, performance is still limited by visual localization and cursor control.\nFifth, cross-source reasoning is often not the bottleneck by itself. Many failures occur after the relevant\nevidence has been understood, when the final answer is written to the wrong state carrier, saved at the wrong\nboundary, or not submitted through the expected interface.\nB.2.3\n\nTerminal-Bench 2.1\n\nTerminal-Bench provides a complementary view because most tasks are command-line tasks with hidden tests.\nTable 9 reports the category-level results. The largest gain is in system administration, where LH-Harness\nimproves from 0.593 to 0.889. This category is dominated by stateful procedures such as installation, service\nconfiguration, PATH management, build outputs, and persistent environment side effects. These are precisely\nthe settings in which an explicit task contract and independent audit can prevent the agent from stopping after\nan incomplete but superficially plausible command sequence. Software engineering also improves substantially,\nespecially in tasks where the baseline performs most of the work but misses one blocking constraint, such as\nimage similarity, asynchronous cancellation behavior, independence from a reference binary, or compressed-size\nlimits.\nTable 10 shows that the gain is larger on hard tasks than on medium tasks. This is consistent with the purpose\nof the harness: when a task is short enough for the baseline to complete in one trajectory, the marginal value\nof explicit state management is smaller. As tasks become longer and contain more intermediate failure points,\nthe ability to record unresolved constraints and re-plan from verified state becomes more important.\nThe tag-level results in Table 11 further localize the effect. The strongest positive tags are images, versioncontrol, system, and sys-admin. These tags share a common property: correctness can be checked against\ndurable artifacts, such as image hashes or similarity scores, repository history, installed executables, service\nstate, logs, or filesystem layout. Negative tags such as mteb, data-science, and video-processing expose a\ndifferent limitation. In these tasks, the official correctness condition can depend on hidden thresholds, ranking\nsemantics, temporal localization, or evaluation conventions that are not fully recoverable from visible state.\nIn such cases, LH-Harness may organize execution more carefully, but a misinterpreted contract can still lead\nto a confidently verified wrong answer.\n\n21\n\n\fTable 9 Terminal-Bench 2.1 category-level results.\nCategory\n\nn\n\nBaseline\n\nLH-Harness\n\n∆\n\nsoftware-engineering\nsystem-administration\ndata-science\nscientific-computing\nsecurity\nfile-operations\ndebugging\ndata-processing\nmathematics\nmodel-training\nmachine-learning\ngames\nvideo-processing\ndata-querying\noptimization\npersonal-assistant\n\n78\n27\n24\n24\n24\n15\n15\n12\n12\n12\n9\n3\n3\n3\n3\n3\n\n0.705\n0.593\n0.792\n0.375\n0.833\n0.333\n0.933\n0.750\n0.917\n0.750\n1.000\n0.000\n0.333\n1.000\n1.000\n1.000\n\n0.833\n0.889\n0.667\n0.542\n0.875\n0.333\n1.000\n0.917\n0.750\n0.667\n1.000\n0.333\n0.000\n1.000\n1.000\n1.000\n\n+0.128\n+0.296\n-0.125\n+0.167\n+0.042\n+0.000\n+0.067\n+0.167\n-0.167\n-0.083\n+0.000\n+0.333\n-0.333\n+0.000\n+0.000\n+0.000\n\nTable 10 Terminal-Bench 2.1 results by difficulty.\n\nC\n\nDifficulty\n\nn\n\nBaseline\n\nLH-Harness\n\n∆\n\neasy\nmedium\nhard\n\n12\n165\n90\n\n0.833\n0.776\n0.533\n\n1.000\n0.818\n0.656\n\n+0.167\n+0.042\n+0.122\n\nAdditional Case Studies\n\nThis appendix expands the qualitative analysis in Section 3.4 with additional case studies from WeaveBench\nand Terminal-Bench. These examples are selected to illustrate the same mechanism that underlies the\nquantitative gains: LongHorizon-Harness does not merely give the model more actions, but restructures\nlong-horizon execution around explicit task state, fresh-context execution, and independent verification. Across\ndomains, the repeated pattern is that local execution progress becomes useful only after it is converted into an\nauditable state proposition: what changed in the environment, which requirement it satisfies, what evidence\nsupports it, and what remains unresolved.\nWhat the cases are meant to show. The cases are not intended as isolated demonstrations of tool use. Instead,\nthey expose recurring failure modes in long-horizon agents and show how the Manage-Execute-Audit loop\naddresses them. First, GUI failures are externalized as unresolved state rather than being trapped inside\na growing interaction history. Second, artifacts are not accepted because the executor claims completion;\nthey are accepted only after a read-only auditor inspects the resulting environment. Third, hybrid GUI+CLI\nexecution lets the agent use the interface that best grounds each part of the task: GUI tools for visual and\napplication state, and CLI tools for files, logs, metadata, build products, and reproducibility checks. Finally,\nthe manager turns the audit result into the next bounded subtask, preserving verified progress while avoiding\ncontext rot.\n\nC.1\n\nCross-Domain WeaveBench Cases\n\nDesktop workflow: turning a GUI failure into a verified state transition. Figure 11 shows a desktop application\ntask in Joplin. The task requires creating a rich note, placing it in the correct notebook, and reproducing a\ntitle-bar rendering issue. The important point is not that the executor eventually finds a way to click through\nthe interface. The important point is that failed shortcuts and imprecise clicks are treated as changes in\nthe task state: the note body already exists, the notebook still needs to be created, and the final visual bug\n\n22\n\n\fTable 11 Terminal-Bench 2.1 tag-level results. Tags may overlap across tasks.\nTag\n\nn\n\nBaseline\n\nLH-Harness\n\n∆\n\ncoding\nfile-operations\nsystem\nsecurity\ndata-processing\nsoftware-engineering\ncompilation\nmachine-learning\nversion-control\nbiology\ncloning\ndata-science\n\n54\n30\n30\n27\n21\n21\n12\n12\n12\n9\n9\n9\n\n0.907\n0.733\n0.633\n0.815\n0.762\n0.714\n1.000\n1.000\n0.667\n0.000\n0.000\n0.667\n\n0.926\n0.767\n0.900\n0.778\n0.714\n0.714\n0.917\n0.917\n1.000\n0.111\n0.111\n0.333\n\n+0.019\n+0.033\n+0.267\n-0.037\n-0.048\n+0.000\n-0.083\n-0.083\n+0.333\n+0.111\n+0.111\n-0.333\n\nTag\n\nn\n\nBaseline\n\nLH-Harness\n\n∆\n\nsys-admin\nweb\nimages\nmteb\nvideo-processing\nimage-processing\nocr\nlog-analysis\nsimulation\ncorewars\ngaming\npmars\npytorch\n\n9\n9\n6\n6\n6\n6\n6\n6\n6\n6\n6\n6\n6\n\n0.667\n0.556\n0.167\n0.500\n0.333\n0.667\n0.667\n0.833\n0.833\n1.000\n1.000\n1.000\n1.000\n\n0.889\n0.667\n1.000\n0.167\n0.000\n0.833\n0.833\n1.000\n1.000\n0.833\n0.833\n0.833\n0.833\n\n+0.222\n+0.111\n+0.833\n-0.333\n-0.333\n+0.167\n+0.167\n+0.167\n+0.167\n-0.167\n-0.167\n-0.167\n-0.167\n\nLongHorizon-Harness (Claude Code + Qwen3.7-Plus) · score 0.91\n\nThe content was actually typed successfully - I can see it all in\nthe editor now, including the table, code blocks, checkboxes,\nand the preview panel on the right showing the rendered…\n\nThe \"Create notebook\" dialog appeared. Let me type the\nnotebook name and confirm.\n\nI can see \"Bug Repro\" already shows \"1\" note. Let me check if\nthe note is already there by clicking on the \"Bug Repro\"\nnotebook.\n\nWait, the difference bounding box is rows 8-439, cols 2881031. That's a HUGE area - 431x743 pixels.\n\nCreates a note in real Joplin with a full body (table,\ncode block, 5 checkboxes), a checkable initial state for\nthe test.\n\nAfter failed shortcuts and clicks, opens 'Create\nnotebook' via a precise right-click, treating failure as\nstate adjustment.\n\nMoves the note into the Bug Repro notebook, Steps-toReproduce table visible, leaving an auditable\nintermediate artifact.\n\nAdds an emoji title to reproduce the title-bar\nrendering bug; the verifier diffs screenshots pixel by\npixel to confirm it.\n\n✓\n\n🔧\n\nFigure 11 Desktop workflow case. LongHorizon-Harness creates the rich note, recovers from failed GUI interactions\nby updating the task state, and verifies the reproduced rendering bug through screenshot evidence.\n\nstill needs evidence. LongHorizon-Harness preserves the verified intermediate artifact, routes the remaining\nGUI work as a focused subtask, and then uses pixel-level screenshot comparison to audit the final rendering\ndifference. The case illustrates failure recovery without discarding completed work or trusting the executor’s\nself-assessment.\nDocument processing: verifying semantic document state rather than visual appearance. Figure 12 illustrates\na document-editing task where the visible appearance of headings is insufficient evidence of completion. A\nheading can look bold and large while still using the wrong underlying style. LongHorizon-Harness first inspects\nthe real LibreOffice Writer state, then applies a reproducible macro to normalize headings, and finally audits\nthe resulting ODT XML. This turns a visually plausible edit into an independently checkable proposition:\nall required headings are encoded with the correct heading style and outline level. The case highlights why\ncompletion must be grounded in environment state rather than screenshots or executor confidence alone.\nGame analysis: combining GUI replay with file-level validation. Figure 13 shows a chess-analysis task in\nXBoard. The agent must identify an illegal move and analyze the game state around the failure. LongHorizonHarness uses the GUI to replay the PGN until XBoard itself stops at the illegal move, preserving visual\nevidence of the exact board position. It then complements this GUI evidence with file-level checks of the\ngenerated reports. The result is a cross-validated artifact: the illegal move, the stopped board state, the\nblunder analysis, and the output files agree with one another. This case demonstrates the value of hybrid\nexecution when neither GUI observation nor file inspection alone is sufficient.\nWeb diagnostics: converging browser charts, JSON state, and packet evidence. Figure 14 shows a WebRTC\nsimulcast-layer audit. The task requires identifying a layer degradation event and supporting it with evidence\nfrom the browser and packet capture. LongHorizon-Harness separates the workflow into evidence-producing\nsubtasks: render the browser charts, hover at the relevant timestamp, capture tooltip values, and open\nWireshark to cross-check the RTP streams. The auditor then treats each screenshot as one proposition in a\n\n23\n\n\fLongHorizon-Harness (Claude Code + Qwen3.7-Plus) · score 0.89\n\n✓\n\nNow I can clearly see \"Results\" has style \"FakeBoldParagraph\"\nwith Liberation Serif 16pt. This confirms the inspection.\n\nExcellent! \"Results\" is now successfully changed to \"Heading 1\"!\n\nThe macro is ready. Let me run it by pressing F5.\n\nPerfect! All 15 headings in the document are now using\nHeading201 (which is the ODT encoding of \"Heading 1\") with\noutline-level=\"1\".\n\nChecks each heading's real underlying style in Writer\nfirst, not assuming Heading 1 from its bold look.\n\nAfter editing, confirms the style truly changed to\nHeading 1, treating each step as a state transition to\nverify.\n\nNormalizes the remaining headings with a Basic macro,\nbatched and reproducible, not by clicking each one by\nhand.\n\nThe verifier re-parses the ODT XML: all 15 headings are\noutline-level=1, so completion = an auditable state\nproposition.\n\nFigure 12 Document-processing case. The harness verifies the underlying ODT structure instead of relying on visual\nformatting, ensuring that all headings are semantically normalized.\nLongHorizon-Harness (Claude Code + Qwen3.7-Plus) · score 0.94\n\nXBoard has loaded the broken.pgn and detected the illegal\nmove at \"8. Nf3\".\n\nThe Error dialog is dismissed. The board shows the position at\nply=14 (after 7...a6), where XBoard stopped due to the illegal\nmove \"8.\n\nThe Edit menu is open! I can see navigation options (Backward,\nForward, Back to Start, Forward to End) and Edit Position.\n\nLet me try reading the file directly.\n\nLoads broken.pgn in XBoard; the engine finds 8. Nf3\ncannot be legally played, pinning the illegal move as\nevidence.\n\nThe board stops at ply=14 (after 7...a6), the position\njust before the illegal move, locking down the problem\nspot as image evidence.\n\nReplays move by move via the Edit menu, locating the\nblunder with a sharp eval swing at a concrete position.\n\nThe verifier reads the output files, cross-checking\nillegal_moves / blunders / result_check against the\nboard images.\n\n✓\n\nFigure 13 Game-analysis case. GUI replay identifies the illegal PGN transition, while file-level auditing checks that\nthe final reports are consistent with the board evidence.\n\nlarger evidence chain, such as the f-layer dropping to zero frames per second around the target interval. This\ncase illustrates how the harness prevents a long GUI investigation from becoming an unstructured transcript;\neach observation is recorded as a verified fact that can guide the next step.\nData analysis and visualization: auditing evidence quality, not just file existence. Figure 15 shows an Airflow\ndebugging task. A naive trajectory can save screenshots with the right filenames while capturing the wrong\nUI state, such as a Grid view saved under a Gantt-view name. LongHorizon-Harness detects this mismatch\nduring audit, keeps the noncompliant screenshot from supporting completion, and assigns a focused repair\nsubtask to capture the real Gantt view. It also cross-checks the DAG graph to identify the incorrect upstream\ndependency. The key lesson is that artifact presence is weaker than artifact validity: a file exists only becomes\nprogress after the auditor confirms that it depicts the required state.\nDevOps: linking symptoms, root cause, and repair across UI and CLI evidence. Figure 16 presents a\nRabbitMQ operations task. The surface symptom is visible in the management UI: messages are published\nfaster than they are delivered or acknowledged. LongHorizon-Harness then combines UI inspection with\nqueue and binding evidence, identifying that the dead-letter routing key is mismatched. After repair, the\nauditor cross-validates the queue depths and binding configuration against CLI dumps and management UI\nscreenshots. This is a representative operations workflow: the answer is not a single command, but a chain\nfrom symptom, to root cause, to repair, to post-repair evidence.\nSpatial and CAD workflow: preserving semantic layers through visual outputs. Figure 17 shows a LibreCAD\ntask. The goal is not only to produce a drawing that looks plausible, but to restore semantic layer assignments\nand generate release-ready visual evidence. LongHorizon-Harness uses CLI rendering to check that the drawing\nis materially present, then uses the LibreCAD GUI to inspect and repair layer attributes, and finally validates\nthe print preview and saved screenshots. The auditor checks file size, resolution, uniqueness, and timestamp\n24\n\n\fLongHorizon-Harness (Claude Code + Qwen3.7-Plus) · score 0.92\n\n✓\n\nNow I need to hover over the bytesSent chart at ~45s. Looking\nat the chart, the bytesSent overlay chart is the first one.\n\nThe tooltip shows t=46.5s with fps=0 frameWidth=0x0 for the f\nlayer - exactly the degradation evidence needed. Let me save\nthis screenshot.\n\nI can see all the key charts now - framesPerSecond showing\nthe f layer drop, and qualityLimitationReason with color-coded\nsegments (green=none, red=bandwidth). Let me close…\n\nWireshark is open with 21018 packets. Now let me open the RTP\nStreams analysis view.\n\nRenders the three-layer bytesSent curves on the real\ndesktop; the f-layer plateau at 40-50s is clearly visible\nevidence.\n\nHovers at t ≈46.5s to capture the f-layer fps=0\ndegradation evidence as checkable forensic points.\n\nThe framesPerSecond chart shows the f layer at 0 over\n38-52s; each screenshot maps to one verifiable\nproposition.\n\nLoads 21018 packets in Wireshark to cross-validate,\nconverging JSON / charts / capture into one auditable\nevidence chain.\n\nFigure 14 Web-diagnostics case. LongHorizon-Harness combines browser charts, tooltip evidence, and Wireshark\ninspection into a single audited evidence chain.\nLongHorizon-Harness (Claude Code + Qwen3.7-Plus) · score 0.90\n\n✓\n\nI can see the issues with existing screenshots: 1.\nviewairflowgantt.png shows Grid/Details view, not the Gantt\nchart tab 2.\n\nI have the Gantt for slaevenhour. Now I need to expand to\nshow both runs.\n\nI have the Gantt for slaevenhour alone. I need both runs visible\ntogether.\n\nNow I can see the screenshots clearly: 1.\nviewairflowtaskinstancedetails.png: Shows the Task Instance\nDetails panel for extractorders @ slaevenhour with: - Status:…\n\nAudits existing shots: view_airflow_gantt.png is\nactually the Grid view, not Gantt - flags it as noncompliant.\n\nSwitches to the real Gantt tab to capture the\nmillisecond-level bar durations that JSON\nstate=success silently drops.\n\nCross-checks transform_revenue's upstream in the\nGraph view, pinning the root cause (wrong clean_* link).\n\nThe verifier reviews each screenshot and its metadata,\nconfirming the evidence chain is complete and\ncompliant.\n\nFigure 15 Data-analysis case. The harness rejects mislabeled evidence, captures the correct Airflow views, and audits\nwhether each screenshot supports the required diagnosis.\n\nordering, ensuring that the submitted screenshots are real captures of distinct states rather than recycled\nimages. This case shows how MEA supports tasks whose success condition spans structured files and visual\napplication state.\nDesign workflow: grounding subjective visual comparison in real rendering state. Figure 18 shows a GIMPbased design task involving image upscaling and quality comparison. The executor does not merely produce a\nclaimed result. It opens the actual outputs in GIMP, captures the Levels histogram, compares super-resolution\nand bicubic results side by side, and uses the real rendering pipeline to generate the evidence. The auditor\ncan then evaluate whether the visual comparison is grounded in the expected files and application state. This\ncase is important because design tasks often contain subjective-looking requirements; LongHorizon-Harness\nmakes them more reliable by converting them into reproducible, inspectable evidence.\n\nC.2\n\nTerminal-Bench Cases\n\nBuild and installation: making hidden acceptance criteria explicit. Figure 19 compares baseline and\nLongHorizon-Harness on a Terminal-Bench task that requires compiling SQLite with gcov instrumentation and making the result available in the shell environment. The baseline reaches partial progress but fails\nthe final reward, illustrating a common long-horizon failure: the agent performs substantial work while missing\na blocking acceptance condition. LongHorizon-Harness converts the task into a stable contract covering\nsource provenance, build location, gcov instrumentation, PATH visibility, executability, and preservation of\nthe vendored tarball. Each round audits one subset of this contract before the manager advances. The final\ndelivery is therefore not just a build log, but a verified installation whose binary, PATH entry, gcov symbols,\nand coverage files are independently checked.\n\n25\n\n\fLongHorizon-Harness (Claude Code + Qwen3.7-Plus) · score 0.90\n\n✓\n\nLet me check if the dialog was dismissed.\n\nGood. All 7 screenshots are: - Real screen captures\n(capturesource=realscreen, source=pyautogui.screenshot) 1920×1080 (≥ 1024×700 ✓) - All 30KB ✓ Now let me verify the…\n\nLet me analyze what I see: 1. view02mgmtratestooltip.png: This\nshows the Overview page.\n\nLet me analyze what I see: 1. view02mgmtratestooltip.png: This\nshows the Overview page.\n\nOn the Management UI Overview, confirms publish rate\nexceeds deliver/ack, reproducing the 'black hole'\nsymptom.\n\nThe verifier checks the Queues list, cross-validating\norders.q / orders.dlq / orders.audit depths against the\nCLI dump.\n\nOpens the orders.dlx binding table: routing_key\ndead.routed mismatches the declared dead.unrouted the root cause.\n\nAfter rebinding to dead.unrouted, the orders.dlq detail\nshows depth recovered to thousands - cross-channel\nproof of the fix.\n\nFigure 16 DevOps case. The harness links management-UI symptoms to queue and binding evidence, then verifies the\nrepaired routing state across GUI and CLI views.\nLongHorizon-Harness (Claude Code + Qwen3.7-Plus) · score 0.93\n\n✓\n\nLet me visually verify the rendered PNG to confirm all layers are\nvisible:\n\nGood - I can see the layer context menu and the Layer List\npanel. Let me click \"Edit Layer Attributes\" to open the layer\nproperties dialog for a more distinct screenshot.\n\nThe Print Preview window is open showing the drawing on a\npage with the title block clearly visible in the bottom-right corner\nwith COMPANY, DWG NO, DATE, SCALE, REV, MATERIAL text.…\n\nAll 5 files exist, sizes are well above 5 KB, resolutions are\n1920x1080 (≥1024×600), all md5 hashes are unique, and\nmtimes are strictly increasing: - viewdrawinginitial.png: mtime…\n\nRenders a PNG with title block and dimensions via\nezdxf, CLI evidence that all semantic layers are in\nplace.\n\nIn LibreCAD's Layer dialog, per the spec CSV, reassigns\ngeometry from layer 0 back to its semantic layer.\n\nUses Print Preview for acceptance; the title block\n(COMPANY / DWG NO / SCALE) is legible, confirming\nit's release-ready.\n\nThe verifier checks all 5 shots are 1920x1080 real\ncaptures with distinct md5s and rising mtimes.\n\nFigure 17 Spatial/CAD case. The harness combines DXF-level inspection, LibreCAD layer repair, print-preview\nevidence, and screenshot-integrity checks.\n\nReverse engineering: auditing hypotheses until they become an independent artifact. Figure 20 shows a\nreverse-engineering task where the agent must produce an independent C program matching a mystery binary’s\nimage output under strict constraints. This task is difficult because early observations are hypotheses rather\nthan deliverables: strings, symbols, pixel statistics, and disassembly traces can guide the solution, but none of\nthem alone proves completion. LongHorizon-Harness keeps these observations as audited facts, then uses later\nrounds to synthesize, compile, compress, and test the final program against the original behavior. The auditor\nchecks not only that the image exists and compiles, but also that the generated output is equivalent when the\noriginal binary is removed. This case shows how MEA supports exploratory tasks: uncertain evidence can\naccumulate without being mistaken for completion, and the final state is accepted only when the independent\nartifact satisfies the full contract.\n\nC.3\n\nCross-Case Takeaways\n\nAcross these cases, LongHorizon-Harness improves reliability through a common structure rather than through\nbenchmark-specific heuristics. In document and CAD tasks, it separates visual plausibility from semantic\ncorrectness. In web, data-analysis, and DevOps tasks, it forces evidence from different interfaces to agree\nbefore marking progress complete. In desktop and design tasks, it preserves recoverable intermediate artifacts\nwhen GUI interactions fail. In Terminal-Bench tasks, it converts implicit grading requirements into explicit\nacceptance contracts and audits them round by round. These patterns support the central claim of the paper:\nlong-horizon agent performance is limited not only by the model’s local capability, but also by how the harness\nrepresents, verifies, and carries forward task state.\n\n26\n\n\fLongHorizon-Harness (Claude Code + Qwen3.7-Plus) · score 0.94\n\n✓\n\nThe Levels dialog is open with the image visible. Let me save\nthis as screenshot 1.\n\nGood, landscapebicubic.png is open. I need to zoom to 200%\nand then also open the AI image.\n\nThe 4x image was loaded (display 3 created). Now let me close\nthe console and set up the side-by-side comparison.\n\nLet me check if the Levels dialog was closed.\n\nInspects the Levels histogram in real GIMP, taking\nevidence from actual software state, not a fabricated\nresult.\n\nOpens the real super-resolution and bicubic output\nPNGs side by side, turning the quality gap into\ncheckable pixel-level evidence.\n\nScripts the operations via GIMP's Script-Fu console, so\nevery comparison image comes from the real rendering\npipeline.\n\nFinally opens the 4x result in real GIMP to check its\nLevels histogram, confirming the upscale is genuinely\nrendered.\n\nFigure 18 Design case. LongHorizon-Harness grounds visual quality comparison in real GIMP state, including\nhistograms and side-by-side rendered outputs.\n\n27\n\n\fBaseline (Claude Code + Qwen3.7-Plus)\n\nLongHorizon-Harness (Claude Code + Qwen3.7-Plus)\n\nreward = 0\n\nVERIFIER TESTS\n\nreward = 1\n\nVERIFIER TESTS\n\n✓\n\ntest_sqlite_compiled\n\n✓\n\ntest_sqlite_compiled\n\n✓\n\ntest_sqlite_in_path\n\n✓\n\ntest_sqlite_in_path\n\n✕\n\ntest_gcov_enabled\n\n✓\n\ntest_gcov_enabled\n\nFULL COMMAND FLOW (RAW TRAJECTORY)\n\nMANAGER → EXECUTOR → AUDITOR ROUNDS (6)\nR1 · EXECUTE\n\n$ ls /app/vendor/ &amp;&amp; ls /app/ &amp;&amp; which gcc &amp;&amp; gcc --version | head -1 &amp;&amp;\nwhich gcov &amp;&amp; gcov --version | head -1\n$ ls -la /app/ ; echo \"---\" ; ls -la /app/vendor/ ; echo \"---\" ; which gcc\nmake tar ; echo \"---\" ; echo $PATH\n$ cat /etc/os-release 2&gt;/dev/null | head -5 ; echo \"---\" ; which apt-get yum\ndnf apk 2&gt;/dev/null\n$ cat /app/vendor/sqlite-fossil-release.tar.gz.sha256 ; echo \"---\" ; cd /app/\n… or &amp;&amp; sha256sum sqlite-fossil-release.tar.gz\n$ apt-get update -qq &amp;&amp; apt-get install -y -qq build-essential gcc make &gt; /de\n… ersion | head -1 &amp;&amp; gcov --version | head -1\n$ mkdir -p /tmp/sqlite-build &amp;&amp; cd /tmp/sqlite-build &amp;&amp; tar xzf /app/vendor/s\n… sil-release/ 2&gt;/dev/null || ls */ | head -30\n$ ls /tmp/sqlite-build/sqlite/configure &amp;&amp; cat /tmp/sqlitebuild/sqlite/VERSION\n$ mkdir -p /app/sqlite &amp;&amp; cd /tmp/sqlite-build/sqlite &amp;&amp; mkdir -p build &amp;&amp; cd\n… verage\" LDFLAGS=\"--coverage\" 2&gt;&amp;1 | tail -25\n$ cd /tmp/sqlite-build/sqlite/build &amp;&amp; grep -E \"^(CFLAGS|LDFLAGS|BCC)\"\nMakefile | head -5\n$ cd /tmp/sqlite-build/sqlite/build &amp;&amp; make -j$(nproc) 2&gt;&amp;1 | tail -20\n$ cd /tmp/sqlite-build/sqlite/build &amp;&amp; ls -la sqlite3 libsqlite3.so\nlibsqlite3.a 2&gt;&amp;1 | head -10\n$ cd /tmp/sqlite-build/sqlite/build &amp;&amp; file sqlite3 &amp;&amp; echo \"---\" &amp;&amp; ldd sqli\n… sqlite3 2&gt;/dev/null | grep -i gcov | head -5\n$ cd /tmp/sqlite-build/sqlite/build &amp;&amp; ldd sqlite3 | head -10 &amp;&amp; echo \"---\" &amp;\n… /dev/null | grep -iE \"gcov|__gcov\" | head -5\n$ cd /tmp/sqlite-build/sqlite/build &amp;&amp; make install 2&gt;&amp;1 | tail -20\n$ ls -la /app/sqlite/bin/ &amp;&amp; echo \"---\" &amp;&amp; ls -la /app/sqlite/lib/ | head -10\n… in/sqlite3 2&gt;/dev/null | grep -c \"__gcov0\\.\"\n$ cat &gt; /etc/profile.d/sqlite.sh &lt;&lt;'EOF'\n# Add gcov-instrumented SQLite to PATH and library path\nexport PATH=\"/app/sqlite/bin:$PATH\"\n… (25 lines)\n$ export PATH=\"/app/sqlite/bin:$PATH\"\nexport LD_LIBRARY_PATH=\"/app/sqlite/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}\"\n# Run a workload that exercises the instrumented binary\n… (12 lines)\n$ cd /tmp/sqlite-build/sqlite/build &amp;&amp; gcov sqlite3-sqlite3.gcda 2&gt;&amp;1 | head\n… cho \"---\" &amp;&amp; ls *.gcov 2&gt;/dev/null | head -3\n\n… (24 lines)\n- C2 [blocking] 编译位置: 原题依据=\"Compile SQLite in /app/sqlite\"; 必须成立=源码解压与编译产物均落\n在 /app/sq … =ls /app/sqlite 可见源码树与构建产物; 阻断条件=编译目录不是 /app/sqlite 。\n- C3 [blocking] gcov instrumentation: 原题依据=\"with gcov instrumentation\"; 必须成立=编译时开启 -… 号；或 ls 可见 .gcno 文件; 阻断条件=二进制未带 gcov instrumentation。\n- C4 [blocking] PATH 可见性: 原题依据=\"make it available in the PATH\"; 必须成立=在默认 shell 中执行\n`w … ode 或 sha256; 阻断条件=which sqlite3 失败，或指向与本任务产物不同的二进制。\n… (25 lines)\nAUDITOR AUDIT REPORT\n\n… (14 lines)\n\n稳定任务契约的 ` 验收约束` 段（C1–C6）覆盖了主要验收维度，与原始任务一致。覆盖完整的项：源码来\n源、编译位置、gcov instrumentation、PATH 可见性 … 中不可见），所以实际验收能力不受影响。候选污\n染边界在契约文本中已说明。整体覆盖完整，无明显弱化或矛盾。\n**逐项反查（针对当前探索子任务 — C1–C6 均处于待验证状态）:**\n- C1（源码来源）: 原题依据=\"use it instead of fetching sources over the network\"。本轮为只读探索，\n\n未发生任何构建行为，也未发生网络下载。**结论: unknown**（下一轮构建时需通过构建日志/命令审计验\n证）。\n- C2（编译位置）: `/app/sqlite` 当前**不存在**（已独立验证：`ls: cannot access '/app/sqlite': No such\nfil … ry` ），但 `/app` 对 root 可写，可创建。**结论: unknown**（构建尚未发生）。\n\n… (14 lines)\n\nR2 · EXECUTE\n\n… (26 lines)\n- 验收约束:\n- C1 [blocking] 源码来源: 原题依据=\"use it instead of fetching sources over the network\"; 必须成 …\n审计构建命令，确认无网络拉取 SQLite 源码; 阻断条件=出现从网络获取 SQLite 源码的行为。\n- C2 [blocking] 编译位置: 原题依据=\"Compile SQLite in /app/sqlite\"; 必须成立=源码解压与编译产物均落\n在 /app/sq … =ls /app/sqlite 可见源码树与构建产物; 阻断条件=编译目录不是 /app/sqlite 。\n… (27 lines)\nAUDITOR AUDIT REPORT\n\n… (16 lines)\n**逐项反查（针对当前子任务 — 工具链安装）**:\n| 约束 | 原题依据 | blocking | 独立证据 | 结论 |\n|------|---------|----------|---------|------|\n| 子任务验收：`command -v gcc/g++/gcov/make` 返回路径 | 子任务合同 | blocking | CLI 输出：\n`/usr/bin/gcc` … in/g++` `/usr/bin/gcov` `/usr/bin/make` | verified |\n… (16 lines)\n\nSQLite 3.50.4 compiled with gcov instrumentation and installed. Summary:\n**Build &amp; install**\n- Extracted `/app/vendor/sqlite-fossil-release.tar.gz` (SHA-256 verified: `7c02b6…5229`)\n… (21 lines)\n\n… 3 rounds omitted\n\nFINAL DELIVERY\ngcov instrumentation delivery check\n\nR6 · DONE\n\n… (29 lines)\n- C4 [blocking] PATH 可见性: 原题依据=\"make it available in the PATH\"；必须成立=在默认 shell 中执行\n`wh … hich sqlite3 失败，或指向与本任务产物不同的二进制。[round_005 verified]\n- C5 [blocking] 可执行性: 原题依据=隐含要求；必须成立=`sqlite3 --version` 成功返回版本信息；验证方\n式=直接执行或由 task ag … 条件=二进制无法运行或崩溃。[round_005 verified via task agent 代跑]\n- C6 [non-blocking but monitored] 不修改 vendored tarball: 原题依据=\"pre-vendored ... use it …\n4733125229`，64 字符）；阻断条件=无（仅作监控）。[round_005 verified]\n… (30 lines)\n\n$ cd /tmp/sqlite-build/sqlite/build &amp;&amp; ldd sqlite3 | head -10 &amp;&amp; echo \"---\" &amp;\n… /dev/null | grep -iE \"gcov|__gcov\" | head -5\n↳ linux-vdso.so.1 (0x00007ffc1dddd000)\nlibm.so.6 =&gt; /lib/x86_64-linux-gnu/libm.so.6 (0x00007bd67589f000)\nlibc.so.6 =&gt; /lib/x86_64-linux-gnu/libc.so.6 (0x00007bd67568d000)\n/lib64/ld-linux-x86-64.so.2 (0x00007bd675d25000)\n--0000000000346560 b __gcov0.AdjustTree\n00000000003465a0 b __gcov0.ChooseLeaf\n0000000000342dd0 b __gcov0.KeccakF1600Step\n0000000000342920 b __gcov0.SHA1Transform\n0000000000342d20 b __gcov0.SHA3Final\nShell cwd was reset to /app\n$ export PATH=\"/app/sqlite/bin:$PATH\"\nexport LD_LIBRARY_PATH=\"/app/sqlite/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}\"\n# Run a workload that exercises the instrumented binary\n… (12 lines)\n↳ 6\n--- query result above ----- .gcno files produced by the build (should exist somewhere) --/tmp/sqlite-build/sqlite/build/conftest__.gcno\n/tmp/sqlite-build/sqlite/build/sqlite3-shell.gcno\n/tmp/sqlite-build/sqlite/build/sqlite3-sqlite3.gcno\n--- .gcda files after running sqlite3 (look for any coverage data) --/tmp/sqlite-build/sqlite/build/sqlite3-shell.gcda\n/tmp/sqlite-build/sqlite/build/sqlite3-sqlite3.gcda\n---rw-r--r-- 1 root root 8192 Jul 16 12:42 /tmp/test.db\nShell cwd was reset to /app\n\nFINAL DELIVERY\ngcov instrumentation delivery check\n$ find /app/sqlite -name '*.gcno' | head -10\n↳ /app/sqlite/conftest__.gcno\n/app/sqlite/sqlite3-shell.gcno\n/app/sqlite/sqlite3-sqlite3.gcno\n/app/sqlite/sqlite3.gcno\n$ bash -lc 'which sqlite3'\n↳ /usr/local/bin/sqlite3\n$ bash -lc 'nm $(which sqlite3) 2&gt;/dev/null | grep __gcov | head -5; echo \"-… which sqlite3) 2&gt;/dev/null | grep -c __gcov'\n↳ … (1 lines)\n000000000033b4e0 b __gcov0.ChooseLeaf\n0000000000337d10 b __gcov0.KeccakF1600Step\n0000000000337860 b __gcov0.SHA1Transform\n0000000000337c60 b __gcov0.SHA3Final\n… (2 lines)\n\nFigure 19 Terminal-Bench build case. LongHorizon-Harness turns a multi-condition build task into an explicit\nacceptance contract and verifies the final SQLite installation with gcov evidence.\n\n28\n\n\fBaseline (Claude Code + Qwen3.7-Plus)\n\nLongHorizon-Harness (Claude Code + Qwen3.7-Plus)\n\nreward = 0\n\nVERIFIER TESTS\n\nreward = 1\n\nVERIFIER TESTS\n\n✓\n\ntest_image_c_exists\n\n✓\n\ntest_image_c_exists\n\n✓\n\ntest_image_compiles\n\n✓\n\ntest_image_compiles\n\n✕\n\ntest_image_similarity\n\n✓\n\ntest_image_similarity\n\nFULL COMMAND FLOW (RAW TRAJECTORY)\n\nMANAGER → EXECUTOR → AUDITOR ROUNDS (9)\n\nLet me analyze the mystery program to understand what it does.\n\nR1 · EXECUTE\n\n… (24 lines)\n- C3 [blocking] 压缩尺寸: 原题依据=“Your C program must be &lt;2k when compressed (cat mystery.c\n… | gzip | wc` 输出 &lt; 2000；验证方式=执行该管道命令；阻断条件=数值 ≥ 2000。\n- C4 [blocking] 禁止 invoking ./mystery: 原题依据=“Your C program must not invoke ./mystery …\nstery|system|exec' /app/mystery.c` 人工审查；阻断条件=发现任何调用。\n… (25 lines)\n\n$ file /app/mystery &amp;&amp; ls -la /app/mystery\n$ ls -la /app/mystery; strings /app/mystery 2&gt;/dev/null | head -100\n$ strings /app/mystery 2&gt;/dev/null | grep -iE \"usage|error|hello|help|enter|i\n… age|arg|argc|argv|%d|%s|%f|%c|%x\" | head -50\n$ echo \"\" | ./mystery 2&gt;&amp;1 | head -50\n$ ls -la /app/image.ppm 2&gt;&amp;1; head -c 200 /app/image.ppm\n$ ./mystery --help 2&gt;&amp;1 | head -30; echo \"---\"; ./mystery -h 2&gt;&amp;1 | head -30\n$ strings /app/mystery | grep -iE \"mandelbrot|julia|fractal|zoom|center|scale\n… olution|width|height|supersample\" | head -50\n$ strings /app/mystery | grep -iE \"mandel|julia|fractal|burn|ship|newton|phoe\n… smooth|escape|bailout|orbit|trap\" | head -30\n$ strings /app/mystery | grep -iE \"sphere|ray|camera|light|hit|intersect|refl\n… |vector|point|direction|material\" | head -50\n$ awk 'NR&gt;3 {print NR-3, $0}' /app/image.ppm | head -20; echo \"---\"; wc -l\n/app/image.ppm\n$ awk 'NR&gt;3 {print NR-3, $0}' /app/image.ppm | sed -n '240000,240020p'; echo\n… {print NR-3, $0}' /app/image.ppm | tail -20\n$ awk 'NR&gt;3 {print NR-3, $0}' /app/image.ppm | awk '$2&gt;200 || $3&gt;200 || $4&gt;20\n… 217 255\" | grep -v \"152 152 152\" | head -40\n$ awk 'NR&gt;3 {print NR-3, $0}' /app/image.ppm | awk '!($2&gt;=150 &amp;&amp; $2&lt;=200 &amp;&amp; $\n… 0 &amp;&amp; $3&lt;=80 &amp;&amp; $4&gt;=60 &amp;&amp; $4&lt;=80)' | head -40\n$ awk 'NR&gt;3 {print NR-3, $0}' /app/image.ppm | awk '{r=$2; g=$3; b=$4; if (!(\n… 150) || (r&lt;100 &amp;&amp; g&gt;150)) print}' | head -40\n$ awk 'NR&gt;3 {print NR-3, $0}' /app/image.ppm | awk '{r=$2; g=$3; b=$4; if (!(\n… 80 &amp;&amp; b&lt;100) print \"YELLOW:\",$0}' | head -30\n$ which objdump nm readelf gdb ltrace strace 2&gt;&amp;1; ls /usr/bin/ | grep -iE\n\"ghidra|ida|radare|rizin|r2\" 2&gt;&amp;1\n$ nm /app/mystery 2&gt;&amp;1 | grep -iE \" T |sphere|ray|camera|scene|render|write_i\n… r|hit|intersect|color|light|main\" | head -60\n$ nm /app/mystery 2&gt;&amp;1 | grep -v \"^[0 ]*T _\" | grep \" T \" | head -80\n$ nm /app/mystery 2&gt;&amp;1 | grep \" T \" | grep -vE \"^.{16} T (_|__)\" | head -80;\n… -vE \"_(IO|libc|dl|Unwind|GI|gcc)\" | head -80\n$ objdump -d --start-address=0x401740 --stop-address=0x401fe0 /app/mystery\n2&gt;&amp;1 | head -200\n$ objdump -s -j .rodata --start-address=0x480000 --stop-address=0x480060\n/app/mystery 2&gt;&amp;1\n$ python3 -c \"\nimport struct\ndata = bytes.fromhex('cdcc4c3e6666663fcdcccc3e0000c0bfcdcc4c3f0000004b71fd7 …\n3f000000000000803f00004040'.replace(' ',''))\n… (7 lines)\n$ objdump -s -j .data --start-address=0x485a00 --stop-address=0x485c00 /app/m\n… jdump -s -j .bss /app/mystery 2&gt;&amp;1 | head -5\n$ objdump -d --start-address=0x4019b0 --stop-address=0x401ac0 /app/mystery\n2&gt;&amp;1 | head -80\n$ which gdb ltrace strace; gdb --version 2&gt;&amp;1 | head -1\n$ awk 'NR&gt;3 {print NR-3, $0}' /app/image.ppm | awk '{r=$2; g=$3; b=$4; if(g&gt;r\n… 200 &amp;&amp; b&gt;200) print \"WHITE:\",$0}' | head -30\n$ awk 'NR&gt;3 {print $0}' /app/image.ppm | sort | uniq -c | sort -rn | head -40\n$ awk 'NR&gt;3 {print $0}' /app/image.ppm | sort | uniq -c | sort -rn | awk '$2\n… 60 &amp;&amp; $3 &lt; 60 &amp;&amp; $4 &lt; 60 {print}' | head -20\n$ awk 'NR&gt;3 {print $0}' /app/image.ppm | awk '$2&gt;100 &amp;&amp; $3&lt;50 &amp;&amp; $3==$4\n{print}' | sort -t' ' -k1,1rn | head -5\n$ objdump -d --start-address=0x401740 --stop-address=0x401fe0 /app/mystery\n2&gt;&amp;1 | sed -n '150,300p'\n$ python3 &lt;&lt; 'EOF'\n# Parse the PPM and analyze sphere positions\npixels = []\n… (42 lines)\n$ python3 &lt;&lt; 'EOF'\npixels = []\nwith open('/app/image.ppm') as f:\n… (52 lines)\n$ python3 &lt;&lt; 'EOF'\npixels = []\nwith open('/app/image.ppm') as f:\n… (48 lines)\n\nAUDITOR AUDIT REPORT\n\n… (20 lines)\n- O9：不得修改 `/app/mystery` 本体。\n**契约覆盖检查**：契约以 C1–C7 显式覆盖 O1–O7。O8（禁止捷径）由\"候选选择与污染边界\"段覆盖。O9\n（不得修改原二进制）由\"提交/持久化边界\"显式覆盖。覆盖完整、无弱化、无矛盾。\n**逐项反查**（当前子任务是行为探查，不是编写 mystery.c；故此处反查契约约束在整体任务语境下的状\n态，以及本轮是否为其建立了可信基础）：\n\n… (20 lines)\n\nR2 · EXECUTE\n\n… (26 lines)\n- C4 [blocking] 禁止 invoking ./mystery: 原题依据=\"Your C program must not invoke ./mystery …\nstery|system|exec' /app/mystery.c` 人工审查；阻断条件=发现任何调用。\n- C5 [blocking] 独立性: 原题依据=\"fully independent and work even if I run it in complete is … =重命\n名/移除 `./mystery` 后运行 `./reversed` ；阻断条件=运行失败或行为改变。\n… (26 lines)\nAUDITOR AUDIT REPORT\n\n… (21 lines)\n**契约覆盖检查**: 稳定任务契约 C1–C8 主要覆盖最终交付物 mystery.c，但\"状态产生流程\"段明确把\"清理/\n重建可信 image.ppm 基线 → 全面探查 … 致 md5 证明的干净 `image.ppm`\"——完全覆盖本轮子任务需\n求。契约未遗漏、未弱化、未矛盾。\n**逐项反查** (当前子任务: 建立可信行为基线):\n\n- C1 交付物形态: not_applicable (本轮是信息收集，非编写阶段)\n… (22 lines)\nR3 · EXECUTE\n\n… (29 lines)\n- C6 [blocking] 静态链接与 `-lm`: 原题依据=编译命令含 `-static -lm`；必须成立=该编译命令能成功产出可\n执行文件；验证方式=`gcc -static -o reversed mystery.c -lm` 退出码为 0；阻断条件=编译失败。\n- C7 [blocking] 权威输入闭包: 原题依据=行为等价必须基于 `./mystery` 的真实行为；必须成立=任何等价\n性判断必须基于对 `./mystery` … 证据且 round 未被 harness 标记 invalid；阻断条件=无真实干净环境证据\n支持等价性。\n\n… (29 lines)\nAUDITOR AUDIT REPORT\n\n… (4 lines)\nEpisode status: timeout.\nRuntime error: RuntimeError: Command timed out after 660 seconds\nClaude Code role episode exceeded 600s (command timeout_sec=660).\n… (5 lines)\n\n… 5 rounds omitted\nR9 · DONE\n\n… (33 lines)\n- C3 [blocking] 压缩尺寸: 原题依据=\"&lt;2k when compressed\"；必须成立=`cat /app/mystery.c | gzip |\nwc` &lt; 2000；验证方式=执行管道命令；阻断条件=数值 ≥ 2000。\n- C4 [blocking] 禁止 invoking ./mystery: 原题依据=\"must not invoke ./mystery\"；必须成立=`mystery\n… y|system|exec|popen' /app/mystery.c` 审查；阻断条件=发现任何调用。\n… (33 lines)\nFINAL DELIVERY\nBit-for-bit equivalence check\n$ cd /app\n# Determinism check: run twice and compare\nrm -f image.ppm\n… (10 lines)\n↳ IDENTICAL\ne866fa2c851f4a9da736b4ed3ba3912e image.ppm\ne866fa2c851f4a9da736b4ed3ba3912e image1.ppm\n$ mv /app/mystery /app/mystery.bak &amp;&amp; rm -f /app/image.ppm &amp;&amp; ./reversed &gt;std\n… echo \"=== RESTORED ===\"; ls -la /app/mystery\n↳ … (1 lines)\n=== STDOUT BYTES ===\n0\n=== MD5SUM ===\ne866fa2c851f4a9da736b4ed3ba3912e /app/image.ppm\n=== RESTORED ===\n-rwxr-xr-x 1 root root 790376 Oct 28 2025 /app/mystery\n\n… 50 more key steps omitted\nFINAL DELIVERY\n/app/mystery.c\n… (29 lines)\nfprintf(stderr,\"\\rProgress: %.1f%%\",100.0f*y/(H-1));\nfor(int x=0;x&lt;W;x++){\nfloat u=(2.0f*x/W-1)*(800.0f/600),v=1-2.0f*y/H;\nR r={{0,0,0},vn((V){u,v,-1})};\nV nrm;float ts=sph(r,C,CR,&amp;nrm);V pp;float tp=pln(r,-1,&amp;pp);\nV col;\n… (29 lines)\n\nFigure 20 Terminal-Bench reverse-engineering case. The harness preserves exploratory evidence as audited facts and\nverifies the final independent C implementation against behavior, compilation, size, and independence constraints.\n\n29\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"