"<!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>HarnessMM: Recursive Self-Improvement\nfor Harness Token Efficiency\nYuhua Jiang1\n1\n\nChang Xu2\n\nTsinghua University\n\n2\n\nFeifei Gao1\n\nMicrosoft Research Asia (MSRA)\n\nyh-jiang24@mails.tsinghua.edu.cn\nfeifiegao@tsinghua.edu.cn\n\narXiv:2610.32813v1 [cs.AI] 23 Oct 2026\n\nAbstract\n\nchanx@microsoft.com\n\nlizo@microsoft.com\n\nExecutable skills, observation-independent plans and compiled tool dependencies reuse or schedule prior computation [19, 40, 43]. ActionEngine further executes task programs\nagainst reusable application memory with reactive repair [52].\nThese methods already establish the value of programmatic execution. HarnessMM studies a narrower contract: an episodespecific action remains literal, later feedback changes its eligibility, and the execution record identifies the reasoning\nboundary actually bypassed.\nFeedback can optimize instructions and agent programs\nthrough APE, STOP, ADAS, Self-Refine and Reflexion [13,\n24, 36, 49, 53]. Such optimization constructs a harness; its\ndeployment still determines which callbacks recur. Jev’s typed\nprobability interface [1] motivates compact candidate selection, but adding a selector does not remove the original callback automatically. We call this accounting mismatch the Substitution Paradox: computation is saved only when eliminated\nreasoning exceeds added authorship, selection and recovery.\nA concrete opportunity appears when slow reasoning fixes\nseveral actions before their execution feedback arrives. After\nwriting a program, the next compilation command can already\nbe specified; after compilation, a successful return code can\nactivate an already-specified test command. We call a decision\nresolved when prior reasoning has fixed its action and literal\narguments; the unknown tool receipt determines whether that\naction is ready to execute. The example separates semantic uncertainty from execution uncertainty and suggests a different\nrole for feedback: activating a resolved decision. Our insight\nis that such decisions can persist across feedback boundaries\nas guarded executable commitments. An authored graph can\nserve multiple transitions while its continuations remain resolved; new inference returns control to the slow actor, which\nmay reason and author further graphs throughout the task.\nWe introduce HarnessMM (Harness Minus Minus), a\nmethod for improving harness token efficiency by changing when the harness invokes its reasoning model (Figure 1).\nHarnessMM inserts a controller at the native decision boundary while keeping model weights, tools and task interfaces\nfixed. Executable Decision Graphs (EDGs) store actions and\nliteral arguments already resolved by slow reasoning, together\nwith their dependencies and public execution guards. Guarded\nDecision Reuse (GDR) retains these decisions across tool\ntransitions and checks whether observed receipts satisfy their\nguards. Certified Callback Substitution (CCS) then dispatches\nthe stored action through the native interface and omits the cor-\n\nAgent harnesses repeatedly invoke reasoning after tool feedback, even when an earlier call has already fixed the next\naction. We introduce HarnessMM (Harness Minus Minus),\na method for improving harness token efficiency through\nguarded decision reuse and recursive self-improvement (RSI).\nRSI iteratively refines companion harness configurations from\ntraining feedback, with validation selecting the configuration\nfor deployment. A controller at the model–tool boundary\nreuses resolved decisions to replace later reasoning callbacks\nwhile actor weights remain fixed. Executable Decision Graphs\nstore exact actions, literal arguments, causal dependencies and\npublic guards. Guarded Decision Reuse activates these persistent decisions from observed receipts; Certified Callback\nSubstitution executes them through the native interface and\nrecords removal of the registered slow callback. New semantic\ndecisions, unsupported evidence and selector abstention invoke the original actor again. The representation restricts what\nfeedback may change, while complete-task measurements\nestablish quality and cost. On HumanEval, HarnessMM preserves Codex success at 90.82% while reducing Tokens/task\n(k) from 66.72 to 47.02 (29.54% saving). For DeepSeek Harness, success rises from 71.43% to 85.71% while Tokens/task\n(k) fall from 96.28 to 11.62 (87.93% saving). A separate\nMBPP ablation measures 26.91% lower cost than single-use\ngraphs and 19.52% lower cost than retained callbacks. These\nresults establish guarded decision reuse as a practical way to\nreduce repeated reasoning in existing harnesses.\n\n1\n\nLi Zhao2\n\nIntroduction\n\nAgent harnesses connect model reasoning to tool execution. ReAct alternates reasoning, actions and observations [46]; SWE-agent demonstrates that interface design\nshapes software-engineering performance [44], and Toolformer learns when to call APIs [33]. After each tool result,\nthe harness must decide whether the observation demands new\nreasoning or merely permits an already resolved action to execute. Repeated deliberation can regenerate decisions whose\nsemantics have not changed.\nEfficiency methods intervene at different points. Prompt\ncompression and history management reduce the input replayed into a call [16, 17, 21, 30, 42]. Fast–slow architectures\nand routing change who reasons and how deeply [4, 27, 45].\n1\n\n\fFigure 1: HarnessMM overview. The upper row shows RSI updating a harness from EDGi to EDGi+1 using task results and token\nconsumption; observations supply execution evidence, including visual signals when supported. Below, GDR introduces guarded reuse of\nresolved decisions, and CCS replaces a redundant reasoning subgraph with certified native execution. Solid arrows show regular execution,\ndashed arrows show guarded reuse routes, and dashed boxes mark edited subgraphs. The graphs are schematic.\n\nresponding reasoning callback. A typed selector chooses an\neligible decision or abstains; new semantic decisions, unsupported evidence and abstention return control to the original\nactor. This changes the harness’s execution policy so that\nresolved actions avoid repeated context input and reasoning\noutput while unresolved decisions retain access to the original reasoning process. Complete-task accounting includes\ngraph authorship, selection, remaining slow calls, fallback\nand unsuccessful executions. Recursive self-improvement\n(RSI) iteratively refines companion harness configurations:\nthe current harness supplies training feedback for candidate\nedits, validation selects the retained candidate, and that harness supplies the next round’s training feedback. The selected\nconfiguration is frozen before test evaluation (Appendix B.2).\nWe integrate HarnessMM into Codex and DeepSeek Harness and evaluate each against its original harness. On the\nsame 98 HumanEval test tasks, HarnessMM preserves Codex\nsuccess at 90.82% while reducing Tokens/task (k) from 66.72\nto 47.02, a 29.54% saving. For DeepSeek Harness, success\nrises from 71.43% to 85.71% while Tokens/task (k) fall from\n96.28 to 11.62, an 87.93% saving (Section 5.3). These comparisons demonstrate that improving when a harness invokes\nreasoning and executes actions can reduce token consumption while preserving or improving task performance. An\nMBPP ablation isolates persistent decision reuse and callback\nremoval, measuring 26.91% lower cost than single-use graphs\n\nand 19.52% lower cost than retained callbacks. Companion\nstudies evaluate their benchmark-specific instruction and context configurations separately (Section 5.4).\nOur contributions are:\n• EDGs separate resolved action semantics from feedbackdependent readiness, making prior deliberation executable at future tool boundaries.\n• GDR retains the graph and uses public receipts to activate\ncausally ordered actions while reserving new decisions\nfor slow reasoning.\n• CCS substitutes native execution for registered callbacks\nand verifies omission with receipt-bound certificates. The\nMBPP ablation measures how reuse and callback substitution affect success and complete task cost.\n\n2\n\nRelated Work\n\nPrompt, context and reasoning compression. LLMLingua and its successors compress prompt inputs [16, 17, 30];\nAgentDiet and observation masking reduce replayed trajectory\ncontext [21, 42]. Thinking budgets control generated reasoning [15]. These methods reduce the size or depth of a call;\nHarnessMM targets whether that call needs to recur at all.\n\n2\n\n\f3.2 Capability-constrained computation substitution\n\nFast–slow agents and model routing. Talker–Reasoner separates response and planning [4]; CogRouter adapts cognitive\ndepth [45]; boundary-guided routing chooses the reasoning\nmodel [50]. Jev motivates typed compact decisions [1]. Our\nJev-motivated typed selector uses a candidate-ID/abstention\ninterface, with single-token decoding when selection requires\na model call. HarnessMM studies whether such a compact\ndecision actually removes a future reasoning callback.\n\nLet Qb (h) = E[mb (Runθ (x; h))], where mb is benchmark\nb’s official score. Relative to the original harness h0 , define\ncapability regret Rb (π) = Qb (h0 ) − Qb (hπ ). The objective is\nmin C(π)\nπ\n\nsubject to\n\nRb (π) ≤ ϵb\n\nfor every declared quality endpoint, equivalently Qb (hπ ) ≥\nQb (h0 ) − ϵb . This is a policy-level constraint, assessed by\nevaluating both harnesses on the same tasks. Tolerances are\nfixed before evaluation; zero-regret protocols use ϵb = 0.\nBoth harnesses are evaluated on the full task set to assess the\nconstraint, including unsuccessful tasks. The original tools,\nevaluator and limits are shared within each comparison. Finitesample score differences and uncertainty are reported under\nthe bound protocol (Appendix B.2).\n\nSkills, memory and reusable programs. Chain-of-thought\nprompting exposes intermediate reasoning [41], Voyager retains executable skills [40], and SkillLens retrieves procedural\ncontext [25]. A skill or macro can inform future reasoning or\nencapsulate a routine. An EDG instead stores episode-specific,\nfully resolved semantic commitments; public execution conditions control their activation. This distinction allows execution\nto replace a reasoning call rather than merely guide it.\nAgent and harness optimization. APE, STOP and ADAS\nimprove prompts, programs and agent configurations from\nfeedback [13, 49, 53]. Self-modification methods extend the\nsearch to improvement operators [38, 47, 51]. HarnessMM\nchanges when a harness calls its reasoning model and when\nit directly executes a previously resolved action. Instruction\noptimization, context compaction and RSI supply companion\nconfigurations; they are outside the core execution method and\nretain separate experimental attribution. Their development\nprotocols and costs appear in Appendix B.2.\n\n3.3\n\nThe Substitution Paradox\n\nThe paradox arises when fast–slow composition adds a decision without removing its downstream deliberation. If a fast\nstage costs Cf but removes none of an original continuation’s\nCn tokens, its additive path costs Cn + Cf . Short output\nalone cannot resolve this overhead: typed output and frequent\nfast-path activation do not establish callback elimination. A\nbeneficial substitution requires\nCremoved &gt; Cintroduced ,\n\n3\n\n(2)\n\nProblem Formulation\n\n(3)\n\nwhere introduced computation includes authorship, routing,\nadditional context and any fallback or recovery. This cost\ncondition and the capability constraint address separate requirements.\n\n3.1 Reasoning calls and tool actions in a harness\nThe actor parameters θ are fixed. An existing harness h\nsupplies instructions, context and native execution rules.\nHarnessMM intervenes at its reasoning callbacks: a stored\naction may replace a new model call. For task x, unroll a finite execution under the benchmark limits into a computation\ngraph Gh (x) = (V, E). Nodes include reasoning, retrieval,\nrouting, tools, verification and recovery; edges encode execution dependencies. For policy π, node v has model-token cost\ncv , giving\n\"\n#\nX\nC(π) = E\n1{v invoked under π} cv .\n(1)\n\n4\n\nHarnessMM: Reusing Decisions\n\nHarnessMM changes the route from tool feedback to the next\nnative action. EDG stores resolved decisions, GDR determines their eligibility, and CCS substitutes native execution\nfor registered slow callbacks. The controller integrates with\nan existing harness through its public-state adapter, slow-call\nentry point and native action dispatcher.\nMethod boundary and fixed configuration. The core\nmethod decides whether a stored action can replace the next\nreasoning call. Prompt editing, context compaction and finalization rules configure the surrounding harness. They are\ndeveloped on training data, selected before evaluation and held\nfixed during each run. The runtime selector chooses an eligible\nEDG node or abstains; it does not choose which optimization\ntechniques to combine. Appendix D.5 maps each reported\nconfiguration to its actual intervention.\nFigure 1 separates harness RSI from execution within a task.\nThe upper row shows RSI revising the harness using training\ntask results and complete token cost; the lower row shows the\n\nv∈V\n\nThe fast–slow policy changes which reasoning nodes recur\nafter public feedback. Deterministic tools use no actor tokens\nbut affect subsequent calls and quality. Both node costs and\ninvocation probabilities can change when a continuation is\nsubstituted. We use st for public state at transition t: the\nrequest, observed tool feedback and completed action history.\n\n3\n\n\fGDR and CCS graph edits. At runtime, the controller ingests\neach public receipt, updates eligibility, and either executes a\nstored action or invokes the slow actor. The latter can resolve\nnew decisions and author another graph.\n\nnode can execute deterministically. Empty sets and abstention\ninvoke the slow actor. Each execution receipt updates the\nsame graph. Appendix C specifies the public-state adapter and\nnative integration.\n\n4.1\n\n4.3\n\nExecutable Decision Graphs (EDG)\n\nCertified Callback Substitution (CCS)\n\nCCS converts an admitted GDR decision into an executable\nreplacement for the next slow callback. It runs the exact\nauthored action through the original tool interface and binds\nthe resulting receipt to the omitted callback. At a registered\noriginal execution boundary, the parent follows st → H0 →\nat . An admitted EDG decision instead follows st → dj →\nat through the same original tool interface. A substitution\ncertificate binds\n\nAn EDG stores actions whose semantics and arguments slow\nreasoning has already resolved. For example, a coding actor\ncan fix a file-write action, a make command and a pytest\ncommand. Public guards determine whether these stored actions can execute; later receipts supply readiness evidence\nwithout regenerating their arguments.\nAt slow decision i, actor H0 emits the current tool action\nand an EDG Gi = (Vi , Ei ), a bounded executable continuation. Its future decision nodes are\n\nκt = (graph hash, decision id, predecessor receipt,\n\n(4)\n\nexact args, tool receipt, bypassed callback id).\n(6)\n\nHere aj is the native action, argj its complete literal arguments, predj its predecessor and gj : Spublic → {true, false}\nits public execution guard. The author fixes gj with the node;\nthe adapter evaluates it against subsequently observed receipts.\nEach node has its own guard.\nThe input EDG in Figure 1 combines reasoning, context\ncompaction, fast decisions and tool use. For the coding example, guards can check a missing file, available build inputs or a\nsuccessful build. Dependencies must also be complete. Edges\nconnect the root or an earlier node to a successor, forming an\nacyclic graph. Missing or rejecting receipts prevent admission;\nan empty graph returns control to the slow actor.\n\nThe fingerprint graph hash identifies the authored graph content, and decision id identifies its node. The remaining fields\nbind the predecessor’s completion, exact executed arguments,\nactual tool result and omitted callback. The orange CCS panel\ndepicts this substitution: a certified callback replaces the redundant reasoning subgraph and retains its execution dependencies.\nThe audit matches this fingerprint and decision ID to literal\narguments, the completed predecessor’s callback and receipt,\nand the tool execution receipt. It checks the registered parent\nboundary and requires\n\nBi = {d1 , . . . , dm },\n\ndj = (aj , argj , predj , gj ).\n\nparent\nHarnessMM\nNslow,t\n− Nslow,t\n≥ 1.\n\n4.2\n\nGuarded Decision Reuse (GDR)\n\n(7)\n\nThe parent count registers the original callback boundary. The\ncertificate verifies exact native execution and absence of that\nrequest, without predicting its unobserved response or token\ncount. Native scoring measures task correctness; completetask totals measure cost. Appendix F.3 records the receipt\naudit.\n\nGDR retains the graph across tool transitions. The green\nGDR panel shows how a condition guard enables a reuse route\naround repeated reasoning. Each observed receipt updates\npredecessor completion and guard truth. Eligibility requires\nclosed arguments needing no new semantic inference. For\nnode dj ,\n\n4.4\neligible(dj , st ) = 1{predj completed}\n\nComplete-Task Accounting\n\nThe optimization target is complete episode cost:\nX\nCepisode (h; x) =\n(Tcin + Tcout ).\n\n· 1{gj (st ) = true} · 1{argj closed}.\n(5)\n\n(8)\n\nc∈C(h,x)\n\nThe ledger charges authorship, selector inputs and outputs,\nadded context, remaining slow calls, fallback, recovery, finalization and failed paid executions. Cached input remains\ncounted. Deterministic checks add CPU work and no actor\ntokens. Historical and MiMo Codex displays retain their declared scope; complete-cost benefit claims require all physical\nrequests.\nDevelopment cost Cdev is reported separately, including\ntraining, proposals, protected validation and rejected attempts.\nFor N deployment tasks,\n\nThe eligible set is E(st ) = {dj ∈ Bi : eligible(dj , st ) = 1}.\nGuards consume observed receipts, never predicted results.\nUnsupported observations, unmet dependencies or arguments\nrequiring new inference defer to H0 .\nImplementation banks serialize the nodes and edges (Appendix C.4). Literal closure is enforced by the schema and\ncandidate-membership checks; whether prior reasoning correctly resolved an action remains a semantic assumption assessed through task scoring. A passing guard proves its declared public condition, rather than general task correctness.\nA Jev-motivated typed selector returns an eligible candidate\nID or abstains, without revising arguments. A unique eligible\n\nCN =\n4\n\nCdev\n+ Ex [Cepisode (h; x)].\nN\n\n(9)\n\n\fShared authoring is charged exactly once to its declared development or execution cohort. This deployment amortization\nis separate from reuse within an episode. Token cost does\nnot establish latency or energy savings; those require separate\nmeasurements.\n\nHarness\n\nSelecting the surrounding configuration. Training develops author prompts, context settings and adapter rules. Disjoint validation selects among training-frozen configurations;\nthe selected implementation is frozen before testing. These\noffline choices set the inputs and action contract of the execution controller. They remain distinct from its online choice\nbetween an eligible stored action and slow reasoning. Appendix B.2 gives the development protocols. Appendix D\nspecifies the execution algorithm, assumptions and structural\ninvariants.\n\n5\n\nExperiments\n\n5.1\n\nEvaluation protocol\n\nPass (%) Tokens/task (k) Calls/task Bypasses\n\nHumanEval (n = 98)\nCodex\n90.82%\n+HarnessMM 90.82%\nDeepSeek\n71.43%\n+HarnessMM 85.71%\n\n66.72\n47.02\n96.28\n11.62\n\n5.35\n5.09\n9.73\n4.23\n\n0\n18\n0\n147\n\nMBPP-sanitized (n = 257)\nCodex\n91.83%\n+HarnessMM 90.66%\nDeepSeek\n90.27%\n+HarnessMM 91.83%\n\n129.55\n49.22\n53.98\n10.61\n\n6.93\n5.40\n6.35\n4.23\n\n0\n158\n0\n472\n\nTable 1: Coding-harness mechanism attribution on HumanEval and\nMBPP-sanitized with the shared backbone. Calls/task counts model\ncalls; Bypasses counts executed substitutions that skip a model call.\nActor costs include input and output tokens.\n\nThe second ablation in Section 5.5 isolates persistent GDR\nreuse and CCS callback substitution with the same execution\nsettings.\n\n5.3\n\nAll methods use the same tasks, backbone, original tools, task\nlimits and scorer. All compared methods, including baselines\nand native harnesses, receive token-efficiency prompts and an\nexplicit objective to reduce complete-task input-plus-output\ntoken consumption while preserving task performance. Success uses the benchmark evaluation endpoint, and token cost\nincludes input plus output for all paid calls, including failures.\nDevelopment optimization cost is reported separately from\ncomplete-task execution. Full-population coding comparisons\nuse custom 20/20/60 splits: HumanEval 33/33/98 and MBPP\n85/85/257, with deterministic rounding and fixed task IDs.\nTRAIN supplies revisions, validation selects TRAIN-frozen\ncandidates, and TEST measures the selected configuration.\nThe coding ablations evaluate the core execution method; native harness pairs evaluate its integration with fixed context and\nfinalization settings. Figure 2 retains the companion studies.\nAppendix D.5 identifies their differing mechanisms, populations and cost scope.\n\nIndustrial harness results\n\nWe use the official Codex and DeepSeek Harness runtimes [5, 28], with the same pinned backbone, original interface and scorer within each pair. HumanEval supplies a\ncomplete held-out comparison: Codex preserves 90.82% success with 66.72 versus 47.02 Tokens/task (k) (29.54% saving);\nDeepSeek Harness improves from 71.43% to 85.71% with\n96.28 versus 11.62 Tokens/task (k) (87.93% saving). Paired\noutcomes show five improvements and five regressions for\nCodex; DeepSeek Harness has 22 improvements and eight\nregressions (two-sided exact McNemar p = 0.0161). These\nintegrated harness effects combine literal-bank reuse, context\nmanagement and finalization. Their total call-count difference\nis therefore not an isolated effect of certificates; the MBPP\nablations below isolate persistence and callback retention. The\nMiMo-v2.6-pro DeepSeek Harness comparison completes the\nsame 98-task population: baseline success is 96.94% and\nHarnessMM success is 97.96%, with 11.62 versus 4.40 Tokens/task (k) (62.12% saving). Figure 3(e) reports this MiMo\npair separately from the Qwen comparisons; the MiMo Codex\npair completes the same 98-task evaluation at 93.88% versus\n94.90% success. Its costs are 62.60 versus 10.09 Tokens/task\n(k); MiMo MBPP Codex completes the same 257-task evaluation at 96.50% versus 97.28% success, with 47.56 versus\n11.00 Tokens/task (k); the MiMo DeepSeek Harness pair completes the same 257-task population at 97.67% versus 98.05%\nsuccess, with 6.20 versus 5.11 Tokens/task (k). Slow reasoning\nauthors literal action banks, and CPU receipt guards execute\n480 native substitutions (Appendix L.1).\nOn MBPP, the complete Qwen-backed DeepSeek Harness\ncomparison improves from 90.27% to 91.83%, while Tokens/task (k) fall from 53.98 to 10.61 (80.35% saving). Slow\nreasoning authors executable action banks; fast guarded execution performs 472 certified substitutions. The CoT-only\nbaseline reaches 93.39% at 15.04 Tokens/task (k), giving a\n29.46% HarnessMM saving. Figure 3(c) reports this held-out\n\n5.2 Does fast execution substitute slow reasoning?\nTable 1 reports model-call and substitution statistics on 98 HumanEval and 257 MBPP-sanitized test tasks. On HumanEval,\nthe DeepSeek Harness falls from 954 to 415 paid model calls,\nwith 147 certified callback bypasses (1.50/task); Codex falls\nfrom 524 to 499 calls, with 18 certified bypasses (0.18/task).\nOn MBPP-sanitized, DeepSeek Harness falls from 1,633 to\n1,088 calls, with 472 certified bypasses (1.84/task), while\nsuccess rises from 90.27% to 91.83%. The MBPP-sanitized\nCodex pair records 91.83% and 90.66% success at 129.55 and\n49.22 Tokens/task (k) (Appendix L.1). The original harnesses\nhave zero certified bypasses. All rates use the full task set for\neach method.\n\n5\n\n\f(b) SearchQA\n\n(a) ALFWorld\n\nTEST: all 2,133 tasks\n\nSuccess (%) ↑\n\nValidation: all 3,395 questions\nEM (%) ↑\n\nTokens/task (k) ↓\n\nTokens/task (k) ↓\n\nNo Skill\n\n42.29\n\n34.05\n\nNo Skill\n\n69.81\n\n1.23\n\nSkillOpt\n\n63.29\n\n101.33\n\nSkillOpt\n\n72.14\n\n1.62\n\nAutoSaddler\n\n61.74\n\n40.30\n\nAutoSaddler\n\n69.60\n\n1.25\n\n66.20\n0\n100\nComplete cohort; all actor calls included.\n\n31.12\n120\n\nHarnessMM\n\nHarnessMM\n\n0\n\n76.76\n0\n100\nComplete cohort; all actor calls included.\n\n(c) LiveMath\n\n0\n\n0.99\n2\n\n(d) AIME\n\nHistorical cohort: all 160 questions\nAccuracy (%) ↑\n\n560 questions; one execution per question\nAccuracy (%) ↑\n\nTokens/task (k) ↓\n\nTokens/task (k) ↓\n\nNo Skill\n\n19.38\n\n4.10\n\nNo Skill\n\n86.96\n\n4.59\n\nSkillOpt\n\n21.25\n\n4.84\n\nSkillOpt\n\n87.86\n\n6.93\n\nAutoSaddler\n\n21.25\n\n4.84\n\nAutoSaddler\n\n88.04\n\n4.90\n\n29.38\n0\n100\nComplete cohort; all actor calls included.\n\n0.83\n5\n\nHarnessMM\n\nHarnessMM\n\n0\n\n87.14\n0\n100\nAll execution and shared author tokens included.\n\n(e) Terminal-Bench 2\n\nArchived partial snapshot (verified trials)\nSuccess (%) ↑\n\n0\n\n5.90\n8\n\n(f) GAIA2\n\n480 scenarios; one execution per scenario\nSuccess (%) ↑\n\nTokens/task (k) ↓\n\nTokens/task (k) ↓\n\nNo Skill\n\n20.63\n\n178.19\n\nNo Skill\n\n42.71\n\n730.22\n\nSkillOpt\n\n23.81\n\n197.97\n\nSkillOpt\n\n46.88\n\n770.63\n\nAutoSaddler\n\n24.62\n\n169.96\n\nAutoSaddler\n\n42.08\n\n772.22\n\n26.03\n0\n100\nRecorded input + output per finished trial.\n\n57.67\n200\n\nHarnessMM\n\nHarnessMM\n\n0\n\n43.96\n0\n100\nComplete cohort; all actor calls included.\n\n0\n\n639.64\n900\n\nFigure 2: Quality–cost studies of benchmark-specific companion configurations. Quality and actor tokens across six benchmarks for No Skill,\nSkillOpt, AutoSaddler and HarnessMM. Populations: (a) ALFWorld, 2,133 tasks; (b) SearchQA protected validation set, 3,395 questions\n(risk-220); (c) LiveMath, 160 questions; (d) AIME, 560 test questions with one execution per method; (e) Terminal-Bench 2 archived partial\ntrials with recorded usage; (f) GAIA2, 480 test scenarios with one execution per method. Qwen3.5-9B serves (a–c), Qwen3.8-27B (d–f).\nTokens/task (k) includes actor input and output, including shared authorship; scales differ. Cohort protocols and training budgets appear in\nAppendix I.1.\n\npair; the independent Codex comparison records 91.83% and\n90.66% success, at 129.55 and 49.22 Tokens/task (k).\nHistorical MBPP and GAIA2 development comparisons\nremain in Figure 3 and Appendix D; they retain their development scope.\n\nSkillOpt and 20.75% against AutoSaddler (Table 21). On\nall 560 AIME test questions, HarnessMM reaches 87.14%\naccuracy, compared with 86.96% for No Skill, 87.86% for\nSkillOpt and 88.04% for AutoSaddler. HarnessMM uses 5.90\nTokens/task (k), including shared authorship: 14.94% below\nSkillOpt, 28.34% above No Skill and 20.44% above AutoSaddler. The cost decomposition in Table 15 shows 0.54 input,\n4.28 output and 1.08 shared-author Tokens/task (k). No Skill\nuses 0.22 input and 4.38 output Tokens/task (k): generated\nreasoning dominates this mathematical workload. The small\nreduction in HarnessMM’s execution output is outweighed by\nits additional input and authorship. The comparison uses one\nexecution per question under the same frozen model and native scoring protocol. SkillOpt uses three completed training\nrounds; AutoSaddler retains its completed four-round policy.\nThe separate original 18-question AIME 2025 comparison\nremains in Appendix I.1. On all 480 GAIA2 test scenarios,\nHarnessMM reaches 43.96% success with 639.64 Tokens/task\n(k), compared with 42.71% and 730.22 for No Skill, 46.88%\nand 770.63 for SkillOpt, and 42.08% and 772.22 for AutoSaddler. HarnessMM reduces complete actor cost by 12.41%,\n17.00% and 17.17%, respectively. The integrated harness performs 146 verified fast native executions (1.40% of all action\nattempts); input accounts for 99.47% of its actor cost (Table 16). It gains 1.25 percentage points over No Skill while\nremaining 2.92 points below SkillOpt. Each scenario runs\n\n5.4 Companion configurations: quality and\ncost\nFigure 2 presents ALFWorld, SearchQA, LiveMath, AIME,\nTerminal-Bench 2 and GAIA2 in their original order, with No\nSkill, SkillOpt, AutoSaddler and HarnessMM in each panel.\nThe HarnessMM label identifies each study’s selected configuration. ALFWorld varies instructions; SearchQA uses input\nrouting, a compact-rule draft and paid fallback; LiveMath\nchanges the answer-first prompt and output cap; AIME uses a\ncompiled decision policy with domain fallback; the archived\nTerminal panel uses an instruction policy. GAIA2 combines a\nliteral bank with context handling. These companion studies\nmeasure their stated configurations. The MBPP ablation supplies the direct test of EDG persistence and callback removal\n(Appendix D.5).\nOn complete SearchQA validation, HarnessMM reaches\n76.76% EM at 0.99 Tokens/task (k), saving 19.08% against No\nSkill (paired 95% interval [16.57, 21.23]%), 38.57% against\n\n6\n\n\fIndustrial harnesses: baseline success and measured cost\n(a) GAIA2-mini\nDeepSeek-flash; n=32\nSuccess (%)\n\n(b) Terminal-Bench 2.0\nDeepSeek-flash; n=18\n\nCodex\n\n37.50%\n\nTokens/task (k)\n907.06\n\nCodex+HarnessMM\n\n40.62%\n\nDeepSeek Harness\n\n40.62%\n\nDeepSeek Harness+HarnessMM\n\n46.88%\n\nSuccess (%)\n77.78%\n\nTokens/task (k)\n3426.78\n\n825.99\n\n55.56%\n\n1089.95\n\n891.75\n\n55.56%\n\n1586.15\n\n750.53\n\n50.00%\n\n1144.32\n\n(c) MBPP\n\n(d) HumanEval\nTokens/task (k)\n\nSuccess (%)\n\nSuccess (%)\n\nTokens/task (k)\n\nCodex\n\n91.83%\n\n129.55\n\n90.82%\n\n66.72\n\nCodex+HarnessMM\n\n90.66%\n\n49.22\n\n90.82%\n\n47.02\n\nDeepSeek Harness\n\n90.27%\n\n53.98\n\n71.43%\n\n96.28\n\nDeepSeek Harness+HarnessMM\n\n91.83%\n\n10.61\n\n85.71%\n\n11.62\n\n(e) HumanEval\nMiMo-v2.6-pro\nSuccess (%)\n\nTokens/task (k)\n\n(f) MBPP-sanitized\nMiMo-v2.6-pro\nSuccess (%)\nTokens/task (k)\n\nCodex\n\n93.88%\n\n62.60\n\n96.50%\n\n47.56\n\nCodex+HarnessMM\n\n94.90%\n\n10.09\n\n97.28%\n\n11.00\n\nDeepSeek Harness\n\n96.94%\n\n11.62\n\n97.67%\n\n6.20\n\nDeepSeek Harness+HarnessMM\n\n97.96%\n\n4.40\n\n98.05%\n\n5.11\n\nFigure 3: Success and actor token costs for Codex, DeepSeek Harness and their HarnessMM variants. (a,b) use DeepSeek-flash; (e,f) use\nMiMo-v2.6-pro. Each harness pair shares its backbone, public task prompt, tools and scorer. Costs are reported as Tokens/task (k).\nALFWorld instruction ablations (test set (2133, tasks) mean of three fixed seeds)\nSuccess (%) ↑\n\nTokens/task (k) ↓\n\nHarnessMM\n\n65.70\n\n31.44\n\nw/o general guidance\n\n62.01\n\n28.69\n\nw/o task-family guidance\n\n49.21\n\n38.94\n\n41.69\n\nw/o skills\nw/ mismatched task family\n\n34.10\n\n48.34\n\nw/ neutral text\n\n43.28\n\n41.37\n\n43.26\n\n0\n\n100\n\n0\n\n120\n\nMBPP-sanitized GDR/CCS ablations (257 tasks)\nSuccess (%) ↑\n\nTokens/task (k) ↓\n93.77\n93.00\n93.39\n95.33\n\nFull HarnessMM\nW/o GDR (single-use EDG)\nW/o CCS (callbacks retained)\nW/o EDG execution\n0\n\n100\n\n13.17\n18.03\n16.37\n16.19\n0\n\n25\n\nFigure 4: Instruction and execution-mechanism ablations. Top: six instruction conditions on the same 2,133 ALFWorld tasks with Qwen3.5-9B;\nbars average seeds 9401–9403 and whiskers show their range. All conditions use history length two and a 50-step limit; neutral text has the\nsame token count as the task instructions. Bottom: four GDR/CCS execution conditions on the same 257 MBPP-sanitized tasks with the shared\nbackbone and one attempt per task. W/o GDR discards the EDG after one execution; W/o CCS retains the slow callback. W/o EDG execution\ndisables graph use while retaining authorship. Tokens/task (k) include complete actor input and output, graph authorship, control, fallback and\nunsuccessful executions. Condition definitions and paired uncertainty appear in Appendices I.3 and E.\n\nonce per method after frozen validation selection; all unsuccessful executions remain in the quality and cost aggregates.\nAppendix I reports a separate quality–cost study of development candidates and frozen GAIA2 validation results.\nUnder the common ALFWorld actor, HarnessMM’s frozen\ninstructions achieve the highest observed success and lowest model-token cost among the four instruction policies:\n66.20% at 31.12 Tokens/task (k). SkillOpt reaches 63.29%\n\nat 101.33 Tokens/task (k). The paired success difference is\n2.91 points (95% floorplan-cluster interval [0.43, 5.61]), with\n69.29% fewer model tokens. Table 8 reports the four freshly\nexecuted instruction-only conditions. The complete benchmark replay and accounting are documented in Appendix G.1.\nALFWorld task-family instruction ablation. Figure 4\ncompares six frozen instruction conditions on the same 2,133\n7\n\n\fCalls/task\n\nTokens/task (k) Success (%)\n\nHarnessMM\n\nAppendix E gives the shared execution settings, paired uncertainty and historical comparison.\n\nSingle-use EDG\n\n100\n75\n50\n25\n0\n\nEvidence attribution. The complete coding comparisons\nmeasure integrated harness quality and cost. The single-use\nand retained-callback ablations directly test persistent reuse\nand callback removal. Instruction-only ALFWorld measures\ninstruction content. Certificates establish execution and omission, while native scoring establishes quality; no per-certificate\ntoken value is assumed.\n\n4.00\n3.00\n2.00\n1.00\n0.00\n4.00\n\n5.6\n\n2.00\n\nFigure 5 shows eight training-guided harness RSI iterations\non the same 32 MiniWoB++ training tasks. Each pair shares\nthe actor, author prompt, full screenshots, coordinate compiler,\nguards, fallback, native scorer and limits; single-use EDGs\npermit one future execution per graph, while HarnessMM\nretains eligible decisions. Training feedback refines visual\ngrounding and screenshot context. Disjoint validation selects\na frozen configuration before testing.\nAcross the first eight iterations, HarnessMM success rises\nfrom 34.38% to 90.63%, while Tokens/task (k) fall from\n3.26 to 1.06 (67.43%). At the eighth iteration, both arms\nsolve 29 of 32 tasks; persistence saves 29.83% (1.51 versus 1.06 Tokens/task (k); paired task-bootstrap 95% interval\n[18.84, 39.00]%). Calls/task fall from 1.47 to 1.03, with 16\nsecond-and-later executions within retained graphs.\nThese are complete episode execution costs. Appendix A\ngives the measurements and their separate development-cost\nscope.\n\n0.00\n1\n\n2\n\n3\n\n4\n5\nIteration\n\n6\n\n7\n\n8\n\nFigure 5: Eight training-guided harness RSI iterations on MiniWoB++. Each comparison uses the same 32 tasks per arm, Qwen3.59B, full screenshots, native rewards, 15 actions and 180 seconds per\nepisode. Calls/task counts physical model requests over all tasks. Tokens/task (k) includes complete episode authorship, control, fallback\nand unsuccessful calls; optimization and selection costs are separate.\n\ntasks across seeds 9401, 9402 and 9403. HarnessMM averages 65.70% success at 31.44 Tokens/task (k). The task-family\nparagraph alone reaches 62.01% at 28.69 Tokens/task (k); general guidance alone reaches 49.21% at 38.94 Tokens/task (k).\nThe family-only condition is cheaper but loses 3.69 success\npoints. Its per-seed paired 95% floorplan-cluster intervals are\n[2.61, 6.21], [0.48, 3.76] and [2.68, 6.48].\nThe remaining instruction conditions and per-seed paired\nintervals appear in Appendix I.3. All use the common actor\nand 50-step limit. These ablations isolate instruction content,\nrather than EDG execution.\n\n5.5\n\n6\n\nHarnessMM harness RSI\n\nLimitations\n\nSavings depend on provider input, cache and context accounting and on the availability of resolved actions. New semantic\ndecisions require slow reasoning. Authorship, selection and\nrecovery can outweigh avoided calls. Public-state adapters are\ntask specific, and small development sets leave policy-level\nquality differences uncertain.\n\nGDR and CCS ablation on MBPP\n\nOur second ablation isolates GDR and CCS on MBPPsanitized [2] with DeepSeek Harness and a fixed backbone.\nFigure 4 compares four conditions on the same 257 tasks. Full\nHarnessMM reaches 93.77% success at 13.17 Tokens/task (k),\nversus 93.00% and 18.03 for W/o GDR (single-use EDG).\nGDR reduces complete cost by 26.91%, with a task-paired\nadjusted interval of [4.01, 45.57]%.\nFull HarnessMM makes 407 certified substitutions, including repeated bypasses in 201 graphs. W/o CCS (callbacks\nretained) reaches 93.39% at 16.37 Tokens/task (k), a measured 19.52% cost reduction for full HarnessMM. Disabling\nEDG execution reaches 95.33% at 16.19: full HarnessMM\nuses 18.62% fewer tokens but solves four fewer tasks. Certificates verify removal; their independent benefit is not ablated.\n\n7\n\nConclusion\n\nHarnessMM improves harness token efficiency by storing\nresolved decisions, checking when they can execute and using them to replace repeated reasoning calls. Complete HumanEval comparisons on all 98 test tasks preserve Codex success at 90.82% with 29.54% fewer actor tokens and improve\nDeepSeek Harness from 71.43% to 85.71% with 87.93% fewer\ntokens. The MBPP ablation isolates persistence and callback\nremoval; companion studies retain their own configuration\nscope.\n\n8\n\n\fReferences\n\n[11] Yash Goyal, Tejas Khot, Douglas Summers-Stay, Dhruv Batra, and Devi Parikh. Making the v in VQA matter: Elevating the role of image understanding in visual question answering. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 6904–6913, 2017.\nURL https://openaccess.thecvf.com/content cvpr 2017/html/G\noyal Making the v CVPR 2017 paper.html. 21\n[12] Harbor Framework. Terminal-bench 2.0: Official benchmark source, 2025.\nURL https://github.com/harborframework/terminal-bench-2/commit/69671fbaac6d67a7e\nf0dfec016cc38a64ef7a77c. Frozen 89-task source revision;\ninspected October 2, 2026. 25\n[13] Shengran Hu, Cong Lu, and Jeff Clune. Automated design\nof agentic systems. In International Conference on Learning\nRepresentations, 2025. URL https://arxiv.org/abs/2408.08435\nv2. 1, 3\n[14] Drew A. Hudson and Christopher D. Manning. GQA: A new\ndataset for real-world visual reasoning and compositional question answering. In Proceedings of the IEEE/CVF Conference\non Computer Vision and Pattern Recognition, pages 6700–6709,\n2019. URL https://openaccess.thecvf.com/content CVPR 201\n9/html/Hudson GQA A New Dataset for Real-World Visua\nl Reasoning and Compositional CVPR 2019 paper.html. 21,\n36\n[15] Neharika Jali, Anupam Nayak, and Gauri Joshi. Not all turns\nare equally hard: Adaptive thinking budgets for efficient multiturn reasoning in agents, 2026. URL https://arxiv.org/abs/2604\n.05164v3. Version 3, August 8, 2026. 2\n[16] Huiqiang Jiang, Qianhui Wu, Chin-Yew Lin, Yuqing Yang, and\nLili Qiu. LLMLingua: Compressing prompts for accelerated\ninference of large language models. In Proceedings of the 2023\nConference on Empirical Methods in Natural Language Processing, pages 13358–13376. Association for Computational\nLinguistics, 2023. doi: 10.18653/v1/2023.emnlp-main.825.\nURL https://aclanthology.org/2023.emnlp-main.825/. 1, 2\n[17] Huiqiang Jiang, Qianhui Wu, Xufang Luo, Dongsheng Li, ChinYew Lin, Yuqing Yang, and Lili Qiu. LongLLMLingua: Accelerating and enhancing LLMs in long context scenarios via\nprompt compression. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume\n1: Long Papers), pages 1658–1677. Association for Computational Linguistics, 2024. doi: 10.18653/v1/2024.acl-long.91.\nURL https://aclanthology.org/2024.acl-long.91/. 1, 2\n[18] Justin Johnson, Bharath Hariharan, Laurens van der\nMaaten, Li Fei-Fei, C. Lawrence Zitnick, and Ross\nGirshick.\nCLEVR: A diagnostic dataset for compositional language and elementary visual reasoning.\nIn\nProceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2901–2910, 2017.\nURL https://openaccess.thecvf.com/content cvpr 2017/html/J\nohnson CLEVR A Diagnostic CVPR 2017 paper.html. 21\n[19] Sehoon Kim, Suhong Moon, Ryan Tabrizi, Nicholas Lee,\nMichael W. Mahoney, Kurt Keutzer, and Amir Gholami. An\nLLM compiler for parallel function calling. In Ruslan Salakhutdinov, Zico Kolter, Katherine Heller, Adrian Weller, Nuria\nOliver, Jonathan Scarlett, and Felix Berkenkamp, editors, Proceedings of the 41st International Conference on Machine\nLearning, volume 235 of Proceedings of Machine Learning\nResearch, pages 24370–24391. PMLR, 21–27 Jul 2024. URL\nhttps://proceedings.mlr.press/v235/kim24y.html. 1, 16\n\n[1] Diogo Almeida. Introducing system one models &amp; Jev. TypeSafe AI Blog, September 2026. URL https://typesafe.ai/blog/i\nntroducing-system-one-models-and-jev. Published September\n15, 2026; accessed September 22, 2026. 1, 3\n[2] Jacob Austin, Augustus Odena, Maxwell Nye, Maarten Bosma,\nHenryk Michalewski, David Dohan, Ellen Jiang, Carrie Cai,\nMichael Terry, Quoc Le, and Charles Sutton. Program synthesis\nwith large language models. arXiv preprint arXiv:2108.07732,\n2021. URL https://arxiv.org/abs/2108.07732. 8, 19\n[3] Anwoy Chatterjee, H S V N S Kowndinya Renduchintala, Sumit\nBhatia, and Tanmoy Chakraborty. POSIX: A prompt sensitivity\nindex for large language models. In Findings of the Association\nfor Computational Linguistics: EMNLP 2024, pages 14550–\n14565. Association for Computational Linguistics, 2024. doi:\n10.18653/v1/2024.findings-emnlp.852. URL https://aclantholo\ngy.org/2024.findings-emnlp.852/. 21\n[4] Konstantina Christakopoulou, Shibl Mourad, and Maja Matarić.\nAgents thinking fast and slow: A talker-reasoner architecture,\n2024. URL https://arxiv.org/abs/2410.08328. 1, 3\nDeepseek harness, 2026.\nURL https:\n[5] DeepSeek.\n//github.com/deepseek-ai/deepseek-harness/commit/487\n8cdabd87d4041bdaff61d04c966883b9fd07a.\nOfficial\ndsh-v0.2.0-rc.1; accessed September 30, 2026. 5\n[6] Rotem Dror, Gili Baumer, Marina Bogomolov, and Roi Reichart. Replicability analysis for natural language processing:\nTesting significance with multiple datasets. Transactions of the\nAssociation for Computational Linguistics, 5:471–486, 2017.\ndoi: 10.1162/tacl a 00074. URL https://aclanthology.org/Q171033/. 21\n[7] Rotem Dror, Gili Baumer, Segev Shlomov, and Roi Reichart.\nThe hitchhiker’s guide to testing statistical significance in natural language processing. In Proceedings of the 56th Annual\nMeeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 1383–1392. Association for Computational Linguistics, 2018. doi: 10.18653/v1/P18-1128. URL\nhttps://aclanthology.org/P18-1128/. 21\n[8] Adam Fisch, Alon Talmor, Robin Jia, Minjoon Seo, Eunsol\nChoi, and Danqi Chen. MRQA 2019 shared task: Evaluating\ngeneralization in reading comprehension. In Proceedings of the\n2nd Workshop on Machine Reading for Question Answering,\npages 1–13. Association for Computational Linguistics, 2019.\ndoi: 10.18653/v1/D19-5801. URL https://aclanthology.org/D\n19-5801/. 22\n[9] Romain Froger, Pierre Andrews, Matteo Bettini, Amar Budhiraja, Ricardo Silveira Cabral, Virginie Do, Emilien Garreau,\nJean-Baptiste Gaya, Hugo Laurençon, Maxime Lecanu, Kunal Malkan, Dheeraj Mekala, Pierre Ménard, Gerard MorenoTorres Bertran, Ulyana Piterbarg, Mikhail Plekhanov, Mathieu\nRita, Andrey Rusakov, Vladislav Vorotilov, Mengjue Wang,\nIan Yu, Amine Benhalloum, Grégoire Mialon, and Thomas\nScialom. ARE: Scaling up agent environments and evaluations,\n2025. URL https://arxiv.org/abs/2509.17158. 25\n[10] Tairan Fu, Gonzalo Martinez, Javier Conde, Carlos Arriaga,\nXiuyuan Qi, Shanshan Liu, and Pedro Reviriego. Beyond\nreproducibility: Token probabilities expose large language\nmodel nondeterminism. IEEE Transactions on Computers,\npages 1–14, 2026. doi: 10.1109/TC.2026.3732142. URL\nhttps://doi.org/10.1109/TC.2026.3732142. 21\n\n9\n\n\f[20] Woosuk Kwon, Zhuohan Li, Siyuan Zhuang, Ying Sheng, Lianmin Zheng, Cody Hao Yu, Joseph E. Gonzalez, Hao Zhang,\nand Ion Stoica. Efficient memory management for large language model serving with PagedAttention. In Proceedings of\nthe 29th Symposium on Operating Systems Principles, pages\n611–626. Association for Computing Machinery, 2023. doi:\n10.1145/3600006.3613165. URL https://doi.org/10.1145/3600\n006.3613165. 21\n[21] Tobias Lindenbauer, Igor Slinko, Ludwig Felder, Egor Bogomolov, and Yaroslav Zharov. The complexity trap: Simple\nobservation masking is as efficient as LLM summarization for\nagent context management, 2025. URL https://arxiv.org/abs/25\n08.21433v3. Version 3, October 27, 2025. 1, 2\n[22] Haotian Liu, Chunyuan Li, Qingyang Wu, and Yong Jae Lee.\nVisual instruction tuning. In Advances in Neural Information\nProcessing Systems, volume 36, pages 34892–34916. Curran\nAssociates, Inc., 2023. doi: 10.52202/075280-1516. URL\nhttps://proceedings.neurips.cc/paper files/paper/2023/file/6d\ncf277ea32ce3288914faf369fe6de0-Paper-Conference.pdf. 21\n[23] Haozhe Liu, Tian Ye, Sensen Gao, Qihang Cao, Yitong Li,\nMingchen Zhuge, Duomin Wang, Ruihua Zhang, Ping Luo,\nJiawang Bian, Lei Zhu, Ligeng Zhu, Enze Xie, and Song Han.\nSoL-Pi: Recursively scaling auto-research loops for efficient\nagent harness, 2026. URL https://arxiv.org/abs/2609.20519. 31\n[24] Aman Madaan, Niket Tandon, Prakhar Gupta, Skyler Hallinan, Luyu Gao, Sarah Wiegreffe, Uri Alon, Nouha\nDziri, Shrimai Prabhumoye, Yiming Yang, Shashank Gupta,\nBodhisattwa Prasad Majumder, Katherine Hermann, Sean\nWelleck, Amir Yazdanbakhsh, and Peter Clark.\nSelfRefine: Iterative refinement with self-feedback. In A. Oh,\nT. Naumann, A. Globerson, K. Saenko, M. Hardt, and\nS. Levine, editors, Advances in Neural Information Processing Systems, volume 36, pages 46534–46594. Curran Associates, Inc., 2023. doi: 10.52202/075280-2019.\nURL https://proceedings.neurips.cc/paper files/paper/2023/file/\n91edff07232fb1b55a505a9e9f6c0ff3-Paper-Conference.pdf. 1\n[25] Yongliang Miao, Ziyang Yu, Liang Zhao, Bowen Zhu, and\nHasibul Haque. SkillLens: Adaptive multi-granularity skill\nreuse for cost-efficient LLM agents, 2026. URL https://arxiv.or\ng/abs/2605.08386v1. Version 1, May 8, 2026. 3\n[26] Yulei Niu, Kaihua Tang, Hanwang Zhang, Zhiwu Lu, XianSheng Hua, and Ji-Rong Wen. Counterfactual VQA: A causeeffect look at language bias. In Proceedings of the IEEE/CVF\nConference on Computer Vision and Pattern Recognition, pages\n12700–12710, 2021. URL https://openaccess.thecvf.com/co\nntent/CVPR2021/html/Niu Counterfactual VQA A CauseEffect Look at Language Bias CVPR 2021 paper.html. 21\n[27] Isaac Ong, Amjad Almahairi, Vincent Wu, Wei-Lin Chiang, Tianhao Wu, Joseph E Gonzalez, M Waleed Kadous,\nand Ion Stoica. RouteLLM: Learning to route LLMs from\npreference data. In Y. Yue, A. Garg, N. Peng, F. Sha,\nand R. Yu, editors, International Conference on Learning\nRepresentations, volume 2025, pages 34433–34448, 2025.\nURL https://proceedings.iclr.cc/paper files/paper/2025/file/55\n03a7c69d48a2f86fc00b3dc09de686-Paper-Conference.pdf. 1\n[28] OpenAI. Codex, 2026. URL https://github.com/openai/codex/\ncommit/26de83050b20f7e0ee211b9739e52ae00ce8032a. Official CLI 0.142.5; accessed September 30, 2026. 5, 25\n[29] Art B. Owen. The pigeonhole bootstrap. The Annals of Applied\nStatistics, 1(2):386–411, 2007. doi: 10.1214/07-AOAS122.\n\nURL https://arxiv.org/abs/0712.1111. 21\n[30] Zhuoshi Pan, Qianhui Wu, Huiqiang Jiang, Menglin Xia, Xufang Luo, Jue Zhang, Qingwei Lin, Victor Rühle, Yuqing\nYang, Chin-Yew Lin, H. Vicky Zhao, Lili Qiu, and Dongmei Zhang. LLMLingua-2: Data distillation for efficient and\nfaithful task-agnostic prompt compression. In Findings of\nthe Association for Computational Linguistics: ACL 2024,\npages 963–981. Association for Computational Linguistics,\n2024. doi: 10.18653/v1/2024.findings-acl.57. URL https:\n//aclanthology.org/2024.findings-acl.57/. 1, 2\n[31] Felipe Maia Polo, Ronald Xu, Lucas Weber, Mı́rian Silva,\nOnkar Bhardwaj, Leshem Choshen, Allysson Flavio Melo\nde Oliveira, Yuekai Sun, and Mikhail Yurochkin. Efficient\nmulti-prompt evaluation of LLMs. In Advances in Neural Information Processing Systems, volume 37, pages 22483–22512.\nCurran Associates, Inc., 2024. doi: 10.52202/079017-0707.\nURL https://proceedings.neurips.cc/paper files/paper/2024/file/\n28236482f64a72eec43706b6f3a6c511-Paper-Conference.pdf.\n21\n[32] Varun Saravanan, Gordon J. Berman, and Samuel J. Sober. Application of the hierarchical bootstrap to multi-level data in neuroscience. Neurons, Behavior, Data analysis, and Theory, 3(5):\n1–25, 2020. URL https://nbdt.scholasticahq.com/article/13927application-of-the-hierarchical-bootstrap-to-multi-level-datain-neuroscience. 21\n[33] Timo Schick, Jane Dwivedi-Yu, Roberto Dessi, Roberta\nRaileanu, Maria Lomeli, Eric Hambro, Luke Zettlemoyer,\nNicola Cancedda, and Thomas Scialom.\nToolformer:\nLanguage models can teach themselves to use tools. In\nA. Oh, T. Naumann, A. Globerson, K. Saenko, M. Hardt,\nand S. Levine, editors, Advances in Neural Information\nProcessing Systems, volume 36, pages 68539–68551. Curran\nAssociates, Inc., 2023. doi: 10.52202/075280-2997. URL\nhttps://proceedings.neurips.cc/paper files/paper/2023/file/d8\n42425e4bf79ba039352da0f658a906-Paper-Conference.pdf. 1\n[34] Jenny Schmalfuss, Nadine Chang, Vibashan VS, Maying Shen, Andres Bruhn, and Jose M. Alvarez. PARC:\nA quantitative framework uncovering the symmetries\nwithin vision language models.\nIn Proceedings of\nthe IEEE/CVF Conference on Computer Vision and\nPattern Recognition, pages 25081–25091, 2025.\nURL\nhttps://openaccess.thecvf.com/content/CVPR2025/html/Schm\nalfuss PARC A Quantitative Framework Uncovering the S\nymmetries within Vision Language CVPR 2025 paper.html.\n21\n[35] Melanie Sclar, Yejin Choi, Yulia Tsvetkov, and Alane Suhr.\nQuantifying language models’ sensitivity to spurious features\nin prompt design or: How I learned to start worrying about\nprompt formatting. In International Conference on Learning\nRepresentations, 2024. URL https://arxiv.org/abs/2310.11324\nv2. 21\n[36] Noah Shinn, Federico Cassano, Ashwin Gopinath, Karthik\nNarasimhan, and Shunyu Yao.\nReflexion: language\nagents with verbal reinforcement learning.\nIn A. Oh,\nT. Naumann, A. Globerson, K. Saenko, M. Hardt, and\nS. Levine, editors, Advances in Neural Information Processing Systems, volume 36, pages 8634–8652. Curran\nAssociates, Inc., 2023. doi: 10.52202/075280-0377. URL\nhttps://proceedings.neurips.cc/paper files/paper/2023/file/1b\n44b878bb782e6954cd888628510e90-Paper-Conference.pdf. 1\n[37] Dı́dac Surı́s, Sachit Menon, and Carl Vondrick. ViperGPT:\n\n10\n\n\fVisual inference via Python execution for reasoning. In\nProceedings of the IEEE/CVF International Conference on\nComputer Vision (ICCV), pages 11888–11898, 2023. URL\nhttps://openaccess.thecvf.com/content/ICCV2023/html/Suri\ns ViperGPT Visual Inference via Python Execution for Rea\nsoning ICCV 2023 paper.html. 21\n[38] Zihan Tan, Leixin Sun, Zitong Shi, Yitao Liu, Jiajun Wu,\nNathaniel Brooks, Jiaru Qian, Xiaoran Shang, Suyuan Huang,\nYi Ding, Yangxu Liao, Mukai Li, Qiushi Sun, Shudong Liu, Xuankun Rong, Xiaohang Yu, Zhuo Chen, Hejia Geng, Chenxin Li,\nAozhou Wang, Zengji Tu, Robert Tang, Yuxin Zhan, Eric Jiang,\nYuxin Wu, Jianqing Zhang, Xiao Liang, Fang Wu, Haochi\nZhang, Alexander Marlow, and Guancheng Wan. MetaRSI\n/ RSI2: A meta-recursive self-improving system for recursive self-improving systems themselves, 2026. URL https:\n//arxiv.org/abs/2609.06396v2. Version 2, September 9, 2026. 3,\n13\n[39] tsinghua-fib-lab. AutoSOTA: Automated code optimization\nworkflow, 2026. URL https://github.com/tsinghua-fib-lab/Auto\nSOTA. CLI guide; inspected October 2, 2026. 25, 32\n[40] Guanzhi Wang, Yuqi Xie, Yunfan Jiang, Ajay Mandlekar,\nChaowei Xiao, Yuke Zhu, Linxi Fan, and Anima Anandkumar.\nVoyager: An open-ended embodied agent with large language\nmodels, 2023. URL https://arxiv.org/abs/2305.16291. 1, 3, 16\n[41] Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma,\nbrian ichter, Fei Xia, Ed Chi, Quoc V Le, and Denny Zhou.\nChain-of-thought prompting elicits reasoning in large language\nmodels. In S. Koyejo, S. Mohamed, A. Agarwal, D. Belgrave, K. Cho, and A. Oh, editors, Advances in Neural Information Processing Systems, volume 35, pages 24824–24837.\nCurran Associates, Inc., 2022. doi: 10.52202/068431-1800.\nURL https://proceedings.neurips.cc/paper files/paper/2022/file/\n9d5609613524ecf4f15af0f7b31abca4-Paper-Conference.pdf. 3,\n14\n[42] Yuan-An Xiao, Pengfei Gao, Chao Peng, and Yingfei Xiong.\nReducing cost of LLM agents with trajectory reduction. Proceedings of the ACM on Software Engineering, 3(FSE):1241–\n1263, 2026. doi: 10.1145/3797084. URL https://doi.org/10.1\n145/3797084. 1, 2\n[43] Binfeng Xu, Zhiyuan Peng, Bowen Lei, Subhabrata Mukherjee,\nYuchen Liu, and Dongkuan Xu. ReWOO: Decoupling reasoning from observations for efficient augmented language models,\n2023. URL https://arxiv.org/abs/2305.18323. 1, 16\n[44] John Yang, Carlos Jimenez, Alexander Wettig, Kilian\nLieret, Shunyu Yao, Karthik Narasimhan, and Ofir Press.\nSWE-agent: Agent-computer interfaces enable automated\nsoftware engineering. In A. Globerson, L. Mackey, D. Belgrave, A. Fan, U. Paquet, J. Tomczak, and C. Zhang,\neditors, Advances in Neural Information Processing\nSystems, volume 37, pages 50528–50652. Curran Associates, Inc., 2024. doi: 10.52202/079017-1601. URL\nhttps://proceedings.neurips.cc/paper files/paper/2024/file/5a\n7c947568c1b1328ccc5230172e1e7c-Paper-Conference.pdf. 1\n[45] Ruihan Yang, Fanghua Ye, Xiang We, Ruoqing Zhao, Kang\nLuo, Xinbo Xu, Bo Zhao, Ruotian Ma, Shanyi Wang, Zhaopeng\nTu, Xiaolong Li, Deqing Yang, and Linus. Think fast and slow:\nStep-level cognitive depth adaptation for llm agents, 2026. URL\nhttps://arxiv.org/abs/2602.12662. 1, 3\n[46] Shunyu Yao, Jeffrey Zhao, Dian Yu, Nan Du, Izhak Shafran,\nKarthik Narasimhan, and Yuan Cao. ReAct: Synergizing\n\nreasoning and acting in language models. In International\nConference on Learning Representations (ICLR), 2023. URL\nhttps://arxiv.org/abs/2210.03629. 1\n[47] Xunjian Yin, Xinyi Wang, Liangming Pan, Li Lin, Xiaojun Wan, and William Yang Wang. Gödel agent: A selfreferential agent framework for recursively self-improvement.\nIn Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 27890–27913. Association for Computational Linguistics, 2025. doi: 10.18653/v1/2025.acl-long.1354. URL\nhttps://aclanthology.org/2025.acl-long.1354/. 3\n[48] Jiayi Yuan, Hao Li, Xinheng Ding, Wenya Xie, Yu-Jhe Li,\nWentian Zhao, Kun Wan, Jing Shi, Xia Hu, and Zirui Liu.\nUnderstanding and mitigating numerical sources of nondeterminism in LLM inference. In Advances in Neural Information\nProcessing Systems, volume 38, pages 169819–169851. Curran\nAssociates, Inc., 2025. doi: 10.52202/085713-5653. URL\nhttps://proceedings.neurips.cc/paper files/paper/2025/file/f8\n0094a824ba5912d4a2de169c404a40-Paper-Conference.pdf.\n21\n[49] Eric Zelikman, Eliana Lorch, Lester Mackey, and Adam Tauman Kalai. Self-taught optimizer (STOP): Recursively selfimproving code generation. In Conference on Language Modeling, 2024. URL https://arxiv.org/abs/2310.02304v3. 1, 3\n[50] Caiqi Zhang, Menglin Xia, Xuchao Zhang, Daniel Madrigal,\nAnkur Mallick, Samuel Kessler, Victor Ruehle, and Saravan\nRajmohan. Budget-aware agentic routing via boundary-guided\ntraining, 2026. URL https://arxiv.org/abs/2602.21227v1. Version 1, February 4, 2026. 3\n[51] Jenny Zhang, Shengran Hu, Cong Lu, Robert Lange, and Jeff\nClune. Darwin gödel machine: Open-ended evolution of selfimproving agents. In International Conference on Learning\nRepresentations, 2026. URL https://arxiv.org/abs/2505.22954\nv3. 3\n[52] Hongbin Zhong, Fazle Faisal, Luis França, Tanakorn Leesatapornwongsa, Adriana Szekeres, Kexin Rong, and Suman Nath.\nActionengine: From reactive to programmatic web agents via\nstate machine memory, 2026. URL https://arxiv.org/abs/2602.2\n0502. 1, 16\n[53] Yongchao Zhou, Andrei Ioan Muresanu, Ziwen Han, Keiran\nPaster, Silviu Pitis, Harris Chan, and Jimmy Ba. Large language\nmodels are human-level prompt engineers. In International\nConference on Learning Representations, 2023. URL https:\n//arxiv.org/abs/2211.01910v2. 1, 3\n[54] Jingming Zhuo, Songyang Zhang, Xinyu Fang, Haodong Duan,\nDahua Lin, and Kai Chen. ProSA: Assessing and understanding\nthe prompt sensitivity of LLMs. In Findings of the Association\nfor Computational Linguistics: EMNLP 2024, pages 1950–\n1976. Association for Computational Linguistics, 2024. doi:\n10.18653/v1/2024.findings-emnlp.108. URL https://aclantholo\ngy.org/2024.findings-emnlp.108/. 21\n\n11\n\n\fA\n\nHarnessMM visual harness RSI study\n\nThe eight MiniWoB++ harness RSI iterations in Figure 5 evaluate HarnessMM. Every RSI iteration evaluates all 32 training tasks\nonce per arm, with identical task instances and actor seed. The actor is Qwen3.5-9B; inputs are full screenshots, the action limit\nis 15 and the episode allowance is 180 seconds. Single-use EDG permits one future execution per authored graph. HarnessMM\nretains eligible nodes across later tool-feedback boundaries. Both arms share the iteration-specific author prompt, public\nscreenshot context, coordinate compiler, visual guards and fallback. These shared components develop across chronological RSI\niterations. The curve measures training-guided harness RSI; it is not a series of autonomous optimizer rounds or held-out test\nevaluations.\n\nIteration\n1\n2\n3\n4\n5\n6\n7\n8\n\nSuccess (%)\nSingle-use EDG HarnessMM\n37.50\n34.38\n90.63\n84.38\n90.63\n90.63\n93.75\n90.63\n\nTokens/task (k)\nSingle-use EDG HarnessMM\n\n34.38\n34.38\n90.63\n84.38\n90.63\n93.75\n93.75\n90.63\n\n3.91\n3.74\n1.51\n1.88\n1.50\n1.37\n1.58\n1.51\n\n3.26\n2.95\n1.10\n1.71\n1.10\n0.96\n1.26\n1.06\n\nCalls/task\nSingle-use EDG HarnessMM\n3.56\n4.00\n1.47\n2.06\n1.47\n1.41\n1.66\n1.47\n\n3.00\n3.25\n1.06\n1.91\n1.06\n1.00\n1.34\n1.03\n\nTable 2: Complete paired measurements for the eight RSI iterations on all 32 training tasks per arm. Success uses native rewards; tokens\ninclude all task executions, including unsuccessful ones.\n\nTokens/task (k) equals complete actor input-plus-output tokens divided by 32 and 1,000. Calls/task counts every measured\nphysical model request, including authorship, native reasoning, retained callbacks and paid fallbacks, divided by all 32 tasks.\nEvery episode’s authorship, native reasoning, control, fallback and unsuccessful requests is charged. Optimization, candidate\nselection, validation and historical research costs are outside these per-iteration execution measurements and remain in the\nseparate complete ledgers. Accordingly, the curve measures candidate execution efficiency. The paired interval at the eighth RSI\niteration resamples tasks within the same fixed task set; there is one execution per task and arm.\n\nB\n\nImplementation and selection\n\nB.1\n\nQA profiles and execution\n\nAt round k, the QA harness stores profiles hD,k (DELETE) and hM,k (MODIFY). Initially, MODIFY adds five answernormalization rules to DELETE; the remaining four sections and answer contract are identical. A frozen linear head selects\nMODIFY when g(x) ≥ κ, and DELETE otherwise. Its eight input-only features are context token count, document count,\nquestion character and token counts, question–context lexical coverage, quoted-span and relation-cue indicators, and named-token\ncount. The archived threshold maximizes discovery exact matches using five-fold out-of-fold predictions, subject to at least 8%\ntoken saving and at most 5% harm relative to SkillOpt. Deployment reads frozen hD,K and hM,K without a router-model call,\ngenerated answers or reference labels. Interactive tasks instead use their task-family instructions.\nThe full-source QA adapter retrieves original rule sentences from the selected profile, retaining normalization and answerformat rules. It supplies these sentences and the complete context to a draft call with a 512-token output cap. Format,\nsource-location and explicit answer-type checks either accept the draft unchanged or restore the complete selected profile in a\nsecond actor call. Explicit negative/comparison questions and multiple blanks bypass the draft. All draft and fallback tokens are\ncharged. Earlier compact-context and model-selected variants have separate identities (Appendix J).\n\nB.2\n\nRecorded rule-development protocol\n\nThe historical textual pilot uses the original routed QA adapter and 32/32/32/128 source-group-disjoint tasks for training, inner\nvalidation, meta validation and the final screen. This four-role protocol predates the custom 20/20/60 comparisons. Training\nfeedback contains responses, official scores, token usage and successful cases to preserve. A fixed compiler applies proposed\nedits to named rule slots after checking the parent hash, schema, permitted fields and size constraints. It rejects executable code,\nanswer literals and case-specific facts. Retained rules and answer contracts keep their source bytes; invalid proposals alias the\nparent and remain charged.\n\n12\n\n\fA child passes the harness gate only if it changes the harness, preserves the parent’s EM and F1 on both validation splits,\nuses at most 90% of Original’s inference tokens on both, and improves at least one quality or cost endpoint over the parent.\nFixed-policy RSI ranks passing children by meta-validation EM, then F1, then lower cost. Rejection retains the parent; the next\nround obtains fresh training feedback from the retained harness. Actor weights, routing, execution code, task interfaces, scorers\nand output caps stay fixed.\nThe restricted MetaRSI branch [38] also proposes a strategy π\nek from training feedback. Old and new strategies receive the\nsame parent and feedback and produce separate children. Joint acceptance requires a changed strategy and a distinct child that\npasses the harness gate, matches or exceeds the old-strategy child’s EM and F1 at no greater cost on each validation split, and\nimproves at least one endpoint strictly on meta validation. Rejection retains (hk , πk ), including any previously accepted strategy\nchange; ordinary RSI keeps πk = π0 . Protected validation examples and answers never enter proposal prompts. Frozen final\nreleases must improve EM and F1 over both Original and fixed-policy RSI, save at least 10% of Original’s inference tokens, and\nuse no more tokens than fixed-policy RSI. These final-screen requirements are separate from round acceptance.\nBoth branches run two rounds with two child opportunities per round and perform no harness RSI; MetaRSI also accepts\nno strategy update. Six of eight proposals fail the literal-overlap guard; the two valid three-rule edits add 0.06 and 0.06\ninput Tokens/task (k) on the 32 inner-validation tasks without improving quality or output usage. Original, fixed-policy\nRSI, restricted MetaRSI and Original A/A consequently retain identical final request bytes: each solves 78.91% of tasks\n(78.91 EM, 86.59 F1) using 3.02 Tokens/task (k). Detailed acquisition costs are retained in the external reproduction records.\nUnchanged deployment cost gives no finite token break-even. The complete eight-arm screen and stage ledger remain in\ngenerated/meta_pilot_appendix.tex and generated/meta_optimization_costs.tex.\n\nC\n\nExecutable continuation implementation and historical adapters\n\nGDR reuses the authored graph across tool transitions, while CCS executes admitted actions in place of slow callbacks and\ncertifies their removal. The EDG notation names the executable conditional graph represented by the coding adapter’s serialized\naction bank. Bank hashes identify the serialized graph in the archived audit. The native adapter checks predecessor completion,\nliteral arguments and observed public guards before executing a node. Receipt errors, nonzero return codes, missing dependencies\nand unknown or false guards return control to slow reasoning. A unique eligible node takes a deterministic path with zero\nselector tokens. Frozen adapter settings and source identities remain in the external reproduction artifacts. The complete actor\nledger includes authorship, selection, fallback and recovery.\nThe complete MBPP training set (85 tasks) SDK comparison records 153 certified substitutions and 62 public-guard\nconfirmations, with all physical actor costs reconciled. Its policy is the historical structured literal-bank v23 candidate. The\ncomplete selected MBPP test set (257 tasks) comparison in Appendix L evaluates the separately frozen v66 candidate. The\nCodex compound-bank v10 candidate records three certified substitutions but does not pass the broader adoption gate. The\ntraining attribution audit appears in Appendix F.3. The historical companion-policy vocabulary includes DELETE, BYPASS,\nSUBSTITUTE, COMPACT, CACHE/REUSE, TERMINATE and COLLAPSE. It describes the surrounding configuration search,\nrather than additional modules of the EDG/GDR/CCS execution method. Recovery and finalization rules retain their declared\nper-run settings.\n\nC.1\n\nExecution variability and paired instruction effects\n\nFor task t, let xt be its fixed input: the task request, supplied context, and, for a visual task, an image vt . Running the same task\nmore than once need not produce the same answer. We write the r-th complete execution as yt,r = Runθ (xt ; h, zt,r ), where\nRunθ combines slow actor calls, fast selection and tool execution operators. The input xt , harness h, and actor parameters θ are\nfixed across repeats; zt,r captures execution conditions such as scheduling, co-batched requests, cache state, and implementationlevel variation. A client can prescribe a concurrency and submission schedule s, but cannot thereby fix the server’s microbatch or\nnumerical path. Below, i indexes decisions within one execution, and k indexes offline rule-development rounds.\nTo measure an instruction edit, we compare the original and edited harnesses under the same prescribed schedule. Let mb be\nbenchmark b’s official metric for an answer or episode, and let yt (h, s) denote the response under harness h and schedule s. The\nexpected score change from replacing h with h′ is\nτt (h′ , h; s) = E[mb (yt (h′ , s)) − mb (yt (h, s))] .\n\n(10)\n\nThe expectation averages over execution conditions within that schedule. Repeated paired executions help separate the edit’s\neffect from run-to-run variation; one correct-to-wrong transition cannot do so. We report each benchmark and quality endpoint\nseparately.\n\n13\n\n\fC.2\n\nInputs, outputs, and integration\n\nHarnessMM wraps an existing decision procedure H0 and preserves its original input and output contracts. The developer\nsupplies a task adapter; deployment then accepts the same task request x as the original agent. The adapter builds public state\nsi from the supplied context, current observation, and completed interaction history. It exposes candidate decisions Di and a\npredicate ci (d) specifying which candidates have local support.\nA decision has a type and a payload. We write an action decision as Act(a): it executes a tool command and, if the task\ncontinues, receives feedback for the next decision. A terminal decision Finish(y) returns an answer and ends the task. Fixedcontext QA is the terminal-decision case of this interface. The adapter defines the domain semantics, while the shared controller\nowns support admission, candidate membership checks, commitment, and actor fallback.\nThe original actor parameters, original tools, and evaluator remain fixed. The integration requires a public-state adapter and\ndoes not assume that arbitrary task semantics can be inferred automatically.\nThe offline RSI loop follows a fixed proposal strategy. The current harness runs on training tasks; their execution feedback\nguides candidate instruction edits. Disjoint validation tasks determine which candidate to retain, and the retained harness supplies\nthe next round’s training feedback. The selected configuration is frozen before final evaluation and deployment. Appendix B\nrecords the development protocols.\n\nC.3\n\nShared commit-or-defer control\n\nAt each decision, the adapter prepares a candidate dbi and its public support record. The controller applies\n(\ndbi ,\ndbi ∈ Di , ci (dbi ) = 1,\ndi =\nH0 (x, Ii , si ), otherwise.\n\n(11)\n\nHere Ii is the instruction text supplied to the original actor. An empty candidate set, unsupported state, or rejected candidate\ntakes the actor path. Both routes return the same typed decision to the original interface, which commits it once. Nonterminal\naction feedback updates si+1 ; a terminal answer ends execution without another state update.\nCandidate production and support checks have separate roles. An action adapter can propose a tool command without calling\na model; a QA adapter first pays for an actor-generated draft. The controller records the selected route and rejection reason, and\nthe cost ledger includes all model calls made by either adapter. The benchmark scorer evaluates the selected decisions.\nFor action tasks, the initial actor call supplies the first transition. Local execution then applies at every supported state. An\nexplicit QA bypass supplies no candidate and skips draft generation, so the controller invokes the original answering procedure\ndirectly.\n\nC.4\n\nAction adapter: CoT-authored conditional execution\n\nThe coding adapter separates constructing an action from deciding whether the current feedback permits it. In a slow turn,\nthe original CoT actor [41] emits a terminal command and a bounded action bank, the serialized EDG. Each bank entry is\nb = (ℓ, p, g, a): a label ℓ, a predecessor p, a condition g on public tool results, and literal tool arguments a. A predecessor is the\ncurrent root command or an earlier entry, so the bank defines an acyclic execution graph. The actor declares future commands\nonly when their arguments are already determined; unseen data requires a new slow turn.\nAfter a command returns, the adapter exposes entries whose predecessor was that command. The fast selector receives the\noriginal user request, original tool schema, declared candidates and actual public results. It returns one candidate label or an\nabstention symbol. A selected label compiles into exactly that entry’s tool command, which executes once. The selector cannot\ninvent commands or revise arguments. Empty banks, unparsed results, exceeded bank limits and abstention take the original\nslow path. Following each fast action, its new result determines the next eligible entries.\nThe selector uses the same DeepSeek backbone as the slow actor, disables reasoning for the selection request, and generates\none control token with model-reported log probabilities. Candidate membership and tool arguments are checked before execution.\nBenchmark tests evaluate the typed selection interface. The CoT-only control uses identical instructions and authors the same\nbank format with fast selection disabled.\nThe fast request retains public constraints, candidate IDs, complete arguments and the observations needed for their guards.\nIt omits the full tool catalog, skill library, trajectory and slow rationale; unsupported states defer before selection. Candidate\nconstruction, typed selection and context compaction retain their separate mechanism identities and complete costs. Historical\nadapter settings and interface probes remain in the external reproduction artifacts.\nComplete-task cost includes the slow actor’s bank authorship, every fast input and control token, failures and slow fallbacks.\nCached inputs remain counted. The single-encoding policy supplies each decoded tool result once to the fast selector and\nbinds it to the original receipt hash; the full original history remains available to slow reasoning. Noncanonical or unsupported\n\n14\n\n\fobservations defer to CoT. Section 5.3 distinguishes the implemented mechanism, its TRAIN comparison and final held-out\nevidence.\nThe historical ALFWorld adapter has a different candidate producer: handwritten state tracking records pickup, transformations\nand placement, then selects the first tool action in the highest-priority supported group. It uses neither model selection nor\nprobability scores. Table 8 and Figure 4 disable that controller and compare instructions under a common actor. These\nmeasurements are retained as instruction and historical-controller evidence.\n\nC.5\n\nTerminal adapter: answer acceptance\n\nAn answer adapter supplies a terminal candidate to the same controller. The recorded text-QA adapter first generates a draft\nfrom the complete source context and retrieved original rule sentences, with fixed output budget Ldraft . Its support predicate\nchecks the answer format, source location, and explicit answer type. Acceptance returns the draft unchanged. Rejection calls\nthe original actor with the full selected instructions. An input-only applicability check bypasses draft generation for explicit\nnegative/comparison questions and multiple blanks.\nThe draft is a model call, and fallback is a second model call. The original QA baseline has no separate verifier call to remove.\nThis adapter can change request and response lengths while adding calls on rejected drafts; the action adapter instead avoids\nsupported reasoning calls. Both are measured with complete-task accounting. Stored DELETE/MODIFY routing, source-rule\nretrieval, and the independently evaluated offline rule-development loop are specified in Appendix B.\n\nD\n\nExecution contract, algorithm and evidence attribution\n\nHarnessMM replaces repeated reasoning calls with stored actions through a contract between a slow author, a persistent executor\nand the existing native harness boundary. A directed action graph alone is a standard executable planning representation. Here\neach admitted continuation has immutable arguments, public feedback can only change its readiness, and the native request\nledger records omission of a specified reasoning callback. These restrictions make reuse inspectable. They do not imply that\nevery authored action is correct or every graph lowers cost.\n\nD.1\n\nState and execution algorithm\n\nA graph instance contains an authored root action, a finite acyclic set of future nodes, literal native arguments, dependencies and\npublic guards. Runtime state contains the completed native receipts, the remaining graph nodes and the public episode history.\nGraph content and runtime state are different objects: completing a predecessor changes the latter without rewriting the authored\naction.\n1. At a native decision boundary, register the parent callback and ingest the preceding public tool receipt. Validate its\nassociation with the action that produced it.\n2. Construct the eligible set from unresolved nodes whose dependencies are complete, public guards pass and arguments meet\nthe adapter’s closure checks.\n3. If exactly one node is eligible, use the declared deterministic route. If several are eligible, the configured typed selector\nchooses a candidate ID or abstains. Charge any model-based selector input and output.\n4. On admission, execute the selected literal arguments through the original native interface. Record the result and compare\nit with the authored node. Emit an omission certificate only after checking execution and absence of the registered slow\nrequest. Mark the node completed and retain the unresolved remainder of the graph.\n5. On rejection, an empty set or abstention, invoke the original slow actor with its public task context. Record the author\nrequest and any fallback. A newly authored graph replaces the unresolved remainder; already executed receipts remain in\nthe episode history.\n6. Continue under the common benchmark limits. A terminal answer uses the same commitment point and stops. The native\nscorer evaluates the complete task; the request ledger charges every paid call.\nThis algorithm describes the full mechanism. The coding adapter uses literal terminal commands and observed tool results.\nInstruction-only and answer-acceptance studies use different candidate producers, stated in Appendix C; they cannot be treated\nas independent demonstrations of persistent coding graphs.\n\n15\n\n\fD.2\n\nClosure, guards and structural invariants\n\nLiteral closure and semantic closure. Literal closure is a syntactic restriction: all executable arguments have concrete values,\nwith no placeholder to bind from unseen feedback. It is checked by the action schema and candidate-membership audit. Semantic\nclosure is stronger: prior reasoning has determined the action’s meaning and its future applicability is captured by the declared\nguard. A concrete command can still be semantically wrong. General semantic closure is therefore not established merely by\nparsing literal arguments.\nFor a fixed authored decision d and public state s, let valid(d, s) mean that the action has its intended task meaning at that\nstate. Interpreting guard acceptance as semantic permission additionally assumes\neligible(d, s) = 1 =⇒ valid(d, s).\n\n(12)\n\nThis implication depends on the adapter and the authored guard. The implementation enforces the left-hand checks; complete\nnative task evaluation measures their quality consequences. There is no statewise correctness guarantee for arbitrary tools or\ntasks.\nArgument immutability. Assume the configured adapter uses the validated graph and native interface, the graph objects are\nnot modified after authoring, and the recorded receipts are faithful. A reused node executes the literal arguments authored for\nthat node. The typed selector returns only a node ID; it has no argument-generation interface. Native dispatch reads the selected\nstored arguments, and certificate verification compares those values with the tool receipt. This establishes an execution invariant\nunder the stated assumptions, independently of task success.\nDependency-respecting execution. Initially, no future node is completed. At each transition, eligibility admits only a node\nwhose predecessor receipts are in the completion map. A completed node is removed from the unresolved set. Induction over\ntransitions therefore gives predecessor-respecting execution with at most one dispatch per node instance. The initial acyclicity\ncheck prevents a future node from requiring its own completion. A later author call can create an identical graph, but it is a\nseparate paid authoring event.\nOmission evidence. A valid certificate binds the authored graph instance, selected node, exact native arguments, predecessor\nreceipt, tool receipt and registered callback. The physical request ledger independently establishes absence of the specified slow\nrequest at that boundary. This is a structural observation about the executed route. It does not establish an identical counterfactual\ntrajectory, an absent call’s token quantity, or a task-quality improvement. Comparisons on the same full task sets measure these\neffects.\n\nD.3\n\nBreak-even analysis without counterfactual token attribution\n\nLet A denote additional author and selector actor tokens and F additional fallback tokens.\nIf K eliminated callbacks would\nP\nhave costs c1 , . . . , cK , a same-trajectory token calculation gives net saving only when j cj &gt; A + F . Under the simplifying\nassumption of a common callback cost c &gt; 0, the condition is K &gt; (A + F )/c. This relation describes the dependence on reuse\ncoverage; it is not a prediction of measured saving, because the omitted calls are not executed and the substituted trajectory can\ndiffer.\nThe reported estimator is instead the difference in total tokens across all episodes for each method. Every arm uses the\nsame independent task membership and execution contract, and each arm’s numerator includes its actual author, selector, slow,\nfinalization and paid unsuccessful calls. Shared authoring is assigned once to its declared population. Cached provider input\nremains counted under the token protocol. CPU guards and native tools affect time and behavior, but their work cannot be added\nto a token total without an independently defined resource conversion.\n\nD.4\n\nNovelty and closest mechanisms\n\nReWOO separates planning from tool observations and supports dependency-bound evidence variables [43]; LLMCompiler\nplans and dispatches tool dependencies for parallel execution [19]. Voyager develops a library of executable skills reused across\ntasks [40]. ActionEngine constructs application-level state-machine memory, compiles task programs and repairs execution\nreactively [52]. HarnessMM shares executable planning and reuse with these approaches. Its narrower contract stores episodespecific literal actions, lets public receipts activate them without argument synthesis, and binds observed native execution to a\nremoved harness callback. We do not compare these planning systems experimentally, so the present evidence establishes the\ncontract and benefits against the declared native harnesses rather than superiority over all executable planners.\n\n16\n\n\fD.5\n\nCore method and companion configuration map\n\nThe core execution transformation has three operations: author literal future actions, retain and activate them using public\nfeedback, and dispatch an eligible action while omitting its registered callback. Its controller selects an action route. A\nsurrounding configuration fixes the author prompt, context serializer, native adapter and finalization rules before the run. Those\nsettings determine what the controller receives; the controller does not search over them during an episode.\nThe reported studies use the following configurations. A row with no persistent execution is a companion-policy study, even\nwhen its selected policy carries the HarnessMM display label. The original run identities and exact configuration files remain in\nthe external reproduction bundle.\nStudy\n\nFixed surrounding intervention\n\nRole of executable reuse\n\nCoding harness pairs\n\nLiteral-bank author prompt, compact public context and\nharness-specific finalization\nCommon author prompt, schema, public context, native\ntools and limits\nSelected task-family and general instructions under a\ncommon actor\nFrozen input-only profile routing, retrieved rule\nsentences, full-source draft and paid fallback\nAnswer-first prompt, disabled thinking and reduced\noutput cap\nFrozen compiled decision policy, shared authorship and\ndomain fallback\nArchived AutoSaddler-derived instruction policy\n\nEDG/GDR/CCS enabled; complete pair\nmeasures the integrated configuration\nChange graph execution, persistence or callback\nretention to test the core mechanism\nInstruction-only comparison; local controller\ndisabled\nTerminal answer acceptance; no persistent\nmulti-action graph\nOne call per question; no callback substitution\n\nMBPP mechanism\nablation\nALFWorld\nSearchQA\nLiveMath\nAIME\nTerminal-Bench\noverview\nGAIA2\n\nFrozen literal-bank authoring and public-context\nhandling\n\nMeasures the selected policy; execution or\nabstention follows its fixed applicability rules\nInstruction-policy snapshot; no certified EDG\nexecution claim\nIntegrated native execution; verified fast actions\nand complete costs reported together\n\nThis map also separates cost mechanisms. Shorter prompts or context change the tokens in a remaining call; EDG execution\nchanges whether a registered call occurs. The MBPP ablations keep instruction, context and finalization settings fixed while\nvarying graph reuse and callback execution. No experiment in this paper trains a general policy that dynamically composes these\noptimization techniques.\nThe token-efficiency prompt and objective apply to every comparison arm, including No Skill, SkillOpt, AutoSaddler, the\nnative industrial harnesses and HarnessMM. No Skill retains the token-efficiency instruction while omitting the added skill\npolicy. Every arm is instructed to reduce complete-task input-plus-output token consumption while preserving task performance.\nMethod-specific mechanisms and native execution limits follow the configurations above.\n\nD.6\n\nWhich experiment supports which claim?\n\nEvidence\n\nMeasured intervention\n\nSupported interpretation\n\nHumanEval and MBPP harness pairs\nMBPP single-use graphs\nMBPP retained callbacks\n\nSelected HarnessMM configuration versus its original harness\nLimit each graph to one reused action\nInvoke the registered slow callback\nwhile retaining graph execution\nNative execution certificates\nMatch authored actions, public receipts\nand absent requests\nALFWorld instruction compar- Change instructions under a common\nison\nactor\nSearchQA and AIME studies\nBenchmark-specific selected policies\nand cost components\n\nComplete task quality and actor cost for that\nimplementation\nEffect of retaining graphs across tool calls\nEffect of callback removal with tasks and\nexecution settings fixed\nStructural execution and callback omission\nEffect of selected instruction content, not\nEDG substitution\nTheir declared quality–cost trade-offs, with\nactual phases retained\n\nThe integrated coding results also change context management and finalization. Total call-count reduction can therefore exceed\ncertificate counts; these quantities are not expected to agree. The MBPP ablation supplies a more direct intervention test but\ndoes not isolate the intrinsic value of recording a certificate from the value of exclusive routing. Certificates are a measurement\nmechanism, and their logging overhead is included where it makes model calls.\n\n17\n\n\fD.7\n\nHistorical development evidence\n\nHistorical MBPP comparisons on 85 training tasks provide development mechanism evidence: Codex improves from 91.76% to\n94.12% at 67.21 versus 59.78 Tokens/task (k); DeepSeek Harness improves from 85.88% to 94.12% at 15.46 Tokens/task (k)\nversus 11.91 Tokens/task (k). The DeepSeek candidate records 153 certified substitutions and 62 public-guard confirmations.\nAcross 32 GAIA2 development scenarios, Codex improves from 37.50% to 40.62% at 907.06 versus 825.99 Tokens/task (k),\nand DeepSeek Harness improves from 40.62% to 46.88% at 891.75 Tokens/task (k) versus 750.53 Tokens/task (k). Figure 3\npreserves the earlier four panels and adds two separate MiMo panels; the appendix records their evidence phases.\nThe w/o skills condition averages 41.69% at 34.10 Tokens/task (k); mismatched-family and neutral instructions of equal token\nlength reach 48.34% at 43.28 Tokens/task (k) and 41.37% at 43.26 Tokens/task (k). HarnessMM gains 24.00 points over the w/o\nskills condition while using 7.81% fewer tokens, and gains 24.33 points over neutral text with 27.33% fewer tokens. Every action\nuses the common actor and the same 50-step cap. Whiskers show the observed seed range; task identities are not independent\nacross repetitions. Appendix I.3 preserves all per-seed counts, paired intervals and costs, including the two original seed-9401\nreference conditions reused exactly once. These instruction ablations measure content effects under a common actor.\n\nD.8\n\nComplete quality–cost trade-offs\n\nAcross 18 Terminal-Bench development tasks, Codex success falls from 77.78% to 55.56% while Tokens/task (k) fall from\n3426.78 to 1089.95; DeepSeek Harness falls from 55.56% to 50.00% at 1586.15 versus 1144.32 Tokens/task (k).\nA complete CoT/Jev TEST comparison executes verified fast actions in 94.44% of episodes, yet costs 127.07% more than the\noriginal harness and loses 7.29 success points. It saves only 1.04% against CoT-only, with input tokens accounting for 98.53%\nof the actor ledger. The coding control on 18 training tasks likewise records 10, 12 and 13 successes for the original harness,\nCoT-only and CoT/Jev, while CoT/Jev costs 30.37% more than the original harness and 3.74% more than CoT-only. Appendix H\npreserves the complete controls and their costs.\n\nD.9\n\nReproducibility and use scope\n\nThe executable adapter requires a declared native boundary, literal action serialization, public-state guards, callback registration\nand complete request logging. External reproduction artifacts retain frozen task memberships, model and software identities,\ninteger costs, selection configuration and complete native outcomes. Shared optimizers use training evidence; validation selects\namong frozen candidates, and selected held-out configurations remain unchanged. Benchmarks with historical development\npopulations retain their actual phase rather than being relabeled as final tests.\nThe controller preserves the parent’s tool permissions and action space. It does not enlarge those permissions or establish\na general safety guarantee. Incorrect authorship, incomplete guards and changed tool semantics can affect task quality even\nwhen the structural certificate is valid. These cases are handled by the native evaluator and the declared quality constraint, not by\ntreating omission evidence as correctness evidence.\n\nE\n\nSecond ablation: GDR and CCS\n\nWe evaluate four conditions on the complete MBPP-sanitized release using a custom 85/85/257 training/validation/test partition,\nseed 20261005. DeepSeek Harness dsh-v0.2.0-rc.1 uses the shared backbone. All arms share the author prompt and schema,\npublic context, native buffered parser, tools, decoding settings, one attempt per task, two workers per arm, and 300-second\nactor/30-second verifier limits. The tool working directory is /app; the latest actual public-check call and result remain in\npublic context. Authored public assertions must match the original problem line by line. Rejected banks retain their authoring\ncost and return to paid native slow reasoning. Disabled-thinking requests use the same transport mapping across arms; task\nreasoning and output limits remain fixed.\nTRAIN supplies method revisions. The sole TRAIN-qualified candidate is frozen before validation; the predeclared aggregate\ncapability criterion selects it before TEST. Validation trajectories and test outcomes supply no method revisions. The final\ncomparison contains all 1,028 task-arm executions. Tokens/task (k) include physical input and output from authorship, selectors,\ncontrol, native recovery and unsuccessful executions, divided by 257 and 1,000.\nFull HarnessMM combines GDR and CCS: GDR retains the executable graph across tool transitions; CCS replaces slow\ncallbacks with authored actions and certifies their removal. W/o GDR (single-use EDG) discards the graph after its first certified\nexecution, preserving its author and full authoring cost. W/o CCS (callbacks retained) retains a paid slow callback to regenerate\neach selected tool action. This intervention isolates callback substitution, not the independent benefit of certification. Without\nEDG execution preserves the author and its cost while disabling executable graph use.\nFull HarnessMM performs 407 certified bypasses; 201 graphs are reused twice. W/o GDR performs 212 bypasses and discards\n212 graphs. The retained-callback condition performs 257 paid regenerations and zero certified bypasses; disabling EDG\n18\n\n\fArm\nFull HarnessMM\nW/o GDR\nW/o CCS\nW/o EDG execution\n\nCorrect (%)\n\nTokens/task (k)\n\nBypass/task\n\n93.77\n93.00\n93.39\n95.33\n\n13.17\n18.03\n16.37\n16.19\n\n1.58\n0.82\n0.00\n0.00\n\nTable 3: Results on all 257 test tasks after the common public-assertion fidelity repair. Every arm includes all 257 tasks and complete actor\ncosts.\nFull versus control\n\n∆ correct (pp)\n\nCost saving (%)\n\nW/o GDR\nW/o CCS\nW/o EDG execution\n\n+0.78 [-3.50, +5.06]\n+0.39 [-2.72, +3.50]\n-1.56 [-5.45, +2.33]\n\n26.91 [4.01, 45.57]\n19.52 [-2.07, 38.68]\n18.62 [-9.53, 39.78]\n\nTable 4: Task-paired differences and full-population cost savings, with Bonferroni-adjusted 98 13 % bootstrap intervals over three contrasts. All\narms are resampled jointly by independent task for 10,000 draws, seed 20261009.\n\nproduces zero bypasses. Full HarnessMM solves two more tasks than W/o GDR while reducing measured complete cost by\n26.91%. Compared with retained callbacks it solves one more task at 19.52% lower cost. Relative to disabled EDG, its 18.62%\ncost saving accompanies four fewer correct tasks.\nThe reuse cost interval excludes zero; all three correctness intervals include zero. Callback and EDG cost intervals include\nzero. One execution per task quantifies task variation, rather than between-run variation.\n\nE.1\n\nEarlier execution ablation\n\nFigure 4 complements the ALFWorld instruction ablation with execution interventions on MBPP-sanitized [2]. Instructions,\nauthoring format, public guards and dependency checks are fixed across the HarnessMM conditions.\nE.1.1\n\nBenchmark and evaluation settings\n\nWe use the complete 427-task MBPP-sanitized release with a custom 85/85/257 training/validation/test partition, seed 20261005.\nDeterministic rounding implements the required 20/20/60 ratio; task membership is disjoint and common to all arms. The parent\nis DeepSeek Harness dsh-v0.2.0-rc.1 with the shared backbone. All conditions share the public task interface, native tools,\ndecoding settings, two workers per arm, one execution per task and 300-second actor/30-second verifier deadlines. Correctness\nevaluates every released assertion. Reference implementations are absent from the actor workspace.\nTraining supplies the structured author and frozen intervention definitions. The complete training comparison uses 85 tasks;\ndisjoint validation selects frozen candidates without returning trajectories or failures to optimization. The historical evaluation\nuses the complete 257-task test population for every arm. Test outcomes supply no selection or revisions; the external archive\nretains every arm and execution.\nE.1.2\n\nExecution interventions\n\nThe original harness uses ordinary slow reasoning without EDG authoring or fast routing. Full HarnessMM combines the\nstructured EDG, public eligibility checks and certified callback bypass. W/o GDR (the single-use GDR control) preserves the\nauthor and graph capacity, but discards unused nodes after its first certified execution. Unused authored nodes still incur cost.\nThe W/o CCS condition keeps fast selection but asks the same slow actor to regenerate exactly one tool action before execution.\nChanged arguments invalidate dependent nodes; invalid regeneration returns control to slow reasoning. A retained callback\nreceives no substitution certificate. Graph authorship, selector input and control, regeneration, fallbacks and unsuccessful\nexecutions all contribute to Tokens/task (k), normalized by the full 257-task population. Development and selection costs remain\nseparate from final execution.\nE.1.3\n\nComplete results and paired uncertainty\n\nFull HarnessMM reduces cost by 76.19% relative to the original harness and increases observed correctness by 2.72 percentage\npoints. The paired 95% interval for the correctness difference is [−1.95, 7.39] points; it does not establish a significant accuracy\ngain. Full HarnessMM makes 459 certified substitutions, with at least two bypasses in 228 authored graphs. W/o GDR (the\nsingle-use GDR control) makes 237 substitutions and discards 237 graphs after one use. Recorded slow calls per task rise from\n19\n\n\fArm\n\nCorrect (%)\n\nTokens/task (k)\n\nBypass/task\n\n87.55\n90.27\n91.44\n91.83\n\n67.84\n16.15\n15.87\n17.82\n\n0.00\n1.79\n0.92\n0.00\n\nOriginal harness\nFull HarnessMM\nW/o GDR (the single-use GDR control)\nW/o CCS (callbacks retained)\n\nTable 5: Results on all 257 test tasks. A bypass is a certified eliminated slow callback. Cost includes all actor input and output over all tasks.\nRemoval versus full\nW/o GDR (the single-use GDR control)\nW/o CCS (callbacks retained)\n\n∆ correct (pp)\n\nCost ratio\n\n+1.17 [-3.11, +5.45]\n+1.56 [-3.11, +6.23]\n\n0.98 [0.81, 1.22]\n1.10 [0.90, 1.39]\n\nTable 6: Task-paired differences and cost ratios relative to full HarnessMM, with the original five-condition study’s Bonferroni-adjusted 98 13 %\nbootstrap intervals. We resample all 257 tasks jointly across conditions for 10,000 draws, seed 20261007. Cost ratios recompute cohort totals.\n\n4.49 for full HarnessMM to 5.42 for the single-use GDR control and 6.41 when callbacks are retained. The retained-callback\ncondition records 281 callbacks and 280 regenerated actions, with zero certified bypasses.\nThe additional EDG reuse is active, but the single-use GDR control has slightly higher correctness and lower aggregate cost in\nthis comparison. Retaining slow callbacks increases measured cost by 10.34% and correctness by 1.56 points; the paired intervals\ninclude equal cost and correctness. One execution per task measures task-level variation rather than run-to-run variability.\n\nF\n\nHumanEval mechanism attribution and causal comparison\n\nF.1\n\nHumanEval results\n\nAll four arms use the same 98 test tasks.\nCondition\nCodex\nCodex+HarnessMM\nDeepSeek Harness\nDeepSeek Harness+HarnessMM\n\nSuccess (%)\n\nInput/task (k)\n\nOutput/task (k)\n\nTokens/task (k)\n\nPaid calls\n\n90.82%\n90.82%\n71.43%\n85.71%\n\n64.47\n43.66\n92.45\n7.09\n\n2.26\n3.35\n3.83\n4.53\n\n66.72\n47.02\n96.28\n11.62\n\n524\n499\n954\n415\n\nThe Codex+HarnessMM and DeepSeek Harness+HarnessMM conditions contain 18 and 147 unique valid substitution certificates,\nrespectively; both original harnesses have zero. Each binds literal arguments, an original tool, a receipt hash, a predecessor and a\nbypassed callback ID; the audit checks no intervening slow request and unchanged slow-sequence count at the boundary. The\ncertificate rates are 18/98=0.18 and 147/98=1.50 per task. Complete execution cost is 11.62 Tokens/task (k); it includes the\nwhole cohort rather than only certified substitutions.\nOn the independent MBPP-sanitized test set (257, tasks) DeepSeek Harness and its HarnessMM condition achieve 232/257\nand 236/257 successes, respectively. Paid model calls total 1,633 and 1,088, and valid certificates total zero and 472. Complete\ncost is 53.98 and 10.61 Tokens/task (k), respectively. These benchmark populations are reported separately.\nThe 25 and 539 fewer paid calls are differences between complete runs on the same tasks, not counts of locally certified\ncallback elimination. Input/task (k) declines by 20.80 for Codex and 85.35 for DeepSeek; output/task (k) increases by 1.10 and\n0.70. The net Tokens/task (k) reductions are 19.71 and 84.65.\nPaired task outcomes give 5 improvements, 5 regressions and 88 unchanged outcomes for Codex; DeepSeek gives 22, 8 and\n68. The two-sided exact McNemar test conditions on the discordant tasks and yields p = 1 and p = 0.0161248, respectively.\n\nF.2\n\nAdditional study scope\n\nLocal decisions require a task-specific public-state adapter and support rules. The interactive measurements use textual\nALFWorld observations; they do not establish visual-agent improvement. The ALFWorld instruction comparison transfers\narchived optimized policies without rerunning their optimizers. The custom test uses one seed and shares some floorplans across\npartitions. The ALFWorld comparisons and text-QA studies use previously exposed public data. GQA grounding and generic\ninstructions of equal token length both score 65% in the small visual pilot. The separate rule-development pilot accepts no\nupdates.\n\n20\n\n\fF.3\n\nTRAIN substitution attribution\n\nThe attribution audit uses complete training set (32 tasks) comparisons only. Cached inputs, failed episodes, fast requests and\nslow fallback remain charged. The shared author is reused physically and charged once to each bank arm. No validation or TEST\ntrajectory supplies these diagnoses. In v20, 281 fast attempts produce 249 locally bypassed slow callbacks; 32 abstentions incur\nRun/arm\nOriginal harness\nCoT-only v20\nCoT/Jev v20\nCoT/Jev v22\nCoT/Jev v23\n\nSR (%)\n\nTokens/task (k)\n\nSlow/ep\n\nFast/ep\n\n40.62\n28.12\n34.38\n43.75\n37.50\n\n891.75\n1351.62\n1602.29\n753.13\n1071.85\n\n15.69\n21.66\n19.31\n12.62\n15.72\n\n0.00\n0.00\n8.78\n1.69\n5.28\n\nTable 7: Complete TRAIN costs and scores. Slow and fast calls are counted separately. These are development results.\n\n212.17 slow-fallback Tokens/task (k). Fast requests cost 50.46 Tokens/task (k), including 18.91 input Tokens/task (k). Their\nremoval alone would save only 1.18% of the complete bank-arm cost. The arm still makes 618 slow calls against 502 baseline\nattempts. It uses 79.68% more tokens and loses 6.25 success points despite fast actions in 93.75% of episodes.\nThe passive benchmark audit verifies 227 local substitutions in 31 episodes; 22 compiled actions in one failed SDK episode\nremain unresolved. Bank-bearing slow requests jointly perform reasoning and candidate construction, so their full request cost is\nnot an isolated authoring cost.\nThe v22 revision reduces slow calls from 15.69 to 12.63 per episode and saves 15.55% at 43.75% versus 40.62% baseline\nsuccess. Renewing banks at every slow step in v23 raises cost by 20.20% and loses one success. The full training attribution and\nall historical interface probes remain in the external evidence and reproduction artifacts.\n\nF.4\n\nAdditional related-work and adapter context\n\nFinally, uncertainty in model evaluation arises at multiple levels: task sampling, prompt choice, random seeds, execution order,\nand numerical/runtime behavior [10, 31, 48]. Repeating one task characterizes its execution distribution, with the task remaining\nthe independent sampling unit. We use paired source-group estimates, retain all comparison endpoints, and separate exploratory\ninspection from frozen comparisons [6, 7, 32]. Crossed and nested dependence must be treated explicitly rather than pooling all\nresponse cells as independent samples [29]. Efficient serving mechanisms such as PagedAttention address execution resources\n[20]; repeated-request controls characterize variability under the chosen runtime.\nThe closest evaluation alternatives already address substantial parts of our question. FormatSpread quantifies spurious\nprompt-format sensitivity [35]; ProSA and POSIX examine prompt sensitivity at finer granularity [3, 54]; PromptEval estimates\nperformance distributions over prompts efficiently [31]. PARC analyzes language/image transformations in vision-language\nmodels, with certainty derived from conformal answer scores rather than repeated execution [34]. Our comparisons combine\ninstruction-content controls with repeated execution and image interventions. They examine how these sources of variation affect\nthe interpretation of a quality–cost comparison.\nVision-language systems combine image representations with instruction following, and visual-programming approaches\nexpose intermediate operations that can be inspected or recombined [22, 37]. These approaches motivate treating instructions as\ncontrols over visual decisions. Balanced and compositional benchmarks, contrastive examples, and image interventions examine\ncomplementary aspects of this problem [11, 14, 18, 26]. Our true-image and shuffled-image conditions provide a within-sample\ndiagnostic of image dependence. The same commit-or-defer interface accepts terminal answers. A text-QA adapter obtains an\nactor-generated draft, checks its source, type, and format, and either returns it or calls the original answering procedure. The\ndraft and fallback are both charged. The action adapter can avoid reasoning calls, whereas the answer adapter changes request\nand response lengths. Both preserve the benchmark task interface, and complete-task accounting covers every model call along\neither path.\n\nG\n\nBenchmark results\n\nG.1\n\nFresh ALFWorld instruction comparison and skill removal\n\nFigures 2(a) and 4 use the same 2,133 test identities and seed 9401. The complete 3,553-task official TRAIN pool is partitioned\ninto 710 training, 710 validation and 2,133 test tasks. Goal/scene trial variants stay together; the 240 known predecessor\ndevelopment tasks remain in training. This is a custom partition of previously exposed public data, with some floorplans shared\nacross splits. The selected instructions and common actor are frozen before fresh execution. Training supplies six task-family\n21\n\n\fCondition\nNo Skill\nSkillOpt\nAutoSaddler\nHarnessMM skills\n\nSuccesses /2,133\n\nSuccess (%)\n\nTokens/task (k)\n\nCalls/task\n\nInput/task (k)\n\nOutput/task (k)\n\n902\n1,350\n1,317\n1,412\n\n42.29\n63.29\n61.74\n66.20\n\n34.05\n101.33\n40.30\n31.12\n\n35.61\n27.95\n30.02\n26.43\n\n19.71\n94.10\n28.66\n21.67\n\n14.34\n7.23\n11.64\n9.46\n\nTable 8: Fresh, complete ALFWorld instruction-only test with a common actor and environment won-and-done scoring. Each condition is\nnewly executed once per task, with one model call for every action. Tokens include every online input and output, including failed episodes.\n\noperability checks per condition. All 710 validation tasks per condition must pass benchmark replay and cost verification before\nthe complete test phase opens. No validation or test outcome selects or changes a policy.\nAll four displayed conditions share Qwen3.5-9B, temperature zero, disabled thinking, two-step history, a 2,048-token response\ncap and the benchmark 50-step limit. The instruction comparison deploys archived optimized artifacts without rerunning SkillOpt\nor AutoSaddler optimization. The skill-removal pair compares the frozen HarnessMM instructions with empty task-family\ninstruction strings, producing the same No Skill condition as Figure 2(a). Both use the original actor for every action. All\nunsuccessful episodes remain in both denominators.\nAdding the frozen task-family skills gives 603 paired gains and 93 losses, a net 23.91-point difference (pointwise 95%\nfloorplan-cluster interval [19.15, 28.34]). It reduces complete-task model tokens by 8.60%. This is a secondary descriptive\ncomparison selected for the current ablation presentation after execution; it does not replace the archived campaign’s predeclared\nprimary contrast.\nControl\nNo Skill\nSkillOpt\nAutoSaddler\n\nGains Losses\n603\n286\n279\n\n93\n224\n184\n\nSuccess diff.\n(pp)\n\n95% interval\n\n+23.91 [19.15, 28.34]\n+2.91\n[0.43, 5.61]\n+4.45\n[2.19, 6.73]\n\nTable 9: Secondary paired comparisons of HarnessMM skills against each instruction baseline. Intervals are pointwise, with no multiplicity\nadjustment. All displayed intervals use 10,000 bootstrap draws over 108 floorplans, retaining all paired tasks within a sampled floorplan; the\nanalysis seed is 20260929.\n\nAll 8,532 displayed test executions pass independent environment trajectory replay and complete provider accounting,\nfollowing 2,840 validation executions and 24 training operability checks for these four policies. Their test execution costs 51.70\nTokens/task (k). The original acquisition also contains a retired handwritten-controller condition, which is excluded from the\ncurrent comparison and ablation. All of its records and costs remain preserved. Complete research acquisition costs, including\nretired conditions and historical optimization, remain separate in the external evidence. Cumulative token termination is disabled.\nThe source bundle’s evidence/alfworld fresh226 panel.json binds the complete global audit, all seven\nbenchmark-audited test receipts, frozen policies, exact split membership and figure reproduction code. The earlier 134-task and\ndevelopment set (60 tasks) measurements remain archived and do not populate either current ALFWorld figure.\n\nG.2\n\nFull SearchQA comparison\n\nThe historical full comparison uses all 16,980 public MRQA SearchQA development questions and the official EM/F1 scorer [8].\nAll seven conditions in Table 10 use fresh executions with the ALFWorld Qwen3.5-9B checkpoint, BF16, temperature zero,\ndisabled thinking, seed 20260918, a 32,768-token context and a 512-token output cap per call. SkillOpt and AutoSaddler deploy\narchived optimized instructions. The refined controller removes only the question-echo rejection from the preceding recovery\ncondition.\nHarnessMM adds 18 exact matches to original HarnessMM while saving 22.75% of tokens, but remains more expensive than\nNo Skill and AutoSaddler. The complete study contains 118,860 outcomes, 119,768 actor calls and 2.27 Tokens/task (k), with no\nunknown usage. In the separate preceding six-condition run, tracing 500 actual post-draft recoveries gives 19 corrections and one\nregression. All corrections follow source-location rejection; 105 echo-triggered recoveries add 0.67 Tokens/task (k), averaged\nover the 500 audited recoveries without an EM gain. Against a freshly generated no-recovery control, that preceding recovery arm\nadds 12 exact matches at 4.04% higher cost. The distinction separates recovery within a recorded draft from variability between\nindependently generated drafts. Its complete records remain in generated/searchqa_full_9b_appendix.tex.\n\n22\n\n\fCondition\n\nCorrect/16,980\n\nEM (%)\n\nF1 (%)\n\nTokens/task (k)\n\n12,055\n12,986\n12,643\n13,095\n13,087\n13,108\n13,113\n\n70.9953\n76.4782\n74.4582\n77.1201\n77.0730\n77.1967\n77.2261\n\n79.0006\n83.2716\n81.0417\n83.8780\n83.9784\n84.0475\n84.0689\n\n1.22\n3.27\n1.61\n2.97\n2.22\n2.31\n2.29\n\nNo Skill\nSkillOpt\nAutoSaddler\nOriginal HarnessMM\nWithout recovery\nWith echo rejection\nHarnessMM\n\nTable 10: Complete 9B SearchQA comparison. All online input and output tokens, including drafts, fallbacks and failures, are charged.\n\nG.3\n\nCross-dataset QA transfer\n\nThe same full-source recovery adapter is evaluated with frozen Qwen3.8-27B on four complete MRQA development archives\n(Table 11). BF16, temperature zero, disabled thinking, seed 20260918 and the 512-token per-call output cap are common to all\nconditions. HotpotQA’s checksum-verified archive contains all 5,901 questions. TriviaQA uses the complete web archive.\nCondition\n\nCorrect\n\nEM (%)\n\nF1 (%)\n\nTokens/task (k)\n\nCalls\n\nSearchQA (n = 16, 980)\nNo Skill\n12,881\nSkillOpt\n13,156\nAutoSaddler\n12,639\nOriginal HarnessMM 13,651\nWithout recovery\n13,640\nHarnessMM\n13,665\n\n75.86\n77.48\n74.43\n80.39\n80.33\n80.48\n\n83.81\n84.41\n81.55\n87.41\n87.30\n87.41\n\n1.29\n3.39\n1.76\n2.97\n2.22\n2.32\n\n16,980\n16,980\n16,980\n16,980\n16,980\n17,524\n\nHotpotQA (n = 5, 901)\nNo Skill\nSkillOpt\nAutoSaddler\nOriginal HarnessMM\nWithout recovery\nHarnessMM\n\n3,864\n3,831\n3,844\n3,862\n3,868\n3,874\n\n65.48\n64.92\n65.14\n65.45\n65.55\n65.65\n\n81.57\n80.73\n80.66\n81.68\n81.82\n81.87\n\n0.56\n2.61\n1.00\n2.36\n1.59\n1.72\n\n5,901\n5,901\n5,901\n5,901\n5,901\n6,223\n\nNewsQA (n = 4, 212)\nNo Skill\nSkillOpt\nAutoSaddler\nOriginal HarnessMM\nWithout recovery\nHarnessMM\n\n1,815\n1,850\n1,953\n1,988\n2,004\n2,008\n\n43.09\n43.92\n46.37\n47.20\n47.58\n47.67\n\n65.07\n64.58\n64.37\n66.68\n67.08\n67.11\n\n0.87\n2.91\n1.30\n2.73\n1.92\n2.44\n\n4,212\n4,212\n4,212\n4,212\n4,212\n5,006\n\nTriviaQA-web (n = 7, 785)\nNo Skill\n6,043\nSkillOpt\n6,233\nAutoSaddler\n6,242\nOriginal HarnessMM\n6,377\nWithout recovery\n6,375\nHarnessMM\n6,379\n\n77.62\n80.06\n80.18\n81.91\n81.89\n81.94\n\n84.75\n86.08\n85.70\n87.63\n87.69\n87.71\n\n1.23\n3.27\n1.65\n2.96\n2.19\n2.33\n\n7,785\n7,785\n7,785\n7,785\n7,785\n8,163\n\nTable 11: Complete six-condition QA transfer with Qwen3.8-27B. All responses are fresh, including the archived SkillOpt and AutoSaddler\nprompt controls. Costs include drafts and fallbacks.\n\nRecovery adds 0.05–0.15 EM points over the no-recovery draft at higher cost. Relative to original HarnessMM, SearchQA\ngains 14 exact matches but loses 0.004 F1 points, hidden by rounding in the table; the other three datasets improve both metrics.\nHarnessMM exceeds all three external prompt controls in EM and F1, while No Skill and AutoSaddler use fewer tokens. These\nare single-seed point estimates.\n\n23\n\n\fG.4\n\nAIME and the remaining quality–cost panels\n\nTable 12 retains the distinct populations and historical benchmark adapters, reported separately from the current development\ncomparisons in Figure 2. The AIME comparisons use a common 6/6/18 training/validation/test split of all 30 AIME 2025\nquestions. The split seed is 20260928; independent question IDs determine membership before optimization. Training alone\nsupplies updates, validation selects candidates, and all policies and execution sources freeze before testing. Figure 2(d) reports\nthe unchanged domain incumbent: 77.78% accuracy at 6.06 Tokens/task (k) actor compared with 61.11%, 66.67% and 72.22%\nfor the three controls. Its 6.06 Tokens/task (k) include every recorded input and output; all 72 outcomes and requests pass an\nindependent benchmark audit. Appendix I.1 binds this complete comparison. Paired 95% question-bootstrap intervals (20,000\nresamples, seed 20261003) for the accuracy differences are [0.00, 33.33], [0.00, 27.78] and [−11.11, 22.22] percentage points\nagainst No Skill, SkillOpt and AutoSaddler. Their corresponding token-saving intervals are [−29.50, 7.18], [−10.08, 40.14]\nand [−11.19, 30.33]%. The paired verdict and usage vectors are retained with the source evidence. The archived HarnessMM\nconstraint ledger below matches both optimized baselines at 72.22%, without a cost advantage over SkillOpt. All 72 outputs pass\nbenchmark integer rescoring and accounting. No policy changes after test evaluation.\nMethod\n\nCorrect (%)\n\nTokens/task (k)\n\nArchived AIME 2025: ledger test set (18, tasks) Qwen3.8-27B\nNo Skill\n61.11%\nSkillOpt\n72.22%\nAutoSaddler\n72.22%\nHarnessMM (ledger)\n72.22%\n\n5.60\n5.69\n6.81\n6.79\n\nLiveMath: historical dynamic MCQ adapter, 160 tasks\nNo Skill\n19.38%\nSkillOpt\n21.25%\nAutoSaddler\n21.25%\nHarnessMM\n29.38%\n\n4.10\n4.84\n4.84\n0.83\n\nTerminal-Bench 2: archived partial snapshot, Qwen3.8-27B\nNo Skill\n20.63%\nSkillOpt\n23.81%\nAutoSaddler\n24.62%\nHarnessMM\n26.03%\n\n178.19\n197.97\n169.96\n57.67\n\nGAIA2: prior development set (10, tasks) three repetitions, Qwen3.8-27B\nNo Skill\n73.33%\n603.29\nSkillOpt\n86.67%\n621.43\nAutoSaddler\n90.00%\n634.20\nHarnessMM\n83.33%\n838.67\nTable 12: Historical benchmark comparisons. Tokens count online input and output; GAIA2 judge usage is separate. Terminal-Bench has\nmethod-specific coverage: its token column divides known usage by finished trials, giving lower bounds rather than complete per-task costs.\nPopulations are never pooled.\n\nArchived constraint-ledger AIME test usage is 5.60 and 5.69 and 6.81 and 6.79 Tokens/task (k) in table order. The separate\ndevelopment ledger records externally recorded optimization expenditure, deduplicating inherited calls by original run and\nprovider sequence. Unsuccessful updates and zero-call preparation failures remain recorded. The earlier full30 experiment is\na different protocol: HarnessMM solves 70.00% at 14.75 Tokens/task (k), versus 73.33%, 80.00% and 86.67% for No Skill,\nSkillOpt and AutoSaddler. The two archived optimizers retained the same initial skill; their different scores came from separate\nexecutions of identical requests.\nLiveMath uses one answer-first voter selected on 23 development tasks, with temperature zero, disabled thinking and a 256token output cap. It requests &lt;answer&gt;X&lt;/answer&gt; and &lt;confidence&gt;N&lt;/confidence&gt; within the first 20 tokens;\nthe confidence value does not trigger a second vote or fallback. The SkillOpt seed uses a 4,096-token cap, and AutoSaddler\nselects that same prompt. Instruction and cap therefore change jointly. SkillOpt uses 1.51 input and 3.34 output Tokens/task (k);\nHarnessMM uses 0.82 input and 0.01 output Tokens/task (k). Both make 160 calls. Output accounts for 82.87% of the 4.01\nTokens/task (k) saving. The paired quality comparison has 29 gains and 16 losses (two-sided McNemar p = 0.07245). The\narchived service records a model alias rather than an immutable checkpoint.\nTerminal-Bench’s 2026-09-22 03:15 UTC snapshot has 85, 84, 85 and 85 finished trials in table order, with 22, 21, 20 and\n12 unresolved verdicts excluded from the success denominators. Known agent totals are 178.19, 197.97, 169.96 and 57.67\nrecorded Tokens/task (k), respectively. Usage is incomplete for 14, 13, 9 and 3 trials, respectively. The plotted token values\ndivide those known totals by finished trials, not scored trials. HarnessMM is the archived AutoSaddler-derived instruction policy.\n24\n\n\fThis snapshot supplies neither a ranking across methods on the full task set nor a complete official mean; its exact coverage is\nbound under terminal partial snapshot in the evidence ledger.\nGAIA2 reports the ten prior development scenarios with three repetitions [9]. No Skill and SkillOpt use complete casepreserving rejudges of their original trajectories; AutoSaddler uses a later complete execution of its selected policy, with optimizer\ndiagnosis/patch completion unresolved. HarnessMM is the feedback-consistent literal controller. Judge costs are 3.96, 4.10, 4.14\nand 3.83 Tokens/task (k) in table order, normalized over all 30 executions. Earlier mini160 verdicts affected by lowercased judge\noutput are excluded from ranking. The new shared 32/32/96 split, also seeded by 20260928, keeps every scenario’s repetitions\ntogether and requires all policy hashes frozen before the 288-execution test per method. The registered four-method study\ndoes not provide a complete test comparison; development set (10 tasks) is not substituted for it. Both custom repartitions use\npreviously exposed public data.\n\nG.5\n\nSuccess-first coding search\n\nThe instruction module improves the original coding harness’s development outcomes while reducing complete-task token use\n(Table 13). The study uses all 18 TRAIN tasks in the frozen 18/18/53 Terminal-Bench 2.0 partition [12], Codex 0.142.5 [28]\nand DeepSeek-flash. The original task, common completion brief, original tools, task limits and binary verifier are identical\nacross conditions. The built-in-compaction control uses Codex’s own 65,536-token trigger without reducing the model’s context\ncapacity.\nCondition\n\nSuccess (%) Tokens/task (k)\n\nCodex parent\nCodex + built-in compaction\nHarnessMM instruction module\nAutoSOTA-guided 32Ki compaction\nAutoSOTA-guided 96Ki compaction\n\n55.56%\n66.67%\n77.78%\n61.11%\n61.11%\n\n2413.56\n2057.72\n1455.83\n1068.67\n1176.39\n\nTable 13: Complete TRAIN development comparison, one execution per task. The instruction is selected from two TRAIN-derived candidates\nby benchmark performance, then complete-task cost. All selected outputs have executed test execution receipts; failures and compaction calls\nare included in token totals. This is an instruction/context component study, separate from the CoT/Jev decision mechanism and final held-out\nevaluation. The last two rows add built-in compaction to the frozen instruction and are rejected because their success counts fall.\n\nBoth proposed instructions solve 14 tasks. The second retains that training success count while reducing actor tokens from\n2202.94 to 1455.83 Tokens/task (k). It requires persisting every requested artifact, checking exact paths and fields, extending\nworking interfaces, and recovering from observed setup errors before optional exploration. Against the corrected original\nharness, it gains four successes and uses 39.68% fewer actor tokens; against built-in compaction, it gains two successes and uses\n29.25% fewer. Descriptive paired-task bootstrap intervals for the training score differences are [5.56, 44.44] and [−11.11, 33.33]\npercentage points, respectively (10,000 resamples, seed 20260928). The selected instruction is frozen for a separate four-arm\nstudy on 18 validation and 53 TEST tasks, with five executions per TEST task.\nComplete development acquisition costs are retained separately from validation and deployment. The external evidence\npreserves exact costs, benchmark verdicts, instructions and paired task results.\nWe then adapt AutoSOTA’s objective-and-reflection workflow [39] to built-in context management. This is a workflow\nadaptation, with the official CLI unused. The search holds the instruction and original execution settings fixed, requires at\nleast the instruction’s 14 successes, and minimizes complete-task input-plus-output tokens. Its first round tests a 32,768-token\ncompaction trigger; the frozen feedback rule chooses a shorter trigger only if quality is preserved and tokens fall, and a longer\ntrigger otherwise. The 40% parent-relative saving target does not end the search early.\nThe complete 32Ki round uses 1068.67 actor Tokens/task (k): 55.72% fewer tokens than the original harness and 26.59%\nfewer than the instruction module. It solves 61.11% of tasks and loses three of the instruction’s successes, with no gains over\nthat instruction. The paired training-score difference is −16.67 percentage points (descriptive 95% task-bootstrap interval\n[−33.33, 0.00]). The quality guard rejects this candidate and evaluates the frozen 98,304-token successor. That round also solves\n61.11% of tasks, with one gain and four losses relative to the instruction. Its paired training-score difference is −16.67 percentage\npoints (descriptive 95% task-bootstrap interval [−38.89, 5.56]). It uses 1176.39 actor Tokens/task (k), 51.26% fewer than the\noriginal harness and 19.20% fewer than the instruction, but 10.08% more than the 32Ki round. Both candidates therefore fail the\n77.78% quality requirement and remain ineligible for protected validation. The two completed rounds add 2245.06 Tokens/task\n(k) to development expenditure. Table 13 retains both complete trade-offs. The original harness and selected instruction remain\nin this TRAIN table. Figure 3 reserves coding cells for complete, audited held-out comparisons.\n\n25\n\n\fG.6\n\nQwen SDK original coding harness\n\nThe SDK parent solves 5.56% of tasks on the complete Terminal-Bench 2.0 TRAIN population. Its 1,728 physical actor requests\nuse 4660.71 input/task (k) and 23.72 output/task (k), totaling 4684.42 Tokens/task (k). The study uses the shared backbone,\nthe frozen 18/18/53 partition and common coding-completion prompt v2. All 18 outcomes have original benchmark scoring\nreceipts; independent scoring recovery retains the paid actor work and original CPU and time limits. Every physical actor request\nis counted once, including unsuccessful tasks, and the complete cost has no unknown calls.\nThe parent falls below the required nine TRAIN successes, so validation and TEST remain sealed. Public TRAIN tool records\ncontain 11 errors from using host directories in container calls and 70 repetitions of identical commands. These observations\nmotivate a separately frozen shared-parent revision. Task-level benchmark verdicts, complete actor accounting and source hashes\nare bound in evidence/qwen_sdk_terminal_train18_native.json.\n\nG.7\n\nOriginal HTTP coding harness\n\nThe DeepSeek-flash coding parent solves 55.56% of the 18 training tasks in Terminal-Bench 2.0. The run retains the frozen\n18/18/53 partition, coding-completion prompt v2 and native benchmark scorer and task limits. Recorded actor input plus output\nis 899.99 Tokens/task (k), divided by all 18 tasks. Unknown historical request usage is excluded.\n\nH\n\nIndustrial-harness RSI comparison\n\nCodex 0.142.5 uses the Responses API; DeepSeek Harness dsh-v0.2.0-rc.1 uses the Messages API. Both use DeepSeek-flash,\nbyte-preserving metering, the ARE 1.1.0 scorer and the custom GAIA2-mini 32/32/96 split (seed 20260928). Each descendant is\npaired with its own industrial seed.\nEach search makes two sparse-instruction proposals on all 32 training scenarios. The second receives the first candidate’s\ntraining feedback. A grouped cross-fitted router admits only positive supported advantage; protected validation selects among\nadmitted candidates and the seed. Codex applies residual instructions through task-local AGENTS.md; DeepSeek uses an\nadditive system-prompt section. Original execution loops, tools, model and task limits stay fixed. Policy, adapter, scorer and\nsource hashes freeze before testing; validation failures and test outcomes never enter the proposer.\nBoth searches reject their two candidates and retain the seed. The complete tests compare independent executions of each\nunchanged harness: Codex records 10.42% versus 9.03% success; DeepSeek records 8.68% versus 7.64%. Their paired\ndifferences are −1.39 and −1.04 points, with 95% scenario-cluster intervals [−3.47, 0.35] and [−3.47, 1.04], respectively\n(10,000 resamples, seed 20260928).\nStage\nTraining: original and two candidates (96 executions)\nBenchmark judge\nTwo proposals (64 training-scenario exposures)\nValidation selection (32 executions)\nBenchmark judge\nFinal original harness (288 executions)\nBenchmark judge\nFinal selected harness (288 executions; seed retained)\nBenchmark judge\n\nCodex seed\n\nDeepSeek Harness seed\n\n592.97\n0.99\n3.70\n673.91\n1.15\n614.78\n1.33\n648.27\n1.31\n\n862.65\n1.05\n2.06\n821.69\n1.35\n748.27\n1.25\n747.00\n1.29\n\nTable 14: Industrial search and test costs in Tokens/task (k), using all declared executions or training-scenario exposures as the denominator.\nCached input is counted once; actor/proposer and benchmark judge costs are separate. DeepSeek actor costs use recorded input plus output;\nunknown historical request usage is excluded, with all 288 executions retained in each denominator.\n\nThe completion audit verifies all 576 DeepSeek benchmark outcomes and reconciles actor and judge attempts across\ncontinuations. The source bindings retain all 1,152 test observations, frozen policies, proposal-feedback lineage, executionrecord hashes and unknown-cost records. The separate held-out coding protocol uses an 18/18/53 task split and five test repetitions,\nscored by the official Harbor binary verifier. VQAv2 uses 43,265/42,925/128,164 questions grouped into 8,101/8,101/24,302\nimages, with official soft accuracy. The September 30 snapshot (10:22 UTC) records blocked Terminal and VQA continuations,\nnot complete paired tests. Figure 3 uses only complete frozen TEST scores, with all success rates in percentages. The archived\nDeepSeek costs use the recorded-usage scope in Table 14; its Terminal-Bench protocol has no complete test comparison. Coding\nTRAIN and GAIA2 validation results, including rejected candidates, retain their original scopes in Appendix I and the archived\ndevelopment figures. The prospective coding protocol retains the complete validation-selected TEST comparison whether\n\n26\n\n\fits quality–cost outcome is positive, null or negative. The 30% minimum and 40% target token reductions remain measured\nobjectives. Complete TRAIN evaluations of all methods and original-harness capability precede protected evaluation; validation\nselects TRAIN-frozen instructions by benchmark performance, then complete actor cost, without supplying optimizer feedback.\nComplete original app CoT/Jev TEST comparison. The pre-TEST frozen original-app comparison includes all 96 TEST\nscenarios with three executions per arm (registered seeds 2026092801, 2026092802, 2026092803). Original harness succeeds on\n56.94% with 825.73 actor Tokens/task (k). CoT-only succeeds on 48.61% with 1894.74 actor Tokens/task (k). CoT/Jev succeeds\non 49.65% with 1874.98 actor Tokens/task (k). Bank conditions each include the shared slow author once (0.42 Tokens/task (k)),\nall physical slow and fast calls, failures and fallbacks. CoT/Jev executes 2559 verified fast tool actions. Benchmark task success\nuses the official scorer. The selected candidate is reported under the frozen all-outcomes rule. Its quality and token objectives\ndetermine benefit claims, without suppressing negative TEST results.\nComplete aligned Codex retained-selection TEST. The comparison evaluates all 96 TEST scenarios with registered seeds\n20260928, 20260929 and 20260930. Validation retained the empty original-harness policy before TEST; both arms apply zero\nresidual edits. Original harness: 52.43% success and 648.71 actor input-plus-output Tokens/task (k). Retained selection: 52.78%\nsuccess and 708.73 actor input-plus-output Tokens/task (k). All failed actor execution costs are included; evaluator costs and\nTRAIN bank-search costs are recorded separately. This retained selection is reported under the pre-registered all-outcomes rule.\nIts independently executed arms do not establish a HarnessMM mechanism or efficiency gain.\nOctober 4 coding TRAIN progress. The DeepSeek Harness evaluations cover all 18 Terminal-Bench 2.0 TRAIN tasks. The\noriginal harness, CoT-only and CoT/Jev achieve 55.56%, 66.67% and 72.22% success, respectively. Their selected executions\nconsume 1586.15, 1993.35 and 2067.93 Tokens/task (k), including failed tasks. The CoT/Jev arm improves TRAIN success\nbut uses 30.37% more tokens than the original harness and 3.74% more than CoT-only; the 40% saving target remains unmet.\nSAM’s original actor is scored by an executed benchmark verifier with no new actor calls (eight tests pass, one fails). A separate\ninterrupted historical call still lacks provider usage; its known costs and unknown remainder are retained outside these selected\nexecution totals. The repaired arms share the frozen original prompt and CoT/Jev adapter bytes. These are TRAIN records\nunder the fixed 18/18/53 split. The TRAIN-frozen candidate proceeds through all 18 validation tasks before selection and a\npre-TEST source freeze. Paired TEST evaluates all 53 tasks once per arm, using the first registered execution seed 2026092801;\nthis archived protocol has no complete paired test set (53 tasks) result. Complete TEST comparisons are reported regardless\nof the sign of the measured effect. A separate slow-CoT-authored revision batches determined shell commands and declares\nguarded literal action banks. CoT-only and CoT/Jev evaluate the same revised instruction on all 18 TRAIN tasks; the original\nharness is unchanged. The new author call costs 5.81 Tokens/task (k), accounted separately from task execution.\nGAIA2 scoring-transport correction. The public-admissibility DeepSeek-flash parent records a pre-repair 3.13% verdict\nacross all 32 GAIA2-mini TRAIN scenarios. Its complete actor input-plus-output cost remains 637.86 Tokens/task (k) (637.86\nTokens/task (k) per scenario), including failures and all 401 provider calls; cached tokens are included in input tokens. The judge\ntransport changed [[True]] to [[true]], which the benchmark case-sensitive checker could not parse. All ten audited\npositive TRAIN sanity-check responses reproduce this failure. These verdicts are archived as scoring failure evidence and\nexcluded from the parent-capability assessment. The Figure 2 runner preserves judge response text. New source-frozen industrial\nruns adopt that transport contract, a 7260-second supervisor timeout and environment-driven continuation when user-turn counts\nare unspecified. Benchmark scenario durations, judge prompts and validation rules remain unchanged. The fixed 32/32/96\npartition and complete actor accounting are retained. The complete DeepSeek Harness test set (96 tasks) comparison is reported\nabove; the corrected Codex comparison continues.\nCorrected original harnesses and instruction components. With the Figure 2 judge-text contract, both DeepSeek-flash\nindustrial GAIA2 parents complete the frozen training set (32 tasks) population. Codex succeeds on 37.50% of scenarios and\nconsumes 907.06 actor Tokens/task (k); DeepSeek Harness succeeds on 40.62% and consumes 891.75 Tokens/task (k). Both\npass the eight-success capability threshold. Actor totals include unsuccessful scenarios and cached input; benchmark judge costs\nare separate.\nThe Codex Terminal-Bench instruction and context component study also completes all 18 TRAIN tasks per arm. Original\nharness achieves 77.78% success with 3426.78 actor Tokens/task (k); the original harness with compaction achieves 55.56%\nwith 1458.88 Tokens/task (k); the TRAIN-authored instruction achieves 55.56% with 1089.95 Tokens/task (k); instruction\nwith compaction achieves 50.00% with 1420.10 Tokens/task (k). These interventions reduce execution cost but also reduce\nTRAIN success. They retain their instruction/context identities and do not supply CoT/Jev tool execution evidence. All four\nTRAIN-frozen arms undergo complete validation before the selected paired single-attempt test set (53 tasks) comparison. No\nTRAIN score populates a Figure 3 TEST cell.\n27\n\n\fComplete original app CoT/Jev TRAIN comparison. The DeepSeek-flash original-app study completes all 32 frozen TRAIN\nscenarios per arm. Original harness succeeds on 40.62% with 891.75 actor Tokens/task (k); CoT-only succeeds on 43.75% with\n727.52 Tokens/task (k); CoT/Jev succeeds on 31.25% with 1044.05 Tokens/task (k). Bank-arm totals include the shared slow\nauthor once (1.26 Tokens/task (k)), all fast decisions and slow fallbacks, and unsuccessful tasks. CoT/Jev executes 106 verified\nfast tool actions, but this TRAIN candidate lowers success and increases cost relative to its parent. The independent wire audit\nreparses 1,255 unique provider responses. All 96 TRAIN executions remain bound to their original benchmark verdicts and\ncosts. The TRAIN-frozen candidate proceeds through complete validation and the registered TEST population shared by all\nmethods under all-outcomes reporting; a negative efficiency result does not suppress TEST publication.\nCoT/Jev mechanism audit. The complete coding training set (18 tasks) has 577 original-harness, 624 CoT-only and 670\nCoT/Jev SDK stream requests. The 21 audited fast tool executions replace 3.13% of CoT/Jev stream requests, leaving 649 slow\nrequests; 642 requests have no complete eligible candidate state. All 28 fast requests, including seven fallbacks, consume 4.91\nof 2067.93 Tokens/task (k) (0.24%). The mechanism profiler reads only frozen TRAIN actor receipts and makes no model or\nevaluator calls. Its counts explain the coverage revision: useful guarded action chains must replace substantially more slow\nrequests for a large complete-task saving. A new source-bound original SDK check verifies fast execution, the CoT-only baseline,\nexplicit abstention, and slow–fast–slow resumption, including exact preservation of valid empty reasoning blocks. All setup\nattempts, including failed checks, have their acquisition expenditure recorded externally and remain separate from benchmark\nexecution; the checks make zero benchmark calls. The next prospective revision uses one slow-CoT author after the preceding\nTRAIN population has complete benchmark verdicts, then evaluates identical frozen instructions in CoT-only and CoT/Jev on all\n18 TRAIN tasks. Its single-encoding fast state retains decoded public values once and keeps original slow-reasoning history\nintact. This archived prospective protocol is distinct from the complete comparisons reported in Appendix L.\n\nI\n\nExploratory quality–cost study\n\nFollow-ups use frozen 20/20/60 partitions, grouped before repetition: TRAIN develops candidates; validation checks frozen\nSearchQA and GAIA2 candidates. Results below retain each study’s stated population and cost definition. Figure 2 retains six\nbenchmark panels, with SearchQA risk-220 and the frozen AIME candidate displayed as HarnessMM. The AIME panel uses\nall 560 test questions. The original 18-question AIME 2025 comparison and its six-question training studies remain separate.\nThe GAIA2 panel uses all four methods on the same 480 test scenarios, with one execution per method. Earlier development\ncomparisons retain their separate populations below.\n\nI.1\n\nSix-benchmark Figure 2 protocols\n\nFigure 2 reports each benchmark population separately. AIME uses 186 training questions, 186 validation questions and 560\ntest questions, with one final execution per question and method. Training supplies method updates; validation selects frozen\ncandidates; the selected policies are frozen before testing. AIME SkillOpt uses three completed optimization rounds, and\nAutoSaddler uses four. All methods share Qwen3.8-27B, the fixed seed, native integer scorer, single-sequence inference and\n32,768-token output capacity. Costs include all actor input and output, fast decisions, slow fallbacks and unsuccessful executions.\nHarnessMM’s shared author cost is charged once across the full test population. Optimizer and other training costs are retained\nseparately from test execution cost.\n\n28\n\n\fMethod\n\nInput Output Author Total\n\nNo Skill\nSkillOpt\nAutoSaddler\nHarnessMM\n\n0.22\n2.27\n0.29\n0.54\n\n4.38\n4.66\n4.61\n4.28\n\n0.00\n0.00\n0.00\n1.08\n\n4.59\n6.93\n4.90\n5.90\n\nTable 15: AIME actor cost components on all 560 test questions, each executed once. Every column uses Tokens/task (k). Input and output are\nexecution components; Author includes the shared selected authorship charge once across the same population. Total sums the unrounded\ncomponents, including unsuccessful executions.\n\nMethod\nCorrect (%) Actor trials Tokens/task (k)\nALFWorld\nNo Skill\n42.29%\n2133\n34.05\nSkillOpt\n63.29%\n2133\n101.33\nAutoSaddler\n61.74%\n2133\n40.30\nHarnessMM\n66.20%\n2133\n31.12\nSearchQA\nNo Skill\nSkillOpt\nAutoSaddler\nHarnessMM\n\n69.81%\n72.14%\n69.60%\n76.76%\n\n3395\n3395\n3395\n3395\n\n1.23\n1.62\n1.25\n0.99\n\nLiveMath\nNo Skill\nSkillOpt\nAutoSaddler\nHarnessMM\n\n19.38%\n21.25%\n21.25%\n29.38%\n\n160\n160\n160\n160\n\n4.10\n4.84\n4.84\n0.83\n\nAIME\nNo Skill\nSkillOpt\nAutoSaddler\nHarnessMM\n\n86.96%\n87.86%\n88.04%\n87.14%\n\n560\n560\n560\n560\n\n4.59\n6.93\n4.90\n5.90\n\nTerminal-Bench 2\nNo Skill\n20.63%\nSkillOpt\n23.81%\nAutoSaddler\n24.62%\nHarnessMM\n26.03%\n\n85\n84\n85\n85\n\n178.19\n197.97\n169.96\n57.67\n\nGAIA2\nNo Skill\nSkillOpt\nAutoSaddler\nHarnessMM\n\n480\n480\n480\n480\n\n730.22\n770.63\n772.22\n639.64\n\n42.71%\n46.88%\n42.08%\n43.96%\n\nALFWorld, SearchQA, LiveMath and Terminal-Bench 2 retain their respective cohort protocols. The Terminal panel reports\nrecorded input plus output per finished trial in its archived partial cohort.\nAIME cost composition. Table 15 separates execution input, execution output and shared authorship using the same complete\npopulation. No Skill uses 0.22 input and 4.38 output Tokens/task (k), so output accounts for 95.27% of its actor cost. HarnessMM\nuses 0.54 input and 4.28 output Tokens/task (k), plus 1.08 for shared authorship, giving 5.90 in total. The execution component\nalone is 4.82 Tokens/task (k); it remains above No Skill’s 4.59 before adding authorship. Thus the full comparison measures a\nsmall output reduction alongside higher input and shared cost.\nOriginal AIME 2025 comparison. The separate 6/6/18 partition is preserved. On its 18 test questions, No Skill, SkillOpt,\nAutoSaddler and HarnessMM achieve 61.11%, 66.67%, 72.22% and 77.78% accuracy at 5.60, 7.13, 6.81 and 6.06 Tokens/task\n(k), respectively. The frozen compiled bank declares no eligible terminal on this population, so all HarnessMM executions use its\ndomain fallback. These observations are separate from the expanded AIME comparison.\nGAIA2 complete comparison. GAIA2 uses 160 training scenarios, 160 validation scenarios and 480 test scenarios. Each\ntest scenario is executed once per method using the first registered seed. SkillOpt and AutoSaddler use one complete official\noptimization round, followed by protected validation and a frozen selection. All four methods share Qwen3.8-27B, native\nscoring, a 4,096-token output capacity and a 7,260-second scenario timeout. Actor cost includes all reasoning, fast decisions,\ncontrol, fallback and unsuccessful calls; native judge costs are recorded separately. Online bank authorship is included in actor\nexecution. Training and optimization costs retain their separate scope.\n\n29\n\n\fMethod\n\nInput\n\nOutput\n\nTotal\n\nNo Skill\nSkillOpt\nAutoSaddler\nHarnessMM\n\n726.45\n767.16\n768.38\n636.28\n\n3.77\n3.46\n3.84\n3.36\n\n730.22\n770.63\n772.22\n639.64\n\nTable 16: Complete GAIA2 actor cost across 480 test scenarios, with one execution per scenario. All columns use Tokens/task (k), including\nonline bank authorship, selection, control, fallback and unsuccessful calls. Native scoring is accounted for separately.\n\nNative fast execution and cost composition. Across the complete GAIA2 comparison, HarnessMM performs 146 verified fast\nexecutions among 10,424 native action attempts (1.40%). Each counted execution links the selector’s physical one-token response\nto the exact native action arguments and tool observation, and omits the slow reasoning callback. The denominator includes\nunsuccessful and unverified action attempts. Table 16 reports the complete actor input and output components. HarnessMM\nuses 636.28 input and 3.36 output Tokens/task (k); input accounts for 99.47% of its actor cost. The integrated harness reduces\ncomplete actor cost by 12.41% relative to No Skill. This comparison measures the combined harness; it does not isolate the\ncontribution of fast execution from context compression.\nEarlier GAIA2 development comparison. The separate 10-scenario cohort uses three executions per scenario. No Skill,\nSkillOpt, AutoSaddler and HarnessMM achieve 73.33%, 86.67%, 90.00% and 83.33% success at 603.29, 621.43, 634.20 and\n838.67 Tokens/task (k), respectively.\nCompiled AIME continuation. The frozen six-card program bank preserves 100.00% TRAIN correctness at 4.68 Tokens/task\n(k): five model-based one-token judges consume 0.89 Tokens/task (k) and three original-harness fallbacks contribute 3.79\nTokens/task (k), normalized over all six tasks. The two offline CoT author calls consume 21.98 Tokens/task (k) separately. The\ncomplete validation comparison preserves its benchmark quality floor but misses the earlier cost targets. Under the October\n6 all-outcomes reporting instruction, the same bank proceeds to the fixed test set (18 tasks) without further method updates.\nTraining improvements and the complete validation result retain their actual phases; no TEST result is used for selection or\nrevision.\nPolicy\n\nCorrect\n\nEM/accuracy (%)\n\nF1 (%)\n\nTokens/task (k)\n\nSearchQA: all 3,395 TRAIN questions, Qwen3.5-9B\nNo Skill\n2,404\n70.81\nHarnessMM incumbent\n2,616\n77.05\nTarget-role guard (640)\n2,558\n75.35\nExact union 640\n2,582\n76.05\nExact union 704\n2,588\n76.23\nExact union 704 + rule\n2,572\n75.76\nExact union 768\n2,587\n76.20\nExact union 800\n2,587\n76.20\n\n78.65\n83.99\n82.21\n82.77\n82.86\n82.50\n83.08\n83.06\n\n1.22\n2.29\n0.83\n0.82\n0.87\n0.87\n0.94\n0.96\n\n–\n–\n–\n–\n–\n–\n–\n\n6.63\n7.04\n6.85\n7.13\n6.67\n7.86\n8.03\n\nAIME 2025: all six TRAIN questions, seven frozen policies\nNo Skill\n5\n83.33\nSkillOpt\n5\n83.33\nAutoSaddler\n6\n100.00\nHarnessMM incumbent\n6\n100.00\nObligation once\n5\n83.33\nEliminate then evaluate\n6\n100.00\nChecked certificate\n5\n83.33\n\nTable 17: Complete training families, with official MRQA EM/F1 for SearchQA and benchmark accuracy for AIME. SearchQA numbers\ndenote source-selection input caps; output remains capped at 512 tokens. All actor input/output, failures and paid recovery are included.\nSearchQA union variants reuse the recorded controls; AIME freshly executes the official optimized SkillOpt and AutoSaddler policies.\n\nExact-union packing merges overlapping source windows without changing characters or order, then refills the budget using\nthe frozen 256-question TRAIN ranker and target-role contract. Union 704 leads the family at 76.23% EM, saving 61.82%\nof incumbent tokens and 28.58% against No Skill. It recovers 30 of 58 net lost answers, leaving a 0.825-point EM gap. A\n1,000-resample question/context-group bootstrap gives an EM-difference interval of [−1.89, +0.21] points and token-ratio\n\n30\n\n\finterval [0.374, 0.389] against the incumbent. These TRAIN intervals do not establish noninferiority; the exact-union family\ndid not advance to validation or TEST. None of 25 earlier five-fold/penalty recovery fits recovers all 2,616 answers within 0.98\nTokens/task (k). Those estimates reuse recorded outcomes and costs without new actor calls.\nOn AIME, eliminate-then-evaluate preserves 100.00% accuracy at 18.63% higher cost; the other two candidates lose one\nanswer and cost more than No Skill. The answer-aware seven-policy oracle needs 5.52 Tokens/task (k) versus the 5.30 Tokens/task\n(k) target.\nPopulation\n\nPolicy\n\nSuccess (%)\n\nTokens/task (k)\n\nValidation: 32 scenarios ×3\n\nNo Skill\nSelected HarnessMM incumbent\n\n37.50%\n50.00%\n\n826.77\n734.32\n\nTRAIN: 32 scenarios ×3\n\nNo Skill\nToken-wire v3\n\n30.21%\n9.38%\n\n687.35\n942.24\n\nTRAIN diagnostic: 8 scenarios ×3\n\nOriginal harness\nLazy schemas\n\n50.00%\n25.00%\n\n602.51\n667.68\n\nTRAIN gate: 8 scenarios ×3\n\nOriginal harness (new run)\nExact ledger references\n\n50.00%\n50.00%\n\n737.49\n612.00\n\nTRAIN parent revision: 32 scenarios ×1\n\nOriginal parent\nProgress recovery\n\n3.13%\n0.00%\n\n529.60\n680.05\n\nValidation diagnostic: 32 scenarios ×1\n\nOriginal harness\nCandidate applied to all tasks\nFrozen routed candidate\n\n6.25%\n3.13%\n6.25%\n\n703.13\n806.53\n726.84\n\nDeepSeek validation: 32 scenarios ×1\n\nOriginal harness\nCandidate applied to all tasks\nFrozen routed candidate\n\n3.13%\n3.13%\n3.13%\n\n747.15\n556.85\n696.64\n\nTable 18: GAIA2 follow-ups with validation, training populations and separately executed gates kept distinct. Actor costs include failures and\nrecovery. The final six rows are complete harness-specific validation diagnostics, not TEST results.\n\nAn earlier GAIA2 development comparison uses 32 training scenarios with three benchmark executions each. No Skill solves\n30.21% at 687.35 Tokens/task (k); the frozen official AutoSaddler selection solves 38.54% at 809.18 Tokens/task (k). Their\nrespective native judge costs are 3.68 and 3.44 Tokens/task (k), and optimizer expenditure remains separate from execution.\nPolicy\nNo Harness\nPi (unextended)\nOfficial SoL-Pi + original adapter\nHarnessMM receipt parent (historical)\nHarnessMM exact references (historical)\n\nSuccess (%)\n\nTokens/task (k)\n\nJudge/task (k)\n\n28.13%\n20.83%\n33.33%\n35.42%\n43.75%\n\n761.25\n[7803.45, 7806.14]\n[2228.57, 2230.59]\n927.03\n592.65\n\n3.34\n2.50\n2.81\n3.62\n4.05\n\nTable 19: Complete GAIA2 training set (32 tasks) with three benchmark repetitions and common Qwen3.8-27B. Actor input/output includes\nfailures. Bounds reflect five missing shutdown-call usage records, not sampling uncertainty or zero-imputed cost. Official SoL-Pi and Pi share\nthe ARE action bridge; file-edit-specific extensions have no matching tools in this adapter.\n\nThe selected GAIA2 incumbent improves validation and saves 11.18% of actor tokens. The respective 2.72 and 3.94 judge\nTokens/task (k) give 11.00% combined saving. Token-wire v3 loses quality and increases actor cost by 37.08%, with 2.15\nseparate judge Tokens/task (k) and no unknown usage or context rejections. Lazy schemas lose quality at 10.82% higher actor\ncost. Exact ledger references preserve all 24 paired outcomes with 17.02% fewer actor tokens. References to unchanged tool\nactions/observations replace duplicated receipts; task and tool contracts remain intact. Parent/candidate use 472/474 paid actor\ncalls and 124,328/120,968 judge tokens.\nOn all 32 TRAIN scenarios (Table 19), official SoL-Pi [23] saves 71.42–71.45% of Pi’s actor tokens with 33.33% versus\n20.83% success. It gains five successes over No Harness at 2.928–2.930 times the cost. Historical HarnessMM exact references\nreach 43.75%, saving 36.07% against their parent, 22.15% against No Harness and 73.41–73.43% against this SoL-Pi adapter.\nThis is separate from the CoT/Jev core: its earlier candidate scores 37.50% versus 50.00%, saves 5.29%, and defers all 276 typed\ndecisions. The 50% No Harness saving target remains unmet.\nThe prospective progress-recovery parent also fails its success-first TRAIN gate. An explicit unmet-constraint checklist and\ntool-error recovery solves 0.00% of scenarios, compared with 3.13% for the original harness, while using 28.41% more actor\n31\n\n\ftokens. The 64 executions account for 604.83 actor Tokens/task (k) exactly once. Input/output usage is complete; dollar cost\nand cache-write usage remain unknown. Validation and TEST stay sealed, so this result rejects the revision without informing\nselection on either protected split.\nThe complete 32-scenario validation diagnostic rejects both uses of the TRAIN-derived candidate. Direct application loses\none success and uses 14.71% more actor tokens than the original harness. Frozen routing applies the candidate once, preserves\n6.25% success, and uses 3.37% more tokens. The 96 executions use 745.50 measured actor Tokens/task (k) with no missing\ntoken records. These validation outcomes select neither a method revision nor a paper claim, and TEST remains sealed.\nThe DeepSeek validation study solves 3.13% of scenarios under every mode. Direct application uses 25.47% fewer actor\ntokens on this observed population, while frozen routing applies no residual and saves 6.76%. The 96 executions use 666.88\nmeasured actor Tokens/task (k) with complete, unique request and tool-receipt accounting. One repetition with one success per\nmode does not establish a capability improvement or population-level noninferiority; TEST remains sealed and dollar costs are\nunknown.\nExact acquisition and inherited development expenditure are retained separately in the external evidence. Benchmark outcome\nand complete execution-usage audits accompany the frozen policies.\n\nI.2\n\nLatest complete TRAIN follow-ups\n\nFigure 2’s lower strip reports complete development cohorts. SearchQA risk-220 combines the TRAIN-fitted answer-support\nranker, greedy source packing and a frozen recovery policy. On all 3,395 TRAIN questions it records 77.53% EM at 0.97\nTokens/task (k), versus the incumbent’s 77.05% at 2.29 Tokens/task (k): 57.65% fewer tokens and a +0.471-point observed\nEM difference. The paired 95% interval is [−0.471, 1.443] points (1,000 question/context-group resamples). The complete\nofficial-control comparison and subsequent validation rejection appear in Table 21. The earlier exact-union family remains in\nTable 17.\nCondition\n\nCorrect (%)\n\nTokens/task (k)\n\nSearchQA: training set (3,395, tasks) Qwen3.5-9B\nNo Skill\n70.81%\nIncumbent\n77.05%\nrisk-220\n77.53%\n\n1.22\n2.29\n0.97\n\nAIME 2025: training set (6, tasks) Qwen3.8-27B\nNo Skill\n83.33%\nSkillOpt\n83.33%\nAutoSaddler\n100.00%\nIncumbent\n100.00%\nReadout v4\n100.00%\n\n6.63\n7.04\n6.85\n7.13\n15.54\n\nGAIA2: training set (8 tasks) scenarios × 3, Qwen3.8-27B\nNo Harness*\n50.00%\n758.40\nOriginal gate\n37.50%\n1071.51\nRank gate\n37.50%\n914.22\nTable 20: Complete baseline TRAIN results. Costs include every draft, typed decision, failed call with measured usage and fallback. The\nstarred No Harness row is a historical same-population reference.\n\nAIME readout v4 preserves 100.00% accuracy but uses 15.54 Tokens/task (k); the unchanged 5.30 Tokens/task (k) target\nis 80% of the cheapest named control. Both model-based one-token readouts reject their checkpoint; all six questions use\nincumbent fallback. The independent audit reconstructs all 30 outcomes and 38 paid calls (8.64 Tokens/task (k) across five\nconditions). The cost gate rejects v4; its drafts and decisions remain charged.\nThe GAIA2 non-unknown rank gate executes 23 typed fast actions and solves 37.50%, matching the fresh original gate’s total\nsuccess count while using 14.68% fewer actor tokens. Three successes are gained and three lost. It remains below the historical\nNo Harness reference (50.00% at 758.40 Tokens/task (k)). The fresh original/rank gates incur 2.70 and 3.87 separate judge\nTokens/task (k). These registered benchmark gates do not release the full four-method or held-out comparison.\nInherited development and instruction-search expenditure are retained separately in the external acquisition records.\nAutoSOTA-guided all-method development comparison. We adapt AutoSOTA’s baseline, diagnosis, prospective revision\nand independent evaluation workflow [39]; the official AutoSOTA CLI is not invoked. TRAIN fits an answer-support ranker and\na risk score from public source, draft and model-reported token-probability features. Greedy source packing supplies the short\nanswer request. The frozen risk policy assigns incumbent recovery to 220 of 3,395 questions; every initial draft and paid recovery\n32\n\n\fis counted. The 6.48% recovery fraction and all model, scorer and policy hashes are fixed before validation. Validation exposes\naggregate selection statistics only; no case, answer or failure trajectory enters training. Official SkillOpt and AutoSaddler receive\nconfigured pools of 2,716 optimization and 679 internal-selection questions within TRAIN. Actual distinct optimizer exposure is\n3,395 questions for SkillOpt and 711 for AutoSaddler; each selected-policy TRAIN and validation evaluation covers all 3,395\nquestions in its split. The complete TRAIN comparison passes the all-method candidate-admission gate (Table 21).\nSplit\n\nMethod\n\nEM (%)\n\nF1 (%)\n\nTokens/task (k)\n\nTRAIN\nTRAIN\nTRAIN\nTRAIN\nTRAIN\n\nNo Skill\nSkillOpt\nAutoSaddler\nHarnessMM incumbent\nHarnessMM risk-220\n\n70.81\n74.40\n71.13\n77.05\n77.53\n\n78.65\n80.98\n78.76\n83.99\n84.19\n\n1.22\n1.61\n1.25\n2.29\n0.97\n\nValidation\nValidation\nValidation\nValidation\nValidation\nValidation\n\nNo Skill\nSkillOpt\nAutoSaddler\nHarnessMM incumbent\nHarnessMM risk-220\nRisk-220 w/o recovery\n\n69.81\n72.14\n69.60\n77.20\n76.76\n75.79\n\n77.51\n78.59\n77.20\n83.78\n83.36\n82.44\n\n1.23\n1.62\n1.25\n2.30\n0.99\n0.84\n\nTable 21: Complete SearchQA TRAIN and protected validation, 3,395 questions per split under the frozen 3,395/3,395/10,190 partition and\nQwen3.5-9B. Every actor input/output, draft and recovery call is charged. SkillOpt and AutoSaddler use their pinned official optimization\nengines with the same full-context MRQA adapter. The final TEST split is sealed.\n\nOn complete validation, risk-220 uses 0.99 Tokens/task (k) at 76.76% EM and 83.36% F1. No Skill uses 1.23 Tokens/task (k)\nat 69.81% EM. The token reduction is 19.08% (paired 95% interval [16.57, 21.23]%), with a 6.951-point EM gain (paired 95%\ninterval [5.685, 8.277] points). Risk-220 saves 38.57% against SkillOpt while improving EM by 4.624 points, and saves 20.75%\nagainst AutoSaddler with 7.158 points higher EM. Against the HarnessMM incumbent, the saving is 56.87% with a 0.442-point\nEM decrease (paired 95% interval [−1.267, 0.471] points). Removing risk recovery gives 75.79% EM at 0.84 Tokens/task (k);\nrecovery adds 0.972 EM points (paired 95% interval [0.560, 1.443]). Intervals use 1,000 question/context-group resamples with\nseed 20260928.\nThe frozen release rule requires no benchmark-score regression against the strongest named control and incumbent, plus\nat least 20% saving against the cheapest named control. Validation misses the incumbent quality threshold and saves 19.08%\nagainst cheapest No Skill. TEST remains sealed; this comparison is an exploratory quality–cost result. All 16,980 public MRQA\ndevelopment questions have prior project exposure; the custom partition is not the official hidden test.\nOfficial optimization costs are separate: the completed SkillOpt loop uses 23,542,512 actor and 8.99 proposer Tokens/task\n(k); AutoSaddler uses 927,732 actor and 0.11 proposer Tokens/task (k). The selected TRAIN and validation executions in\nthe table are additional development costs. Both current p8 optimizer loops have complete usage, with zero unknown-usage\ncalls. Inherited p7 operational attempts remain charged separately, including 2,028 SkillOpt requests with unknown usage.\nAdministrative research-agent usage is also unknown, precluding a complete amortized-cost or break-even estimate.\n\nI.3\n\nSix-condition instruction ablation\n\nThe four paragraph-presence conditions form a 2 × 2 comparison. The first paragraph contains task-family guidance and the\nsecond contains inherited general guidance, which need not be identical across families. The mismatch control rotates the first\nparagraphs over the six sorted family names. The neutral control uses task-independent symbols and checks full-prompt token\nequality against the original instructions before every actor request. All variants retain the common actor, benchmark scorer and\nfrozen 710/710/2,133 partition. Instruction transformations are fixed before new validation or test outputs; the underlying public\ntask pool was previously exposed. Seed 9401 reuses the two original fully audited reference conditions exactly once; its four\nnew conditions are freshly executed. Additional seeds execute all six conditions. TRAIN operability and validation executions\nare separate from the test costs above. The retired ten-condition TRAIN pilot is not included as test evidence. Cumulative\ntoken termination remains disabled. Seed 9401 contains 8,532 new test executions (154.16 Tokens/task (k)) and 4,266 reused\nreference executions (65.17 Tokens/task (k)). Seed 9402 contains 12,798 new test executions (221.13 Tokens/task (k)) and 0\nreused reference executions (0.00 Tokens/task (k)). Seed 9403 contains 12,798 new test executions (218.64 Tokens/task (k)) and\n0 reused reference executions (0.00 Tokens/task (k)).\n\n33\n\n\fSeed\n\nCondition\n\n9401\n9401\n9401\n9401\n9401\n9401\n9402\n9402\n9402\n9402\n9402\n9402\n9403\n9403\n9403\n9403\n9403\n9403\n\nHarnessMM\nw/o general guidance\nw/o task-family guidance\nw/o skills\nw/ mismatched task family\nw/ neutral text\nHarnessMM\nw/o general guidance\nw/o task-family guidance\nw/o skills\nw/ mismatched task family\nw/ neutral text\nHarnessMM\nw/o general guidance\nw/o task-family guidance\nw/o skills\nw/ mismatched task family\nw/ neutral text\n\nSuccess (%)\n\nTokens/task (k)\n\nCalls/task\n\n66.20\n61.84\n49.27\n42.29\n48.48\n41.07\n64.70\n62.59\n49.04\n41.07\n47.63\n41.35\n66.20\n61.60\n49.32\n41.73\n48.90\n41.68\n\n31.12\n28.75\n39.04\n34.05\n43.03\n43.34\n32.01\n28.60\n39.10\n34.15\n43.77\n43.51\n31.18\n28.73\n38.68\n34.10\n43.03\n42.93\n\n26.43\n28.70\n33.54\n35.61\n34.11\n36.02\n27.21\n28.51\n33.77\n35.83\n34.55\n36.01\n26.59\n28.61\n33.37\n35.78\n33.98\n35.76\n\nTable 22: Complete benchmark-audited instruction ablations. Each row contains all 2,133 tasks. Replication seeds reuse task identities and are\nnot independent task populations. Only complete six-condition seeds are shown.\nSeed\n\nControl\n\n9401\n9401\n9401\n9401\n9401\n9402\n9402\n9402\n9402\n9402\n9403\n9403\n9403\n9403\n9403\n\nw/o general guidance\nw/o task-family guidance\nw/o skills\nw/ mismatched task family\nw/ neutral text\nw/o general guidance\nw/o task-family guidance\nw/o skills\nw/ mismatched task family\nw/ neutral text\nw/o general guidance\nw/o task-family guidance\nw/o skills\nw/ mismatched task family\nw/ neutral text\n\nFull minus control (pp)\n\n95% interval\n\nGains\n\nLosses\n\n+4.36\n+16.92\n+23.91\n+17.72\n+25.13\n+2.11\n+15.66\n+23.63\n+17.07\n+23.35\n+4.59\n+16.88\n+24.47\n+17.30\n+24.52\n\n[2.61, 6.21]\n[13.16, 20.28]\n[19.15, 28.30]\n[14.15, 21.02]\n[20.32, 29.44]\n[0.48, 3.76]\n[11.88, 19.20]\n[18.82, 27.98]\n[13.36, 20.50]\n[18.82, 27.43]\n[2.68, 6.48]\n[13.07, 20.23]\n[20.09, 28.42]\n[14.07, 20.20]\n[20.04, 28.52]\n\n232\n470\n603\n491\n621\n215\n460\n608\n499\n602\n245\n474\n618\n480\n603\n\n139\n109\n93\n113\n85\n170\n126\n104\n135\n104\n147\n114\n96\n111\n80\n\nTable 23: Paired benchmark-success differences against the full skill. Pointwise 95% intervals use 10,000 bootstrap draws over 108 floorplans,\nwith analysis seed 20260930. All paired tasks in a sampled floorplan stay together. The exploratory intervals have no multiplicity adjustment.\n\nJ\n\nHistorical diagnostics and negative results\n\nJ.1\n\nSeparating task rules from model calls\n\nThe action adapter contains a handwritten task solver. Running its unchanged public-state rules from the initial state, without\nskill text, actor initialization or model fallback, solves 92.39% of validation tasks versus 92.82% for rules plus actor. The three\ngains and zero losses give a 0.42-point difference at 1.08 additional Tokens/task (k). Fixed rules account for most success; this\ncontrast does not isolate learned instructions from initialization and fallback.\nConfiguration\n\nSuccess (%)\n\nTokens/task (k)\n\nCalls/task\n\nRules + actor\nRules only\n\n92.82\n92.39\n\n1.08\n0.00\n\n1.04\n0.00\n\nTable 24: All 710 validation tasks, seed 9401, common 50-step limit, public observations and tool actions. Failures remain in both denominators.\nZero model tokens do not imply zero CPU computation.\n\n34\n\n\fIndependent benchmark replay also reproduces all 2,010 archived outcomes and provider-token totals for the full controller,\nskills-only actor and three prompt controls. The historical 100% result includes handwritten task rules and does not measure an\nRSI optimization gain.\n\nJ.2\n\nArchived action-controller comparisons\n\nThe complete official134 replication uses all valid unseen tasks, seeds 9401–9403 and a common 50-step limit. The\nsupport-first handwritten controller solves 100.00% at each seed, versus 67.16%, 67.91% and 69.40% for its skills-only actor.\nThe stall-gated predecessor solves 97.76%, 99.25% and 97.76%; removing its progress filter gives 35.07%, 32.84% and 34.33%.\nRemoving its skill text gives 97.76%, 97.01% and 97.76%. These interventions belong to the predecessor, separate from the\ninstruction-only ablation in Figure 4. All ten configurations and their per-seed costs remain in generated/jev_mechanis\nm_confirmation.tex. The 134 tasks, not the 402 repeated executions, are the independent units.\nOn the separate custom test set (2133, tasks) support-first execution solves 95.08% of tasks at 1.00 Tokens/task (k), versus\n92.55% at 9.91 for stall gating. The paired 80 gains and 26 losses give a 2.53-point difference (95% floorplan-cluster interval\n[0.98, 4.07]) and 89.89% token saving. Both use the same instructions, selector and 50-step cap. This compares historical\ncontroller configurations. The earlier development set (60 tasks) selection used opened tasks and unequal historical limits; it\nsupplies no additional held-out evidence.\n\nJ.3\n\nRecorded execution examples\n\nThe archived stall-gated traces illustrate both progress and failure. In the heating example, the controller picks up egg 3 at\nstep 13, heats it at 15, and places it in the fridge at 17. Heating feedback updates the tracked state, excluding the otherwise\nlegal cooling action. The episode succeeds in 18 steps with seven model calls and 8.17 Tokens/task (k) for that single\nepisode. In the two-book example, the placement ledger distinguishes the first completed book from the remaining target;\nthe run succeeds in 22 steps with 11 calls and 9.96 Tokens/task (k). In the heated-cup failure, supported exploration reaches\nthe still-closed fridge at the final allowed step, 48, without finding and heating the cup. Local support does not guarantee\ntimely task completion. These are the lexicographically first recorded success/failure examples in their categories, bound in\nevidence/jev_execution_examples.json; they are illustrative, not additional evaluation samples.\n\nJ.4\n\nCompression and transfer failures\n\nEarlier SearchQA studies use 5,000 opened training-source questions. The 9B compact-context deterministic adapter reaches\n70.54 EM at 1.90 Tokens/task (k) versus 75.46 at 3.00 for fresh original HarnessMM: 36.71% fewer tokens with a 4.92-point\nloss. Model-selected recovery reaches 73.42 at 3.02 Tokens/task (k). The later evaluations retain full source context.\nThe separate studies with the same backbone also fail their quality targets. Model-based typed checks reach 72.12 EM at 4.08\nTokens/task (k) versus 73.32 at 3.00 Tokens/task (k) for original HarnessMM, falling back on 87.80% of tasks. Probability-only\nfull/compact source selection reaches 44.16/45.06 EM. Adding 96 CoT tokens gives 29.00 versus 27.06 for its fresh zero-CoT\ncontrol; restoring a short evidence sentence gives 35.10 versus 19.98 for its label-alias control. The initial evidence-generation\nattempt was inactive and scored 20.10. Source-rule typed recovery reaches 69.72 versus 72.08 for fresh original HarnessMM,\nsaving only 10.50% against its 30% target. Each study retains its own model, request template, complete controls and accounting\nin the source bundle; none replaces the later full-source result.\nSpreadsheet’s opened LOGO267 replay gives 4.12% at 48.36 Tokens/task (k) for archived No Skill, 3.00% at 51.58 Tokens/task\n(k) for SkillOpt, 2.25% at 47.77 Tokens/task (k) for AutoSaddler, and 3.00% at 11.78 Tokens/task (k) for HarnessMM. The last\nthree use fresh executions; HarnessMM retains 170 repair/abstention routes and 97 No-Skill routes chosen post hoc by workbook\ngroup. Its separate seven-condition test on 200 opened tasks gives deterministic recovery 2.50%, matching original HarnessMM\nat 25.06% lower cost, but below No Skill and AutoSaddler at 3.50%. Its 97-task state-controller study solves 0.00% versus the\nparent’s 1.03% while increasing cost. The earlier Terminal-Bench subset gives HarnessMM 8.33% versus 25.00% for each\nbaseline; the visual-web subset gives 25.00% versus 33.33% for No Skill and SkillOpt.\nThe AIME draft-isolation diagnostic scores 70.00% versus 80.00% for both visible-draft verification and the shared drafts.\nGAIA2’s feedback-consistent controller reduces repeated restorations from 64 to 3 and Tokens/task (k) from 929.89 to 838.67,\nbut scores 83.33% versus 90.00% for its original harness evaluated on the same development tasks in a new run. The older\nbudget-limited GAIA2 run and email-pagination activation diagnostic have incomplete outcomes across methods; neither\nsupports a quality or cost comparison.\n\n35\n\n\fJ.5\n\nInstruction-content and visual diagnostics\n\nThe five-module response study evaluates all 32 masks, ten equal-length body controls and Original A/A on 256 discovery tasks\nand 257 held-out-stage tasks in 256 source groups. The full harness solves 84.82%; the discovery-selected normalization/answertype mask solves 84.44% at 23.91% lower cost. No module passes the primary familywise criterion, and no average main effect\nor pair interaction passes the Holm-corrected secondary tests. Nineteen tasks vary in EM across masks; the outcome-selected\noracle reaches 86.77% and is not a deployable selector.\nThe targeted replication retains those 19 tasks, two F1-only cases and 32 stable controls, with six arms in eight blocks (four\nserial, four 16-concurrent). Eighteen of the 19 EM effects retain their mean direction, and 17 retain a nonzero sign in every\nblock; both F1-only effects persist. Stable controls have zero EM edge effects, while Original A/A changes EM on two variable\ntasks. These are conditional, outcome-selected effects; 13 of the 19 nominated modules concern normalization. All retained\nmodule bytes, ordering and answer contracts are unchanged, and generic/unrelated controls exactly match complete model input\ntoken counts.\nThe GQA pilot evaluates 40 balanced questions in 19 image groups, plus 88 entailment-support questions, with three repeats.\nTrue-image accuracy is 62.50% for the base and 65.00% for both grounding and generic instructions of equal token length;\nshuffled-image accuracy is 35.00%, 33.33% and 35.00%, respectively. Grounding and generic correctness coincide on every\nbalanced task. Their true-minus-shuffled interaction is 1.67 points, with a descriptive image-cluster interval of [−2.44, 7.69].\nImages use 448-by-448 padded renderings with 196 model image tokens. The 2,304 benchmark requests consume 0.27\nTokens/task (k); admission adds 500. Model image tokens and the unchanged publisher scorer were replayed independently [14].\nTwo later feasibility studies also stop before final evaluation. Text calibration evaluates 512 groups over three repeats after\ntraining on 2,048 groups; all four adaptive thresholds fail the joint gate. The least restrictive saves 4.3734% while lowering EM\nand F1; the quality-preserving three-short-route policy saves only 0.1483%. For the MMMU instruction library, 270 calls on 90\ntraining questions consume 0.65 Tokens/task (k), including 0.51 input-image/task (k). Even zero output permits only 0.366%\nsaving, below the 10% target. This is a cost-feasibility bound; task accuracy was not measured. The completed gate records\nremain in generated/token_efficiency_protocol.tex; unexecuted plans are omitted from the paper.\n\nK\n\nReproducibility\n\ngenerated/CLAIM_EVIDENCE.json binds reported values to source artifacts, model identities and evaluation scope. Raw\nremote-run records retain frozen policies and partitions, model/tokenizer revisions, physical GPU assignments, seeds, packages,\nrequests, outputs and usage, including failures. Audits reconstruct original API requests, scores and tokens. Historical tables\nretain their original cohorts, method identities and costs in generated/.\nIn 17 audited GAIA2 worker launches, startup PYTHONHASHSEED was not recorded. ARE 1.1.0 uses Python’s salted hash for\nsome receipt ordering and app-RNG seeds; a fixed model-server seed does not establish identical tool trajectories. OS-generated\nUUIDs and measured simulation timing remain variable. The source audit is bound in evidence/gaia2_native_seed\n_audit_20261002.json.\nThe primary source bindings are evidence/alfworld_fresh226_panel.json, evidence/figure1_bdf\n.json, evidence/aime202060_complete.json, evidence/industrial_harness_panel.json, eviden\nce/industrial_harness_deepseek_test.json and evidence/figure1_df_current.json. Appendix I\nbinds the quality–cost follow-up. Exact split IDs accompany the 20/20/60 protocol; benchmark licenses and release conditions\napply.\nToken totals include all input/output, truncations and fallback. Search, rejected proposals, validation, judges and shared\nacquisition are separate; inherited calls are charged once. Finite break-even requires measured development cost and positive\nper-task savings. Unknown historical costs stay unknown. Runs have no cumulative token stop; model capacities and benchmark\ntask limits remain. In the paper directory, bash build.sh renders and compiles saved results without model or benchmark\ncalls; template-dependency.json pins the CVPR and bibliography styles.\n\nL\n\nFigure 3 evaluation settings\n\nFigure 3(a) uses the complete frozen 32-scenario GAIA2 development population from the custom 32/32/96 partition, seed\n20260928. Panel (b) uses all 18 frozen Terminal-Bench development tasks from the custom 18/18/53 partition. These panels\nreport development measurements. Each harness pair shares its backbone, public task prompt, original tools, task limits and\nbenchmark scorer.\nPanel (c) uses MBPP-sanitized’s complete 427-task release with the custom 85/85/257 partition, seed 20261005. The DeepSeek\nHarness pair reports all 257 TEST tasks; the independent Codex pair completes all 257 TEST tasks at 236/257 and 233/257\nsuccesses (91.83% and 90.66%). Both harness pairs use the same fixed backbone. Actors receive the released public assertions\n\n36\n\n\fand common instructions, with a 300-second actor deadline and 30-second verifier deadline. Reference implementations are\nexcluded from actor workspaces.\nHarness\n\nCorrect / 85\n\nSuccess (%)\n\nTokens/task (k)\n\n78\n80\n73\n80\n\n91.76\n94.12\n85.88\n94.12\n\n67.21\n59.78\n15.46\n11.91\n\nCodex\nCodex+HarnessMM\nDeepSeek Harness\nDeepSeek Harness+HarnessMM\n\nThese historical training set (85 tasks) comparisons provide development evidence for the compound action bank and structured\nliteral bank. The DeepSeek condition records 153 certified substitutions and 62 public-guard confirmations. TRAIN develops\ncandidates, validation selects only TRAIN-frozen configurations, and TEST evaluates the selected configuration without further\nrevision.\nPanel (d) uses the complete 164-task HumanEval release, custom 33/33/98 partition, seed 20261006, and one attempt per\ntask. All four methods use the same fixed backbone. Actors receive the function signature, specification and docstring examples;\nreference solutions and verifier tests are excluded from their context. The Harbor adapter evaluates released functional tests with\nthe common 300-second actor and 30-second verifier deadlines. Each capable TRAIN parent and its candidate precede protected\nvalidation and selection freeze.\nThe complete HumanEval test set (98 tasks) Codex pair preserves 90.82% success at 66.72 versus 47.02 Tokens/task (k), a\n29.54% reduction. The DeepSeek Harness pair improves from 71.43% to 85.71% at 96.28 versus 11.62 Tokens/task (k), an\n87.93% reduction.\nPanel (e) uses MiMo-v2.6-pro through the official DeepSeek Harness SDK Anthropic-compatible interface. The same\n33/33/98 HumanEval partition, prompts, tools, scorer and one-attempt policy apply to both arms. The capable TRAIN parent\nreaches 96.97%, its frozen candidate reaches 100.00%, and both validation arms reach 96.97% before selection. Complete\ntest set (98 tasks) success is 96.94% versus 97.96%, at 11.62 versus 4.40 Tokens/task (k), a 62.12% reduction. The MiMo\nCodex pair completes test set (98 tasks) at 93.88% versus 94.90% success; its costs are 62.60 versus 10.09 Tokens/task (k). The\nMiMo Codex MBPP comparison completes test set (257 tasks) at 248/257 baseline and 250/257 HarnessMM successes (96.50%\nand 97.28%), with 47.56 versus 11.00 Tokens/task (k). Panel (f) also reports the complete MiMo DeepSeek Harness test set\n(257 tasks) comparison: 251/257 versus 252/257 successes (97.67% and 98.05%), at 6.20 versus 5.11 Tokens/task (k). The\nconcise literal-source author retains the structured action-bank schema and native tool interface; CPU receipt guards execute\n480 certified substitutions. The custom 85/85/257 partition and seed 20261005 remain fixed. TRAIN develops the candidate,\nprotected validation selects it, and source and selection freeze before TEST.\nActor costs are reported as input-plus-output tokens per task, divided by 1,000. Input and disjoint cache-input buckets are\ncounted once.\n\nL.1\n\nIndustrial harness comparisons\nPair\nCodex MBPP\nMiMo Codex HumanEval\nMiMo Codex MBPP\nMiMo DeepSeek MBPP\n\nBaseline (%)\n\nHarnessMM (%)\n\n91.83\n93.88\n96.50\n97.67\n\n90.66\n94.90\n97.28\n98.05\n\nTasks\n257 / 257\n98 / 98\n257 / 257\n257 / 257\n\nCosts are normalized over all tasks in each comparison and include unsuccessful executions. Exact measurements and cost\nscopes remain in the reproduction artifacts.\nThe earlier MiMo Codex candidate completes the same 257 test tasks at 94.55% success and 10.45 Tokens/task (k); the\nselected successor reaches 97.28% with 11.00 Tokens/task (k). Both use the same native task population and limits.\n\nL.2\n\nQwen DeepSeek Harness on 257 MBPP test tasks\n\nThe 427 MBPP-sanitized tasks use 85 TRAIN/85 validation/257 TEST, seed 20261005, and one attempt per task. Both actors\nreceive all released assertions; reference solutions are excluded. Selection and source freeze before TEST. The official dshv0.2.0-rc.1 and Harbor 0.18.0 MBPP adapter share the backbone, prompts, tools and 300-second actor/30-second verifier limits.\nSuccess is 90.27% for the baseline and 91.83% for HarnessMM. Input/output Tokens/task (k) are 50.40/3.58 (53.98 total) and\n6.84/3.77 (10.61 total), respectively. Complete costs cover slow authors, fast decisions, finalizers, fallbacks and failed executions;\ndevelopment costs are separate. HarnessMM makes 472 certified substitutions. CoT-only reaches 93.39% success at 15.04\nTokens/task (k): 11.21 input and 3.84 output. Savings are 80.35% against the original harness and 29.46% against CoT-only. The\n40% target against both baselines with quality preserved remains open. TEST never guides revisions.\n37\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"