"<!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>2026-08-21\n\nEnvHarness: Awakening Static Worlds for\nAgent Learning\nChengsong Huang1* , Zifeng Wang2 , Rujun Han2 , Jun Yan2 , Yanfei Chen2 , Zoey CuiZhu2 , Ke Jiang2 , Peng Xia4 ,\nHan Yu2 , Yufan Zhuang2 , Yifei Ming2 , Jiaqi Pan3 , Bhavana Dalvi Mishra2 , Jiaxin Huang1 , Burak Gokturk2 ,\nTomas Pfister2 and Chen-Yu Lee2\n\nLLM agents learn by interacting with environments, yet these environments are hand-built and static:\nblind to an agent’s weaknesses, and quickly left behind as it improves. While recent environment\ngeneration methods attempt to address this, they require domain-specific pipelines, rely on expensive or\nunreliable verifiers, and still produce static environments. To alleviate the engineering burden of rebuilding environments from scratch, we propose Environment Harness (EnvHarness), a programmable\nlayer of plug-in components that wraps a static environment to reshape its behavior without modifying\nthe underlying logic. Operating through standard interfaces, EnvHarness applies across diverse\ndomains while ensuring every reshaped environment retains its original verifier. To automate this\nprocess, we introduce EnvRigger, which treats the target policy as a black box, observing its execution\ntrajectories to synthesize EnvHarness components targeting diagnosed flaws, and validating them\nvia fresh rollouts. Across five benchmarks in four domains, EnvHarness outperforms both original\nenvironments and domain-specific environment generation pipelines, achieving up to a 9.0-point improvement on held-out instances with 9.8% fewer execution steps. Furthermore, EnvHarness provides\na superior optimization signal for reinforcement learning, enabling continuous, targeted co-evolution of\nthe policy and its environment.\n\ngithub.com/google-research/envharness\nBase agent\n\nLearn from real envs\n\n55\n\n54.4\n\n52.6\n49.9\n\n50\n\nEnvHarness\nenvs (ours)\n\nLearn from EnvHarness envs (ours)\n\n56.2\n54.2\n\nwww.envharness.com\n\n49.1\n\n47.7\n46.4\n\n45.9\n\n45\n\nResolved rate (%)\n\narXiv:2608.19880v1 [cs.AI] 20 Aug 2026\n\n1 Washington University in St. Louis, 2 Google Cloud AI Research, 3 Google Cloud, 4 University of North Carolina at Chapel Hill\n\n54\n\nSWE-Lite\n(real envs)\n\n51\n\nSWE-smith\n(SOTA scaling)\n\n48\n0\n\nSWE-bench Verified\n\nOfficeQA\n\nSpreadsheetBench\n\n100\n\n200\n\n300\n\nNumber of environments\n\nFigure 1 | Overall performance. Left: Agents learning from EnvHarness environments consistently\noutperform those learning from the original environments across software engineering and office\nautomation benchmarks, including SWE-bench Verified, OfficeQA, and SpreadsheetBench. Right:\nOn SWE-bench Verified, under an identical environment budget, EnvHarness keeps improving as\nenvironments scale, while real and generated environments flatten out.\n\n1. Introduction\nAs LLMs are deployed as autonomous agents, the source of learning shifts from curated text data to\ninteractive environments. Whether navigating web pages (Gur et al., 2024), resolving issues in a\nCorresponding author(s): chengsong@wustl.edu, {zifengw, chenyulee}@google.com\n* This work was done while Chengsong interned at Google Cloud AI Research.\n\n\fEnvHarness : Awakening Static Worlds for Agent Learning\n\nFigure 2 | While an agent harness transforms a frozen LLM into a capable agent via plug-in components\n(e.g., skills, memory, tools) without altering model weights, EnvHarness applies this same principle\nto the other side of the interaction. It customizes a frozen environment with plug-in components\nwhile leaving original environment unchanged.\ncodebase (Yang et al., 2024), or controlling an embodied platform (Wang et al., 2023), agents rely\non their respective environments to acquire learning signals (Yao et al., 2022b). These environments\nact as interactive counterparts that present specific tasks, manage changing states, respond to actions,\nand evaluate success (Li et al., 2026). Unfortunately, building them requires substantial human effort\nto hardcode the interaction logic and verifiers (Merrill et al., 2026; Zhang et al., 2025). Consequently,\nthe resulting environments remain rigidly static, behaving identically regardless of which agent\ninteracts with them or how much that agent has improved (Hu et al., 2026). This rigidity limits agent\nlearning in two fundamental ways: it fails to provide a targeted signal that addresses a particular\nagent’s weaknesses (Dennis et al., 2020; Jiang et al., 2021), and it has nothing more to teach once\nthe agent learns to solve the existing tasks (Beukman et al., 2024; Wang et al., 2019).\nSince manually building environments is expensive, a growing line of work has turned to automated environment generation (Guo et al., 2025; Song et al., 2026; Zala et al., 2024). Despite its\nscalability, this approach suffers from two major limitations. First, generation pipelines are inherently\ndomain-specific. Existing systems generate environments for web navigation (Trabucco et al., 2025),\nprogramming (Pan et al., 2024), or tool use (Lee et al., 2026a), but a pipeline built for one setting\ncannot transfer to the others. Second, ensuring correctness is both costly and unreliable. Because\nthese environments and verifiers are generated by LLMs, practitioners must over-generate and heavily\nfilter them (Wang et al., 2026; Yang et al., 2026a), which still cannot fully guarantee their correctness.\nRather than creating new environments to obtain learning signals, we propose Environment\nHarness (EnvHarness), a programmable layer that transforms an existing, static environment\ninto a dynamically customized one without modifying the environment itself. We make an analogy\nbetween EnvHarness and agent harness (Anthropic, 2025, 2026b; OpenAI, 2026) in Figure 2:\nAn agent harness provides LLMs with external memory, tools, and skills to handle complex tasks\nbeyond basic text generation. EnvHarness extends this concept to environments, equipping a\nstatic environment with modular, plug-in components. A Stage sets the starting point of an episode,\na Contract controls the allowed actions and observations, and a Chain connects multiple base\nenvironments to form an extended episode. The agent continues to use the standard interface, but\nEnvHarness mediates this interaction. This enables a single environment to fulfill needs it was\nnever built for: isolating a specific skill, extending a task’s horizon, or calibrating difficulty so the\nagent struggles but ultimately succeeds. Crucially, operating strictly at the interface level makes\nEnvHarness domain-agnostic, while allowing every new environment to safely inherit the trusted,\nhuman-built verifier of its original environment.\n\n2\n\n\fEnvHarness : Awakening Static Worlds for Agent Learning\n\nWhile EnvHarness provides a universally applicable framework, its specific configuration must\nbe tailored to each target policy and task. To automate this customization process, we introduce\nEnvRigger. By treating the policy strictly as a black box, EnvRigger observes both successful and\nfailed execution trajectories within the base environment to diagnose specific behavioral vulnerabilities.\nGuided by these findings, it synthesizes candidate EnvHarness components and wraps the current\nenvironment to evaluate them. EnvRigger then runs fresh policy rollouts, judging acceptance solely\non whether the candidate environment effectively cultivates the missing capabilities while remaining\nsolvable. Components failing this evaluation undergo iterative revision until they succeed. Ultimately,\nthis workflow realizes fully automated, task-policy-conditioned environment customization.\nWe conduct experiments on challenging benchmarks spanning embodied tasks (ALFWorld (Shridhar et al., 2020)), web browsing (WebArena (Zhou et al., 2024)), software engineering (SWE-bench\nVerified (Jimenez et al., 2024)), and office work (OfficeQA (Databricks, 2025), SpreadsheetBench (Ma\net al., 2024)). Specifically, we evaluate EnvHarness across two representative learning paradigms:\nskill-based learning (SL) and reinforcement learning (RL). In SL settings, agents trained with EnvHarness environments outperform those trained on original environments, achieving up to 9.0\npoints of improvement on held-out tasks (Table 2) while using 9.8% fewer interaction steps (Table 3).\nIn RL settings, EnvHarness-customized environments similarly yield significantly stronger policies,\nwith up to 6.5 points of improvement (Table 4). Finally, repeatedly executing the EnvRigger loop\nenables continuous co-evolution between the agent and its environment, unlocking compounding\nperformance gains that scale effectively with the number of customized tasks.\nOur contributions are threefold: (1) We propose EnvHarness, a programmable layer that\ncustomizes a static environment into a controllable one through its own reset/step interface,\ninstantiated as three types of plug-in components that reshape environment initial states, agentenvironment interaction interfaces, and composite tasks from different environments, all while the\noriginal environment’s tasks and verifiers stay unchanged. (2) We introduce EnvRigger to automate\ntask-policy-conditioned environment customization. By diagnosing policy flaws from rollouts and\niteratively revising candidate components until fresh rollouts confirm their success, EnvRigger\nensures that every new environment targets the specific weaknesses of the policy. (3) Across five\nbenchmarks in four domains, EnvHarness improves both effectiveness (up to 9.0 points on held-out\ntasks) and efficiency (9.8% fewer steps), strengthens policies under reinforcement learning, and\nscales agent performance where both human-built and generated environments flatten out.\n\n2. EnvHarness\n2.1. The EnvHarness Paradigm\nTable 1 | Analogy between Agent Harness and EnvHarness. Both scale capabilities through external\nlayers rather than changing the core system.\n\nBase System\nDesigned to Solve\nHarness Layer\nUnified Output\n\nAgent Harness\n\nEnvHarness (Ours)\n\nFrozen LLM\nLack of action, memory, or loops\nCapabilities (tools, memory)\nAutonomous agent\n\nStatic environment\nHardcoded interaction logic\nCustomization (states, rules, observations)\nCustomized environment\n\nAn agent harness (Anthropic, 2025, 2026b; OpenAI, 2026) is the software layer (execution loops,\ntool registries, and context management) (Meng et al., 2026) that wraps a LLM to form an autonomous\nagent (Agent = Model + Harness). It adds new capabilities without changing the model weights. We\n3\n\n\fEnvHarness : Awakening Static Worlds for Agent Learning\n\napply the same idea to the other side of the agent-environment loop. We define EnvHarness as\na programmable layer that wraps an existing, static environment and turns it into a customizable\none (Customized Env = Static Env + EnvHarness). EnvHarness achieves this customization by\nmodifying the information flow through the standard interface, leaving the underlying environment\ncompletely untouched. Analogous to the tools and memory of an agent harness, EnvHarness is\nassembled from modular plug-in components that tailor the environment to specific training needs\nlike isolating a specific skill, extending a task’s horizon, or adjusting task difficulty.\nFormal Definition of EnvHarness. We model an environment as a tuple 𝐸 = (S , A , O , 𝑇, 𝑅, 𝑠0 ),\nwhere S is the state space, A the action space, O the observation space, 𝑇 : S × A → S the transition\nfunction that maps a state and an action to the next state, 𝑅 the reward induced by the verifier, and\n𝑠0 the initial state. An EnvHarness component is an environment-agnostic transformation 𝑤:\n𝐸′ = 𝑤 ( 𝐸) ,\n\n(1)\n\n𝐸 ′ = (S ′ , A ′ , O ′ , 𝑇 ′ , 𝑅′ , 𝑠0′ ) .\n\n𝑤 reshapes the environment strictly at the interface level, without modifying its underlying\nsimulator backend or implementation details. It customizes the initial state (𝑠0′ ), filters exposed\nspaces (A ′ , O ′ ), and updates transition mechanics (𝑇 ′ ). Because all interventions remain external, the\nground-truth evaluation logic is preserved, ensuring the original verifier still can score the episode.\n\n2.2. Three EnvHarness Components\nreset()\n\nstep(a)\n\nobs()\n\n❄️\n\nEnvironment\n\nreset()\n\nstep(a)\nStage ( )\n\nobs()\n\n❄️\n\nEnvironment\n\nreset()\n\nstep(a)\n\nContract (\n\nobs()\n\n❄️\n\nEnvironment\n\n)\n\nreset()\n\nstep(a)\n\nChain (logic\n\nobs()\n\n❄️\n\n)\n\nEnvironment\n\nFigure 3 | Overview of EnvHarness components wrapping the standard environment interface. The underlying base environment (native state transitions and original task verifier) remains\ncompletely frozen. From left to right: the base environment, followed by three EnvHarness components—Stage, Contract, and Chain. Highlighted arrows and headers indicate overridden interface\nmethods, with code blocks showing how each wrapper modifies state initialization, transition dynamics, or observation handling without altering the base environment.\nThe mapping 𝑤 of Eq. (1) defines a general interface, and any transformation that follows this\ninterface is a valid EnvHarness component. In this work, we introduce three concrete types of\ncomponents, chosen to cover three fundamental modes of environment customization, and we expect\nmore to follow. Each type is specified by its own parameters, overriding standard environment\ninterface methods such as reset or step. Figure 3 compares the three component types with the\noriginal interface, highlighting the specific method each component overrides. We detail the software\nimplementation of this interface protocol and class architecture in Appendix C. Throughout this\nsubsection, we illustrate the components on one ALFWorld task, “put a clean mug on the desk”,\nwhere the default instance leaves the mug in the open and ends immediately upon placement.\n\n4\n\n\fEnvHarness : Awakening Static Worlds for Agent Learning\n\nStage: changing the initial state. A Stage, 𝑤stage,𝛿 , is specified by a sequence of state-manipulation\nactions 𝛿 = ( 𝑎1 , . . . , 𝑎𝑘 ). These actions are applied to the initial state 𝑠0 produced by reset():\n𝐸 ′ = 𝑤stage,𝛿 ( 𝐸) = (S , A , O , 𝑇, 𝑅, 𝑠0′ ) ,\n\nwhere 𝑠0′ = 𝑇 (· · · 𝑇 (𝑇 ( 𝑠0 , 𝑎1 ) , 𝑎2 ) · · · , 𝑎𝑘 ) .\n\n(2)\n\nUnder this transformation, only the initial state changes. A Stage customizes the agent’s starting\npoint, either introducing obstacles that require specific skills to tackle or completing early subgoals\nin advance to shorten the task horizon. For example, in our running task, one Stage executes the\nfollowing sequence of actions: take mug 1, open drawer 1, put mug 1 in drawer 1, and\nclose drawer 1 on the state returned by reset(). This Stage intentionally hides the mug from\nthe agent, forcing the agent to face a more challenging scenario: search for the object first instead of\ndirectly reaching for it in plain sight. Conversely, another Stage can simplify the setup by executing\ncleaning the mug in advance, leaving only the final placement steps.\n\nContract: rewriting the interaction. A Contract, 𝑤contract,𝑟 , is specified by a triplet of transformation maps 𝑟 = ( 𝑓 𝐴 , 𝑓𝑇 , 𝑓𝑂 ), each defaulting to the identity. These maps rewrite the action space,\ntransition dynamics, and observation space, respectively:\n\u0001\n𝐸 ′ = 𝑤contract,𝑟 ( 𝐸) = (S , A ′ , O ′ , 𝑇 ′ , 𝑅, 𝑠0 ) , where (A ′ , O ′ , 𝑇 ′ ) = 𝑓 𝐴 (A) , 𝑓𝑂 (O) , 𝑓𝑇 (𝑇 ) . (3)\n\nIn practice, these transformations enforce action preconditions, augment or mask observations, and\nattach structured feedback to specific outcomes to steer agent learning. For example, on our running\ntask, one Contract configures 𝑓𝑂 to truncate the room description after the first two sentences,\nrequiring the agent to build its spatial representation across several steps; another Contract uses 𝑓𝑇\nto block the clean mug action if the agent is not holding the mug, forcing the agent to pick up the\nobject first; and a third Contract configures 𝑓 𝐴 to remove high-level teleport navigation commands,\nforcing the agent to move and search step by step.\n\nChain: extending the environment. A Chain, 𝑤chain,ℓ , is specified by a pair ℓ = ( 𝐸ext , 𝑔), where\n\n𝐸ext is an additional environment and 𝑔 is a composition logic. The composition logic combines the\noriginal environment 𝐸 and 𝐸ext into a composite environment 𝐸′ exposed through the same interface:\n𝐸 ′ = 𝑤chain,ℓ ( 𝐸) = (S ′ , A ′ , O ′ , 𝑇 ′ , 𝑅′ , 𝑠0′ ) ,\n\nwhere 𝐸′ = 𝑔 ( 𝐸, 𝐸ext ) .\n\n(4)\n\nTo allow cross-environment combinations, the new spaces are simply the union of the base\nenvironments (e.g., A ′ = A ∪ Aext ), and 𝑅′ acts as the new composite reward. The composition logic\n𝑔 is unrestricted, allowing environments to be concatenated, interleaved, or branched dynamically\nbased on intermediate outcomes (see Appendix D for examples). The composition logic 𝑔 can either\ncombine both environments from the start, or use the transition function 𝑇 ′ to dynamically transition\nfrom one environment to the next once a specific condition is satisfied. For our running environment,\none Chain appends “heat a potato and put it on the countertop” in the same house, returning success\nunder 𝑅′ only when both environments are verified. This requires the agent to learn to carry its goal\npast the point where it would otherwise have stopped.\nComposition. Because all EnvHarness components share a standard interface, they compose\nfreely. For example, stacking a Stage, a Contract, and a Chain on our base mug task yields a\nsingle composite environment:\n\u0001\u0001\n𝐸 ′ = 𝑤chain,ℓ 𝑤contract,𝑟 𝑤stage,𝛿 ( 𝐸) .\n(5)\n5\n\n\fEnvHarness : Awakening Static Worlds for Agent Learning\n\nIn this setup, 𝑤stage,𝛿 initializes the episode with the mug hidden in a drawer to enforce spatial\nsearch; 𝑤contract,𝑟 truncates the observation to two sentences to evaluate partial observability; and\n𝑤chain,ℓ appends a follow-up task to test goal persistence. Note that these transformations are noncommutative (𝑤1 ◦ 𝑤2 ≠ 𝑤2 ◦ 𝑤1 ); the nesting order determines how the resulting environment is\nconstructed and which constraints apply during initialization versus active interaction.\n\n3. EnvHarness for Agent Learning\n3.1. Problem Setup\nGiven a base environment 𝐸 supporting a set of base tasks, and a target policy agent 𝜋, our objective\nis to automatically generate a modified environment 𝐸′ tailored to a specific task 𝑡 , exposing the\nunique flaws of 𝜋 to facilitate targeted policy improvement. A single EnvHarness component is\nitself policy-agnostic, as Eq. (1) defines 𝑤 as a transformation of the environment alone, allowing\nthe same component to be applied without modification to any policy. Conversely, the selection and\nparameterization of these components must be conditioned on both the base task 𝑡 and the observed\nbehavior of the policy 𝜋. We therefore introduce the task-policy-conditioned map H :\n𝐸 ′ = H ( 𝐸, 𝑡 ; 𝜋) = ( 𝑤𝑘 ◦ 𝑤𝑘 −1 ◦ · · · ◦ 𝑤1 ) ( 𝐸) ,\n\n(6)\n\nwhere each 𝑤𝑖 is a customized EnvHarness component designed to wrap the base environment\n𝐸 and expose the critical weaknesses of 𝜋 on task 𝑡 . Rather than inspecting internal model weights,\n\nthese components treat the agent as a black box and operate solely on its outputs to generate a steady,\ncorrective training signal.\n3.2. EnvRigger\nWe introduce EnvRigger to realize the task-policy-conditioned map H of Eq. (6). EnvRigger\nruns 𝜋 in the environment on task 𝑡 , analyzes the resulting trajectories, writes specific EnvHarness\ncomponents to customize the environment for this task, and validates the customized environment\nusing fresh policy rollouts. Candidates from customized environments that provide an appropriate\nlearning signal are accepted, while the EnvHarness components of unsuccessful candidates are\nrejected or revised. Figure 4 illustrates this complete workflow, in which EnvRigger operates\nsystematically through four distinct stages: Observe, Diagnose, Write, and Validate. To ensure that\nthe initial state mutations introduced by Stage can be reliably reproduced, we assume the base\nenvironment supports deterministic resets during the validation phase.\n\nObserve. The EnvRigger begins by running the policy 𝜋 on the base task 𝑡 in the current environment to collect and analyze a batch of rollout trajectories. While failures expose the specific\nweaknesses to be addressed within this task, successes help define the boundaries of these flaws,\nshowing which capabilities are already intact and where they begin to fail.\nDiagnose. EnvRigger analyzes the collected trajectories to identify the root causes of the observed behaviors, focusing on systemic issues such as repetitive action loops, failures in parsing long\nobservations, or misread tool constraints. This diagnosis also determines the customization direction.\nFor a struggling policy, the goal is to scaffold missing steps and simplify the task. Conversely, if the\npolicy achieves a perfect success rate, it indicates the current environment is too forgiving to expose\n6\n\n\fEnvHarness : Awakening Static Worlds for Agent Learning\n\nFigure 4 | EnvRigger generating EnvHarness components for a target policy based on given task.\nThe execution loop on the left runs the policy against the current environment, which is a frozen base\nenvironment wrapped by the active EnvHarness containing accepted components 𝑤1 , . . . , 𝑤𝑘 , while\nthe resulting rollout trajectories feed the EnvRigger loop on the right. The EnvRigger operates\nsystematically through four distinct stages: Observe, Diagnose, Write, and Validate, where the last\ntwo steps form a write-and-validate loop that generates a candidate component, evaluates it on fresh\nrollouts, and revises it upon failure.\nany remaining weaknesses. Under this scenario, the EnvRigger diagnoses that the environment\nmust be made harder, shifting the customization to inject more challenging scenarios that force the\npolicy’s potential flaws into the open. EnvRigger then outputs these findings as a textual diagnosis.\nWrite. Based on the diagnosis, EnvRigger synthesizes one or more EnvHarness components\nto target the identified flaws. A single flaw may require combining multiple components, such as a\nStage that customizes the initial state and a Contract that filters subsequent interactions, emitted\ntogether as a candidate set. For example, if the diagnosis reveals that the policy relies on a fragile\nshortcut that bypasses learning, EnvRigger can write a Contract that blocks this action under\nspecific conditions, forcing the policy to explore and master the intended skills.\nValidate. To evaluate the candidate components from the Write stage, EnvRigger wraps the\ncurrent environment with them to instantiate 𝐸′ and runs fresh rollouts of 𝜋 on the base task 𝑡 .\nBased on some trajectory metrics, like the success rate and failure distribution, EnvRigger analyzes\nthese fresh rollouts to decide between three validation behaviors: accepting the candidate, rejecting\nthose that are unsolvable or non-challenging, or refining candidates with poorly scaled signals. If\nthe candidate requires refinement, the trajectories and scaling feedback flow back into the Write\nstage, repeating this Write-and-Validate loop until a candidate is accepted or the revision budget is\nexhausted. All accepted components are ultimately added to the EnvHarness. The exact system\nprompt and decision-making criteria guiding these validation actions are detailed in Appendix A.\n\n7\n\n\fEnvHarness : Awakening Static Worlds for Agent Learning\n\n4. Experiments\n4.1. Experimental Setup\nIn this section, we mainly focus on the skill-based learning paradigm, where skills are extracted from\nenvironments to improve agent capabilities. We also evaluate the compatibility and performance of\nour framework under the online reinforcement learning paradigm, which is presented as part of our\nbroader analysis in Section 5.\nBenchmarks and Evaluation. We evaluate our framework on five benchmarks spanning four distinct\ndomains: ALFWorld (Shridhar et al., 2020) for text-based embodied environments, WebArena (Zhou\net al., 2024) for web interaction, SWE-bench Verified (Jimenez et al., 2024) for software engineering,\nand OfficeQA (Databricks, 2025) with SpreadsheetBench (Ma et al., 2024) for office automation.\nWe report each benchmark’s native metrics, additionally tracking the average steps on SWE-bench\nVerified as a measure of execution efficiency. Training and evaluation episodes are strictly disjoint on\nevery benchmark, with detailed split configurations provided in Appendix E.1.\nImportantly, EnvRigger and the policy agent utilize the same model backbone on each benchmark: Gemini-3.1-Flash-Lite for ALFWorld and WebArena, and Gemini-3.5-Flash elsewhere, ensuring\nthat performance gains do not stem from distilling a stronger external model. On each training\nset, EnvRigger executes the optimization loop of Section 3 to generate EnvHarness-customized\nenvironments. We then extract skills from trajectories collected in these environments following\nReasoningBank (Ouyang et al., 2025), and evaluate the skill-equipped policy agent on the held-out\ninstances. We exclude the Chain component from this automated pipeline because it is difficult for\nEnvRigger to observe the internal states of joined environments. Instead, we analyze the effect of\nchaining separately in Section 5.\nBaseline Methods. We compare EnvHarness against four skill sources: No Skills (the frozen\npolicy agent alone), Original Envs (skills from original environments to isolate reshaping effects), and\nGenEnv (Guo et al., 2025), VeriEnv (Chae et al., 2026), or SWE-smith (Yang et al., 2026a) for their\nrespective benchmarks. While these baseline generators are domain-specific, EnvHarness applies\ngenerically across all domains via a unified interface, including the office automation environments\nwhere no generation baseline exists. To ensure a fair comparison, all baselines share the same seed\ninstances, environment count, extraction pipeline, and policy model. EnvRigger operates strictly on\ntraining episodes under the same oracle verification access, and each evaluation instance is attempted\nonce. Baseline details are in Appendix E.2.\n4.2. Main Results\nTable 2 and Table 3 summarize the primary results across five benchmarks. Based on these evaluations,\nwe present the following key observations.\nEnvHarness delivers consistent gains where static environments cannot. Skills acquired in\nenvironments customized by EnvHarness consistently outperform those extracted from original\nenvironments on every benchmark, yielding up to a 9.0-point improvement on ALFWorld. Conversely,\nextracting skills from static base environments can actually degrade performance; for instance, on\nSpreadsheetBench, skills from unmodified environments fall below the no-skill baseline, while on\nSWE-bench Verified, they lengthen execution trajectories. Because static environments only allow\n\n8\n\n\fEnvHarness : Awakening Static Worlds for Agent Learning\n\nTable 2 | Performance of agents equipped with skills extracted from different environment sources on\nALFWorld and WebArena. All numbers are the mean over three independent runs, with standard\ndeviations as gray subscripts. Higher is better for every metric, and the last row reports the improvement of EnvHarness Envs over Original Envs. “–” denotes that the method is benchmark-specific\nand cannot be applied to the other domain.\nALFWorld\n\nSkill Source\n\nWebArena\n\nIn-Dist\n\nOOD\n\nAvg.\n\nReddit\n\nShopping\n\nShop Admin\n\nGitLab\n\nAvg.\n\nNo Skills\nOriginal Envs\nGenEnv\nVeriEnv\nEnvHarness Envs\n\n62.6 1.7\n63.3 2.8\n63.3 1.2\n–\n66.2 0.3\n\n60.7 5.2\n61.4 4.3\n61.9 2.7\n–\n70.4 2.3\n\n61.7 3.4\n62.4 3.4\n62.6 1.9\n–\n68.3 1.3\n\n39.6 2.3\n38.7 9.7\n–\n39.6 4.2\n40.6 4.7\n\n35.2 3.3\n35.2 1.3\n–\n30.2 0.0\n37.4 0.3\n\n44.1 2.3\n44.6 3.0\n–\n49.7 2.4\n50.8 1.5\n\n35.8 8.4\n35.4 4.0\n–\n38.9 5.6\n37.7 3.1\n\n38.7 2.3\n38.5 3.1\n–\n39.6 1.4\n41.6 1.8\n\nImprovement\n\n+2.9\n\n+9.0\n\n+5.9\n\n+1.9\n\n+2.2\n\n+6.2\n\n+2.3\n\n+3.1\n\nTable 3 | Performance of agents equipped with skills extracted from different environment sources on\nSWE-bench Verified, OfficeQA, and SpreadsheetBench. Standard deviations are gray subscripts. “–”\ndenotes that the method is benchmark-specific and cannot be applied to the other domain.\nSWE-verified\n\nSkill Source\nNo Skills\nOriginal Envs\nSWE-smith\nEnvHarness Envs\nImprovement\n\nOfficeQA\n\nSpreadsheetBench\n\nSR (↑)\n\nAverage Step (↓)\n\nEM (↑)\n\nF1 (↑)\n\nPass@1 (↑)\n\nMean Score (↑)\n\n47.67 0.93\n49.88 2.59\n50.12 1.74\n52.58 2.72\n\n53.58 2.93\n55.01 1.69\n54.72 2.03\n49.61 2.49\n\n54.23 2.84\n54.40 1.84\n–\n56.20 2.34\n\n55.77 2.98\n55.77 1.59\n–\n57.73 2.29\n\n46.44 0.15\n45.88 1.19\n–\n49.15 0.36\n\n61.32 0.37\n61.47 0.59\n–\n62.48 0.27\n\n+2.70\n\n+5.40\n\n+1.80\n\n+1.96\n\n+3.27\n\n+1.01\n\nthe agent to practice behaviors it already executes, they fail to address its specific limitations, often\nretrieving redundant or suboptimal skills. In contrast, the write-and-validate loop of EnvRigger only\ncommits environment components verified by fresh policy trajectories, ensuring that EnvHarness\nconsistently improves upon the no-skill baseline across all benchmarks.\nEnvHarness generalizes across domains through a domain-agnostic interface. The underlying\ninterface protocol, EnvRigger loop, and the skill extraction pipeline apply consistently across all\nfive benchmarks, requiring only domain-specific prompt templates to adapt to different environments.\nBy contrast, specialized generation baselines are constrained to their specific target benchmarks\n(indicated by dashes for inapplicable domains in Tables 2 and 3). Nevertheless, EnvHarness\nconsistently outperforms these specialized baselines wherever they can be applied. On ALFWorld,\nEnvHarness skills surpass GenEnv by 5.7 points on average and by 8.5 points in out-of-distribution\nsettings, where generic instance generation merely increases repetitive practice without addressing\npolicy weaknesses. On SWE-bench Verified, EnvHarness outperforms the purpose-built SWE-smith\nby 2.46 points in success rate while requiring 5.11 fewer execution steps per episode. Targeting\ndiagnosed vulnerabilities through a unified interface thus proves superior to merely scaling up the\nquantity of training episodes through domain-specific generation.\nEnvHarness improves efficiency by repairing wasteful behaviors. On SWE-bench Verified,\nskills extracted from EnvHarness-customized environments reduce the average steps per episode\nfrom 53.6 to 49.6, whereas skills from unmodified environments actually increase it to 55.0. This\n9\n\n\fEnvHarness : Awakening Static Worlds for Agent Learning\n\nefficiency gain directly correlates with the specific diagnostics from EnvRigger: targeted Contracts\nand Stages designed to disrupt repetitive action loops and filter verbose observations successfully\nshorten execution trajectories.\n\n5. Analysis\nWe analyze EnvHarness along five dimensions: its compatibility as a training signal for reinforcement learning, its scaling efficiency compared to standard dataset expansion, its transferability\nacross different policy model families and strengths, the unique value of the Chain component on\nlong-horizon environments, and the capability of the EnvRigger to accept explicit, user-defined\ntarget constraints. Additional analyses are reported in Appendix G.\nEnvHarness enables better RL. BeALFWorld\nWebShop\nyond skill-based learning, we investigate\nTraining Set\nIn-Dist OOD Avg. Score SR\nwhether EnvHarness-customized environments can provide active training sigOriginal Envs\n81.4 89.6 85.5 75.6 66.0\nnals in online reinforcement learning. We\nEnvHarness Envs 87.9 88.8 88.4 79.2 67.4\nperform this analysis on ALFWorld and\nWebShop (Yao et al., 2022a) using Qwen3- Table 4 | Reinforcement learning on ALFWorld and Web8B-base (Yang et al., 2025) as the policy, Shop, comparing policies trained on the original environoptimized via Group Relative Policy Opti- ments and on EnvHarness environments. ALFWorld\nmization (GRPO) (Shao et al., 2024); train- is scored by success rate on in-distribution and held-out\ning details are provided in Appendix F.1. instance types; WebShop reports environment score and\nWe train two distinct policies: one trained success rate.\nsolely on the original static environments,\nand one trained entirely on environments reshaped by EnvHarness, evaluating both on the same\nheld-out instances. Table 4 reports the results. Training on EnvHarness environments consistently\nimproves policy performance, outperforming the baseline trained solely on original environments on\nthree out of four metrics. Specifically, on ALFWorld, EnvHarness Envs achieves an in-distribution\nsuccess rate of 87.9 compared to 81.4 for original environments. On WebShop, it achieves a higher\nscore of 79.2 (versus 75.6) and success rate of 67.4 (versus 66.0). Although there is a slight, negligible\ntrade-off in the ALFWorld OOD success rate (88.8 versus 89.6), the overall results underscore a\nfundamental advantage: the reshaped environments are not merely auxiliary data but provide a\nhighly effective, independent optimization signal for online policy learning.\n\nChain enables efficient long-hori-\n\nSR (%) ↑\n\nAS ↓\n\nzon task solving. Real-world appliNo Skills\n47.67\n53.58\ncations often require agents to opOriginal Envs\n49.88\n55.01\nerate over extended horizons. The\nEnvHarness (Stage/Contract Only)\n52.58\n49.61\nEnvHarness (Chain Only)\n49.63 41.96\nChain component addresses this by\njoining two randomly paired base enCombined Skills (Stage/Contract + Chain) 54.30 43.12\nvironments into a single, extended\nepisode. To isolate its effect, this pair- Table 5 | Performance on long-horizon environments. SR\ning operates independently of the au- stands for Success Rate, and AS represents Average Steps.\ntonomous EnvRigger loop. We evaluate the extracted skills on standard single-environment test instances, reporting Success Rate (SR)\nand Average Steps (AS) in Table 5.\n\n10\n\n\fEnvHarness : Awakening Static Worlds for Agent Learning\n\nSkills from Chain environments yield substantial efficiency gains, reducing AS from 53.58 to\n41.96. Their standalone SR (49.63) is marginally below the 49.88 baseline. This aligns with their\nstringent training condition—where success requires solving both halves—which prioritizes long-term\ngoal preservation over short-task maximization. Combining both skill sets (Stage/Contract +\nChain) achieves the best of both worlds: the highest SR (54.30) and excellent efficiency (43.12 AS),\ndemonstrating highly complementary behaviors. Representative skills are in Appendix F.3.\n56\n\nResolved Rate (%)\n\n54.8\nEnvHarness enables efficient environment\n54\nscaling. Environment scaling evaluates performance as the available training environments ex52.1\n52\npand, comparing three allocation strategies un50.4\nder an identical budget: EnvHarness environ50\nments, unmodified benchmark environments,\nand SWE-smith generated environments. Hold47.7\n48\ning the policy model, environment budget, and\n0\n50\n100\n150\n200\n250\n300\nNumber of Environments\nskill retrieval protocol fixed, each batch of 50\nenvironments yields one skill bank (alternating\nFigure 5 | Environment scaling on SWE-bench Verbetween 2 and 3 skills per bank, totaling 15\nified. All three sources supply the same number\nskills at 300 environments). Crucially, while\nof environments and feed the same extraction and\nboth baselines draw environment batches inderetrieval protocol.\npendently of the learner, EnvHarness synthesizes each batch specifically targeting the policy equipped with previously accumulated skills, enabling\nthe environments and the policy to co-evolve. As shown in Figure 5, EnvHarness climbs from 47.67\nto 54.79 (a 7.12-point gain) and maintains an upward trajectory at 300 environments. In contrast,\nthe same budget yields only 52.13 on original environments and 50.37 on generated ones. This\nperformance gap confirms that targeting the learner’s current capability boundary is fundamentally\nmore effective than unconditioned environment scaling. Representative skills from each round are\nprovided in Appendix F.2.\nGenerated envs\nOriginal envs\n\nEnvHarness envs (ours)\n\n+4.6%\nNo skills\n\n70\n\nSuccess Rate (%)\n\nEnvHarness generalizes across different LLM backbones. To evaluate generalizability, we test four distinct models on\nSWE-bench Verified: Gemini 3.1 Flash-Lite,\nQwen3.6 27B (Qwen Team, 2026), Gemini 3.5 Flash, and Claude Sonnet 4.6 (Anthropic, 2026a). These span open-weight\nand proprietary architectures across a wide\ncapability spectrum. In each setting, we\nuse the same model backbone for both the\ntarget policy and the EnvRigger to keep\nthe setup consistent, while the extraction\npipeline and protocol remain unchanged.\n\n72.4\n\nSkills from original envs\n\n67.2\n\n69.2\n\nSkills from EnvHarness envs\n\n60\n\n+5.4%\n\n+7.6%\n\n52.6\n\n52.1\n\n50\n\n48.4\n\n47.7\n\n49.9\n\n+8.7%\n\n40\n\n40.0\n30.7\n\n41.0\n\n36.8\n\n30\nGemini 3.1\nFlash-Lite\n\nQwen3.6\n27B\n\nGemini 3.5\nFlash\n\nClaude\nSonnet 4.6\n\nFigure 6 | Cross-model results on SWE-bench Verified.\nEach group represents one policy model, ordered from\nweakest to strongest. Bars show success rates with no\nskills, with skills from unmodified environments, and\nwith skills from EnvHarness environments. Percentages represent relative gains over original environments.\n\nFigure 6 shows the results. EnvHarness skills outperform real environment\nskills on all four policies, by 2.7 to 3.7 absolute points, even though the skill-free success rates span a broad range from 30.7 to 67.2. The size\nof this gain is largely independent of how strong the underlying policy is: the customization loop\nneither breaks down on the weakest model nor saturates on the strongest, and the same pipeline,\n11\n\n\fEnvHarness : Awakening Static Worlds for Agent Learning\n\nprompts, and acceptance criteria are used throughout. What the policy’s capability level appears to\nchange is the content of the diagnoses rather than the applicability of the loop. We note that skills of\neither kind help the two weakest policies most relative to no skills at all (+9.3 and +11.1 points for\nEnvHarness, and +6.1 and +7.4 for unmodified environments, versus under 5.5 points for the two\nstrongest).\nEnvHarness produces environments on demand. While the EnvRigger loop autonomously\nidentifies training targets via behavioral diagnosis in standard settings, the same machinery can\nreadily accept explicit, user-defined constraints. We evaluate two classes of constraints. The first is a\nquantitative target (success rate or average steps) for an objective performance metric in Appendix G.\nThe second constraint targets capability weaknesses described in natural language. For example,\ngiven the weakness below, the EnvRigger generates a Contract that rejects code submissions\nunless tests are run. This forces the agent to verify its fixes. From the resulting trajectories, we distill\nthe skill shown below. Rather than overfitting to a single task, the skill combines a general principle\nwith actionable steps, perfectly matching our requirement for a skill (Yang et al., 2026b).\nSpecified weakness\nThe policy submits a patch without running the failing test, so the fix stays unverified.\nGenerated component (Contract, 𝑓𝑇 axis)\nclass _Contract(Contract):\ndef modify_transition(self, action, response, env_state):\ncmd = bash_command(action)\nif \"pytest\" in cmd or \"runtests.py\" in cmd:\nenv_state.extras[\"ran_tests\"] = True\nif is_submission(cmd) \\\nand not env_state.extras.get(\"ran_tests\"):\nreturn failed(response,\n\"githook: pre-commit hook ’verify-tests’ \"\n\"failed. Run the test suite before submitting.\")\nreturn response\n\nVerification-Driven Development Loop\nDescription: Whenever a code change is made to fix a bug or implement a feature, especially where the\ntest suite needs setup or configuration.\nContent: Before finalizing any change, run the relevant test suite to confirm the failure exists, then run it\nagain after the patch to verify the fix, initializing the environment first when needed.\n\n6. Related Work\n6.1. Environment Scaling\nEnvironment scaling has emerged as a research direction that supplies agents with more environments\nto learn from (Huang et al., 2025b; Xi et al., 2025). Existing efforts scale environments in various\nforms, including simulating environments and their feedback with an LLM (Guo et al., 2025; Wang\net al., 2025; Zala et al., 2024), up to world models that simulate or synthesize whole families of\n12\n\n\fEnvHarness : Awakening Static Worlds for Agent Learning\n\nagentic environments (Wang et al., 2026; Zuo et al., 2026), synthesizing executable environments\nprogrammatically (Chae et al., 2026; Dong et al., 2026; Song et al., 2026; Sun et al., 2026; Tang\net al., 2026), and synthesizing new task instances inside an existing benchmark (Pan et al., 2024;\nYang et al., 2026a). Beyond producing more tasks, another line adapts what the environment presents\nto the learner, from curriculum generation in reinforcement learning (Dennis et al., 2020; Jiang\net al., 2021; Liu et al., 2026; Wang et al., 2019) to hand-designed corrective feedback and reward\nshaping (Lu et al., 2025). Different from previous works that rely on benchmark-specific pipelines\nor hand-designed curricula, EnvHarness reshapes an existing environment through one interface\nshared across benchmarks, conditions the reshaping on the diagnosed weaknesses of the current\npolicy, and leaves tasks and verifiers untouched.\n6.2. Self-Evolving Agent\nSelf-evolving agents improve themselves from their own experience without additional human supervision (Fang et al., 2025). Existing efforts evolve different parts of the agent, including prompts and\nreflections (Madaan et al., 2023; Shinn et al., 2023), skill and workflow libraries (Huang et al., 2026b;\nWang et al., 2023, 2024; Xia et al., 2026a,b; Yang et al., 2026b), experience memory distilled from\npast trajectories (Ouyang et al., 2025; Zhao et al., 2024), the model weights through self-generated\nrewards or self-proposed tasks (He et al., 2025; Huang et al., 2025a, 2026a; Xia et al., 2025; Yuan\net al., 2024; Zhao et al., 2026), and recently the agent harness itself, rewritten and tested around\na frozen model (Lee et al., 2026b). Different from these methods that evolve the agent while the\nworld it learns from stays fixed, EnvHarness reshapes the environment itself against the diagnosed\nweaknesses of a frozen policy.\n\n7. Conclusion\nWe introduce EnvHarness, a programmable layer that turns a static, existing environment into a\ncontrollable one. EnvHarness wraps a frozen benchmark with three plug-in components, Stage,\nContract, and Chain, and reshapes it entirely through the standard reset/step interface, making it\npossible to isolate a skill, extend a task’s horizon, or calibrate difficulty in environments that were\nnever built for any of these purposes. Since EnvHarness never touches internal code, a single\nimplementation works seamlessly across different domains. Furthermore, by leaving the original\ntasks unchanged, every reshaped environment safely retains its trusted, human-built verifier. To\nfully automate this customization, we introduce EnvRigger, an autonomous loop that diagnoses\npolicy weaknesses from execution trajectories and synthesizes targeted EnvHarness components\nto provide precise learning signals. This reframes environment construction as a wrapping problem\nrather than an authoring one, and suggests a practical pathway toward scalable environment supply\nfor agent learning. We present future directions and limitations in Appendix I and Appendix H.\n\nReferences\nAnthropic.\n\nEffective harnesses for long-running agents. https://www.anthropic.com/\nengineering/effective-harnesses-for-long-running-agents, 2025. Accessed: 202607-07.\n\nAnthropic. Claude 4.6 sonnet. https://www.anthropic.com/news/claude-sonnet-4-6,\n2026a. Accessed: 2026-07-28.\n\n13\n\n\fEnvHarness : Awakening Static Worlds for Agent Learning\n\nAnthropic. Harness design for long-running application development. https://www.anthropic.\ncom/engineering/harness-design-long-running-apps, 2026b. Published: March 24,\n2026. Accessed: 2026-07-07.\nM. Beukman, S. Coward, M. Matthews, M. Fellows, M. Jiang, M. Dennis, and J. Foerster. Refining\nminimax regret for unsupervised environment design. arXiv preprint arXiv:2402.12284, 2024.\nH. Chae, J. Park, and A. Ritter. Safe and scalable web agent learning via recreated websites. arXiv\npreprint arXiv:2603.10505, 2026.\nDatabricks. Officeqa: A grounded reasoning benchmark, 2025.\nM. Dennis, N. Jaques, E. Vinitsky, A. Bayen, S. Russell, A. Critch, and S. Levine. Emergent complexity\nand zero-shot transfer via unsupervised environment design. Advances in neural information\nprocessing systems, 33:13049–13061, 2020.\nG. Dong, J. Lu, J. Huang, W. Zhong, L. Liu, S. Huang, Z. Li, Y. Zhao, X. Song, X. Li, et al. Agent-world:\nScaling real-world environment synthesis for evolving general agent intelligence. arXiv preprint\narXiv:2604.18292, 2026.\nJ. Fang, Y. Peng, X. Zhang, Y. Wang, X. Yi, G. Zhang, Y. Xu, B. Wu, S. Liu, Z. Li, et al. A comprehensive\nsurvey of self-evolving ai agents: A new paradigm bridging foundation models and lifelong agentic\nsystems. arXiv preprint arXiv:2508.07407, 2025.\nJ. Guo, L. Yang, P. Chen, Q. Xiao, Y. Wang, X. Juan, J. Qiu, K. Shen, and M. Wang. Genenv:\nDifficulty-aligned co-evolution between llm agents and environment simulators. arXiv preprint\narXiv:2512.19682, 2025.\nI. Gur, H. Furuta, A. Huang, M. Safdari, Y. Matsuo, D. Eck, and A. Faust. A real-world webagent\nwith planning, long context understanding, and program synthesis. In International Conference on\nLearning Representations, volume 2024, pages 52690–52717, 2024.\nY. He, C. Huang, Z. Li, J. Huang, and Y. Yang. Visplay: Self-evolving vision-language models from\nimages. arXiv preprint arXiv:2511.15661, 2025.\nY. Hu, Z. Wen, X. Liu, P. Wang, X. Zhang, and W. Wu. Seal: Synergistic co-evolution of agents and\nlearning environments. arXiv preprint arXiv:2605.24426, 2026.\nC. Huang, W. Yu, X. Wang, H. Zhang, Z. Li, R. Li, J. Huang, H. Mi, and D. Yu. R-zero: Self-evolving\nreasoning llm from zero data. arXiv preprint arXiv:2508.05004, 2025a.\nC. Huang, H. Liu, T. Zheng, R. Dai, L. Huang, J. Li, Z. Li, Z. Wei, Y. Meng, and J. Huang. G-zero:\nSelf-play for open-ended generation from zero data. arXiv preprint arXiv:2605.09959, 2026a.\nY. Huang, S. Li, M. Liu, W. Liu, S. Huang, Z. Fan, H. P. Chan, and Y. R. Fung. Environment scaling for\ninteractive agentic experience collection: A survey. arXiv preprint arXiv:2511.09586, 2025b.\nZ. Huang, J. Xu, Y. Yang, Z. Gong, Q. Yang, M. Tian, X. Wang, C. Lv, X. Gao, Q. Dai, et al. From raw\nexperience to skill consumption: A systematic study of model-generated agent skills. arXiv preprint\narXiv:2605.23899, 2026b.\nM. Jiang, E. Grefenstette, and T. Rocktäschel. Prioritized level replay. In International Conference on\nMachine Learning, pages 4940–4950. PMLR, 2021.\n\n14\n\n\fEnvHarness : Awakening Static Worlds for Agent Learning\n\nC. E. Jimenez, J. Yang, A. Wettig, S. Yao, K. Pei, O. Press, and K. R. Narasimhan. SWE-bench: Can\nlanguage models resolve real-world github issues? In The Twelfth International Conference on\nLearning Representations, 2024. URL https://openreview.net/forum?id=VTF8yNQM66.\nS. Lee, S. Chowdhury, C. Jiang, C.-Y. Hsieh, T.-Y. Hu, A. T. Toshev, O. Tuzel, and R. Vemulapalli.\nEnvironment-free synthetic data generation for api-calling agents. arXiv preprint arXiv:2607.16900,\n2026a.\nY. Lee, R. Nair, Q. Zhang, K. Lee, O. Khattab, and C. Finn. Meta-harness: End-to-end optimization of\nmodel harnesses. arXiv preprint arXiv:2603.28052, 2026b.\nJ. Li, Z. Jin, T. Men, Y. Hao, K. Zhu, L. Wang, D. Huang, L. Wang, S. Hua, L. Wang, et al. Agentic\nenvironment engineering for large language models: A survey of environment modeling, synthesis,\nevaluation, and application. arXiv preprint arXiv:2606.12191, 2026.\nB. Liu, S. Yu, Y. Jiang, A. Qu, A. Zhao, Z. Liu, J. Kim, Z. Zhou, S. Kim, T. Ren, M. Liu, H. Yu, Z. Chen,\nW. Shi, P. P. Liang, L. Zettlemoyer, Y. Choi, and N. Jaques. Spade: Self-play in adaptive synthetic\nexecutable environments. arXiv preprint arXiv:2608.19197, 2026. URL https://arxiv.org/\nabs/2608.19197.\nS. Lu, Z. Wang, H. Zhang, Q. Wu, L. Gan, C. Zhuang, J. Gu, and T. Lin. Don’t just fine-tune the agent,\ntune the environment. arXiv preprint arXiv:2510.10197, 2025.\nZ. Ma, B. Zhang, J. Zhang, J. Yu, X. Zhang, X. Zhang, S. Luo, X. Wang, and J. Tang. Spreadsheetbench:\nTowards challenging real world spreadsheet manipulation. arXiv preprint arXiv:2406.14991, 2024.\nA. Madaan, N. Tandon, P. Gupta, S. Hallinan, L. Gao, S. Wiegreffe, U. Alon, N. Dziri, S. Prabhumoye,\nY. Yang, et al. Self-refine: Iterative refinement with self-feedback. Advances in neural information\nprocessing systems, 36:46534–46594, 2023.\nQ. Meng, Y. Wang, L. Chen, W. Wu, Y. Li, W. Jiang, Q. Wang, C. Lu, Y. Gao, Y. Wu, and Y. Hu. Agent\nharness for large language model agents: A survey. 2026. doi: 10.20944/preprints202604.0428.v3.\nURL https://www.preprints.org/manuscript/202604.0428/v3.\nM. A. Merrill, A. G. Shaw, N. Carlini, B. Li, H. Raj, I. Bercovich, L. Shi, J. Y. Shin, T. Walshe, E. K.\nBuchanan, et al. Terminal-bench: Benchmarking agents on hard, realistic tasks in command line\ninterfaces. arXiv preprint arXiv:2601.11868, 2026.\nOpenAI. Harness engineering: leveraging codex in an agent-first world. https://openai.com/\nindex/harness-engineering/, February 2026. Accessed: 2026-07-07.\nS. Ouyang, J. Yan, I. Hsu, Y. Chen, K. Jiang, Z. Wang, R. Han, L. T. Le, S. Daruki, X. Tang, et al. Reasoningbank: Scaling agent self-evolving with reasoning memory. arXiv preprint arXiv:2509.25140,\n2025.\nJ. Pan, X. Wang, G. Neubig, N. Jaitly, H. Ji, A. Suhr, and Y. Zhang. Training software engineering\nagents and verifiers with swe-gym. arXiv preprint arXiv:2412.21139, 2024.\nQwen Team. Qwen3.6-27B: Flagship-level coding in a 27B dense model, April 2026. URL https:\n//qwen.ai/blog?id=qwen3.6-27b.\nZ. Shao, P. Wang, Q. Zhu, R. Xu, J. Song, X. Bi, H. Zhang, M. Zhang, Y. Li, Y. Wu, et al. Deepseekmath: Pushing the limits of mathematical reasoning in open language models. arXiv preprint\narXiv:2402.03300, 2024.\n15\n\n\fEnvHarness : Awakening Static Worlds for Agent Learning\n\nN. Shinn, F. Cassano, A. Gopinath, K. Narasimhan, and S. Yao. Reflexion: Language agents with verbal\nreinforcement learning. Advances in neural information processing systems, 36:8634–8652, 2023.\nM. Shridhar, X. Yuan, M.-A. Côté, Y. Bisk, A. Trischler, and M. Hausknecht. Alfworld: Aligning text\nand embodied environments for interactive learning. arXiv preprint arXiv:2010.03768, 2020.\nX. Song, H. Chang, G. Dong, Y. Zhu, J.-R. Wen, and Z. Dou. Envscaler: Scaling tool-interactive environments for llm agent via programmatic synthesis. In Findings of the Association for Computational\nLinguistics: ACL 2026, pages 8326–8357, 2026.\nS. Sun, H. Song, L. Huang, J. Jiang, R. Le, Z. Lv, Z. Chen, Y. Hu, W. Luo, W. X. Zhao, et al. Swe-world:\nBuilding software engineering agents in docker-free environments. arXiv preprint arXiv:2602.03419,\n2026.\nZ. Tang, Y. Liu, X. Lai, J. Li, P. Lyu, Y. Guo, Z. Fang, Y. Ding, Y. Zhang, W. Wang, et al. Phoneworld:\nScaling phone-use agent environments. arXiv preprint arXiv:2605.29486, 2026.\nB. Trabucco, G. Sigurdsson, R. Piramuthu, and R. Salakhutdinov. Insta: Towards internet-scale\ntraining for agents. arXiv preprint arXiv:2502.06776, 2025.\nG. Wang, Y. Xie, Y. Jiang, A. Mandlekar, C. Xiao, Y. Zhu, L. Fan, and A. Anandkumar. Voyager: An\nopen-ended embodied agent with large language models. arXiv preprint arXiv:2305.16291, 2023.\nR. Wang, J. Lehman, J. Clune, and K. O. Stanley. Paired open-ended trailblazer (poet): Endlessly\ngenerating increasingly complex and diverse learning environments and their solutions. arXiv\npreprint arXiv:1901.01753, 2019.\nY. Wang, D. Yin, Y. Cui, R. Zheng, Z. Li, Z. Lin, D. Wu, X. Wu, C. Ye, Y. Zhou, et al. Llms as scalable,\ngeneral-purpose simulators for evolving digital agent training. arXiv preprint arXiv:2510.14969,\n2025.\nZ. Wang, C. Xu, B. Liu, Y. Wang, S. Han, Z. Yao, H. Yao, and Y. He. Agent world model: Infinity\nsynthetic environments for agentic reinforcement learning. arXiv preprint arXiv:2602.10090, 2026.\nZ. Z. Wang, J. Mao, D. Fried, and G. Neubig. Agent workflow memory. arXiv preprint arXiv:2409.07429,\n2024.\nZ. Xi, Y. Ding, W. Chen, B. Hong, H. Guo, J. Wang, X. Guo, D. Yang, C. Liao, W. He, et al. Agentgym:\nEvaluating and training large language model-based agents across diverse environments. In\nProceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1:\nLong Papers), pages 27914–27961, 2025.\nP. Xia, K. Zeng, J. Liu, C. Qin, F. Wu, Y. Zhou, C. Xiong, and H. Yao. Agent0: Unleashing self-evolving\nagents from zero data via tool-integrated reasoning. arXiv preprint arXiv:2511.16043, 2025.\nP. Xia, J. Chen, H. Wang, J. Liu, K. Zeng, Y. Wang, S. Han, Y. Zhou, X. Zhao, H. Chen, et al. Skillrl: Evolving agents via recursive skill-augmented reinforcement learning. arXiv preprint arXiv:2602.08234,\n2026a.\nP. Xia, J. Chen, X. Yang, H. Tu, J. Liu, K. Xiong, S. Han, S. Qiu, H. Ji, Y. Zhou, et al. Metaclaw: Just\ntalk–an agent that meta-learns and evolves in the wild. arXiv preprint arXiv:2603.17187, 2026b.\nA. Yang, A. Li, B. Yang, B. Zhang, B. Hui, B. Zheng, B. Yu, C. Gao, C. Huang, C. Lv, et al. Qwen3\ntechnical report. arXiv preprint arXiv:2505.09388, 2025.\n\n16\n\n\fEnvHarness : Awakening Static Worlds for Agent Learning\n\nJ. Yang, C. Jimenez, A. Wettig, K. Lieret, S. Yao, K. Narasimhan, and O. Press. Swe-agent: Agentcomputer interfaces enable automated software engineering. Advances in Neural Information\nProcessing Systems, 37:50528–50652, 2024.\nJ. Yang, K. Lieret, C. Jimenez, A. Wettig, K. Khandpur, Y. Zhang, B. Hui, O. Press, L. Schmidt, and\nD. Yang. Swe-smith: Scaling data for software engineering agents. Advances in Neural Information\nProcessing Systems, 38, 2026a.\nY. Yang, Z. Gong, W. Huang, Q. Yang, Z. Zhou, Z. Huang, Y. Li, X. Gao, Q. Dai, B. Liu, et al. Skillopt:\nExecutive strategy for self-evolving agent skills. arXiv preprint arXiv:2605.23904, 2026b.\nS. Yao, H. Chen, J. Yang, and K. Narasimhan. Webshop: Towards scalable real-world web interaction\nwith grounded language agents. Advances in Neural Information Processing Systems, 35:20744–\n20757, 2022a.\nS. Yao, J. Zhao, D. Yu, N. Du, I. Shafran, K. Narasimhan, and Y. Cao. React: Synergizing reasoning\nand acting in language models. arXiv preprint arXiv:2210.03629, 2022b.\nW. Yuan, R. Y. Pang, K. Cho, X. Li, S. Sukhbaatar, J. Xu, and J. Weston. Self-rewarding language\nmodels. arXiv preprint arXiv:2401.10020, 2024.\nA. Zala, J. Cho, H. Lin, J. Yoon, and M. Bansal. Envgen: Generating and adapting environments via\nllms for training embodied agents. arXiv preprint arXiv:2403.12014, 2024.\nL. Zhang, S. He, C. Zhang, Y. Kang, B. Li, C. Xie, J. Wang, M. Wang, Y. Huang, S. Fu, E. Nallipogu,\nQ. Lin, Y. Dang, S. Rajmohan, and D. Zhang. Swe-bench goes live! arXiv preprint arXiv:2505.23419,\n2025.\nA. Zhao, D. Huang, Q. Xu, M. Lin, Y.-J. Liu, and G. Huang. Expel: Llm agents are experiential learners.\nIn Proceedings of the AAAI Conference on Artificial Intelligence, volume 38, pages 19632–19642,\n2024.\nA. Zhao, Y. Wu, T. Wu, Q. Xu, Y. Yue, M. Lin, S. Wang, Q. Wu, Z. Zheng, and G. Huang. Absolute zero:\nReinforced self-play reasoning with zero data. Advances in Neural Information Processing Systems,\n38:105816–105879, 2026.\nS. Zhou, F. F. Xu, H. Zhu, X. Zhou, R. Lo, A. Sridhar, X. Cheng, T. Ou, Y. Bisk, D. Fried, et al. Webarena:\nA realistic web environment for building autonomous agents. In International Conference on Learning\nRepresentations, volume 2024, pages 15585–15606, 2024.\nY. Zuo, Z. Xiao, L. Sheng, F. Huang, J. Tu, Y. Liu, T. Tang, X. Hu, Y. Su, Q. Lan, et al. Qwen-agentworld:\nLanguage world models for general agents. arXiv preprint arXiv:2606.24597, 2026.\n\n17\n\n\fEnvHarness : Awakening Static Worlds for Agent Learning\n\nContents of Appendix\nA The EnvRigger Prompt\n\n19\n\nB Distinct Differences from Related Co-Evolution and Synthesis Frameworks\n\n20\n\nC Interface Protocol and Design Patterns\n\n21\n\nC.1 ActionableEnv: The Interactable-Environment Interface . . . . . . . . . . . . . . .\n\n21\n\nC.2 Bridges: Adapting Heterogeneous Benchmarks . . . . . . . . . . . . . . . . . . . . . .\n\n22\n\nC.3 EnvHarness: Components as Composable Decorators . . . . . . . . . . . . . . . . .\n\n22\n\nD Concrete Implementation Examples of the Chain (Link) Operator\n\n24\n\nE Experiment Details\n\n25\n\nE.1 Benchmark Splits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .\n\n25\n\nE.2 Baseline Details . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .\n\n25\n\nE.3 EnvRigger Hyperparameters\n\n25\n\n. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .\n\nF Analyses Details\n\n26\n\nF.1 Experimental Details for Reinforcement Learning . . . . . . . . . . . . . . . . . . . .\n\n26\n\nF.2 Skills Across Co-evolution Rounds . . . . . . . . . . . . . . . . . . . . . . . . . . . . .\n\n27\n\nF.3 Skills from Chain Environments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .\n\n33\n\nF.4 Cross-Model Results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .\n\n33\n\nG Additional Analysis\n\n35\n\nH Limitations\n\n41\n\nI\n\n41\n\nFuture Directions\n\n18\n\n\fEnvHarness : Awakening Static Worlds for Agent Learning\n\nA. The EnvRigger Prompt\nNaming. The released code predates the terminology of this paper. The three component types\nappear there as the classes Setups, Rules, and Link, and a candidate emitted by the designer\ncarries the fields rules_code and in_env_actions. Table 6 maps the two, and the rest of this\nappendix uses the names of the paper.\nPaper\n\nCode\n\nEmitted field\n\nStage\nContract\nChain\n\nSetups\nRules\nLink\n\nin_env_actions\nrules_code\n—\n\nTable 6 | Component names in the paper and in the release.\nThe prompt below is the part shared by every benchmark. Each benchmark appends a short\nblock of its own detailing the tools its bridge exposes, the fields of its env_state view, and its\ndomain-specific constraints; those blocks are in the code release.\nSystem prompt of the EnvHarness designer agent\nYou are the Environment Designer for an agent benchmark. Your job is to reshape the environment\nso the Policy agent gets the right training signal. You emit a Candidate with two independent\nlevers:\n1. `rules_code` -- a Python class `_Rules(Rules)` overriding up to three per-step hooks:\nfilter_action (A axis: transform or Block an action), modify_transition (T axis: transform the\nenv's response), and filter_observation (O axis: transform what the Policy sees). All hooks\ndefault to pass-through; the class is loaded fresh per episode.\n2. `in_env_actions` -- a list of tool calls the framework REPLAYS through env.step() before the\nPolicy starts. This is the S0 (initial-state) mechanism: instead of writing code, you write a\ntrajectory the environment walks for you.\nThe two levers compose freely: S0-only, hooks-only, or both (e.g. seed a state via\nin_env_actions, then block the easy escape via filter_action). The R axis is not exposed:\nsuccess is the benchmark's own verdict, so reshaping reward cannot move the eval metric. Hooks\nmay read the env_state schema provided each turn; import only the standard library.\nPITFALL -- do not make the task unsolvable. A mutation that makes success impossible is not a\ndifficulty increase; SR=0 from impossibility is exactly as useless as SR=1 from triviality.\nSignals that a prior mutation was unsolvable: most rollouts end in timeout, or SR=0 with\nfailures pointing at the action axis. On these signals your next proposal must REVERSE or\nloosen the offending restriction -- stacking more bans cannot climb into the band. Prefer\nsubtle, narrow perturbations (one op, one obs key) over sweeping bans.\nBASELINE -- before your first proposal you see K unmutated rollouts on this task: success rate,\nper-rollout outcomes, and sample trajectories. Read it for three things: WHETHER the Policy can\nsolve the task at all (if baseline SR is ~0, \"make it harder\" is nonsensical -- scaffold it\neasier or skip); HOW it solves it (a 4-step solution leaves less headroom than a 30-step one -match perturbation magnitude to that headroom); and WHICH parts of the env it actually relies\non (perturbing commands it never uses is irrelevant). Treat the baseline as raw data, not as a\nhint: decide direction and magnitude yourself.\nREFINE -- after K rollouts of your candidate you decide ACCEPT / REFINE / REJECT, referencing\nrollout statistics (SR over K runs, failure distribution, timeout count), never a single trace.\nWhen refining, ask: did this mutation move SR toward the target band? If yes, the perturbation\nTYPE is right -- keep the working hooks verbatim and adjust only the magnitude (loosen if\novershot, tighten if undershot); do not discard code that paid K rollouts of signal to\nestablish. If no, start over with a different perturbation type.\nYour operating mechanism is fixed. The OBJECTIVE that tells you what to optimize is provided\neach turn; per-benchmark constraints are appended as experiment-specific instructions.\n\n19\n\n\fEnvHarness : Awakening Static Worlds for Agent Learning\n\nB. Distinct Differences from Related Co-Evolution and Synthesis Frameworks\nTo clearly position EnvHarness within the literature on adaptive environment design and coevolution, we highlight the core differences between our framework and three closely related\nparadigms: generative co-evolution, adaptive configuration engines, and programmatic environment synthesis.\n1. Comparison against Generative Co-Evolution (e.g., GenEnv).\n• Their Approach: GenEnv (Guo et al., 2025) uses an LLM as a generative simulator to dynamically\ngenerate transitions, observations, and success signals on the fly.\n• The Limitation: Relying on LLMs to simulate physical transitions and verify tasks inherently\nintroduces hallucinations and evaluation drift, which compromises the mathematical validity of\nthe benchmark.\n• Our Solution: EnvHarness leaves the base environment, its native transition function 𝑇 , and\ntrusted, human-built verifiers completely frozen. All customizations are applied non-invasively\nat the standard interface boundary via Stage, Contract, and Chain wrappers, ensuring 100%\ndeterministic transition logic and high-trust evaluation integrity.\n2. Comparison against Adaptive Configuration Engines (e.g., EnvGen).\n• Their Approach: EnvGen (Zala et al., 2024) generates and adapts environment configurations\n(e.g., changing maps or terrain files) inside the simulator core.\n• The Limitation: Modifying a simulator’s internal code or asset configurations is highly benchmarkspecific, requiring deep, manual engineering for every new domain and risking corrupted state\nlogic.\n• Our Solution: EnvHarness is entirely benchmark-agnostic. While adding a new environment\nrequires implementing a one-time lightweight wrapper bridge (the standard ActionableEnv\ninterface), the core co-evolution loop and the environment designer require no further modification.\nOnce the interface is established, EnvHarness automatically generates and applies customized\ncomponents to any benchmark (e.g., ALFWorld, WebArena, or SWE-bench) without any manual,\ntask-specific configurations.\n3. Comparison against Programmatic Environment Synthesis (e.g., Agent-World).\n• Their Approach: Agent-World (Dong et al., 2026) programmatically synthesizes executable\ntoolsets, databases, and tasks from scratch to scale up training instances.\n• The Limitation: Synthesizing fully executable environments from scratch incurs massive engineering overhead, and the generated tools may contain logic errors that stall agent training.\n• Our Solution: Rather than building new environments from scratch, EnvHarness non-invasively\nrepurposes existing, highly trusted, and established benchmarks. By diagnosing policy weaknesses\nunder a base task 𝑡 , our designer automatically constructs target-oriented challenge wrappers.\nThis significantly reduces computational and engineering overhead while preserving the rigorous\ngrading criteria of established research baselines.\n\n20\n\n\fEnvHarness : Awakening Static Worlds for Agent Learning\n\n\u0013abstract\u0014\n\nActionableEnv\n+ reset() / step(action)\n+ observe() / evaluate()\n+ get_env_state()\n+ save_state() / from_state()\n\nrealizes\n\nrealizes\n\nEnvHarness\n\n{abstract decorator}\n\nBridge\n\n{abstract adapter}\n\ninner\n\n# inner : ActionableEnv\n+ reset() / step()\n\n···\n\nToy24Bridge\n\nALFWorldBridge\nSetups\n\nSWEBridge\n\nWebArenaBridge\n\nreplays\n\nδ on reset()\n\nRules\n\nLink\n\n(fA , fT , fO ) on step()\n\ng : serial A → B\n\ninstance view\nRules\n\ninner\n\nSetups\n\none EnvHarness:\nan ordered stack\nof components\n\ninner\nToy24Bridge\n\nFigure 7 | Class structure and instance structure of the framework. Top left, seven Bridges adapt\nheterogeneous native runtimes to the abstract ActionableEnv contract, and the dashed box marks\nthat further Bridges plug in the same way. Top right, EnvHarness is the abstract decorator over the\nsame contract, and the three shipped components derive from it. Bottom, the instance view shows\none EnvHarness assembled as an ordered stack of components over a Bridge. Each layer holds\nthe next as inner and, by construction, never accesses the runtime beneath the interface. Any class\nhonoring the contract is a valid component, and the family is open to extension.\n\nC. Interface Protocol and Design Patterns\nEnvHarness is built around a single design commitment: every benchmark, and every transformation\nof a benchmark, presents the same interface. A policy, an orchestrator, or a component layer programs\nagainst one abstract type and cannot distinguish a raw benchmark from a benchmark wrapped in an\narbitrary stack of EnvHarness components. Figure 7 summarizes the resulting class structure. This\nsection describes the three levels of the protocol: the universal environment interface (§C.1), the\nper-benchmark Bridges that adapt heterogeneous runtimes to it (§C.2), and the component layer that\nassembles one EnvHarness per environment (§C.3).\nC.1. ActionableEnv: The Interactable-Environment Interface\nAt the base of the framework is ActionableEnv, an abstract class that fixes the contract every\nenvironment must satisfy. It consists of two groups of methods. The first group is a Gymnasium-style\ninteraction loop with typed, validated data contracts. reset(seed, options) initializes an episode.\nstep(action) consumes an Action (a tool name plus JSON-serializable keyword arguments)\nand returns an EnvResponse, a Pydantic wrapper around the Gymnasium 5-tuple (observation,\nreward, terminated, truncated, info). evaluate() returns a terminal EvaluationResult, and\nobserve() returns a fresh Observation of the current state. observe() is deliberately separated\nfrom reset(): a component may mutate the environment after reset returns but before the policy\nacts, and observe() lets the outer layer re-read the world without paying for another reset. Finally,\n\n21\n\n\fEnvHarness : Awakening Static Worlds for Agent Learning\n\nget_env_state() exposes a runtime-safe view of the internal state. This view consists of plain data\n\nwith no Docker handles, browser pages, or sockets, and it is the only state that component hooks\nare permitted to read. This restriction is what makes component code portable: the same hook that\nruns against an in-memory puzzle also runs against a containerized repository, because neither ever\ntouches the runtime beneath the state view.\nThe second group makes persistence environment-owned. save_state() returns a JSONserializable dictionary, and the classmethod from_state(dict) reconstructs an instance from it. The\ncontract intentionally does not prescribe what to save. Pure in-memory environments serialize their full\nlive state, while environments whose runtime cannot be cheaply cloned (containers, browsers, game\nengines) save only their reset arguments and accept that restoration is valid at episode boundaries.\nEach concrete class registers a stable string tag through a registry decorator, so saved stacks can be\nreconstructed without embedding import paths in checkpoint files.\nThe interface also declares optional capabilities with safe defaults: a per-step dense reward\nhook step_reward(step_info) (non-fatal by contract, where exceptions are recorded but never\nepisode-terminating), a notify_replay_complete() callback that lets an environment rewind\nper-episode bookkeeping after a state-preparation replay, task enumeration via list_tasks(), and\nclose() for releasing external runtime resources.\nC.2. Bridges: Adapting Heterogeneous Benchmarks\nA Bridge is a benchmark’s direct implementation of ActionableEnv, and it is the only layer in\nthe system aware of the underlying runtime. We implement seven Bridges including four distinct\nruntime classes: a pure in-memory arithmetic game (Toy24), a text-adventure engine (ALFWorld via\nTextWorld), per-instance Docker containers (SWE-bench, OfficeQA and spreadsheetBench, where\neach step is a stateless docker exec against the task repository), and a Playwright-driven browser\n(WebArena via BrowserGym and Webshop). Everything above the Bridge, including the policy loop,\nthe orchestrator, and all component code, is shared verbatim across the seven environments.\nEach Bridge declares its action space as a tool_registry of typed tools whose signatures are\nintrospected into function-calling schemas for the policy prompt. The registry serves two roles that the\ndesign decouples: schema generation is universal, while dispatch through it is optional. Toy24 routes\nstep() through the registry because its state is the runtime. In contrast, ALFWorld, SWE-bench, and\nWebArena bypass it and drive their engine handle directly, since a TextWorld engine or a browser\nsession cannot be threaded through the data-only state view. Bridges likewise choose their own\npersistence granularity along the two patterns above (full snapshot for Toy24, and reset-argumentsonly for the three heavy runtimes) and publish a human-readable env_state_schema() describing\nthe fields that component hooks may read. This schema is injected into the designer agent’s prompt,\nclosing the loop between what a Bridge exposes and what generated code can rely on.\nC.3. EnvHarness: Components as Composable Decorators\nEach environment carries one EnvHarness, an ordered stack of components over its Bridge (Figure 7,\ninstance view). In code the stack is realized by the decorator pattern. EnvHarness is the abstract\nbase every component derives from, and an EnvHarness is an ActionableEnv that wraps another\nActionableEnv. Its default implementation delegates every interface method to the inner environment, so a concrete component overrides only the methods on the axes it affects. Because the wrapped\nobject may itself carry components, they stack arbitrarily, meaning Rules ( Setups ( Toy24Bridge))\nis again an ActionableEnv, and the policy interacting with the outermost layer cannot observe\nhow many components sit beneath it. Persistence is layered accordingly: each component serializes\n22\n\n\fEnvHarness : Awakening Static Worlds for Agent Learning\n\nonly its own state, and a checkpoint records the environment plus an ordered list of components\n(innermost first), which the loader rebuilds inward-out by passing each reconstructed component as\nthe inner field of the next. The three component types of Section 2.2 ship as the classes Setups,\nRules, and Link (Figure 7, bottom right).\nSetups: initial-state mutation by action replay. Setups realizes the 𝑆0 axis of Eq. (2) without\nany privileged access to environment internals. It carries the action list 𝛿. On reset(), it first resets\nthe inner environment, then replays each action of 𝛿 through the ordinary inner.step() interface,\nand returns the post-replay observation as the episode’s initial observation. The mutated start state\nis thus always a reachable state, expressed in the environment’s own action vocabulary rather than\nin a benchmark-specific state schema, so the saved form is nothing more than the action list itself.\nAfter replay, Setups invokes notify_replay_complete() so the inner environment can rewind\nper-episode counters (step budgets, repetition guards) that must not be charged for the preparation\nphase. Replay determinism is inherited from the seeded reset, ensuring the same Setups component\nreproduces the exact same start state across rollouts.\nRules: per-step I/O transformation hooks. Rules realizes the triple ( 𝑓 𝐴 , 𝑓𝑇 , 𝑓𝑂 ) of Eq. (3) as\nthree pure-function hooks interposed on the step loop. filter_action(action, env_state)\nimplements 𝑓 𝐴 and may rewrite the agent’s action or return a typed Blocked result before it reaches\nthe inner environment. modify_transition(action, response, env_state) implements 𝑓𝑇\nand rewrites the inner EnvResponse, and filter_observation(obs, env_state) implements\n𝑓𝑂 , transforming what the agent ultimately sees, including the initial observation at reset. All defaults\nare identities. A useful Rules component is a subclass overriding some hooks, and this subclass is\nexactly what the designer agent emits as Python source. The saved state of a Rules component is\ntherefore the source string itself. Loading recompiles it in a namespace that exposes only the abstract\ndata types, and the compiled code executes inside a per-episode subprocess so that faulty generated\ncode crashes an episode rather than the framework. Two boundaries are deliberate: blocked actions\nleave the environment untouched and return the current (re-observed, then 𝑓𝑂 -filtered) state alongside\nthe block reason, so a rejection never strands the policy. Furthermore, Rules does not implement\n𝑆0 or 𝑅, as initial state belongs to Setups and terminal task success remains the benchmark’s own\ndecision.\nLink: composition for long-horizon episodes. Whereas Setups and Rules reshape a single\ntask, Link composes two ActionableEnvs into one episode, instantiating the composition logic\n𝑔 of Eq. (4). The handoff is decided by a per-step hook that either leaves the agent in the current\nsub-environment or routes it to another one, so serial concatenation, outcome-conditioned branching,\nand mid-task switching are all expressible; we use serial composition throughout this work. The\nagent interacts with environment 𝐴 until 𝐴’s task concludes, is then handed a spliced transition\nobservation, and continues in environment 𝐵 under a shared step budget. Link masks the subenvironments’ termination signals so that only the composite decides when the episode ends. It\nresets 𝐵 lazily at the handoff point, avoiding container or browser start-up cost when 𝐴 fails early,\nand caches each leg’s outcome at its boundary so evaluation never re-runs an expensive scorer.\nThe composite verdict is the conjunction 𝑅′ = 𝑅 𝐴 ∧ 𝑅 𝐵 , each factor decided by the corresponding\nsub-environment’s own verifier, so evaluate() succeeds only if both sub-tasks succeed and the\nchained task inherits trusted verification from both of its parts. Because Link calls nothing beyond\nthe ActionableEnv contract (it never imports a concrete Bridge or inspects benchmark-specific\nfields), any pair of registered environments can be linked, including cross-benchmark pairs, turning\nsingle-task corpora into long-horizon trajectories with mid-episode task reorientation.\n23\n\n\fEnvHarness : Awakening Static Worlds for Agent Learning\n\nD. Concrete Implementation Examples of the Chain (Link) Operator\nTo demonstrate the flexibility and programmability of the Chain operator (referred to as Link in\nour codebase), we present simplified Python implementations of different composition modes. Every\nmode is implemented by overriding the modify_transition hook, which intercepts transitions\nafter every step to decide whether to stay in the current environment or transition to a destination\nenvironment via self.switch_to().\nSequential Concatenation. By default, the Link operator concatenates environments in sequence.\nIt automatically switches to the destination environment as soon as the first environment terminates,\nrequiring no manual override of the transition logic.\nSequential Concatenation via Default Handoff\n# No custom transition override is needed.\n# The default Link hands off to EnvB automatically once EnvA terminates.\nlink = Link(EnvA(), EnvB(), a\\_done\\_via=\"terminated\")\n\nBranching on Task Outcome. The composition logic can evaluate the success or failure of the first\ntask upon termination, and dynamically route the agent to a harder task (such as AdvancedEnv) or\nan easier one (such as RemedialEnv).\nDynamic Branching on Outcome (𝑔 , routes based on success)\nclass BranchOnOutcome(Link):\ndef modify\\_transition(self, action, response, env\\_state):\nif not self.\\_a\\_is\\_finished(response):\nreturn response # Keep running the current task\n# Route to different environments based on the task outcome\nsolved = self.env\\_a.evaluate().success\ndest = AdvancedEnv() if solved else RemedialEnv()\nreturn self.switch\\_to(dest)\n\nDynamic Switch Mid-Task. The transition point is fully controlled by the harness. This allows\nswitching the agent to a different environment immediately when a specific condition is met, without\nwaiting for the current task to officially end.\nDynamic Switch Mid-Task (𝑔 , routes immediately on action)\nclass SwitchOnAction(Link):\ndef modify\\_transition(self, action, response, env\\_state):\n# Trigger an immediate switch when a specific action is observed\nif action.name == \"trigger\\_advanced\\_mode\":\nreturn self.switch\\_to(AdvancedEnv())\nreturn response\n\nInterleaving Environments. Because the transition check runs after every single interaction step,\nthe agent can alternate back and forth between two environments continuously during execution.\n24\n\n\fEnvHarness : Awakening Static Worlds for Agent Learning\n\nInterleaving Alternation (𝑔 , alternates every step)\nclass Alternate(Link):\ndef modify\\_transition(self, action, response, env\\_state):\n# Swap between Red and Blue environments on every single step\nnext\\_env = RedEnv() if isinstance(self.current\\_env, BlueEnv) else BlueEnv()\nreturn self.switch\\_to(next\\_env)\n\nE. Experiment Details\nE.1. Benchmark Splits\nTable 7 lists the training and evaluation splits. Training tasks are the corpus the designer agent\nreshapes; evaluation uses only original, unreshaped tasks.\nTable 7 | Training and evaluation splits per benchmark.\nBenchmark\n\nTraining\n\nEvaluation\n\nALFWorld\nWebArena\nSWE-bench\nOfficeQA\nSpreadsheetBench\n\n100 tasks from the standard train set\n20 tasks per sub-domain\n100 tasks from SWE-bench Lite\n50 tasks (official split)\n100 of the 400 verified tasks\n\nall remaining held-out tasks\nall remaining tasks\n407 Verified issues not in Lite\n172 official test tasks\n299 held-out tasks (897 instances)\n\nFor SpreadsheetBench, Pass@1 aggregates over base tasks and Mean Score averages over all\ninstances. On ALFWorld, In-Dist and OOD refer to the benchmark’s own seen and unseen evaluation\nsplits, which differ in whether the task’s object–receptacle configuration appeared during training;\nwe do not construct these splits ourselves. Skill extraction uses the same model as the designer and\nthe policy.\nE.2. Baseline Details\nGenEnv (Guo et al., 2025) generates new tasks with an environment-simulator model that keeps task\ndifficulty at the edge of the agent’s current ability. VeriEnv (Chae et al., 2026) clones websites into\nexecutable synthetic environments whose rewards are checked programmatically. SWE-smith (Yang\net al., 2026a) synthesizes new repository-level task instances. We run each with the same seed tasks\nand the same model as EnvHarness, and each produces the same number of environments as\nEnvHarness does, so differences come from the generation strategy rather than the data, the model,\nor the amount of generation. Generation pipelines are benchmark-specific because they must reach\ninto an environment’s internals and construct verifiers, which is why each baseline covers a single\nbenchmark and none exists for the office domain. For every baseline, skill extraction, retrieval, and\nthe policy model are identical to ours, and only the environment the skills come from differs.\nE.3. EnvRigger Hyperparameters\nTable 8 collects the settings of the EnvRigger. The same values are used on every benchmark.\n\n25\n\n\fEnvHarness : Awakening Static Worlds for Agent Learning\n\nTable 8 | EnvRigger hyperparameters. The same settings are used across all benchmarks.\nStage\n\nParameter\n\nValue\n\nObserve\n\nBaseline rollouts per task ( 𝐾 )\n\n5\n\nWrite\n\nComponents per candidate\n\nunbounded (designer’s choice)\n\nValidate\n\nFresh rollouts per candidate ( 𝐾 )\nRevision budget (write–validate rounds)\n\n5\n5\n\nGeneral\n\nDesigner backbone\n\nsame as policy\n\nObserve. Before its first proposal the designer sees 𝐾 = 5 rollouts of 𝜋 on the unmodified task,\ntogether with the resulting success rate and per-rollout outcomes. This baseline serves three purposes\nmade explicit in the prompt: it establishes whether the policy can solve the task at all, how much\nheadroom its current solution leaves, and which parts of the environment it actually exercises.\nWrite. A candidate is a set of one or more components emitted together; we place no cap on the set\nsize, and the designer decides how many components a diagnosis calls for. A candidate is accepted or\nrejected as a whole rather than component by component.\nValidate. Each candidate is evaluated on a fresh set of 𝐾 = 5 rollouts under the same settings, so its\nsuccess rate is directly comparable to the baseline. Acceptance is decided from these 𝐾 trajectories\nin aggregate—success rate, failure distribution, and timeout count—never from a single trace. A\ncandidate that is neither accepted nor rejected returns to the Write stage with the validation trajectories\nattached; this write-and-validate loop runs at most 5 times per instance, after which the instance\nyields no component.\n\nF. Analyses Details\nThis appendix collects the supplementary material for the analyses of Section 5: the protocol and full\nresults behind the reported numbers, the additional experiments referred to there, and representative\nskills extracted in each setting.\nF.1. Experimental Details for Reinforcement Learning\nWe evaluated the effectiveness of EnvHarness environments in a Reinforcement Learning (RL)\nsetting. We utilized Group Relative Policy Optimization (GRPO) to train a Qwen3-8B-base model\non the ALFWorld and Webshop benchmark. The specific hardware configurations and training\nhyperparameters are detailed below:\nHardware and System Configuration. The RL experiments were conducted on a single compute\nnode equipped with 8× NVIDIA H100 GPUs. For rollout generation, we utilized the vLLM framework\nwith Tensor Parallelism (TP) set to 1, GPU memory utilization configured to 0.5, and eager execution\nenforced. To optimize memory usage during training, we enabled Fully Sharded Data Parallel (FSDP)\nalongside parameter offloading, optimizer offloading, and gradient checkpointing.\n\n26\n\n\fEnvHarness : Awakening Static Worlds for Agent Learning\n\nHyperparameters.\n• Batch Size: The global training batch size was set to 16, with a PPO mini-batch size of 256. Both\nthe PPO micro-batch size and the log-probability micro-batch size were set to 4 per GPU.\n• Sequence Length: The maximum prompt length was constrained to 4096 tokens, and the maximum\nresponse length was set to 512 tokens.\n• Environment Settings: We used the EnvHarness-integrated environment, configured with a\nhistory length of 50 and a maximum episode length of 50 steps. The random seed was fixed at 0.\n• Reward and Sampling: An invalid action penalty with a coefficient of 0.1 was applied to discourage\nunexecutable actions. Rollout sampling was performed with a temperature of 0.4.\n• Training Schedule: The model was trained for a total of 150 epochs (equivalent to 150 steps, as\none epoch corresponds to one step based on the training batch configuration).\nF.2. Skills Across Co-evolution Rounds\nEach round of the loop diagnoses flaws the previous policy did not yet show, so the skills extracted\nper round shift in focus, from basic test invocation and file editing, to keeping the test loop alive when\nthe runner itself breaks, to interpreter resolution and pre-edit navigation. The gains shrink round\nover round (Figure 5) as the remaining flaws grow more local. Every skill below traces to a specific\naccepted component. The banks also contain skills distilled from rollouts that no component targeted,\nand we show the component-driven ones here so the causal link between a written component and\nthe induced skill is inspectable. Each component’s code follows its skill in an amber box, together\nwith the axis of Eq. (3) it exercises. Import lines are omitted from the listings.\nRound 1. Distilled from the base policy’s first-pass failures. The policy does not yet invoke tests\nreliably or apply file edits within the available tools, and the round-1 components shape exactly those\ntwo surfaces.\nUse pytest -x to prevent test suite timeouts\nDescription: When running a large or potentially hanging test suite, use the exit-on-first-failure flag to\nget immediate feedback and avoid environment timeouts.\nContent: When running tests that may hang or take too long, run pytest -x (or pytest –exitfirst)\nto stop execution instantly on the first failing test.\nOrigin: Forced by the component below. It rewrites every unguarded pytest command to include -x, and the extracted\nskill is the very pattern the component enforces.\n\nThe accepted component behind it ( 𝑓 𝐴 , enforces fail-fast test runs)\nclass _Rules(Rules):\ndef filter_action(self, action, env_state):\nif action.name == \"bash\":\ncommand = action.kwargs.get(\"command\", \"\")\nif (\"pytest\" in command\nand \"-x\" not in command\nand \"--maxfail\" not in command):\n# Add -x to fail fast and prevent 60s docker exec\n# timeouts on compatibility hangs.\naction.kwargs[\"command\"] = command.replace(\n\"pytest\", \"pytest -x\")\n\n27\n\n\fEnvHarness : Awakening Static Worlds for Agent Learning\n\nreturn action\n\nUse patch -p1 « ’EOF’ for precise file modifications\nDescription: When structured editing tools are unavailable, apply code changes and test additions reliably\nusing standard patch inputs.\nContent: Use patch -p1 « ’EOF’ followed by a standard unified diff to apply precise multi-line\nmodifications to source and test files.\nOrigin: Forced by the component below. It closes the three edit paths the base policy reaches for, and the patch workflow is\nthe remaining escape.\n\nThe accepted component behind it ( 𝑓 𝐴 , blocks the default editing paths)\nclass _Rules(Rules):\ndef filter_action(self, action, env_state):\nif action.name == \"bash\":\ncmd = action.kwargs.get(\"command\", \"\")\n# 1. Inline python file editing via ‘python -c‘ is off-limits.\nif \"python\" in cmd and \"-c\" in cmd:\nif \"open\" in cmd and (\"write\" in cmd or \"replace\" in cmd):\nreturn Blocked(reason=(\n\"Inline python file editing (-c) is restricted \"\n\"to prevent file corruption. Use standard file \"\n\"utilities or patch/diff tools.\"))\n# 2. ‘conda run‘ disabled; invoke env binaries by absolute path.\nif \"conda run\" in cmd:\nreturn Blocked(reason=(\n\"’conda run’ is disabled in this environment due to \"\n\"subshell execution constraints. Invoke the \"\n\"environment’s binaries directly using their \"\n\"absolute paths.\"))\n# 3. Direct execution of custom Python scripts is disabled\n#\n(except when driving pytest / unittest).\nif re.search(r\"\\bpython[0-9.]*\\s+[^-\\s][^\\s]*\\.py\\b\", cmd):\nif \"pytest\" not in cmd and \"unittest\" not in cmd:\nreturn Blocked(reason=(\n\"Direct execution of custom Python script files \"\n\"(e.g. ’python script.py’) is disabled to keep \"\n\"standard environment execution. Use standard \"\n\"command-line tools (patch, sed, redirected cat) \"\n\"to modify files, and run tests via pytest.\"))\nreturn action\n\nTarget specific test files to avoid execution timeouts\nDescription: When running tests in a large codebase, specify the exact test file path instead of the parent\ndirectory to prevent execution timeouts.\nContent: Run tests targeting the exact file, e.g., pytest path/to/test_file.py or python -m\nunittest path/to/test_file.py, instead of running the entire directory.\n\n28\n\n\fEnvHarness : Awakening Static Worlds for Agent Learning\n\nOrigin: Forced by the component below. It kills every whole-suite invocation with a simulated timeout, and per-file\ntargeting is the escape.\n\nThe accepted component behind it ( 𝑓𝑇 , kills broad-scope test runs)\nclass _Rules(Rules):\ndef modify_transition(self, action, raw_response, env_state):\nif action.name != \"bash\":\nreturn raw_response\ncmd = action.kwargs.get(\"command\", \"\")\n# Broad-scope test invocations get killed; force per-file\n# targeting of the relevant test module.\nif ((\"bin/test\" in cmd or \"sympy.test\" in cmd)\nand \"test_polysys\" not in cmd):\nreturn EnvResponse(\nobservation=Observation(\ntext=\"[docker exec timed out after 60s]\\n\",\ndata=raw_response.observation.data),\nreward=raw_response.reward,\nterminated=raw_response.terminated,\ntruncated=raw_response.truncated,\ninfo={**raw_response.info, \"last_returncode\": 124},\n)\nreturn raw_response\n\nRound 2. The round-1 policy runs targeted, fail-fast tests and applies diffs through patch, so those\nfailures largely disappear. The residual failures sit one level up. The test entrypoint itself may break,\neven a targeted run can be killed by the resource limiter, and the file argument itself is policed. Each\ncomponent below imposes one of these constraints, and each skill is the escape the policy found.\nNone of these failure modes appear in the round-1 bank, which assumed a working command line.\nInvoke pytest programmatically via pytest.main when the CLI is broken\nDescription: When the standard pytest command-line entrypoint is broken, missing, or misconfigured,\nrun tests programmatically through the interpreter.\nContent: Use python -c \"import pytest; pytest.main([’&lt;test_file&gt;’])\" to execute specific test suites directly when the pytest executable fails to run.\nOrigin: Forced by the component below. It breaks the pytest entrypoint, and this workaround is the only path it leaves\nopen.\n\nThe accepted component behind it ( 𝑓𝑇 , breaks the pytest entrypoint)\nclass _Rules(Rules):\ndef modify_transition(self, action, raw_response, env_state):\nif action.name != \"bash\":\nreturn raw_response\ncmd = action.kwargs.get(\"command\", \"\")\n# Only intercept \"raw\" pytest invocations; leave the ‘python -c‘\n# workaround untouched.\nif \"pytest\" not in cmd or \"python -c\" in cmd or \"patch\" in cmd:\n\n29\n\n\fEnvHarness : Awakening Static Worlds for Agent Learning\n\nreturn raw_response\n# ‘python -m pytest ...‘ -&gt; module missing.\nif re.search(r\"\\bpython(3)?\\s+-m\\s+pytest\\b\", cmd):\nstdout = \"No module named pytest\\n\"\nreturn EnvResponse(\nobservation=Observation(\ntext=stdout, data=raw_response.observation.data),\nreward=raw_response.reward,\nterminated=raw_response.terminated,\ntruncated=raw_response.truncated,\ninfo={**raw_response.info, \"exit_code\": 1,\n\"result\": {\"stdout\": stdout, \"exit_code\": 1}},\n)\n# Bare ‘pytest ...‘ -&gt; command not found.\nif re.search(r\"\\bpytest\\b\", cmd):\nstdout = \"bash: pytest: command not found\\n\"\nreturn EnvResponse(\nobservation=Observation(\ntext=stdout, data=raw_response.observation.data),\nreward=raw_response.reward,\nterminated=raw_response.terminated,\ntruncated=raw_response.truncated,\ninfo={**raw_response.info, \"exit_code\": 127,\n\"result\": {\"stdout\": stdout, \"exit_code\": 127}},\n)\nreturn raw_response\n\nUse pytest -k to filter test cases and avoid process kills\nDescription: When running an entire test file is killed (exit code 137) or times out under resource limits,\nrun only the relevant test cases.\nContent: Use pytest &lt;file&gt; -k \"pattern1 or pattern2\" to run specific test cases and avoid\nresource exhaustion.\nOrigin: Forced by the component below. It simulates resource kills on whole-file runs, and the filter is the whitelisted\nescape.\n\nThe accepted component behind it ( 𝑓𝑇 , simulates resource kills)\nclass _Rules(Rules):\ndef modify_transition(self, action, raw_response, env_state):\nif action.name != \"bash\":\nreturn raw_response\ncmd = action.kwargs.get(\"command\", \"\")\nif \"pytest\" not in cmd:\nreturn raw_response\n# Whole-file pytest runs (no -x / no -k) simulate an OOM kill.\nif \"-x\" not in cmd and \"-k\" not in cmd:\nnew_info = {**raw_response.info}\nif isinstance(new_info.get(\"result\"), dict):\nnew_info[\"result\"] = {\n**new_info[\"result\"],\n\n30\n\n\fEnvHarness : Awakening Static Worlds for Agent Learning\n\n\"exit_code\": 137,\n\"stdout\": \"\",\n\"stderr\": \"Killed\\n\",\n}\nreturn EnvResponse(\nobservation=Observation(\ntext=\"Killed\\n\", data=raw_response.observation.data),\nreward=raw_response.reward,\nterminated=raw_response.terminated,\ntruncated=raw_response.truncated,\ninfo=new_info,\n)\nreturn raw_response\n\nUse nonexistent files in pytest.main to test CLI options\nDescription: When testing pytest CLI option parsing or configuration loading programmatically, pass a\nnonexistent filename to pytest.main() to prevent expensive test collection.\nContent:\nUse\npython -c \"import pytest; pytest.main([’–your-opt’,\n’nonexistent.py’])\" to verify CLI argument parsing and option registration without scanning the\nworkspace.\nOrigin: Forced by the component below. It times out any pytest run that names no file, and on this task, inside the pytest\ncodebase itself, naming a nonexistent file verifies option registration without paying the collection cost.\n\nThe accepted component behind it ( 𝑓𝑇 , requires a file target)\nclass _Rules(Rules):\ndef modify_transition(self, action, raw_response, env_state):\nif action.name != \"bash\":\nreturn raw_response\ncmd = action.kwargs.get(\"command\", \"\")\n# If they try to run pytest globally or on the whole test\n# directory without targeting a specific file, time out fast.\nmarkers = [\"testing/\", \".py\", \"-h\", \"--help\"]\nif \"pytest\" in cmd and not any(m in cmd for m in markers):\nreturn EnvResponse(\nobservation=Observation(\ntext=(\"Error: Command timed out (limit of 15 seconds \"\n\"exceeded). Please target specific test files \"\n\"to avoid timeouts.\"),\ndata=raw_response.observation.data),\nreward=raw_response.reward,\nterminated=raw_response.terminated,\ntruncated=raw_response.truncated,\ninfo={**raw_response.info, \"exit_code\": 124},\n)\nreturn raw_response\n\nRound 3. The round-2 policy drives the test runner robustly. What remains sits below and around\nthe shell, interpreter resolution through PATH and the navigation habits needed once cheap in-place\nedits are taken away. On about a third of the training tasks the round-2 policy now succeeds on\nevery baseline rollout; EnvRigger treats this as a signal to make the environment harder, but its\ncandidates are rejected at validation, leaving the success rate untouched or driving it to zero, and the\n31\n\n\fEnvHarness : Awakening Static Worlds for Agent Learning\n\nwrite-and-validate loop exhausts its revision budget without an accepted component. These tasks\ntherefore contribute nothing to the round-3 bank.\nUse the active conda environment’s absolute binary path\nDescription: When global python or pip commands fail due to version mismatches, locate and run the\nspecific conda environment’s binaries directly.\nContent:\nPrepend the environment’s bin directory to PATH or invoke it by absolute\npath,\ne.g.,\nexport PATH=/opt/miniconda3/envs/&lt;env_name&gt;/bin:$PATH\nor\n/opt/miniconda3/envs/&lt;env_name&gt;/bin/python.\nOrigin: Forced by the component below. It rewrites every command to resolve the interpreter through the environment’s\nown bin directory, and the extracted skill is the pattern the component enforces. Earlier rounds assumed the shell already\nresolved python correctly; this skill is the first to reach below that assumption.\n\nThe accepted component behind it ( 𝑓 𝐴 , pins interpreter resolution)\nclass _Rules(Rules):\ndef filter_action(self, action, env_state):\nif action.name == \"bash\" and \"command\" in action.kwargs:\ncmd = action.kwargs[\"command\"]\n# Prepend the testbed environment’s bin directory so that\n# ‘python‘ and ‘pytest‘ resolve to the right interpreter.\nif \"/opt/miniconda3/envs/testbed/bin\" not in cmd:\naction.kwargs[\"command\"] = (\n\"export PATH=/opt/miniconda3/envs/testbed/bin:$PATH\"\nf\" &amp;&amp; {cmd}\"\n)\nreturn action\n\nTrace exception propagation using grep -rn on handler definitions\nDescription: When an exception is swallowed or improperly handled, trace its propagation path by\nsearching for the exception handler or wrapping function definitions across the codebase.\nContent:\nUse grep -rn \"def convert_exception_to_response\" or grep -rn \"except\n&lt;ExceptionName&gt;\" to locate the exact middleware or wrapper handling the exception flow.\nOrigin: Forced by the component below. It disables in-place sed edits, so every edit costs a full patch, and the policy\nlearns to invest in precise navigation before committing to one.\n\nThe accepted component behind it ( 𝑓 𝐴 , disables in-place sed edits)\nclass _Rules(Rules):\ndef filter_action(self, action, env_state):\nif action.name == \"bash\":\ncmd = action.kwargs.get(\"command\", \"\")\n# Detect ‘sed -i‘ / ‘sed --in-place‘ (any spacing variant)\n# and swap it for a fake BSD-sed error, forcing the policy\n# onto safer editing paths.\nif \"sed \" in cmd and (\"-i\" in cmd or \"--in-place\" in cmd):\naction.kwargs[\"command\"] = (\n\"echo ’sed: illegal option -- i’ &amp;&amp; exit 1\"\n)\nreturn action\n\n32\n\n\fEnvHarness : Awakening Static Worlds for Agent Learning\n\nLocate reference implementations using grep -rn on registration functions\nDescription: When implementing or testing a framework-specific component, search the test suite for\nexisting registrations of that component to find working examples.\nContent: Use grep -rn \"register_converter\" tests/ (or similar registration and decorator\npatterns) to quickly find reference implementations and test cases for framework components.\nOrigin: Forced by the same component shown above. The sed block pushed the policy into grep-based investigation, and\nthis skill pursues a different goal, finding working examples to imitate before writing new framework glue.\n\nF.3. Skills from Chain Environments\nSkills extracted from Chain environments concern behaviors that only appear when tasks are joined,\nsuch as managing a shared step budget and reorienting after a mid-episode task switch. We list\nrepresentative examples below.\nManage shared step budgets across joined tasks\nDescription: Treat the joined task structure as a single, finite budget, prioritizing “good enough” solutions\nin the first task to ensure sufficient resources for the second.\nContent: The agent successfully completed two distinct tasks within a single episode. By efficiently\nresolving the first task (fixing the _makepath issue in pytest), the agent preserved enough steps to\nhandle the significant environment-setup challenges (dependency issues, circular imports, and missing\nattributes) encountered in the second task (RidgeClassifierCV in scikit-learn). This demonstrates\nthe importance of maintaining momentum and not over-optimizing the first task at the expense of the\nsecond.\nRe-orient environment after task handoff\nDescription: Immediately perform environment reconnaissance (e.g., conda env list, which\npython) upon receiving a new task to identify the correct test runner and environment configuration, as these often differ between repositories.\nContent: When the agent transitions to a new task (e.g., from matplotlib to django), it cannot assume\nthe previous environment’s pytest or python paths are valid. In this trajectory, the agent correctly\nidentified that the django repository required a specific runtests.py script and a different conda\nenvironment path, avoiding the “command not found” errors that occurred when it initially tried to reuse\nthe matplotlib test-running conventions.\n\nF.4. Cross-Model Results\nTable 9 lists the success rate and the average episode length for all four policy models under the\nprotocol of Section 5. The success rates move in one direction, while the average steps reveal three\ndifferent regimes. Qwen3.6 27B runs 69.8 steps bare, the longest of any model, and skills nearly\nhalve this to 37.1, so the bare policy spends most of its budget on undirected trial and error that\nthe skills replace with known procedures. Gemini 3.1 Flash-Lite shows the reverse. The bare policy\ngives up early at 36.7 steps, and skills make it persist at around 50 steps while solving far more tasks,\nso here the extra length is the point. Claude Sonnet 4.6 barely moves, from 29.3 to about 25 steps,\nsince a policy that is already directed has little dead time for skills to reclaim. Gemini 3.5 Flash sits\nbetween these regimes and is the one model where EnvHarness skills improve both metrics at once\nagainst both baselines, more resolved issues in visibly shorter episodes.\nTwo further points follow from the same numbers. First, the gains of EnvHarness over the\n33\n\n\fEnvHarness : Awakening Static Worlds for Agent Learning\n\noriginal-environment skills do not come from simply running longer. The episode lengths of the two\nskill sources are within a step of each other on Flash-Lite and Sonnet, EnvHarness is over five steps\nshorter on Flash, and only on Qwen does it spend more, 3.7 extra steps for 3.7 extra points. Across\nmodels the additional successes arrive within essentially the same budget. Second, average steps\nalone is not a quality signal. A short episode can mean an efficient solution, as for Sonnet, or an early\nsurrender, as for bare Flash-Lite, and the two cases sit at nearly the same step count. Reading the\nmetric therefore requires the success rate next to it, which is why we report both here rather than in\nthe main text. In short, skills shorten episodes where the policy flails, lengthen them where it quits,\nand leave them alone where the policy already knows where it is going.\nTable 9 | Cross-model results on SWE-bench Verified under the same protocol as Table 3; the Gemini\n3.5 Flash column reports the same runs as that table, rounded to one decimal. SR is success rate and\nAS is average steps. Best in bold.\nSkill Source\nNo Skills\nOriginal Envs\nEnvHarness Envs\n\nGemini 3.1 Flash-Lite\n\nQwen3.6 27B\n\nGemini 3.5 Flash\n\nClaude Sonnet 4.6\n\nSR (↑)\n\nAS (↓)\n\nSR (↑)\n\nAS (↓)\n\nSR (↑)\n\nAS (↓)\n\nSR (↑)\n\nAS (↓)\n\n30.7\n36.8\n40.0\n\n36.7\n50.0\n50.6\n\n41.0\n48.4\n52.1\n\n69.8\n37.1\n40.8\n\n47.7\n49.9\n52.6\n\n53.6\n55.0\n49.6\n\n67.2\n69.2\n72.4\n\n29.3\n25.4\n25.6\n\n34\n\n\fEnvHarness : Awakening Static Worlds for Agent Learning\n\nG. Additional Analysis\nEnvHarness Produces More GenBenchmark Held-out Type Orig. EnvHarness\nΔ\neralizable Skills. To test whether\nclean\n54.8\n71.2\n+16.4\nthe skills transfer beyond the task\ncool\n38.5\n39.3\n+0.8\ntypes they were learned on, we run\nheat\n61.1\n52.4\n-8.7\na leave-one-out evaluation on ALFALFWorld\nlook_lamp\n79.0\n82.7\n+3.7\nWorld. Skills are extracted from envisimple\n83.6\n83.6\n0.0\nronments covering every task type extwo_obj\n46.4\n52.9\n+6.5\ncept one, and the policy is evaluated\nAverage\n60.6\n63.7\n+3.1\non the held-out type alone, so any\ngain must come from behaviors that\nTable 10 | Leave-one-out generalization on ALFWorld. Skills\ncarry across types rather than from\nare extracted from environments of all task types except the\nfamiliarity with the held-out tasks. As\nheld-out type, then evaluated on it.\nTable 10 shows, skills from EnvHarness environments outperform skills from the original environments on four of the six types and by\n3.1 points on average, with the largest gain of 16.4 points on clean and one regression of 8.7 points\non heat. Reshaped environments push the policy off its memorized routines during extraction, so the\nresulting skills encode behaviors that apply across task types instead of recipes tied to a single one.\nEnvHarness Maintains\nPractical Compute OverBenchmark Method\nDesign Tok. Rollout Tok. Total Tok.\nhead. Table 11 decomGenEnv\n38K\n64.2M\n64.2M\nposes token consumption\nALFWorld\nEnvHarness\n1.46M\n226.6M\n228.0M\ninto Design Tokens and Rollout Tokens. EnvHarness\nVeriEnv\n20K\n137.7M\n137.8M\nWebArena\nEnvHarness\n1.58M\n135.7M\n137.3M\nspends far more on design than the single-pass\nbaselines (1.46M vs. 38K Table 11 | Estimated token consumption. Design tokens cover the\non ALFWorld), a deliberate calls that propose and refine components; rollout tokens cover every\ncost of feeding full trajecto- interaction a method drives. These rollouts are not the same kind of\nries into its prompts to di- work across rows: EnvHarness and VeriEnv execute them against the\nagnose weaknesses rather real environment, whereas GenEnv’s are LLM-simulated.\nthan generating tasks blind.\nDesign is nonetheless a small share of either budget, and rollouts dominate.\nAgainst VeriEnv, which also executes in the real environment, the totals are essentially the same\n(137.3M vs. 137.8M), so the gains of Section 4 do not come from outspending the baseline. GenEnv’s\ntotal is 3.5× lower, but its rollouts are simulated rather than executed, and that saving buys the\nhallucinated transitions and drifting success signals discussed in Appendix. The extra cost is thus the\ncost of grounding: at equal grounding EnvHarness matches the baseline’s footprint, and where it\nspends more, it spends on real execution against a trusted verifier.\n\n35\n\n\fEnvHarness : Awakening Static Worlds for Agent Learning\n\nEnvHarness Reshapes Environments\nMetric\nBand\nOrig. EnvHarness\nToward Objective Metric Targets. BeSuccess rate (SR) [0.4, 0.6] 6.0\n80.0\nyond skill quality, we ask whether EnAvg. steps (AS)\n[25, 35]\n18.0\n53.0\nvHarness can steer an environment so\nthat an objective, quantitative metric lands\nin a prescribed range. We run the loop on Table 12 | Objective metric targeting on ALFWorld. En100 ALFWorld tasks under two such met- tries are the percentage of tasks whose measured value\nrics, measuring each task with 𝐾 = 10 roll- falls inside the target band, before and after reshaping.\nouts: per-task success rate (SR), targeted\nto [0.4, 0.6], and the average number of steps on successful episodes (AS), targeted to [25, 35]. In\nboth cases EnvHarness reshapes a task in whichever direction its baseline value requires, tightening\nit when the value sits above the band and scaffolding it when the value sits below. Table 12 reports\nthe fraction of tasks landing inside the band. SR is the more tractable target: the original tasks are\nstrongly bimodal, with most either always solved or never solved, and EnvHarness compresses\nthem into the middle of the range, raising in-band coverage from 6.0% to 80.0% and moving mean\nSR from 0.74 to 0.48. AS is a tighter constraint, since it fixes an exact step count rather than a rate,\nyet coverage still rises from 18.0% to 53.0%. A single interface therefore suffices to calibrate an\nenvironment against an explicit, measurable objective, without any access to its internals.\nTeaching against a specified weakness. For each case we hand the designer one sentence naming\na capability weakness. The designer writes components that make the weakness fatal inside an\nordinary benchmark task, runs the policy in the reshaped environment, and one skill is distilled from\nthe resulting trajectories. Table 13 gives an overview, and the rest of this appendix lists the remaining\ncases in full, the generated component next to the skill it produced. The SWE-bench verification case\nappears in the main text. The designer chose its own component axes without instruction, staging start\nstates with a Stage, blocking shortcuts with the action filter of a Contract, and faking consequences\nwith the transition hook of a Contract. Every component stays inside the source distribution and\nleaves goals and scorers untouched. Code is abridged for space. The policy and the designer are\nGemini 3.1 Flash-Lite on ALFWorld and WebArena and Gemini 3.5 Flash on SWE-bench Verified.\nALFWorld.\nSpecified weakness\nThe policy takes objects from closed containers without opening them first, wasting turns.\nGenerated component (Stage, 𝛿 axis)\n# The target now starts inside a closed drawer, so the\n# habit fails on the first attempt.\ndelta = [\"go to drawer 1\", \"close drawer 1\"]\n\nPre-Interaction State Verification\nDescription: When the agent intends to manipulate an object contained within or covered by another\nobject, or when an interaction fails due to an obstruction.\nContent: Before executing a take or manipulate command, perform an examine or open action on the\ntarget container to verify its state and ensure the object is accessible.\n\n36\n\n\fEnvHarness : Awakening Static Worlds for Agent Learning\n\nTable 13 | Nine specified weaknesses, the component the designer generated, and the skill distilled\nfrom the trajectories collected in the reshaped environment.\nAxis\n\nSpecified weakness\n\nGenerated component\n\nDistilled skill\n\nALFWorld\nStage\n\nTakes objects from closed Target object starts inside a Pre-Interaction State Vercontainers without open- closed drawer\nification\ning them\n\nStage\n\nSearches containers in an Three drawers pre-opened Semantic Container Priinefficient order\nto stage an ordering\noritization\n\nStage\n\nForgets the second object First sub-goal completed in Task-State Verification\nin multi-object tasks\nadvance\nLoop\n\nWebArena\nwithout Retrieval actions blocked un- Incremental\nContract 𝑓 𝐴 Concludes\nscrolling to content below til a scroll happens\nExpansion\nthe fold\nStage\n\nViewport\n\nCounts paginated rows by Episode starts on the order Query-Based Data Filterhand instead of filtering\ngrid, filter bar in view\ning\n\nContract 𝑓 𝐴 Guesses URLs instead of us- Direct navigation blocked\ning the site search\n\nSearch-First Navigation\nProtocol\n\nSWE-bench Verified\nStage, 𝑓 𝐴\n\nEdits the wrong function Test file restructured, git re- Context-Aware\nwithout reading test fix- sets blocked\nModification\ntures\n\nCode\n\nContract 𝑓𝑇 Submits a patch without Submission rejected until Verification-Driven Derunning the failing test\nthe tests have run\nvelopment Loop\nContract 𝑓𝑇 Uses sed -i and corrupts File silently corrupted when Safe File Modification\nindentation\nsed is used\nvia Python Scripting\n\nSpecified weakness\nThe policy searches containers in an inefficient order, not prioritizing the locations most likely to hold the\ntarget.\nGenerated component (Stage, 𝛿 axis)\n# Three drawers are pre-opened, staging an ordering in the\n# initial observation.\ndelta = [\"go to drawer 1\", \"open drawer 1\",\n\"go to drawer 2\", \"open drawer 2\",\n\"go to drawer 3\", \"open drawer 3\"]\n\n37\n\n\fEnvHarness : Awakening Static Worlds for Agent Learning\n\nSemantic Container Prioritization\nDescription: When searching for multiple instances of an object type across a room with many potential\nstorage locations.\nContent: Prioritize visiting surfaces such as countertops and tables before closed containers such as\ndrawers and cabinets, to maximize visibility and minimize the open and close interactions needed to\nlocate all target items.\n\nSpecified weakness\nThe policy fails multi-object tasks. After placing the first object it forgets the second and ends early.\nGenerated component (Stage, 𝛿 axis)\n# The first sub-goal is already done at episode start, so\n# the task now hinges on remembering the second.\ndelta = [\"go to countertop 1\",\n\"take potato 1 from countertop 1\"]\n\nTask-State Verification Loop\nDescription: When the agent completes a sub-goal in a multi-step task and needs to determine whether\nthe overall objective is fully satisfied.\nContent: After every completed sub-goal, re-examine the original task description and the current\nenvironment state to identify remaining unfulfilled requirements before ending the episode.\n\nWebArena.\nSpecified weakness\nThe policy concludes without scrolling, missing results below the fold.\nGenerated component (Contract, 𝑓 𝐴 axis)\nclass _Rules(Rules):\ndef filter_action(self, action, env_state):\nif is_scroll(action):\nenv_state.extras[\"has_scrolled\"] = True\nreturn action\nif not env_state.extras.get(\"has_scrolled\") \\\nand is_retrieval(action): # click, fill, select\nreturn Blocked(\"Scroll down first so all \"\n\"content is visible.\")\nreturn action\n\n38\n\n\fEnvHarness : Awakening Static Worlds for Agent Learning\n\nIncremental Viewport Expansion\nDescription: When a task requires counting or extracting data from a list that may be paginated or\ntruncated by the viewport.\nContent: Execute scroll-to-bottom actions followed by DOM re-inspection to trigger lazy loading and\nreveal hidden elements before finalizing the extraction.\n\nSpecified weakness\nThe policy counts paginated order rows by hand instead of applying date and status filters, losing track\nacross pages.\nGenerated component (Stage, 𝛿 axis)\n# The episode starts on the order grid, with its filter\n# bar already in the initial observation.\ndelta = [\"goto(’/admin/sales/order/index/’)\"]\n\nQuery-Based Data Filtering\nDescription: When a task requires aggregating data across a large dataset that spans multiple paginated\npages.\nContent: Instead of iterating through pages and counting by hand, apply URL parameters or UI filter\ninputs such as date ranges and status dropdowns to restrict the view to the target subset before computing\nthe answer.\nSpecified weakness\nThe policy guesses URLs instead of using the site search, landing on wrong or empty pages.\nGenerated component (Stage and Contract, 𝛿 and 𝑓 𝐴 axes)\ndelta = [\"goto(’/admin/dashboard/’)\"]\nclass _Rules(Rules):\ndef filter_action(self, action, env_state):\nif \"goto\" in action_str(action):\nreturn Blocked(\"Direct navigation is disabled. \"\n\"Use the site’s search or navigation menu.\")\nreturn action\n\nSearch-First Navigation Protocol\nDescription: When the agent needs to locate specific data or entities within a complex web application or\ndashboard.\nContent: Prefer the site’s internal search input or filter bar over direct URL manipulation, so all data\nretrieval goes through the application’s native query interface.\n\n39\n\n\fEnvHarness : Awakening Static Worlds for Agent Learning\n\nSWE-bench Verified.\nSpecified weakness\nThe policy edits the wrong function because it does not first read the failing test’s imports and fixtures.\nGenerated component (Stage and Contract, 𝛿 and 𝑓 𝐴 axes)\n# Stage rewrites the failing test class, so a correct fix\n# requires reading the test’s fixtures first.\ndelta = [bash(rewrite_test_file)]\nclass _Rules(Rules):\ndef filter_action(self, action, env_state):\nif is_git(action, {\"checkout\", \"reset\",\n\"restore\", \"clean\"}):\nreturn Blocked(\"git resets are disabled to \"\n\"preserve test suite integrity.\")\nreturn action\n\nContext-Aware Code Modification\nDescription: When modifying a function to fix a bug, especially when it relies on external libraries or\ncomplex object interactions.\nContent: Before editing, read the target function, its surrounding context, and the test file’s imports\nand fixtures to identify the expected types and behaviors, so the fix is compatible with the existing\nenvironment.\nSpecified weakness\nThe policy uses sed -i for in-place edits and corrupts Python indentation inside class bodies.\nGenerated component (Contract, 𝑓𝑇 axis)\nclass _Rules(Rules):\ndef modify_transition(self, action, response, env_state):\nif \"sed\" in bash_command(action):\n# inserts a stray space before a class line,\n# silently corrupting source and test files\nshift_indent(\"django/db/models/enums.py\")\nshift_indent(\"tests/model_enums/tests.py\")\nreturn response\n\nSafe File Modification via Python Scripting\nDescription: When modifying source files where indentation or structural integrity is critical, especially\ninside class bodies or nested blocks.\nContent: Replace fragile sed or awk commands with a Python script that reads the file, performs string\nor AST based manipulation, and writes it back, preserving indentation and syntax.\n\n40\n\n\fEnvHarness : Awakening Static Worlds for Agent Learning\n\nH. Limitations\nCost of the design loop. EnvHarness builds each environment through an iterative loop in which\na designer agent proposes, executes, and revises a candidate harness. A weaker designer needs\nmore iterations to reach a harness that passes validation, and each iteration requires rolling out the\nenvironment, so producing a pool of high-quality environments can consume substantial time and\ninference compute. This cost is paid once per environment rather than per training episode, and we\nexpect it to shrink as designer agents improve.\nRequirement of a resettable, gym-style interface. EnvHarness assumes a reset/step interface\nover textual actions and observations. The binding constraint is reset: a Stage must place the\nenvironment into a chosen initial state and a Chain must return it to a known state between subtasks,\nboth of which presuppose that the environment can be restored rather than only advanced. This\nexcludes environments backed by a live service or any other non-resettable backend, such as an agent\nacting on a real user account where a sent email or a placed order cannot be undone, or a physical\nrobot whose surroundings do not return to their initial configuration between episodes.\nPurely sequential composition in Chain. A Chain composes subtasks by concatenation and verifies\nthe result through the verifiers of its parts. This is what allows every reshaped task to inherit trusted,\nhuman-built verification, but it leaves a Chain with no notion of whether the composed subtasks are\nsemantically related, and no way to express workflows with branching or shared intermediate state.\nSemantic composition would require both a measure of compatibility between subtasks and a verifier\ndefined over the composed objective.\n\nI. Future Directions\nNew harness components. Stage, Contract, and Chain are a first set of components, not a closed one.\nThe agent harness has grown well beyond its initial pieces, and we expect the same for environments:\ncomponents that inject stochasticity or partial observability, that expose auxiliary feedback channels,\nor that place several agents in a shared environment would each extend what a frozen benchmark\ncan be reshaped into, while keeping the same reset/step interface.\nBeyond text-only environments. EnvHarness currently operates over textual actions and observations. Extending it to visual, GUI-driven, or embodied environments would test whether the wrapping\nabstraction survives when observations are no longer symbolic, and would require components that\ncan specify and verify states that are not expressible as text.\nPurely sequential composition in Chain. A Chain composes subtasks by concatenation and verifies\nthe result through the verifiers of its parts. This is what allows every reshaped task to inherit trusted,\nhuman-built verification, but it also bounds what a Chain can be. The control-flow mechanism can\nroute between sub-environments in richer ways, yet only serial concatenation admits a composite\nverifier: each leg terminates on its own and contributes a verdict, so the composite is their conjunction.\nUnder branching or interleaving there is no such pair of verdicts to combine, and a Chain has no\nnotion of whether its subtasks are semantically related in the first place. Semantic composition would\ntherefore require both a measure of compatibility between subtasks and a verifier defined over the\ncomposed objective, not merely richer control flow.\n\n41\n\n\f</code></pre></article>\n        \n</main>\n\n<script src=\"https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/katex.min.js\"></script>\n<script src=\"https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/contrib/auto-render.min.js\"></script>\n<script>\n\nfunction initTheme() {\n  const saved = localStorage.getItem('kb-theme') || 'light';\n  document.documentElement.setAttribute('data-theme', saved);\n  updateThemeIcon(saved);\n}\nfunction toggleTheme() {\n  const cur = document.documentElement.getAttribute('data-theme') || 'light';\n  const next = cur === 'light' ? 'dark' : 'light';\n  document.documentElement.setAttribute('data-theme', next);\n  localStorage.setItem('kb-theme', next);\n  updateThemeIcon(next);\n}\nfunction updateThemeIcon(t) {\n  const btn = document.getElementById('theme-toggle-btn');\n  if (btn) btn.innerHTML = t === 'dark' ? '☀️' : '🌙';\n}\ndocument.addEventListener('DOMContentLoaded', initTheme);\n\nfunction setViewMode(m) {\n  const grid = document.getElementById('bento-grid-view');\n  const list = document.getElementById('list-table-view');\n  const bGrid = document.getElementById('view-grid-btn');\n  const bList = document.getElementById('view-list-btn');\n  if (m === 'list') {\n    if (grid) grid.style.display = 'none';\n    if (list) list.style.display = 'flex';\n    if (bGrid) bGrid.classList.remove('active');\n    if (bList) bList.classList.add('active');\n  } else {\n    if (grid) grid.style.display = 'grid';\n    if (list) list.style.display = 'none';\n    if (bGrid) bGrid.classList.add('active');\n    if (bList) bList.classList.remove('active');\n  }\n  localStorage.setItem('kb-view', m);\n}\ndocument.addEventListener('DOMContentLoaded', () => {\n  const s = localStorage.getItem('kb-view') || 'grid';\n  setViewMode(s);\n});\n\ndocument.addEventListener('DOMContentLoaded', () => {\n  document.querySelectorAll('pre').forEach(pre => {\n    const b = document.createElement('button');\n    b.className = 'copy-code-btn';\n    b.innerText = 'Copy';\n    b.onclick = () => {\n      const c = pre.querySelector('code') ? pre.querySelector('code').innerText : pre.innerText;\n      navigator.clipboard.writeText(c).then(() => {\n        b.innerText = 'Copied!';\n        setTimeout(() => { b.innerText = 'Copy'; }, 2000);\n      });\n    };\n    pre.appendChild(b);\n  });\n});\n\nwindow.addEventListener('keydown', (e) => {\n  if ((e.key === '/' || (e.metaKey && e.key === 'k')) && document.activeElement.tagName !== 'INPUT' && document.activeElement.tagName !== 'TEXTAREA') {\n    e.preventDefault();\n    const q = document.getElementById('global-search-input');\n    if (q) q.focus();\n  }\n});\n\n// Scrollspy for TOC\nwindow.addEventListener('scroll', () => {\n  const headers = document.querySelectorAll('.article-body h1, .article-body h2, .article-body h3');\n  const scrollPos = window.scrollY + 100;\n  headers.forEach(h => {\n    if (h.offsetTop <= scrollPos) {\n      const id = h.getAttribute('id');\n      if (id) {\n        document.querySelectorAll('.reading-sidebar a').forEach(a => {\n          a.classList.toggle('active', a.getAttribute('href') === '#' + id);\n        });\n      }\n    }\n  });\n});\n\ndocument.addEventListener(\"DOMContentLoaded\", function() {\n  if (window.renderMathInElement) {\n    renderMathInElement(document.body, {\n      delimiters: [\n        {left: '$$', right: '$$', display: true},\n        {left: '$', right: '$', display: false},\n      ],\n      throwOnError : false\n    });\n  }\n});\n</script>\n\n</body>\n</html>\n"