"<!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>Procedural Graphs: Self-Evolving Execution\nStructures for LLM Agents\nYuxing Lu1,2,3 , Yicheng Chen1 , Shanchan Wu1 and Sercan Ö. Arık1\n\narXiv:2609.09153v1 [cs.AI] 8 Sep 2026\n\n1 Google, 2 Georgia Institute of Technology, 3 Peking University\n\nLarge language models are increasingly deployed as agents that plan over long horizons and act through\nexternal tools. Most agents select actions through unconstrained generation over an accumulating history,\nleaving implicit the procedural knowledge of what to do, in what order, and under which conditions.\nAs trajectories lengthen, agents can lose track of their objectives, invoke tools out of order, and repeat\nunproductive actions. We introduce the Procedural Graph: just as a knowledge graph organizes factual\nknowledge into (entity, relation, entity) triplets for what-is questions, a Procedural Graph organizes\nprocedural knowledge into (procedure, relation, procedure) triplets for what-to-do questions. At each\ndecision step, the framework localizes the agent’s active node, and a guidance model translates the\nsurrounding subgraph into step-level situational guidance that biases the solver’s next action without\ndictating it. The graph is self-evolving: an LLM refiner contrasts failed trajectories with successful\nones and edits the graph’s topology and attributes, committing edits that preserve or improve held-out\nvalidation performance while retaining rejected ones to discourage repetition. Starting from a minimal\nskeleton, the loop builds graphs that match or surpass hand-designed ones. It can also repair a flawed\nexpert prior. Across multiple datasets, task types, and LLMs, the Procedural Graph delivers consistent\ngains over memory-based baselines, and self-evolution further improves performance without manual\nengineering.\n\n1. Introduction\nLarge language models (LLMs) are increasingly deployed as autonomous agents that plan over long\nhorizons and act through external tools (Qin et al., 2024; Sumers et al., 2023). Most agents make\ndecisions through unconstrained generation conditioned on a flat, growing log of prior actions and\nobservations. This places the burden of procedural coherence on free-form generation: the agent\nmust identify relevant observations, infer which steps remain, and choose an action that respects\ntheir dependencies. As trajectories lengthen, agents can lose track of their objectives, invoke tools out\nof order, and repeat unproductive actions.\nExisting approaches provide procedural structure through textual memory, conditional guidelines,\nand explicit workflows. Memory and self-reflection methods (Shinn et al., 2023; Zhao et al., 2024)\nrecord past experience as free-form text and retrieve it for reuse in the context. Although these\nrecords preserve useful experience, the solver must still reconstruct how it applies to the current step\nand how it constrains the steps that follow. State-conditioned guidelines (Fu et al., 2024) provide\nmore targeted advice, but retrieve rules without explicitly connecting successive procedural steps.\nWorkflows and state machines (Xiao et al., 2024; Zhang et al., 2023) make those steps explicit and\nconstrain execution, but often require manual design. Automated workflow search reduces manual\ndesign effort by optimizing workflow structure offline (Zhang et al., 2025). The remaining challenge\nis to combine an editable procedure representation with guidance that is conditioned on the agent’s\ncurrent progress.\nWe argue that an agent needs procedural knowledge that is structured enough to steer it away from\ninvalid behavior, flexible enough to preserve reasoning freedom, responsive to its current progress,\n\nCorresponding author: soarik@google.com\n\n\fProcedural Graphs: Self-Evolving Execution Structures for LLM Agents\n\nKnowledge Graph\n\nProcedural Graph\n\nWhere is the Mona Lisa?\n\nWhat should the agent do next?\n\nMuseum\n\nParis\n\nIn the Louvre, Paris\n\nprovides\n\nknowledge\n\n(entity, relation, entity)\n\nCalculate\n\nleads_to\n\ntr\nac\nt\ns_ s\nto\n\nes\nu ir\n\nOutput\nCheck\ntes\nAnswer genera\nad\n\nreq\n\nRead extracts\nExtract\nEvidence\nex\n\na\n\nd _ in\n\nis _\n\ncate\n\nrequires\n\nenables\n\no\n\nis_a\n\nPainting\n\nPlace\n\nis_a\n\nLouvreis_lo\n\nSearch\n\nle\n\nDa Vinci\n\ns_t\n\nis_a\n\npainted_by\n_ in\n\nle a d\n\nMona Lisa is\n\nNext: check answer, then output\n\nprovides\n\nguidance\n\n(procedure, relation, procedure)\n\nFigure 1 | From knowledge to procedure. A Knowledge Graph organizes facts into triplets that answer what-is questions.\nA Procedural Graph organizes task procedures into triplets that answer what-to-do questions.\n\nand able to improve from experience. We address these requirements with the Procedural Graph\n(PG), an explicit and editable directed graph of procedural knowledge. The design mirrors a familiar\nstructure (Figure 1): just as a knowledge graph organizes factual knowledge into (entity, relation,\nentity) triplets to answer what-is questions, a PG organizes procedural information into (procedure,\nrelation, procedure) triplets to answer what-to-do questions. Its nodes abstract tool actions, reasoning\nsteps, and states; its edges encode permissible transitions, each annotated with textual attributes\ndescribing how and when the transition should be taken. The PG keeps a task domain’s procedural\nknowledge outside the model weights, where it can be inspected, retrieved at each step, and edited\nwithout retraining.\nOur framework puts this prior to work in two complementary phases. During online inference,\nthe framework localizes the active node from the agent’s trajectory, and a guidance model reads\nthe surrounding subgraph in its topological context and translates the relevant edge attributes into\nsituational guidance for the next step. During offline self-evolution, after each batch of training\ntasks, an LLM refiner contrasts failed trajectories with successful ones and proposes edits to the\ngraph’s topology and attributes, adding missing nodes and edges, pruning failure-inducing ones, and\nrevising edge attributes. A structurally valid candidate graph is adopted if it matches or improves\nperformance on a held-out validation set, and rejected candidates are retained as negative constraints.\nThe validation gate filters out candidates that reduce the measured score, while rejection memory\ndiscourages repeated unsuccessful proposals. We summarize our contributions as follows:\n• We introduce the Procedural Graph (PG), an explicit and editable graph of procedural knowledge\nthat steers LLM-agent execution while preserving reasoning flexibility.\n• We propose Generative PG Guidance, an online mechanism that converts the static graph and the\nlive trajectory into step-level situational guidance.\n• We develop a self-evolution loop that refines graph topology and attributes using execution feedback.\n• Across different tasks and LLMs, PG consistently outperforms other memory baselines; evolution\nfrom scratch produces graphs that match or surpass hand-designed ones, and the loop can also\nrepair flawed expert priors.\n\n2\n\n\fProcedural Graphs: Self-Evolving Execution Structures for LLM Agents\n\n2. Related Work\nLLM Agents and Action Selection. The dominant paradigm follows a free-form action-selection\nloop: ReAct (Yao et al., 2023b) interleaves reasoning with environment actions, and successors\nextend it with self-critique, branching search, or richer action spaces (Qin et al., 2024; Shinn et al.,\n2023; Wang et al., 2024a; Yao et al., 2023a). These approaches rely on the LLM to select valid next\nactions from in-context information, leaving admissible transitions implicit. Documented failure\nmodes include planning hallucination, drift, and repetitive loops (Xiao et al., 2024; Zhu et al., 2025).\nStructured Priors for Agent Planning. A second line provides explicit structure for planning,\nincluding textual procedure rules (Zhu et al., 2025), workflow knowledge in text, code, or flowchart\nform (Xiao et al., 2024), searched workflow graphs (Zhang et al., 2025), and graph-organized tool\ncatalogs (Liu et al., 2024a,b; Lumer et al., 2025). These methods organize procedural knowledge as\naction rules, workflows, or tool graphs. PG combines attributed procedure transitions, local retrieval\nfrom the current execution context, and refinement of graph topology and attributes.\nSelf-Improving Agents from Trajectories. A third line distills reusable knowledge from past\ntrajectories, stored as self-critiques (Shinn et al., 2023), insights (Zhao et al., 2024), state-conditioned\nguidelines (Fu et al., 2024), workflows (Wang et al., 2025b), or procedural memories (Fang et al.,\n2025; Zhong et al., 2024). These artifacts retain different forms of structure, including conditional\nrules and ordered steps within workflows. PG connects transitions across procedure steps in an\nexplicitly editable graph. Its typed, attributed edges support local structural retrieval and refinement\nfrom execution feedback. An extended survey and an eight-dimension comparison of 24 methods are\nprovided in Appendix A.\n\n3. The Procedural Graph Framework\nWe introduce the Procedural Graph (PG), a directed graph of procedural knowledge that guides\nagent execution online while iteratively optimizing its topology and attributes offline. As illustrated\nin Figure 2, the framework operates in two complementary phases:\nOnline Inference (Section 3.2): During task solving, the graph is frozen. The agent combines the PG\nwith its trajectory to generate dynamic situational guidance.\nOffline Evolution (Section 3.3): After executing a batch of training tasks, an LLM refiner analyzes\nthe diagnostic traces and modifies the graph topology and attributes via an automated feedback loop.\n3.1. Formal Representation of Procedural Graphs\nFormally, a Procedural Graph is a directed, attributed graph\n\u0001\nG = V, R, E, Φ ,\nE ⊆ V × R × V,\n\n(1)\n\nwhere V is the set of abstract nodes, R is a vocabulary of transition relations, and each element\nof E is a directed, attributed triplet: an edge 𝑒 = (𝑢, 𝑟, 𝑣) ∈ E states that node 𝑣 is admissible after\nnode 𝑢 under relation 𝑟 . Each node abstracts a tool function, a skill, an internal reasoning step, or\na task status. The attribute mapping Φ associates each edge with a set of named attributes whose\nschema can be specified for the task. In our implementation, we use three textual fields: condition,\nguidance, and pitfalls, describing when the transition applies, how to proceed, and what to\n3\n\n\fProcedural Graphs: Self-Evolving Execution Structures for LLM Agents\n\nGenerative Guidance\n\nProcedural Graph G\nStart\n\nstate\n\nTrajectory T\n(recent window)\n\ntools\n\nSelf-Evolution\n\n(online, graph frozen)\nQuery q\n\n(offline)\n\nGraph G\n\n✓\n\nSearch\n\nLocalize active\nnode ut\n\nreasoning\n\nAnalyze\n\nskills\n\nSearch\n\nDesign\n\nPatch\n\nTest\n\nTest\n\nEnd\n\n1. Read\n&amp; Guide\n\n(source, relation, target)\nedge attributes Φ(e)\n\nExtract 2-hop\nsubgraph Gt\n\nfallback:\nfull graph G\n\n- next: verify result\n- avoid: repeating search\n\nSolver prompt:\n\nq + history + gt → next action at\n\n3. Update\n\n✕\n\nLLM Refiner\n\n2. Log\n\nΔG: Add / Delete / Update\n\n[+]\n[-]\n\nGuidance LLM\nsituational\nguidance gt\n\n✓\n\nyes\n\nValidation:\nSval improves?\n\nno\n\nRollback\n\nCommit\n\nRejected\nmemory\n\nFigure 2 | Overview of the Procedural Graph framework. Left: procedural triplets define G. Middle: the framework\nlocalizes 𝑢𝑡 and retrieves its 2-hop neighborhood G𝑡 (or the full graph if matching fails); a guidance LLM translates it into\nguidance 𝑔𝑡 for the solver. Right: the refiner proposes edits from execution trajectories. Structurally valid candidates are\ncommitted when validation performance does not decrease; rejected candidates inform subsequent proposals through\nrejection memory.\n\navoid. As an illustrative example, a financial-planning edge (cash_flow_forecast, LEADS_TO,\nfund_raising_request) could carry the attributes “condition: projected runway falls below the\nsafety buffer; guidance: submit the request early to allow for the financing delivery delay; pitfalls: do\nnot stack a second request while one is pending.”\nBy structuring task knowledge into triplets, G makes admissible transitions explicit and guides\nthe agent toward valid tool calls and action sequences. The graph can be initialized from an expert\nprior or from scratch; Section 5.3 compares these construction strategies.\n3.2. Generative Guidance at Inference Time\nIndependent retrieval of transition attributes, such as top-𝑘 similarity search, can omit the connections\nbetween procedural steps. For example, retrieving guidance for submit without the preceding\ncheck_answer transition can omit the verification step that makes submission appropriate. Retrieving\nthe connected neighborhood exposes both the action and its procedural prerequisites.\nGenerative Procedural Graph Guidance addresses this by combining three operations: locate,\nextract, and generate. Let 𝑞 be the user query and T𝑡 = ( 𝑎1 , 𝑜1 , . . . , 𝑎𝑡 −1 , 𝑜𝑡 −1 ) be the interleaved history\nof actions and observations up to decision step 𝑡 . We use 𝑎0 = Start as an initialization marker, so\nthe first step is localized at 𝑢1 = Start. At each step,\n(\n\u0001\n\u0001\nNℎ ( 𝑢𝑡 ) , 𝑢𝑡 ≠ ∅,\n𝑢𝑡 = Match 𝑎𝑡 −1 , V ,\nG𝑡 =\n𝑔𝑡 = Ψ G𝑡 , 𝑞, T𝑡 − 𝑤:𝑡 ,\n(2)\nG,\notherwise,\nwhere Match locates the agent by exactly matching its most recent procedure (e.g., a tool call) to a\nnode in V. The directed edge neighborhood Nℎ ( 𝑢𝑡 ) contains 𝑢𝑡 and the outgoing transitions reached\nby expanding for up to ℎ steps. The window T𝑡 −𝑤:𝑡 contains the last 𝑤 trajectory steps, and Ψ is the\nguidance language model. This connected neighborhood lets Ψ read transitions in their topological\ncontext and consider possible next steps up to ℎ transitions ahead. Ψ translates the static attributes\n4\n\n\fProcedural Graphs: Self-Evolving Execution Structures for LLM Agents\n\nΦ ( 𝑒) of the surrounding edges into situational guidance 𝑔𝑡 , identifying the agent’s immediate goal\n\nand the formatting or logical errors to avoid.\nThe guidance 𝑔𝑡 is appended to the task solver’s prompt. The solver then selects its next action\nfrom the query, trajectory, and guidance:\n\u0001\n𝑎𝑡 ∼ 𝑃solver · 𝑞, T𝑡 , 𝑔𝑡 .\n(3)\nThis soft integration allows the agent to maintain flexible reasoning while being steered toward\nthe procedural structure encoded in G. Guidance uses the localized neighborhood when matching\nsucceeds and the full graph otherwise, together with a recent trajectory window. Section 5.5 evaluates\nthe resulting performance and efficiency; Appendix F provides execution cases.\n3.3. Self-Evolution of Procedural Graphs\nAn offline self-evolution loop adapts graph topology and attributes from execution feedback, reducing\nthe need for manual design (Algorithm 1). Let G0 be the initial Procedural Graph and G𝑘 the retained\ngraph after round 𝑘. Each round starts from G𝑘 −1 ; a rejected candidate never becomes the starting\ngraph of the next round. Across generations 𝑘 = 1, . . . , 𝐾 , the evolution engine executes a four-step\nloop:\nStep 1: Diagnostic Rollout. Using the retained graph G𝑘 −1 , the solver runs on a batch of training\ntasks B𝑘 ⊂ Dtrain , and we record the diagnostic traces together with their evaluation scores, E 𝑘 =\n\b\n|B |\n( 𝑞𝑖 , T𝑖 ( 𝑘 ) , 𝑆𝑖( 𝑘 ) ) 𝑖=1𝑘 , where 𝑆𝑖( 𝑘 ) ∈ [0, 1] is the final task score. The refiner compares high-scoring\ntraces with low-scoring ones; for tasks with binary outcomes, this reduces to successes versus failures.\nStep 2: Feedback-Driven Mutation. An offline LLM refiner inspects the partitioned traces to identify\nrepeated error loops in failure trajectories and multi-step reasoning shortcuts in successful runs.\nBased on this feedback, the refiner generates a structured edit set Δ G𝑘 comprising two topological\nedit operations: Add: Inserting missing verification nodes or edges; Delete: Removing nodes or edges\nthat repeatedly steer trajectories into failure or prevent progress.\nAttribute revisions use the same edit interface: an edge is deleted and re-added with updated\nattribute values. This operation applies to any attribute defined by the chosen schema. The candidate\ngraph is obtained by applying the proposed edits, G𝑘cand = G𝑘 −1 ⊕ Δ G𝑘 , where ⊕ applies edits to a\ncopy and performs any configured cycle repair.\nStep 3: Validation Gating. To assess whether structural mutations improve performance beyond\nthe training batch, a candidate that passes edit application and structural checks is evaluated on an\nindependent validation set Dval . Invalid candidates are discarded before validation rollout, leaving\nthe retained graph and its cached validation score unchanged. The mean validation task score is\ncomputed as:\n∑︁\n\u0001\n1\n𝑆val (G) =\n𝑆 𝑓solver ( 𝑞 | G) , 𝑦 .\n(4)\n|Dval |\n( 𝑞,𝑦 ) ∈ Dval\n\nThe initial graph is evaluated once to establish the reference score. For a structurally valid candidate,\nthe retained graph is updated as follows:\n(\nG𝑘cand , if 𝑆val (G𝑘cand ) ≥ 𝑆val (G𝑘 −1 )\nG𝑘 =\n.\n(5)\nG𝑘 −1 , otherwise\nThe gate retains candidates whose measured validation score matches or exceeds the cached score of\nthe current graph. Section 5.4 examines these decisions under stochastic evaluation.\n5\n\n\fProcedural Graphs: Self-Evolving Execution Structures for LLM Agents\n\nStep 4: Rejection Memory as a Safeguard. Iterative self-correction can repeatedly propose equivalent\nunsuccessful edits. If a candidate graph is rejected by the validation gate (𝑆val (G𝑘cand ) &lt; 𝑆val (G𝑘 −1 )),\nwe log the candidate graph and its proposed edits, together with the associated training trajectories\nE 𝑘 and validation outcomes, into a rejection memory Hrejected . For the trajectory context supplied to\nthe refiner, we concatenate the training trajectories and, if the configured maximum token length 𝐿max\nis exceeded, discard tokens from the beginning while preserving the final 𝐿max tokens in their original\norder. This retains the trajectory ending rather than an initial prefix; the resulting context is denoted\nas C𝑘 . When proposing edits for round 𝑘 + 1, the refiner receives Hrejected as negative evidence:\n\u0001\nΔ G𝑘+1 ∼ 𝑃refiner · G𝑘 , C𝑘+1 , Hrejected .\n(6)\nThe rejection history Hrejected helps the refiner avoid previously unsuccessful edits. Proposed changes\nare evaluated by the gate before they enter the retained graph.\n\n4. Experimental Setup\nImplementation details are provided in Appendix B.\nBenchmarks. We evaluate procedural reasoning across seven benchmarks: HotpotQA (Yang et al.,\n2018) for multi-hop question answering with search tools; MultiChallenge (Deshpande et al., 2025)\nfor instruction retention across multi-turn conversations; GDPval (Patwardhan et al., 2025) for\nopen-ended professional tasks scored against expert rubrics; ALFWorld (Shridhar et al., 2021) for\nembodied household tasks with strict action ordering; 𝜏-bench (Yao et al., 2024) for policy-compliant\ntool use under live user interaction; BFCL (Patil et al., 2025) for multi-turn function calling; and\nEnterpriseArena (Han et al., 2026) for long-horizon financial decision-making under delayed feedback\nand macroeconomic shocks. Dataset splits and preprocessing are detailed in Appendix B.1, and all\nmetrics are defined in Appendix B.2.\nBaselines. All methods share an identical ReAct solver (Yao et al., 2023b) and differ only in how\nprocedural experience is stored and reused; every learning-based baseline consumes the same training\ntrajectories as our self-evolution loop. Ordered by increasing structure, we compare: Vanilla ReAct\n(no memory) (Yao et al., 2023b), MemoryBank (Zhong et al., 2024), which maintains summarized\nexperience with forgetting; RAP (Kagaya et al., 2024), which retrieves past trajectories as in-context\nexemplars; ExpeL (Zhao et al., 2024), which distills trajectories into natural-language insights;\nAutoGuide (Fu et al., 2024), which retrieves state-conditioned guidelines; AWM (Wang et al., 2025b),\nwhich induces linear workflows; and KnowAgent (Zhu et al., 2025), which maintains textual actiontransition rules. Implementation and adaptation details for each baseline are given in Appendix B.3.\nModels. We evaluate four LLMs: Claude Sonnet 4.6, Gemini 3.1 Pro, Gemini 3.5 Flash, and Grok\n4.1 Fast. The guidance model and the offline refiner always share the same underlying LLM as the\nsolver. All calls use greedy decoding (temperature 0) for reproducibility.\nProcedural Graph Configuration. Online guidance uses the ℎ=2 hop neighborhood of the localized\nnode and a recent trajectory window of 𝑤=3. Different construction strategies are compared in\nSection 5.3 and formalized in Appendix D.2. Statistics of the graphs used for each benchmark (node\nand triplet counts, relation types, attribute coverage) are given in Appendix B.4.\n\n6\n\n\fProcedural Graphs: Self-Evolving Execution Structures for LLM Agents\n\n5. Results\n5.1. Main Results across Benchmarks and Models\nTable 1 compares the Procedural Graph against seven baselines across six benchmarks and four LLM\nfamilies, all using the same ReAct solver. PG ranks first or joint first in 21 of 24 model–benchmark\nsettings. Compared with the strongest baseline in each setting, PG records 19 wins, two ties, and\nthree losses (one-sided exact binomial sign test excluding ties, 𝑝 = 4.3 × 10−4 ). Its largest margins\nare on BFCL v3 with Gemini 3.5 Flash (67.00% vs. 58.00%, +9.00 points), GDPval with Gemini 3.1\nPro (78.78 vs. 71.37, +7.41 points), and 𝜏-bench with the same model (80.00% vs. 73.04%, +6.96\npoints). Baseline rankings vary across tasks and models, with no single method consistently placing\nsecond. These results suggest that combining conditional guidance, reusable action sequences, and\nexplicit transitions in a connected graph is useful across diverse settings.\nTable 1 | Main results across LLMs and benchmarks. Brackets give 95% confidence intervals; the best value is highlighted.\nModel &amp; Method\n\nHotpotQA\nAcc. (↑)\n\nClaude Sonnet 4.6\nVanilla ReAct (Yao et al., 2023b) 74.60 [71.83, 77.37]\nMemoryBank (Zhong et al., 2024) 74.20 [71.50, 76.90]\nRAP (Kagaya et al., 2024)\n71.80 [69.07, 74.53]\nExpeL (Zhao et al., 2024)\n75.20 [72.49, 77.91]\nAutoGuide (Fu et al., 2024)\n75.40 [72.72, 78.08]\nAWM (Wang et al., 2025b)\n73.90 [71.21, 76.59]\nKnowAgent (Zhu et al., 2025)\n74.30 [71.59, 77.01]\nProcedural Graph (Ours)\n74.50 [71.81, 77.19]\nGemini 3.1 Pro\nVanilla ReAct (Yao et al., 2023b) 85.90 [83.76, 88.04]\nMemoryBank (Zhong et al., 2024) 85.10 [82.90, 87.30]\nRAP (Kagaya et al., 2024)\n83.60 [81.28, 85.92]\nExpeL (Zhao et al., 2024)\n86.00 [83.85, 88.15]\nAutoGuide (Fu et al., 2024)\n85.80 [83.63, 87.97]\nAWM (Wang et al., 2025b)\n85.10 [82.89, 87.31]\nKnowAgent (Zhu et al., 2025)\n85.00 [82.82, 87.18]\nProcedural Graph (Ours)\n87.30 [85.18, 89.42]\nGemini 3.5 Flash\nVanilla ReAct (Yao et al., 2023b) 83.10 [80.79, 85.41]\nMemoryBank (Zhong et al., 2024) 82.50 [80.14, 84.86]\nRAP (Kagaya et al., 2024)\n82.30 [79.97, 84.63]\nExpeL (Zhao et al., 2024)\n83.40 [81.09, 85.71]\nAutoGuide (Fu et al., 2024)\n83.10 [80.82, 85.38]\nAWM (Wang et al., 2025b)\n82.50 [80.14, 84.86]\nKnowAgent (Zhu et al., 2025)\n82.70 [80.39, 85.01]\nProcedural Graph (Ours)\n84.50 [82.30, 86.70]\nGrok 4.1 Fast\nVanilla ReAct (Yao et al., 2023b) 72.70 [69.89, 75.51]\nMemoryBank (Zhong et al., 2024) 70.70 [67.84, 73.56]\nRAP (Kagaya et al., 2024)\n70.20 [67.32, 73.08]\nExpeL (Zhao et al., 2024)\n73.50 [70.81, 76.19]\nAutoGuide (Fu et al., 2024)\n70.00 [67.15, 72.85]\nAWM (Wang et al., 2025b)\n74.30 [71.60, 77.00]\nKnowAgent (Zhu et al., 2025)\n73.10 [70.34, 75.86]\nProcedural Graph (Ours)\n74.40 [71.62, 77.18]\n\nMultiChallenge\nGDPval\nAcc. (↑)\nRubric Score (↑)\n\nALFWorld\nSuccess (↑)\n\n𝜏-bench\nPass@1 (↑)\n\nBFCL v3\nAcc. (↑)\n\n83.73 [78.06, 89.41]\n89.16 [84.50, 93.82]\n86.75 [81.56, 91.93]\n89.16 [84.45, 93.86]\n88.55 [83.71, 93.40]\n89.76 [85.17, 94.34]\n87.35 [82.36, 92.34]\n89.76 [85.21, 94.31]\n\n46.23 [33.42, 59.04]\n50.13 [37.04, 63.22]\n40.97 [28.37, 53.56]\n48.22 [35.66, 60.78]\n41.39 [27.57, 55.21]\n40.61 [27.54, 53.68]\n42.14 [29.50, 54.78]\n51.49 [38.44, 64.54]\n\n86.57 [80.76, 92.37] 66.09 [57.54, 74.64] 61.00 [51.29, 70.71]\n86.57 [80.72, 92.41] 63.48 [54.78, 72.18] 62.00 [52.55, 71.45]\n79.10 [72.28, 85.93] 60.87 [52.12, 69.62] 65.00 [55.68, 74.32]\n91.79 [87.30, 96.28] 71.30 [63.05, 79.56] 60.00 [50.46, 69.54]\n84.33 [78.12, 90.54] 65.22 [56.54, 73.89] 59.00 [49.19, 68.81]\n67.16 [59.23, 75.10] 66.96 [58.51, 75.40] 62.00 [52.56, 71.44]\n87.31 [81.58, 93.05] 61.74 [52.67, 70.81] 60.00 [50.29, 69.71]\n93.28 [88.98, 97.59] 73.91 [65.84, 81.99] 67.00 [57.65, 76.35]\n\n87.95 [83.00, 92.91]\n95.18 [92.00, 98.36]\n94.58 [91.17, 97.99]\n92.77 [88.84, 96.70]\n93.37 [89.54, 97.21]\n93.98 [90.45, 97.50]\n95.18 [91.89, 98.47]\n95.78 [92.78, 98.79]\n\n56.39 [45.23, 67.55]\n61.97 [50.54, 73.39]\n71.37 [62.99, 79.76]\n64.69 [54.33, 75.06]\n56.18 [44.73, 67.62]\n63.85 [54.13, 73.57]\n69.10 [60.25, 77.95]\n78.78 [74.42, 83.15]\n\n94.78 [91.03, 98.52] 72.17 [63.92, 80.43] 59.00 [49.33, 68.67]\n85.07 [78.87, 91.28] 67.83 [59.38, 76.27] 63.00 [53.69, 72.31]\n80.60 [73.87, 87.32] 73.04 [64.98, 81.11] 57.00 [47.20, 66.80]\n97.76 [95.25, 100.00] 64.35 [55.46, 73.24] 63.00 [53.60, 72.40]\n91.04 [86.17, 95.92] 65.22 [56.59, 73.84] 63.00 [53.60, 72.40]\n99.25 [97.78, 100.00] 67.83 [59.32, 76.33] 64.00 [54.41, 73.59]\n95.52 [91.99, 99.06] 64.35 [55.42, 73.28] 61.00 [51.44, 70.56]\n100.00 [100.00, 100.00] 80.00 [72.83, 87.17] 66.00 [56.85, 75.15]\n\n81.33 [75.33, 87.33]\n89.16 [84.33, 93.99]\n89.16 [84.45, 93.86]\n89.16 [84.42, 93.89]\n89.16 [84.32, 93.99]\n91.57 [87.38, 95.75]\n91.57 [87.26, 95.88]\n91.57 [87.33, 95.80]\n\n59.33 [47.49, 71.16]\n59.27 [47.81, 70.72]\n60.23 [48.63, 71.82]\n62.45 [50.97, 73.93]\n50.29 [37.54, 63.04]\n50.25 [37.54, 62.95]\n54.00 [41.68, 66.31]\n64.42 [53.66, 75.19]\n\n82.84 [76.42, 89.25] 31.30 [22.77, 39.84] 56.00 [46.51, 65.49]\n76.87 [69.89, 83.84] 34.78 [26.03, 43.53] 54.00 [44.24, 63.76]\n76.12 [69.00, 83.24] 37.39 [28.45, 46.34] 54.00 [44.11, 63.89]\n90.30 [85.34, 95.26] 32.17 [23.61, 40.73] 58.00 [48.50, 67.50]\n80.60 [73.87, 87.32] 26.09 [18.08, 34.10] 56.00 [46.01, 65.99]\n82.09 [75.55, 88.63] 33.91 [25.37, 42.46] 52.00 [42.24, 61.76]\n81.34 [74.86, 87.83] 38.26 [29.23, 47.29] 58.00 [48.31, 67.69]\n94.03 [90.03, 98.03] 44.35 [35.20, 53.50] 67.00 [57.89, 76.11]\n\n68.07 [61.04, 75.10]\n84.94 [79.47, 90.41]\n80.12 [74.01, 86.24]\n84.94 [79.53, 90.35]\n80.72 [74.73, 86.72]\n83.73 [78.26, 89.21]\n83.13 [77.55, 88.72]\n86.75 [81.74, 91.76]\n\n57.23 [47.11, 67.34]\n55.19 [44.40, 65.98]\n66.79 [58.25, 75.33]\n65.66 [57.00, 74.32]\n53.58 [42.90, 64.26]\n61.55 [52.66, 70.44]\n68.15 [61.15, 75.16]\n71.19 [65.24, 77.14]\n\n26.12 [18.64, 33.60] 64.35 [55.58, 73.11] 52.00 [42.29, 61.71]\n23.88 [16.79, 30.97] 58.26 [49.48, 67.04] 56.00 [46.10, 65.90]\n14.93 [8.90, 20.95] 64.35 [55.41, 73.28] 55.00 [45.22, 64.78]\n42.54 [34.08, 50.99] 63.48 [54.72, 72.24] 52.00 [42.36, 61.64]\n30.60 [22.74, 38.45] 61.74 [52.90, 70.57] 56.00 [45.99, 66.01]\n17.16 [10.84, 23.49] 63.48 [54.87, 72.09] 52.00 [42.20, 61.80]\n18.66 [12.11, 25.20] 68.70 [60.45, 76.94] 54.00 [44.44, 63.56]\n39.55 [31.11, 47.99] 67.83 [59.27, 76.39] 60.00 [50.51, 69.49]\n\nThe gains also extend across model families. On GDPval and BFCL v3, PG outperforms every\nbaseline under all four LLMs, indicating that its advantage on these tasks is not confined to a particular\nsolver. On MultiChallenge, PG ranks first or joint first across all four models, matching AWM on\nClaude Sonnet 4.6 and both AWM and KnowAgent on Gemini 3.5 Flash. HotpotQA shows a different\npattern: margins over the strongest baseline range from −0.90 to +1.30 points. The magnitude of the\ngains therefore varies substantially across benchmarks.\n\n7\n\n\fProcedural Graphs: Self-Evolving Execution Structures for LLM Agents\n\nFigure 3 | Ensemble cash trajectories and Kaplan–Meier survival curves across four LLMs. Bold lines and shaded\nareas show means and 95% confidence intervals. Vertical lines mark macroeconomic crises. Colors identify PG (blue), the\nbaseline (red), and memory-based methods (green, orange).\n\n5.2. Long-Horizon Decision Making and Resilience\nTo evaluate agent resilience on long-horizon tasks, we deploy agents in EnterpriseArena (Han et al.,\n2026), a simulator in which the agent makes monthly financial decisions over up to 132 months under\nstrict liquidity constraints and three scheduled crises that are not disclosed to the agent. Figure 3 plots\nthe Kaplan-Meier survival curves and the ensemble cash trajectories for all four models; complete\nmetrics are reported in Table 8 in Appendix C. PG achieves the highest or joint-highest full-horizon\nsurvival and the longest average lifespan across all four LLMs. It raises survival from 44.0% to 58.0%\nfor Claude Sonnet 4.6, from 6.0% to 34.0% for Gemini 3.1 Pro, and from 26.0% to 40.0% for Grok\n4.1 Fast, where it also delivers the best average enterprise score ($39.62M).\nWhat changes under guidance is which tools are called and when, rather than simply how many.\nThe unguided Gemini 3.5 Flash baseline repeatedly queries cash and market state within a single turn,\nadding redundant observations to its context. It issues 18.94 tool calls per month, which the graph\nreduces to 12.53 while improving the average enterprise score. On Claude Sonnet 4.6 and Gemini\n3.1 Pro, tool calls instead increase from 0.13 to 0.36 and from 0.89 to 3.18 per month, respectively,\nwhile survival also improves. In these settings, the graph guides the agent to run forecast and market\nchecks before a financing decision (Appendix C.2).\nThe behavior that does track survival across all four models is anticipatory fundraising. Because\ncapital arrives one to six months after it is requested, surviving a crisis requires asking well before\nliquidity runs out. The full trajectories show that the unguided Gemini 3.5 Flash baseline does not\ninitiate fundraising sufficiently early, whereas PG-guided agents initiate requests during stable months.\nAverage capital raised is $0.00M for the Flash baseline, compared with $9.39M for PG-guided Flash\nand $30.11M for PG-guided Grok 4.1 Fast. Appendix C.3 contrasts step-by-step traces of the unguided\nbaseline, a memory-summarization agent, and a PG-guided agent entering the first crisis.\n8\n\n\fProcedural Graphs: Self-Evolving Execution Structures for LLM Agents\n\n5.3. Procedural Graph Construction Strategies\nWe compare five PG construction strategies against the unguided baseline, spanning expert versus\nminimal initialization and fixed, one-time, or iterative refinement. Modes 3 and 5 instantiate the\nfull evolution loop, while Modes 1, 2, and 4 provide fixed or one-time alternatives (supplementary\nresults and mode definitions are provided in Appendix D). The performance metrics of HotpotQA and\nMultiChallenge are presented in Table 2.\nTable 2 | PG construction modes on HotpotQA and MultiChallenge. All metrics are higher-is-better.\nHotpotQA\nConstruction Mode\nUnguided Baseline (w/o PG)\nMode 1: Hand-crafted Expert\nMode 2: Expert + Static Update\nMode 3: Expert + Online Evolution\nMode 4: Scratch + Static Build\nMode 5: Scratch + Online Evolution\n\nAns EM\n\nAns F1\n\n58.8\n62.80\n63.80\n63.10\n55.40\n66.30\n\n71.21\n76.61\n77.16\n76.34\n69.49\n78.79\n\nInference\nMemory\n86.96\n52.17\n47.83\n95.65\n91.30\n95.65\n\nInstruction\nRetention\n86.67\n66.67\n53.33\n100.00\n86.67\n93.33\n\nMultiChallenge\nReliable\nVersioned Editing\n71.43\n42.86\n28.57\n85.71\n85.71\n71.43\n\nSelf\nCoherence\n100.00\n72.73\n81.82\n81.82\n90.91\n90.91\n\nOverall\n87.50\n58.93\n53.57\n92.86\n89.29\n91.07\n\nWe compare initialization from an expert prior (Modes 1–3) with initialization from scratch\n(Modes 4–5). On HotpotQA, Mode 5 (Scratch + Online Evolution) achieves the highest performance\nacross all configurations, scoring 78.79% Ans F1 and 66.30% Ans EM (gains of 7.58 F1 points and\n7.50 EM points over the unguided baseline). On MultiChallenge, which requires retaining multiple\nconstraints across dialogue turns, Mode 5 achieves an Overall Success Rate of 91.07% without a\nhuman prior, while Mode 3 (Expert + Online Evolution) performs best at 92.86%.\nThe loop also self-corrects from a flawed expert prior. On MultiChallenge, using the hand-crafted\nexpert graph (Mode 1) lowers success from 87.50% to 58.93%. A single offline update (Mode\n2) further lowers success to 53.57%. The iterative configuration (Mode 3), which combines fresh\nexecution feedback with validation gating, recovers to 92.86%, a gain of 33.93 points over the expert\ninitialization. The loop therefore recovers from an expert prior that initially reduces performance\n(Appendix F.2). Resource and stability statistics for all five modes, including a 45.7% reduction\nin parsing failures and the token overhead carried by expert-written guidance, are reported in\nAppendix D.1.\n5.4. Procedural Graph Self-Evolution\nWe examine ten rounds of PG self-evolution (Section 3.3) on EnterpriseArena, where the agent\nmanages liquidity through successive macroeconomic crises. Figure 4 tracks the resulting changes in\nlifespan and capital raised; Appendix E reports the per-round results.\n\nFigure 4 | Mean lifespan and capital raised across ten rounds of PG self-evolution. Gray dashed lines show training\nresults; red lines show validation results; and green diamonds show test results for the baseline and accepted checkpoints.\n\n9\n\n\fProcedural Graphs: Self-Evolving Execution Structures for LLM Agents\n\nOn the validation split, the unguided baseline has a full-horizon survival rate of 0.0% and a mean\nlifespan of 34.8 months. Since capital takes one to six months to arrive, fundraising must begin before\ncash runs out. Validation performance improves in several distinct rounds, separated by periods with\nno accepted update. Round 1 discovers the sequential backbone that guides the agent to audit cash\nand forecast runway before a financing decision, producing the largest single jump (0.0% → 45.0%\nvalidation survival); Round 2 adds recall_notes to reuse the notes saved by the Round 1 graph\nand lifts survival to 80.0%, with tool usage falling from 17.23 to 3.08 calls per month relative to\nthe unguided baseline. Rounds 3–6 produce no committed update; one candidate fails structural\nverification before rollout. Round 7 prunes the pass_action branch, and Round 8 introduces the\nadministrative bypass described in Appendix E.3. Validation survival reaches 90.0% in Round 8 and\nremains at that level in Round 9 before Round 10 is rejected and the loop terminates.\nThe test results distinguish the returned graph from intermediate candidates. The returned graph\nreaches 85.0% test survival against the baseline’s 0.0% (Fisher’s exact 𝑝 = 2.6 × 10−8 ), while the\nbest single round observed during the search reached 95.0%; we report the former, since quoting the\nlatter would amount to selecting on the test set. With 20 episodes per split, individual accept/reject\ndecisions turn on one or two episodes and should be read as a search trace rather than as significance\ntests. Topological changes and cross-dataset validation are detailed in Appendices E.3 and E.4.\n5.5. Efficiency Analysis\nTable 3 examines two key design choices behind our guidance mechanism: what portion of the\ngraph the agent sees (full graph vs. localized subgraph) and how it is consumed (raw injection vs.\ngenerative guidance). The three PG configurations compare generative guidance with raw injection\nfor the full graph and assess localization under generative guidance, alongside a no-graph baseline.\nAll configurations use Gemini 3.5 Flash and a shared solver prompt template; the PG configurations\nuse the same underlying graph (Appendix B.5).\nTable 3 | PG usage ablation with Gemini 3.5 Flash. On fixed subsets, we report MultiChallenge accuracy, GDPval rubric\nscore, and ALFWorld success rate (all ↑), alongside average tokens and solver steps per sample (both ↓).\nGraph Configuration\nBaseline (no graph)\nFull graph, raw injection\nFull graph, generative\nSubgraph, generative (Ours)\n\nAcc.\n80.27\n86.60\n87.35\n89.31\n\nMultiChallenge\nAvg. Tok Avg. Step\n6,629\n3.87\n10,164\n4.54\n14,434\n3.08\n12,295\n4.22\n\nRubric\n54.80\n57.17\n56.75\n63.99\n\nGDPval\nAvg. Tok Avg. Step\n275,638\n28.20\n264,680\n33.55\n448,972\n22.07\n367,738\n18.57\n\nSuccess\n72.58\n70.34\n54.48\n81.53\n\nALFWorld\nAvg. Tok Avg. Step\n18,055\n21.84\n21,062\n25.00\n96,360\n30.05\n28,064\n18.80\n\nInjecting the raw full graph improves performance on structured dialogue (MultiChallenge rises\nfrom 80.27 to 86.60) but lowers success on embodied execution (ALFWorld drops from 72.58 to 70.34).\nFull-graph generative guidance further reduces ALFWorld success to 54.48 while increasing token\nconsumption. These results favor guidance grounded in the agent’s local graph neighborhood over\nguidance generated from the full graph. Given the same graph, the localized generative configuration\nachieves the highest performance across all three benchmarks (89.31, 63.99, and 81.53), exceeding\nthe best alternative in each setting, including the no-graph baseline, by 2.0, 6.8, and 9.0 points,\nrespectively.\nLocalization reduces total tokens relative to full-graph generative guidance on all three benchmarks:\nby 70.9% on ALFWorld, 18.1% on GDPval, and 14.8% on MultiChallenge. It also shortens trajectories\non GDPval and ALFWorld. The additional guidance call introduces token overhead relative to the\nno-graph baseline. On GDPval and ALFWorld, localized guidance reduces average solver steps from\n28.20 to 18.57 and from 21.84 to 18.80, respectively, while total token consumption remains 33.4%\nand 55.4% higher.\n10\n\n\fProcedural Graphs: Self-Evolving Execution Structures for LLM Agents\n\n6. Conclusion\nWe introduced the Procedural Graph, an explicit and editable representation of procedural knowledge\nthat gives LLM agents a queryable answer to what to do next. PG connects the agent’s current\nprogress with relevant transitions and execution advice while preserving reasoning flexibility. Across\ntasks and model families, it delivers consistent gains over memory-based baselines. Self-evolution\nbuilds effective graphs from minimal initializations and repairs expert priors that initially hinder\nperformance. These results support learning and revising procedural knowledge from execution\nfeedback without updating model weights. Guidance increases token use even when it reduces solver\nsteps; future work could reuse guidance across steps or generate it selectively. Evaluating transfer\nacross solvers and tool interfaces would clarify how widely the learned procedures can be reused.\n\n11\n\n\fProcedural Graphs: Self-Evolving Execution Structures for LLM Agents\n\nReferences\nM. Besta, N. Blach, A. Kubicek, R. Gerstenberger, M. Podstawski, L. Gianinazzi, J. Gajda, T. Lehmann,\nH. Niewiadomski, P. Nyczyk, et al. Graph of thoughts: Solving elaborate problems with large\nlanguage models. In Proceedings of the AAAI conference on artificial intelligence, volume 38, pages\n17682–17690, 2024.\nK. Deshpande, V. Sirdeshmukh, J. B. Mols, L. Jin, E.-Y. Hernandez-Cardona, D. Lee, J. Kritz, W. E.\nPrimack, S. Yue, and C. Xing. MultiChallenge: A realistic multi-turn conversation evaluation\nbenchmark challenging to frontier LLMs. In Findings of the Association for Computational Linguistics:\nACL 2025, pages 18632–18702, 2025.\nY. Du, F. Wei, and H. Zhang. AnyTool: Self-reflective, hierarchical agents for large-scale API calls.\narXiv preprint arXiv:2402.04253, 2024.\nD. Edge, H. Trinh, N. Cheng, J. Bradley, A. Chao, A. Mody, S. Truitt, D. Metropolitansky, R. O. Ness,\nand J. Larson. From local to global: A graph RAG approach to query-focused summarization. arXiv\npreprint arXiv:2404.16130, 2024.\nR. Fang, Y. Liang, X. Wang, J. Wu, S. Qiao, P. Xie, F. Huang, H. Chen, and N. Zhang. Memp: Exploring\nagent procedural memory. arXiv preprint arXiv:2508.06433, 2025.\nY. Fu, D.-K. Kim, J. Kim, S. Sohn, L. Logeswaran, K. Bae, and H. Lee. AutoGuide: Automated generation\nand selection of context-aware guidelines for large language model agents. Advances in Neural\nInformation Processing Systems, 37:119919–119948, 2024.\nL. Gao, Y. Wang, M. Peng, J. Tang, Y. Shang, M. Sun, and J. Su. Tool graph retriever: Exploring\ndependency graph-based tool retrieval for large language models. arXiv preprint arXiv:2508.05152,\n2025.\nY. Han, Y. Wang, L. Qian, H. Li, Y. Cao, Y. He, X. Peng, N. Shen, Y. Xu, Y. Chen, et al. Can LLM agents\nbe CFOs? benchmarking long-horizon resource allocation in an uncertain enterprise environment.\narXiv preprint arXiv:2603.23638, 2026.\nY. Huang, J. Shi, Y. Li, C. Fan, S. Wu, Q. Zhang, Y. Liu, P. Zhou, Y. Wan, N. Gong, et al. MetaTool\nbenchmark for large language models: Deciding whether to use tools and which to use. In\nInternational Conference on Learning Representations, volume 2024, pages 42978–43007, 2024.\nY. Jiang, H. Zhou, L. GU, A. Han, and T. Li. NaviAgent: Bilevel planning on tool navigation graph for\nlarge-scale orchestration. arXiv preprint arXiv:2506.19500, 2025.\nT. Kagaya, T. J. Yuan, Y. Lou, J. Karlekar, S. Pranata, A. Kinose, K. Oguri, F. Wick, and Y. You. RAP:\nRetrieval-augmented planning with contextual memory for multimodal LLM agents. In NeurIPS\n2024 Workshop on Open-World Agents, 2024.\nM. Li, Y. Zhao, B. Yu, F. Song, H. Li, H. Yu, Z. Li, F. Huang, and Y. Li. API-Bank: A comprehensive\nbenchmark for tool-augmented LLMs. In Proceedings of the 2023 conference on empirical methods in\nnatural language processing, pages 3102–3116, 2023.\nX. Liu, Z. Peng, X. Yi, X. Xie, L. Xiang, Y. Liu, and D. Xu. ToolNet: Connecting large language models\nwith massive tools via tool graph. arXiv preprint arXiv:2403.00839, 2024a.\nZ. Liu, Z. Lai, Z. Gao, E. Cui, Z. Li, X. Zhu, L. Lu, Q. Chen, Y. Qiao, J. Dai, et al. ControlLLM: Augment\nlanguage models with tools by searching on graphs. In European Conference on Computer Vision,\npages 89–105. Springer, 2024b.\n12\n\n\fProcedural Graphs: Self-Evolving Execution Structures for LLM Agents\n\nE. Lumer, P. H. Basavaraju, M. Mason, J. A. Burke, and V. K. Subbiah. Graph RAG-tool fusion. arXiv\npreprint arXiv:2502.07223, 2025.\nZ. Nie, R. Shen, X. Yu, B. Yin, J. Zhang, and X. Hu. SkillGraph: Self-evolving multi-agent collaboration\nwith multimodal graph topology. arXiv preprint arXiv:2604.17503, 2026.\nJ. S. Park, J. O’Brien, C. J. Cai, M. R. Morris, P. Liang, and M. S. Bernstein. Generative agents:\nInteractive simulacra of human behavior. In Proceedings of the 36th annual acm symposium on user\ninterface software and technology, pages 1–22, 2023.\nS. G. Patil, T. Zhang, X. Wang, and J. E. Gonzalez. Gorilla: Large language model connected with\nmassive APIs. Advances in Neural Information Processing Systems, 37:126544–126565, 2024.\nS. G. Patil, H. Mao, F. Yan, C. C.-J. Ji, V. Suresh, I. Stoica, and J. E. Gonzalez. The Berkeley function\ncalling leaderboard (BFCL): From tool use to agentic evaluation of large language models. In\nForty-second International Conference on Machine Learning, 2025.\nT. Patwardhan, R. Dias, E. Proehl, G. Kim, M. Wang, O. Watkins, S. Posada Fishman, M. Aljubeh,\nP. Thacker, L. Fauconnet, N. S. Kim, et al. GDPval: Evaluating AI model performance on real-world\neconomically valuable tasks. SuperIntelligence-Robotics-Safety &amp; Alignment, 2(4), 2025.\nA. Prasad, A. Koller, M. Hartmann, P. Clark, A. Sabharwal, M. Bansal, and T. Khot. ADaPT: As-needed\ndecomposition and planning with language models. In Findings of the Association for Computational\nLinguistics: NAACL 2024, pages 4226–4252, 2024.\nY. Qin, S. Liang, Y. Ye, K. Zhu, L. Yan, Y. Lu, Y. Lin, X. Cong, X. Tang, B. Qian, et al. ToolLLM:\nFacilitating large language models to master 16000+ real-world APIs. In International Conference\non Learning Representations, volume 2024, pages 9695–9717, 2024.\nC. Qu, S. Dai, X. Wei, H. Cai, S. Wang, D. Yin, J. Xu, and J.-R. Wen. Towards completeness-oriented\ntool retrieval for large language models. In Proceedings of the 33rd ACM International Conference on\nInformation and Knowledge Management, pages 1930–1940, 2024.\nP. Rasmussen, P. Paliychuk, T. Beauvais, J. Ryan, and D. Chalef. Zep: a temporal knowledge graph\narchitecture for agent memory. arXiv preprint arXiv:2501.13956, 2025.\nT. Schick, J. Dwivedi-Yu, R. Dessì, R. Raileanu, M. Lomeli, E. Hambro, L. Zettlemoyer, N. Cancedda,\nand T. Scialom. Toolformer: Language models can teach themselves to use tools. Advances in neural\ninformation processing systems, 36:68539–68551, 2023.\nY. Shen, K. Song, X. Tan, D. Li, W. Lu, and Y. Zhuang. HuggingGPT: Solving AI tasks with ChatGPT and\nits friends in Hugging Face. Advances in Neural Information Processing Systems, 36:38154–38180,\n2023.\nY. Shen, K. Song, X. Tan, W. Zhang, K. Ren, S. Yuan, W. Lu, D. Li, and Y. Zhuang. TaskBench:\nBenchmarking large language models for task automation. Advances in Neural Information Processing\nSystems, 37:4540–4574, 2024.\nT. Shi, S. Chen, B. Jiang, L. Song, L. Yang, and J. Zhao. Experiential reinforcement learning. arXiv\npreprint arXiv:2602.13949, 2026.\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.\n\n13\n\n\fProcedural Graphs: Self-Evolving Execution Structures for LLM Agents\n\nM. Shridhar, X. Yuan, M.-A. Cote, Y. Bisk, A. Trischler, and M. Hausknecht. ALFWorld: Aligning\ntext and embodied environments for interactive learning. In International Conference on Learning\nRepresentations, 2021.\nT. Sumers, S. Yao, K. R. Narasimhan, and T. L. Griffiths. Cognitive architectures for language agents.\nTransactions on Machine Learning Research, 2023.\nZ. Sun, Z. Liu, Y. Zang, Y. Cao, X. Dong, T. Wu, D. Lin, and J. Wang. SE-Agent: Self-evolving computer\nuse agent with autonomous learning from experience. arXiv preprint arXiv:2508.04700, 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, 2023a.\nL. Wang, W. Xu, Y. Lan, Z. Hu, Y. Lan, R. K.-W. Lee, and E.-P. Lim. Plan-and-solve prompting:\nImproving zero-shot chain-of-thought reasoning by large language models. In Proceedings of the\n61st annual meeting of the association for computational linguistics (volume 1: long papers), pages\n2609–2634, 2023b.\nR. Wang, X. Han, L. Ji, S. Wang, T. Baldwin, and H. Li. ToolGen: Unified tool retrieval and calling\nvia generation. In International Conference on Learning Representations, volume 2025, pages\n73473–73498, 2025a.\nX. Wang, Y. Chen, L. Yuan, Y. Zhang, Y. Li, H. Peng, and H. Ji. Executable code actions elicit better\nLLM agents. arXiv preprint arXiv:2402.01030, 2024a.\nZ. Wang, D. Fried, and G. Neubig. TroVE: Inducing verifiable and efficient toolboxes for solving\nprogrammatic tasks. arXiv preprint arXiv:2401.12869, 2024b.\nZ. Wang, Q. Wu, X. Zhang, C. Zhang, W. Yao, F. E. Faisal, B. Peng, S. Qin, S. Nath, Q. Lin, et al.\nWebXSkill: Skill learning for autonomous web agents. arXiv preprint arXiv:2604.13318, 2026.\nZ. Z. Wang, J. Mao, D. Fried, and G. Neubig. Agent workflow memory. In International Conference on\nMachine Learning, pages 63897–63911. PMLR, 2025b.\nB. T. Willard and R. Louf. Efficient guided generation for large language models. arXiv preprint\narXiv:2307.09702, 2023.\nR. Wu, X. Wang, J. Mei, P. Cai, D. Fu, C. Yang, L. Wen, X. Yang, Y. Shen, Y. Wang, et al. EvolveR:\nSelf-evolving LLM agents through an experience-driven lifecycle. arXiv preprint arXiv:2510.16079,\n2025.\nX. Wu, Y. Shen, C. Shan, K. Song, S. Wang, B. Zhang, J. Feng, H. Cheng, W. Chen, Y. Xiong, et al. Can\ngraph learning improve planning in LLM-based agents? Advances in Neural Information Processing\nSystems, 37:5338–5383, 2024.\nR. Xiao, W. Ma, K. Wang, Y. Wu, J. Zhao, H. Wang, F. Huang, and Y. Li. FlowBench: Revisiting and\nbenchmarking workflow-guided planning for LLM-based agents. In Findings of the Association for\nComputational Linguistics: EMNLP 2024, pages 10883–10900, 2024.\nW. Xu, Z. Liang, K. Mei, H. Gao, J. Tan, and Y. Zhang. A-Mem: Agentic memory for LLM agents.\nAdvances in Neural Information Processing Systems, 38:17577–17604, 2026.\nZ. Yang, P. Qi, S. Zhang, Y. Bengio, W. Cohen, R. Salakhutdinov, and C. D. Manning. HotpotQA: A\ndataset for diverse, explainable multi-hop question answering. In Proceedings of the 2018 conference\non empirical methods in natural language processing, pages 2369–2380, 2018.\n14\n\n\fProcedural Graphs: Self-Evolving Execution Structures for LLM Agents\n\nS. Yao, D. Yu, J. Zhao, I. Shafran, T. Griffiths, Y. Cao, and K. Narasimhan. Tree of thoughts: Deliberate\nproblem solving with large language models. Advances in neural information processing systems, 36:\n11809–11822, 2023a.\nS. Yao, J. Zhao, D. Yu, N. Du, I. Shafran, K. Narasimhan, and Y. Cao. ReAct: Synergizing reasoning\nand acting in language models. In International Conference on Learning Representations (ICLR),\n2023b.\nS. Yao, N. Shinn, P. Razavi, and K. Narasimhan. tau-bench: A benchmark for tool-agent-user interaction\nin real-world domains. arXiv preprint arXiv:2406.12045, 2024.\nJ. Zhang, J. Xiang, Z. Yu, F. Teng, X. Chen, J. Chen, M. Zhuge, X. Cheng, S. Hong, J. Wang, et al. AFlow:\nAutomating agentic workflow generation. In International Conference on Learning Representations,\nvolume 2025, pages 34040–34077, 2025.\nK. Zhang, H. Chen, L. Li, and W. Wang. Don’t fine-tune, decode: Syntax error-free tool use via\nconstrained decoding. arXiv preprint arXiv:2310.07075, 2023.\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.\nB. Zheng, M. Y. Fatemi, X. Jin, Z. Z. Wang, A. Gandhi, Y. Song, Y. Gu, J. Srinivasa, G. Liu, G. Neubig,\net al. SkillWeaver: Web agents can self-improve by discovering and honing skills. arXiv preprint\narXiv:2504.07079, 2025.\nW. Zhong, L. Guo, Q. Gao, H. Ye, and Y. Wang. MemoryBank: Enhancing large language models with\nlong-term memory. In Proceedings of the AAAI conference on artificial intelligence, volume 38, pages\n19724–19731, 2024. Issue 17.\nY. Zhu, S. Qiao, Y. Ou, S. Deng, S. Lyu, Y. Shen, L. Liang, J. Gu, H. Chen, and N. Zhang. KnowAgent: Knowledge-augmented planning for LLM-based agents. In Findings of the Association for\nComputational Linguistics: NAACL 2025, pages 3709–3732, 2025.\n\n15\n\n\fProcedural Graphs: Self-Evolving Execution Structures for LLM Agents\n\nA. Extended Related Work and Comparison\nThis appendix expands Section 2. It covers procedural memory (Appendix A.1), action selection\n(Appendix A.2), structured planning (Appendix A.3), and self-improvement from trajectories (Appendix A.4). A comparison along eight design dimensions appears in Appendix A.5.\nA.1. Procedural Graphs as Procedural Memory: A CoALA View\nSumers et al. (2023) propose CoALA (Cognitive Architectures for Language Agents), which adapts\nthe classical memory taxonomy of ACT-R and SOAR to LLM-based agents: working memory holds the\ncurrent context, episodic memory holds past experiences, semantic memory holds factual knowledge,\nand procedural memory holds the skills and procedures that govern how to act. This taxonomy distinguishes the roles of different agent memories. Retrieval augmentation, including GraphRAG and its\nvariants, operates on semantic memory; trajectory-based reflection methods such as Reflexion (Shinn\net al., 2023) and ExpeL (Zhao et al., 2024) operate on episodic memory. Procedural memory is the\nquadrant that has received the least explicit treatment: it remains largely implicit in model weights,\nor is scattered across ad hoc artifacts such as prompt templates, skill libraries, and workflow scripts.\nPG implements CoALA’s procedural-memory module by storing state-conditioned action transitions in\na structure that can be retrieved and updated.\nA.2. LLM Agents and Action Selection\nThe dominant execution template is reason-then-act interleaving, established by ReAct (Yao et al.,\n2023b) and extended along several axes. Reflexion (Shinn et al., 2023) inserts verbal self-criticism\nbetween trials; Toolformer (Schick et al., 2023) shows that tool-call decisions can be learned by\nself-supervised filtering of LM-generated API calls; Tree-of-Thoughts (Yao et al., 2023a) and Graph-ofThoughts (Besta et al., 2024) generalize chain-style reasoning into search over branching alternatives;\nand Plan-and-Solve (Wang et al., 2023b) and ADaPT (Prasad et al., 2024) separate planning from\nexecution, with the latter recursively decomposing sub-tasks only once the executor fails. A parallel\nline redesigns the action space itself rather than the control flow over it: CodeAct (Wang et al.,\n2024a) unifies actions as executable Python so as to inherit the compositionality of a programming\nlanguage, and HuggingGPT (Shen et al., 2023) treats models hosted on Hugging Face as callable\ntools coordinated by an LLM controller.\nA third body of work scales the tool catalog. ToolLLM (Qin et al., 2024) contributes a 16,464API benchmark together with a depth-first decision tree for tool selection; Gorilla (Patil et al.,\n2024) fine-tunes LLaMA on APIBench with retrieval-augmented training; AnyTool (Du et al., 2024)\nadds a hierarchical three-tier API retriever; and ToolGen (Wang et al., 2025a) collapses retrieval\nand invocation into next-token generation via virtual tool tokens. API-Bank (Li et al., 2023) and\nMetaTool (Huang et al., 2024) supply complementary evaluation axes covering when to invoke a tool\nand which one to invoke.\nThese methods generally leave admissible transitions implicit, relying on the model to select the\nnext action from in-context information. The resulting failure modes are well documented, and\ninclude planning hallucination (Xiao et al., 2024; Zhu et al., 2025), trajectory drift on long-horizon\ntasks, and repetitive loops when execution feedback is ambiguous. These failures motivate the explicit\nstructural priors discussed next.\n\n16\n\n\fProcedural Graphs: Self-Evolving Execution Structures for LLM Agents\n\nA.3. Structured Priors for Agent Planning\nOne approach is to represent procedures explicitly. KnowAgent (Zhu et al., 2025) maintains a\ntextual action knowledge base of admissible action rules and pairs it with knowledgeable self-learning\nto constrain the agent’s action path during trajectory synthesis. FlowBench (Xiao et al., 2024)\nformalizes workflow knowledge in three formats, text, code, and flowchart, and shows empirically\nacross six domains and 51 scenarios that flowcharts reduce planning hallucination most effectively.\nAFlow (Zhang et al., 2025) recasts workflow construction as Monte Carlo Tree Search over coderepresented graphs whose nodes are LLM-invoking operators. Decoding constraints provide another\nform of structure: TOOLDEC (Zhang et al., 2023) compiles tool syntax schemas into finite-state\nautomata and constrains generation to syntactically valid calls, using the efficient FSM-guided\ngeneration algorithm of Outlines (Willard and Louf, 2023). Such methods guarantee surface-form\nvalidity but say nothing about whether an action is semantically admissible given the task state.\nOther methods organize tool collections as graphs. ToolNet (Liu et al., 2024a) mines a directed\ntool-transition graph from LLM-generated trajectories and lets the agent walk it at inference time.\nControlLLM (Liu et al., 2024b) pre-builds a tool dependency graph from parameter-type matching and\nintroduces Thoughts-on-Graph search over it. COLT (Qu et al., 2024) targets retrieval completeness\nthrough a dual-view query-tool-scene graph trained with LightGCN and contrastive losses. Graph RAGTool Fusion (Lumer et al., 2025) hybridizes vector retrieval with graph traversal over a hand-designed\ntool knowledge graph, extending GraphRAG (Edge et al., 2024) to tool selection. The Tool Graph\nRetriever (Gao et al., 2025) learns a tool-dependency discriminator and propagates embeddings over\nthe resulting graph, while NaviAgent (Jiang et al., 2025) fuses API schema structure with historical\ninvocations into a continuously evolving heterogeneous dependency graph. On the evaluation side,\nTaskBench (Shen et al., 2024) provides a graph-structured tool-automation benchmark with explicit\nnode and edge scoring, and GNN4TaskPlan (Wu et al., 2024) demonstrates that GNN-based sub-task\nselection improves over LLM-only planning on it. SkillGraph (Nie et al., 2026) addresses multimodal\nmulti-agent collaboration: it retrieves reasoning skills from an evolving skill bank and predicts a\nquery-conditioned communication graph over agents.\nThese methods use graphs for different purposes: tool-transition and dependency graphs support\ntool selection, workflow graphs organize operator execution, and SkillGraph models communication\namong agents. Conditional action knowledge also appears in KnowAgent’s textual rules and FlowBench’s branching workflows. PG combines a graph over tool calls and reasoning steps with condition,\nguidance, and pitfall attributes on transitions. At each step, it localizes the current procedure and\nverbalizes the surrounding neighborhood. Per-step retrieval is also used by AutoGuide, which selects\nstate-matched guidelines (Appendix B.3); PG instead retrieves connected transitions and supports\nexplicit edits to their topology and attributes.\nA.4. Self-Improving Agents from Trajectories\nAnother line learns reusable knowledge from the agent’s execution history, often through verbal reflection and episodic memory. Reflexion (Shinn et al., 2023) writes self-critiques into an episodic buffer\nand re-attempts the task; Generative Agents (Park et al., 2023) maintain a memory stream ranked by\nrecency, importance, and relevance, with periodic reflection for abstraction; MemoryBank (Zhong\net al., 2024) keeps a long-term store of experience summaries governed by an Ebbinghaus-inspired\nforgetting schedule; and RAP (Kagaya et al., 2024) retrieves whole past trajectories as in-context\nexemplars. Two methods push toward explicitly contrastive distillation: ExpeL (Zhao et al., 2024)\ncontrasts success and failure pairs to extract natural-language insights, and AutoGuide (Fu et al.,\n2024) sharpens these into context-aware guidelines of explicit conditional form (“in context 𝑋 , action\n\n17\n\n\fProcedural Graphs: Self-Evolving Execution Structures for LLM Agents\n\n𝑌 is appropriate”) retrieved at test time from the agent’s current state. ERL (Shi et al., 2026) uses\n\nreflection to guide a second attempt, then trains the base policy to retain the resulting improvements.\nA second family stores reusable skills and workflows. Voyager (Wang et al., 2023a) maintains an\never-growing library of Minecraft skills indexed by embeddings of their natural-language descriptions,\nretrieved top-𝑘 per task; TroVE (Wang et al., 2024b) induces a verified Python toolbox and trims it to\nstay compact; AWM (Wang et al., 2025b) induces reusable workflows combining natural-language\ndescriptions with program-form actions and adds them to prompt memory in both offline and online\nmodes; and SkillWeaver (Zheng et al., 2025) and WebXSkill (Wang et al., 2026) refine skill discovery\nand execution for web agents. Several frameworks explicitly model the lifecycle of procedural memory:\nMemP (Fang et al., 2025) formalizes build, retrieve, and update as an optimization target, distilling\ntrajectories into both fine-grained step instructions and higher-level script abstractions; EvolveR (Wu\net al., 2025) closes the loop with offline self-distillation, online retrieval of strategic principles, and\npolicy reinforcement; and SEAgent (Sun et al., 2025) learns computer-use policies from autonomously\ncollected experience. A-Mem (Xu et al., 2026) and Zep/Graphiti (Rasmussen et al., 2025) bring\nknowledge-graph-style structure to agent memory, though their focus is episodic and semantic rather\nthan procedural.\nAmong these methods, AutoGuide (Fu et al., 2024) is the closest to our approach. Like our edge\nattributes, its conditional guidelines associate situations with actions. PG connects these transitions in\na typed graph, supporting structural retrieval, dependency inspection, and refinement through graph\nedits. MemP shares our emphasis on lifecycle operations over procedural memory, storing trajectories\nand script-like abstractions for retrieval without an explicit procedure graph. The seven baselines\nwe compare empirically in Section 4 are drawn from across this design space, spanning episodic\nsummarization (MemoryBank), trajectory retrieval (RAP), insight distillation (ExpeL), conditional\nguidelines (AutoGuide), workflow induction (AWM), and textual transition rules (KnowAgent); Table 6\nsummarizes their storage and injection designs.\nA.5. Detailed Comparison Table\nTable 4 compares 24 representative methods with PG along eight design dimensions. It summarizes\nthe representations and access mechanisms described in the cited work; the baseline configurations\nused in our experiments are specified separately in Appendix B.3.\nThe comparison highlights differences in what is stored, how it is accessed, and what can be\nupdated. Textual rules, code libraries, workflows, and graphs each preserve useful procedural\nstructure. For example, KnowAgent supplies action-transition knowledge as text in the prompt,\nwhile FlowBench includes flowcharts with branch conditions. AFlow searches over code-represented\noperator workflows, and tool graphs support navigation through tool catalogs. PG stores transitions\nbetween tool calls and reasoning steps, with conditions, guidance, and pitfalls attached to edges, and\nretrieves a neighborhood around the current procedure.\nThe target of improvement also differs across methods. Some revise insights, skills, or workflows;\nToolNet derives tool transitions from trajectories, while SkillGraph couples skill-bank updates with\nquery-conditioned communication among agents. PG updates the procedure graph itself through\nnode and edge edits. Its contribution is this combination of attributed transitions, localized guidance,\nand structural refinement, rather than graph structure or conditional knowledge alone.\nColumn Definitions. “Form” describes the representation used for action selection, memory, or coordination; “Granularity” is the unit size of stored knowledge; and “Source” describes how the structure\nis obtained. “Updatable” indicates whether the structure can be revised from new trajectories, and\n18\n\n\fProcedural Graphs: Self-Evolving Execution Structures for LLM Agents\n\n“Retrieval” specifies the inference-time access mode. “Edge Semantics” describes the meaning of edges\nor relations, if any, while “Scope” identifies the intended deployment setting. “Graph” distinguishes\nexplicit workflow, tool, or communication graphs (yes), auxiliary hierarchies or transitions encoded\nonly in text (partial), and representations without explicit graph organization (no). FlowBench is\nshown in its flowchart form. For KnowAgent, “Updatable” refers to the action knowledge base, not\nmodel self-training. In our implementation, PG edge attributes comprise conditions, guidance, and\npitfalls.\nTable 4 | Comparison of representative methods along eight design dimensions. Column definitions and method-specific\nconventions are described in the accompanying text.\nMethod\nReAct (Yao et al., 2023b)\n\nForm\nnone\n\nGranularity Source\naction\nnone\n\nReflexion (Shinn et al., 2023)\n\ntext\n\nreflection\n\nMemoryBank (Zhong et al., 2024)\nRAP (Kagaya et al., 2024)\nToolformer (Schick et al., 2023)\nCodeAct (Wang et al., 2024a)\nToolLLM (Qin et al., 2024)\nGorilla (Patil et al., 2024)\nAnyTool (Du et al., 2024)\nToolGen (Wang et al., 2025a)\nVoyager (Wang et al., 2023a)\n\ntext\ntext\nweights\ncode\ndocument\ndocument\ntree\ntokens\ncode\n\nsummary\ntrajectory\nAPI call\naction\nAPI\nAPI\nAPI\nAPI\nskill\n\nTroVE (Wang et al., 2024b)\n\ncode\n\nskill\n\nAWM (Wang et al., 2025b)\nExpeL (Zhao et al., 2024)\nAutoGuide (Fu et al., 2024)\n\ntext +\ncode\ntext\n\nworkflow\ninsight\n\nUpdatable Retrieval Edge Semantics Scope Graph\nnone\nnone\nnone\ngeneral no\nprompt\ntrajectory yes\nnone\ntask\nno\nbuffer\ntrajectory yes\nembedding none\ntask\nno\ntrajectory yes\nembedding none\ntask\nno\ntrajectory no\nnone\nnone\ncatalog no\nmanual\nno\nnone\nnone\ngeneral no\nmanual\nno\nembedding none\ncatalog no\nmanual\nno\nembedding none\ncatalog no\nmanual\nno\nstructural taxonomy\ncatalog partial\ntrajectory no\nnone\nnone\ncatalog no\ntrajectory yes\nembedding none\ntask\nno\nprompt /\ntrajectory yes\nnone\ntask\nno\nimport\nprompt\ntrajectory yes\nsequence\ntask\nno\nmemory\ntrajectory yes\nembedding none\ntask\nno\nLLM\ntrajectory yes\nimplicit cond.\ntask\nno\nselection\ntrajectory yes\nembedding none\ntask\nno\n\nEvolveR (Wu et al., 2025)\n\ntext\nrule\ntext +\ntrajectories procedure\ntext\nprinciple\n\nKnowAgent (Zhu et al., 2025)\n\ntext\n\naction\n\nhybrid\n\nno\n\nFlowBench (Xiao et al., 2024)\n\nflowchart\n\nworkflow\n\nmanual\n\nno\n\nAFlow (Zhang et al., 2025)\n\ncode\n\noperator\n\ntrajectory yes\n\ntool\ntool\ntool\n\ntrajectory yes\nmanual\nno\nhybrid\nno\n\nembedding none\nstatic\naction transition\nprompt\nprompt\nbranches\nexecution control/\ndata flow\nstructural co-occurrence\nstructural parameter dep.\nhybrid\ndependency\n\nagent/skill\n\nhybrid\n\nyes\n\nembedding communication\n\naction\n\nhybrid\n\nyes\n\nhybrid\n\nMemP (Fang et al., 2025)\n\nToolNet (Liu et al., 2024a)\ngraph\nControlLLM (Liu et al., 2024b)\ngraph\nGraph RAG-Tool (Lumer et al., 2025) graph\ngraph +\nSkillGraph (Nie et al., 2026)\ntext\nProcedural Graph (ours)\n\ngraph\n\ntrajectory yes\n\ntransition\nattributes\n\ntask\n\nno\n\ntask\n\npartial\n\ntask\n\nyes\n\ntask\n\nyes\n\ncatalog yes\ncatalog yes\ncatalog yes\nmulti- yes\nagent\ntask\n\nyes\n\nB. Experimental Details\nThis appendix provides the dataset splits, evaluation metrics, baseline implementation details, prompt\ntemplates, and the full self-evolution algorithm (Appendix B.6).\nB.1. Datasets and Splits\nTable 5 summarizes the sample counts and splits used in all experiments.\nDuring self-evolution, the training split is processed in sequential strides of 𝑆=100 samples on\nHotpotQA and 𝑆=20 on MultiChallenge. The validation set Dval consumed by the acceptance gate\nis held out separately from both splits above and never overlaps the test set; its size is 1,000 for\n19\n\n\fProcedural Graphs: Self-Evolving Execution Structures for LLM Agents\n\nTable 5 | Dataset statistics and splits.\nDataset\nHotpotQA\n(Yang et al., 2018)\nMultiChallenge\n(Deshpande et al., 2025)\nGDPval\n(Patwardhan et al., 2025)\nALFWorld\n(Shridhar et al., 2021)\n𝜏-bench\n(Yao et al., 2024)\nBFCL v3\n(Patil et al., 2025)\nEnterpriseArena\n(Han et al., 2026)\n\nDomain\n\nTrain\n\nTest Notes\nDisjoint samples from the official validation pool, de-duplicated by\nOpen-domain QA\n1,000 1,000\nquestion id.\nThe main table evaluates all 166 test items; the construction study\nMulti-turn dialogue\n100 166\n(Table 2) uses the 56-sample fast split.\nProfessional\n88\n44 All tasks split deterministically by occupation.\ndeliverables\nEmbodied\nTest uses the standard unseen split; loaded counts reflect internal\n238 134\nhousehold\nfiltering by the ALFWorld library.\nCustomer service\n\n500\n\n115 Test uses the retail domain.\n\nFunction calling\n\n100\n\n100 Base-category multi-turn tasks.\n\nFinancial simulation\n\n50\n\n50\n\nSimulator episodes under disjoint random-seed sets. The self-evolution\nstudy (Table 11) uses a smaller 20/20/20 configuration.\n\nHotpotQA and 100 for MultiChallenge (Appendix D.3), and 20 episodes for EnterpriseArena. For\nEnterpriseArena, each configuration runs 50 training and 50 test episodes; the full environment\nmechanics are given in Appendix C.1.\nB.2. Evaluation Metrics\nFor HotpotQA, the main comparison reports LLM-judged answer accuracy: a Gemini 3.1 Pro judge\nmodel receives the question, the gold answer, and the agent’s answer, and returns a binary equivalence\nverdict; the construction study (Section 5.3) additionally reports strict string Exact Match and wordlevel F1. For MultiChallenge, an LLM judge based on Gemini 3.1 Pro scores the Overall Success\nRate together with four axes: Inference Memory, Instruction Retention, Reliable Versioned Editing,\nand Self Coherence. For GDPval, deliverables are scored against per-task rubrics and we report the\nmean rubric score. For ALFWorld, we report the task success rate on the test games. For 𝜏-bench, we\nreport Pass@1, i.e., the fraction of episodes whose final database state matches the annotated goal\nstate. For BFCL v3, we report the official multi-turn accuracy. For EnterpriseArena, we report the\nfull-horizon survival rate, the average lifespan in months, the mean time-averaged enterprise score,\nand the average capital raised (see Appendix C.1 for definitions).\nB.3. Baseline Implementation Details\nAll baselines share the same ReAct solver, tool interface, and decoding configuration as our method,\nand every learning-based baseline consumes exactly the same training split that our self-evolution\nloop uses; they differ only in the artifact distilled from those trajectories and in how that artifact is\ninjected at inference time. Table 6 summarizes the compared mechanisms: what each method stores,\nhow that knowledge is organized, and how it enters the solver’s context at inference time.\nMemoryBank (Zhong et al., 2024) maintains a long-term store of per-task experience summaries\nupdated after each completed task; at inference, relevant summaries are retrieved with recencyweighted relevance and prepended to the solver prompt.\nRAP (Kagaya et al., 2024) embeds completed trajectories and, at each new task, retrieves the\nmost similar past trajectories as in-context exemplars.\nExpeL (Zhao et al., 2024) contrasts success and failure trajectories to distill a pool of naturallanguage insights, which are injected into the system prompt alongside retrieved successful exemplars.\n\n20\n\n\fProcedural Graphs: Self-Evolving Execution Structures for LLM Agents\n\nTable 6 | Memory mechanisms compared in the main experiments.\nMethod\nVanilla ReAct (Yao et al., 2023b)\nMemoryBank (Zhong et al., 2024)\nRAP (Kagaya et al., 2024)\nExpeL (Zhao et al., 2024)\nAutoGuide (Fu et al., 2024)\nAWM (Wang et al., 2025b)\nKnowAgent (Zhu et al., 2025)\nProcedural Graph (Ours)\n\nStored Artifact\nnone\nexperience summaries\nraw trajectories\nnatural-language insights\n“in state 𝑋 , do 𝑌 ” guidelines\nworkflows with text and\nactions\naction rules and transitions\n(procedure, relation,\nprocedure) triplets\n\nOrganization\n–\nunstructured pool with forgetting\nsimilarity index\nunordered list\ncondition-indexed pool\n\nUsed at Inference\n–\nretrieved and prepended\ntop-𝑘 in-context exemplars\ninjected into system prompt\nstate-matched retrieval\n\nsequence library\n\nworkflow memory in prompt\n\nsingle text document\n\nstatic prompt prefix\nlocalized subgraph →\ngenerated guidance\n\nconnected graph\n\nAutoGuide (Fu et al., 2024) extracts state-conditioned guidelines from contrastive trajectory\npairs; at each step, the current state is summarized and the applicable guidelines are retrieved and\ninjected.\nAWM (Wang et al., 2025b) induces reusable workflows from successful trajectories, retaining\nnatural-language descriptions and action sequences as workflow memory in the solver prompt.\nKnowAgent (Zhu et al., 2025) maintains a textual action-knowledge base describing available\nactions and admissible transition rules, injected as a static prompt prefix.\nB.4. Procedural Graph Statistics\nTable 7 summarizes the size of the Procedural Graph used for each benchmark in the main experiments.\nThe graphs are compact: outside of BFCL v3, whose 131 nodes mirror its large function catalog,\nevery graph has between 7 and 17 nodes and between 7 and 27 triplets. Across all graphs, the\nrelation vocabulary R comprises four types: LEADS_TO, TRIGGERS, PROVIDES_INPUT_FOR, and\nCONVERGES_TO. Most edges carry the full condition/guidance/pitfalls attribute triple of Section 3.1,\nwith guidance the most consistently populated field.\nTable 7 | Sizes of the Procedural Graphs used in the main experiments.\n\nNodes\nTriplets\n\nHotpotQA\n\nMultiChallenge\n\nGDPval\n\nALFWorld\n\n𝜏-bench\n\nBFCL v3\n\nEnterpriseArena\n\n9\n9\n\n7\n7\n\n15\n22\n\n11\n27\n\n17\n18\n\n131\n265\n\n11\n13\n\nB.5. Prompt Templates\nWe use three families of prompts: a solver execution prompt that governs the ReAct loop, guidance\ngeneration prompts that translate the (sub)graph into situational guidance at each step, and a refiner\nprompt that drives offline self-evolution. The same templates are shared across all benchmarks; only\nthe tool lists and task descriptions vary. Curly braces denote runtime placeholders.\nSolver Execution Prompt (ReAct loop)\n{system_prompt}\nProcedural Graph Guidance: {procedural_graph_guidance}\nYou must interleave Thought and Action. Your output format must be exactly:\n\nThought: &lt;your reasoning about what to do next&gt;\nAction: &lt;tool_name&gt;(arg1=val1, arg2=val2, ...)\n\n21\n\n\fProcedural Graphs: Self-Evolving Execution Structures for LLM Agents\n\nSolver Execution Prompt (ReAct loop) (continued)\nExample:\n\nThought: I need to check the files in the workspace directory to locate the source\ndocuments.\nAction: list_dir(path=\".\")\nDO NOT write any “Observation:” block or any subsequent steps. Only output exactly one Thought and one Action\nblock. Do NOT simulate the environment’s responses.\nCurrent Trajectory: {trajectory}\n\nThought:\n\nGuidance Generation Prompt (Local subgraph; default)\nYou are an expert cognitive architect and execution guide for an AI agent solving the task: {task_description}\nHere is {graph_context_desc}: {subgraph_summary}\nHere is the current active query / observation: {query}\nHere is the agent’s recent execution trajectory: {recent_context}\nAnalyze this {graph_source} in the context of the agent’s current progress. Using the condition, guidance,\nand pitfalls attributes carried by the edges in the graph context, generate clear, detailed, and actionable guidance\nadvising the agent on exactly what step or strategy to pursue next, what pitfalls to avoid, and how to recover from\nrecent failures if any. You must include any specific command patterns, file paths, tools, or arguments defined in the\ngraph context if they are relevant to the next steps.\n\nSerialized Graph Context Example. We reconstruct the graph-context text below from the saved\nHotpotQA Mode 2 graph using the implemented local serializer. The active-node header supplies\nthe node ID, type, and description. Directed transitions are grouped by hop and followed by their\ncondition, guidance, and pitfalls, preserving the checkpoint’s field text. The two stored relation labels,\nLEADS_TO and PROVIDES_INPUT_FOR, are not printed by this serializer.\nSerialized Local Graph Context (HotpotQA; excerpt)\nActive Cognitive Node: [First_Hop_Retrieve] (Type: ACTION)\nDescription: Execute first_hop_retrieve to fetch primary evidence passages.\nImmediate Transition Options (Hop 1):\n- Transition: [First_Hop_Retrieve] → [Scan_Index] (Condition: first_hop_retrieve)\n* Guidance: Review the retrieved primary passages via Scan_Index to locate specific\nbridge terms (such as birth dates, locations, or associated entities).\n* Pitfalls to Avoid: Do not skip reading evidence details; missing the exact bridge\nentity name causes second-hop search failure.\nSubsequent Horizon (Hop 2):\n- Transition: [Scan_Index] → [Bridge_Extract] (Condition: scan_index)\n* Guidance: Extract the explicit connecting entity or bridge term linking the first\npassage to the target question.\n* Pitfalls to Avoid: Ensure the extracted bridge term matches exact Wikipedia\ncapitalization conventions.\n\nGuidance Generation Prompt (Full graph variant)\nThe full-graph variant is textually identical to the prompt above; the only difference is the content bound to the graph\ncontext slot, which is the complete Procedural Graph rather than the localized subgraph. Concretely,\n{graph_context_desc} is instantiated as “the complete Procedural Graph governing the task structure and\nstrategic guidance”, {subgraph_summary} as the full {graph_summary}, and {graph_source} as “complete\nProcedural Graph”. The task description, query, recent-trajectory window, analysis instruction, and output\n\n22\n\n\fProcedural Graphs: Self-Evolving Execution Structures for LLM Agents\n\nGuidance Generation Prompt (Full graph variant) (continued)\nrequirements are unchanged, so the two ablation rows in Table 3 differ only in graph scope and not in prompt\nwording or requested output length.\n\nRefiner Prompt (Self-evolution)\nYou are an expert cognitive architect optimizing a Procedural Graph for an intelligent agent. The Procedural Graph\nencodes structured procedural guidance.\nTask context: {task_description}\nRefinement mode: {mode}\nAvailable Tool Actions (the agent can only execute these actions): {available_tools_list}\nRecent execution trajectories: {attempts_block}\nCurrent Procedural Graph representation: {current_graph_json}\nPreviously rejected candidates: {rejected_block}\nYour job is to refine the Procedural Graph. Follow these guidelines based on the mode:\n• static_onetime / static_incremental: Prune edges/nodes that lead to loops, deadlocks, or failures.\nAdd missing nodes and edges that could fix the failures and improve performance for future tasks.\n• scratch_onetime / scratch_incremental: If starting from scratch (the graph contains only\nStart → End), synthesize a brand new, complete Procedural Graph using the Available Tool Actions list, Status,\nand successful patterns in the trajectories. Otherwise, prune edges/nodes that lead to loops, deadlocks, or\nfailures, and add missing nodes and edges based on the given graph.\nRules for nodes and edges. Rules 2–4 describe the edge attributes in Φ ( 𝑒): condition, guidance, and\npitfalls. The remaining rules govern node compatibility, generality, and graph structure.\n1. Action Nodes. Any node of type ACTION must match one of the action/tool names in the “Available Tool Actions”\nlist above.\n2. Transition Conditions. If an edge has a condition, provide a natural-language semantic precondition under\nwhich this transition should fire (e.g., “When dialogue history has been parsed but target constraints are\nunknown”). Use null if the transition is unconditional.\n3. Execution Guidance. For every edge added in add_edges, you MUST provide a guidance string detailing\nexactly what action to take next and the strategic rationale behind it.\n4. Pitfalls. Provide a pitfalls string warning about premature actions, forbidden words, or common formatting\npitfalls to avoid during this step.\n5. Generality &amp; Leak Prevention. The updated Procedural Graph must guide the agent effectively without\noverfitting to specific details of a single trajectory. Use high-level conceptual descriptions.\n6. Node ID Compatibility. If refining an existing graph (static modes), you MUST preserve the existing node IDs\n(such as Month_Start, Decide_Capital, and the tool names) so they remain compatible with the\nenvironment’s state tracker. Do not rename them.\n7. Graph Structure. Follow the task’s configured cycle policy. Every edge must reference existing nodes, and every\nnode must have a directed path to a terminal node. The environment loop handles repetition across simulation\ncycles.\nPlease propose the exact set of edits to perform. You must output your edits as a single valid JSON block containing\nfour arrays: add_nodes, delete_nodes, add_edges, and delete_edges. Output format must be exactly:\n\n{ \"add_nodes\": [{\"id\":..., \"type\": \"ACTION\", \"description\":...}],\n\"delete_nodes\": [\"node_id\"],\n\"add_edges\": [{\"source\":..., \"target\":..., \"relation\":...,\n\"condition\":..., \"guidance\":..., \"pitfalls\":...}],\n\"delete_edges\": [{\"source\":..., \"target\":...}] }\nMake sure to output ONLY the raw JSON block.\n\nEach entry in delete_edges removes all edges with the specified source and target, regardless\nof relation. To retain selected transitions between the same endpoints, include them in add_edges,\nwhich is applied after deletion.\n\n23\n\n\fProcedural Graphs: Self-Evolving Execution Structures for LLM Agents\n\nB.6. Self-Evolution Algorithm\nAlgorithm 1 makes the retained-checkpoint state explicit. 𝑆𝑘 is the cached validation score of G𝑘 ,\nand 𝑐 specifies whether cycles are allowed. Tail𝐿max preserves the ending of its input by removing\nexcess tokens from the beginning, leaving shorter inputs unchanged. The graph stays fixed during\neach training or validation episode. SerializeRejections supplies prior candidate graphs and their\nvalidation scores, or structural-failure diagnostics, to the refiner; the associated training traces remain\npart of the rejection record.\nAlgorithm 1 Offline Closed-Loop Procedural Graph Self-Evolution\nRequire: Initial graph G0 ; training/validation sets Dtrain , Dval ; round budget 𝐾 ; trajectory limit 𝐿max ; cycle\npolicy 𝑐.\n1: 𝑆0 ← Evaluate(G0 , Dval )\n2: Hrejected ← [ ]\n3: for 𝑘 = 1, . . . , 𝐾 do\n4:\nG𝑘 ← G𝑘 −1 ; 𝑆𝑘 ← 𝑆𝑘 −1 {Retain unless accepted}\n5:\nSelect training batch B𝑘 ⊂ Dtrain\n6:\nE 𝑘 ← Rollout(G𝑘 −1 , B𝑘 ) {Training traces and scores}\n7:\nC𝑘 ← Tail𝐿max (ConcatTrajectories(E 𝑘 ))\n8:\nR 𝑘 ← SerializeRejections(Hrejected )\n(𝑘)\n9:\nΔ G𝑘 ← Refiner(G𝑘 −1 , C𝑘 , {𝑆𝑖 } 𝑖 , R 𝑘 )\n10:\n(G𝑘cand , 𝑑 𝑘 ) ← PrepareCandidate(G𝑘 −1 , Δ G𝑘 , 𝑐)\n11:\nif 𝑑 𝑘 ≠ ∅ then\n12:\nAppend ( Δ G𝑘 , G𝑘cand , E 𝑘 , 𝑑 𝑘 ) to Hrejected\n13:\ncontinue {No validation rollout; retained state is unchanged}\n14:\nend if\n15:\n𝑆𝑘cand ← Evaluate(G𝑘cand , Dval )\n16:\nif 𝑆𝑘cand ≥ 𝑆𝑘 −1 then\n17:\nG𝑘 ← G𝑘cand ; 𝑆𝑘 ← 𝑆𝑘cand {Accept, including ties}\n18:\nelse\n19:\nAppend ( Δ G𝑘 , G𝑘cand , E 𝑘 , 𝑆𝑘cand ) to Hrejected\n20:\nend if\n21: end for\n22: return G𝐾\n\nCandidate Preparation and Structural Checks. PrepareCandidate applies edits to a copy of the\nretained graph, deleting edges and nodes before adding nodes and edges. It reports malformed edits,\ninvalid node or relation types, and missing edge endpoints as failures. When cycles are disallowed, the\nimplementation removes detected cycle-closing edges before validation; when cycles are allowed, that\nrepair and the acyclicity check are skipped. The remaining checks require valid edge endpoints and a\ndirected path from every node to a terminal node, defined by zero out-degree. This is a reachability\ncheck to a terminal node, not specifically to the node named End. Matching action-node names\nto the available tool list is a refiner-prompt requirement; the generic structural validator does not\nindependently enforce tool-catalog membership. On failure, 𝑑 𝑘 contains diagnostics and G𝑘cand may\nbe unavailable; on success, 𝑑 𝑘 = ∅.\n\nC. Long-Horizon Analysis on EnterpriseArena\nThis appendix describes the EnterpriseArena simulator and evaluation metrics, reports survival and\ncash trajectories, and compares traces from the baseline, memory-summarization, and PG-guided\nagents.\n24\n\n\fProcedural Graphs: Self-Evolving Execution Structures for LLM Agents\n\nC.1. EnterpriseArena Mechanics and Crisis Schedule\nThe Chief Financial Officer (CFO) simulator models the balance sheet dynamics of a microfinance\nlending institution over a long-term horizon of up to 132 months. The state of the environment at\nmonth 𝑡 is formalized as a multi-dimensional tuple:\n\u0001\nS𝑡 = 𝐶𝑡 , 𝐿𝑡 , 𝐴𝑡 , 𝐼𝑅𝑡 , 𝑃𝑅𝑡 , 𝐴𝑃𝑡 , 𝐷𝑡 , 𝐸𝑡 , 𝑈𝑡 ,\n(7)\nwhere 𝐶𝑡 is the cash balance, 𝐿𝑡 is the gross loan portfolio, 𝐴𝑡 is the allowance for loan losses, 𝐼𝑅𝑡 and\n𝑃𝑅𝑡 are interest and principal receivables, 𝐴𝑃𝑡 is accounts payable, 𝐷𝑡 is total outstanding debt, 𝐸𝑡 is\ntotal equity raised, and 𝑈𝑡 is the active user base.\nThe agent interacts with the simulator through a discrete action space. The primary stateadvancing action is book_closing(), which simulates the transition from month 𝑡 to 𝑡 + 1. During\nthis transition, the environment executes the following operations:\n1. Loan Amortization: A fraction of the loan portfolio 𝐿𝑡 matures, generating principal payments\nand interest income based on the lending rate.\n2. User and Operational Costs: The active user base 𝑈𝑡 grows or decays organically. Fixed operational\ncosts and user acquisition costs are deducted from the cash balance 𝐶𝑡 .\n3. Write-Offs: Defaulted loans are written off against the allowance 𝐴𝑡 , and new provisions are\ncalculated.\nTo manage liquidity, the agent can invoke fund_raising_request(type, amount), where\nthe type is either ’equity’ or ’debt’. Fundraising is subject to two realistic constraints:\n• Market Delivery Lag: Capital is not delivered immediately. There is a stochastic delay of 1 to 6\nmonths between the request step and the cash injection.\n• Market Capacity Cap: The maximum amount of capital that can be raised in a single request\nis dynamically capped by the environment based on the current macroeconomic state and the\ninstitution’s financial health.\nThe simulation terminates immediately if the cash balance goes negative (𝐶𝑡 &lt; 0), representing\ncorporate bankruptcy. The environment simulates three successive macroeconomic crises to test the\nagent’s long-term resilience:\n• Crisis 1 (Month 32): A mild contraction where loan repayment rates drop slightly from 98% to\n90%.\n• Crisis 2 (Month 59): A severe economic recession. Repayment rates plunge to 60%, write-offs\nsurge, and organic user growth turns negative.\n• Crisis 3 (Month 112): A systemic liquidity freeze. Repayment rates drop to 40%, and the market\ncapacity cap for fundraising is severely restricted, making new capital acquisition extremely difficult.\nEvaluation Metrics. Full Surv. is the percentage of runs that complete the 132-month horizon\nwithout bankruptcy; the crisis columns report the fractions reaching months 32, 59, and 112. Avg.\nMonths averages run duration, including early terminations. Tools/Mo averages the per-run ratio of\narena information-tool calls to simulated months, excluding memory operations and state-changing\nactions. Raised is the mean cumulative equity and debt financing actually received per run, in\nmillions of dollars.\n\n25\n\n\fProcedural Graphs: Self-Evolving Execution Structures for LLM Agents\n\nWe use EnterpriseArena’s revenue-based valuation and tool-use penalty (Han et al., 2026) to\ncompute the score at each recorded month:\n(\n0,\nif run 𝑖 has gone bankrupt,\n𝑠𝑖,𝑡 =\n(8)\n(12)\n5 Rev𝑖,𝑡 + 𝐶 𝑖,𝑡 − 5,000 𝑁𝑖,𝑡 , otherwise,\n(12)\nwhere Rev𝑖,𝑡\nis trailing-twelve-month revenue (annualized from the available monthly average when\nfewer than twelve months are recorded), 𝐶 𝑖,𝑡 is cash in dollars, and 𝑁𝑖,𝑡 is the cumulative number of\narena information-tool calls. Avg. Score first averages these monthly scores within each run up to\ntermination, then averages across runs, reporting the result in millions of dollars. Thus, a run ending\nin bankruptcy can still have a positive time-averaged score.\n\nC.2. Results and Survival Analysis\nTable 8 | Performance comparison on EnterpriseArena. Within each model block, higher survival, lifespan, and score\nand lower Tools/Mo are highlighted. Raised highlights the largest financing volume. Metric definitions are given in\nAppendix C.1.\nModel &amp; Config\nClaude Sonnet 4.6\nBaseline\nRAP (Kagaya et al., 2024)\nMemoryBank (Zhong et al., 2024)\nProcedural Graph (Ours)\nGemini 3.1 Pro\nBaseline\nRAP (Kagaya et al., 2024)\nMemoryBank (Zhong et al., 2024)\nProcedural Graph (Ours)\nGemini 3.5 Flash\nBaseline\nRAP (Kagaya et al., 2024)\nMemoryBank (Zhong et al., 2024)\nProcedural Graph (Ours)\nGrok 4.1 Fast\nBaseline\nRAP (Kagaya et al., 2024)\nMemoryBank (Zhong et al., 2024)\nProcedural Graph (Ours)\n\nOverall\nMulti-Crisis Survival\nAgent Performance\nFull Surv. Avg. Months Avg. Score 1st Crisis 2nd Crisis 3rd Crisis Tools/Mo Raised\n44.0%\n50.0%\n56.0%\n58.0%\n\n89.80\n93.24\n97.82\n98.58\n\n$78.86M\n$76.76M\n$56.57M\n$70.38M\n\n100.0%\n100.0%\n100.0%\n100.0%\n\n78.0%\n70.0%\n78.0%\n80.0%\n\n52.0%\n54.0%\n62.0%\n60.0%\n\n0.13\n0.12\n0.27\n0.36\n\n$152.12M\n$157.54M\n$97.01M\n$130.44M\n\n6.0%\n6.0%\n22.0%\n34.0%\n\n50.28\n51.34\n59.78\n79.22\n\n$31.85M\n$32.27M\n$33.11M\n$37.21M\n\n100.0%\n100.0%\n100.0%\n100.0%\n\n38.0%\n38.0%\n38.0%\n54.0%\n\n8.0%\n12.0%\n24.0%\n46.0%\n\n0.89\n0.83\n0.39\n3.18\n\n$21.82M\n$23.16M\n$14.53M\n$38.20M\n\n0.0%\n0.0%\n0.0%\n0.0%\n\n33.58\n34.04\n35.60\n40.62\n\n$28.59M\n$28.75M\n$29.34M\n$29.08M\n\n100.0%\n100.0%\n100.0%\n100.0%\n\n0.0%\n2.0%\n10.0%\n14.0%\n\n0.0%\n0.0%\n0.0%\n0.0%\n\n18.94\n17.71\n11.99\n12.53\n\n$0.00M\n$0.69M\n$1.69M\n$9.39M\n\n26.0%\n28.0%\n16.0%\n40.0%\n\n63.76\n64.08\n58.24\n75.14\n\n$39.42M\n$35.47M\n$31.95M\n$39.62M\n\n100.0%\n100.0%\n100.0%\n100.0%\n\n42.0%\n40.0%\n42.0%\n50.0%\n\n28.0%\n28.0%\n20.0%\n40.0%\n\n0.47\n0.41\n1.03\n0.40\n\n$27.24M\n$21.72M\n$11.65M\n$30.11M\n\nFigure 3 compares cash trajectories and Kaplan–Meier survival curves for four planning configurations on Claude Sonnet 4.6, Gemini 3.1 Pro, Gemini 3.5 Flash, and Grok 4.1 Fast. Each model panel\nplaces survival curves above cash trajectories, which show individual sample paths, the mean, and\nthe 95% confidence interval. Survival gains vary across the four solvers.\nThe unguided baseline reaches full-horizon survival rates of 44.0% for Claude Sonnet 4.6, 6.0%\nfor Gemini 3.1 Pro, 26.0% for Grok 4.1 Fast, and 0.0% for Gemini 3.5 Flash (Table 8). In the Flash\nbaseline, mean lifespan is 33.58 months and no episode reaches the second crisis.\nThe Procedural Graph configuration (solid blue line) improves full-horizon survival for three\nsolvers and mean lifespan for all four:\n\n26\n\n\fProcedural Graphs: Self-Evolving Execution Structures for LLM Agents\n\n• Claude Sonnet 4.6: PG achieves the highest survival rate of 58.0% (a 14.0-point gain over the\nbaseline). Its mean cash trajectory remains stable and ends at $76.03M, well above the liquidity\nwarning threshold of $5.0M.\n• Gemini 3.1 Pro: The Procedural Graph provides the largest absolute survival gain, raising the survival rate from 6.0% (baseline) to 34.0%, and securing a final mean cash of $22.99M, approximately\n10.5 times the baseline’s $2.18M.\n• Grok 4.1 Fast: Survival improves from 26.0% to 40.0%, with the final mean cash increasing from\n$23.62M to $30.20M.\n• Gemini 3.5 Flash: All four configurations have 0.0% full-horizon survival in this evaluation, while\nPG increases mean lifespan from 33.58 to 40.62 months. This result describes the configurations\nevaluated here; the separate self-evolution experiment is reported in Section 5.4.\nMemoryBank achieves higher full-horizon survival than RAP on Gemini 3.1 Pro (22.0% vs. 6.0%)\nand Claude Sonnet 4.6 (56.0% vs. 50.0%). PG exceeds both on these two solvers and on Grok 4.1\nFast, while all methods tie at 0.0% on Gemini 3.5 Flash.\nRelative to the unguided baseline, PG raises full-horizon survival by 28 points on Gemini 3.1 Pro\nand 14 points on both Claude Sonnet 4.6 and Grok 4.1 Fast. Appendix C.3 examines the actions\ntaken in one matched task instance.\nC.3. Case Study: Three Agents Facing the First Crisis\nTo understand the mechanisms driving the quantitative performance gap, we contrast the step-bystep reasoning traces of a baseline agent, a memory summarization agent, and a Procedural Graph\nguided agent. The following traces are extracted directly from real experimental logs of Grok 4.1\nFast operating on an identical task instance (Seed 14) during the critical transition into the first\nmacroeconomic crisis (Months 29 to 33). Traces are condensed from the raw logs; bracketed italic\ntext is editorial annotation, not model output.\nIn this baseline trace, the agent reports no bankruptcy risk despite declining cash reserves. It later\nsubmits requests that violate the environment’s constraints:\nBaseline Agent Trace (Sample 14) – Myopia &amp; Rule Violation\nStep 45 (Month 31):\nThought: Month 31 confirms trajectory: cash $14.2M (down ∼$7.4M but infinite runway &gt;12mos) ... no\nbankruptcy risk. With 1 action left, book_closing to advance month, lock YTD financials, sustain momentum,\nand maximize valuation...\nAction: book_closing()\nStep 46 (Month 32):\nThought: Month 32: cash $6.2M (down sharply ∼$8M, runway ∼2-3mos, bankruptcy risk emerging)... Prior\nbook_closing advanced month but cash burn accelerating; cannot risk another book_closing or pass. Raise\nequity to bolster cash...\nAction: fund_raising_request(type=’equity’, amount=20000000)\nStep 47 (Month 33):\nThought: Month 33: cash critically low at $683K (runway &lt;1mo, imminent bankruptcy risk)... Equity raise ($20M\nrequested, pending 1-6mos) submitted but not received; cannot pass or book_closing. Submit debt raise for\nimmediate bridge funding to avoid bankruptcy...\nAction: fund_raising_request(type=’debt’, amount=10000000)\nObservation: Your fundraising request was rejected: you already have a pending fundraising request.\n[Observed behavior: The agent requests debt financing while an equity request is still pending. The environment rejects\nthe additional request under the single-pending-request constraint.]\n\n27\n\n\fProcedural Graphs: Self-Evolving Execution Structures for LLM Agents\n\nThe memory summarization agent uses an LLM-generated running summary of past events. In\nthis example, it recognizes the shrinking cash runway but submits fundraising amounts inconsistent\nwith its stated intentions and repeats requests while earlier funding is still pending:\nMemory Summarization Agent (Sample 14) – Hallucination &amp; Constraint Blindness\nStep 51 (Month 29):\nThought: Cash $25.3M (MoM -$5.4M, runway ∼4mo per updated forecast)... pending equity ($18M, submitted\nM26, now ∼3mo in)... Runway critically eroding (4mo &lt; 6mo buffer); pending raise may arrive soon but unreliable.\nCheck market for raise viability...\nAction: check_market_data(data_type=’VIX’)\nStep 53 (Month 30):\nThought: Cash $25.3M (runway 4mo)... VIX 10.51 very low... Submit equity raise now per rules (prefer equity\n$15-20M)...\nAction: fund_raising_request(type=’equity’, amount=18)\nObservation: Your fundraising request was rejected: you already have a pending fundraising request.\nStep 57 (Month 32):\nThought: Cash $11.8M (runway 2mo)... low-risk equity raise $18M fits rules... submit to extend runway...\nAction: fund_raising_request(type=’equity’, amount=18)\nStep 59 (Month 32):\nThought: Cash $4.3M... runway 1mo critical... must raise now despite pending... submit $20M equity to buffer\nurgency...\nAction: fund_raising_request(type=’equity’, amount=20)\nObservation: Your fundraising request was rejected: you already have a pending fundraising request.\n[Observed behavior: The agent submits amounts of $18 and $20 despite referring to $18M and $20M in its reasoning,\nand repeatedly submits requests while earlier funding is pending.]\n\nGuided by the Procedural Graph, the proposed agent maintains a clear structural prior of the task’s\ntemporal rules. It initiates fundraising with the correct scale well in advance, chaining sequential\nreasoning steps while remaining strictly compliant with environment constraints during the stochastic\ndelivery lag:\nProcedural Graph Agent Trace (Sample 14) – Strategic Foresight &amp; Adherence\n[At the opening of Month 30, an equity request submitted in Month 27 delivers: $28.8M after the market-capacity cap.]\nStep 37 (Month 30):\nThought: Equity raise succeeded (capped at ∼$28.8M, added to cash for $47.6M total)... VIX at 10.51 is\nexceptionally low (indicating calm markets, ideal for equity raise to minimize dilution cost)... with escalating burn\nahead of the projected contraction, raise equity again now for ∼$50M, preserving no-debt status...\nAction: fund_raising_request(type=’equity’, amount=50000000)\nStep 38 (Month 30):\nThought: Request submitted (pending, 1–6 month delivery)... run forecast to confirm new runway...\nAction: cash_flow_forecast_calculation(months=12)\nStep 42 (Month 32):\nThought: ... forecast confirms 6-mo runway... pending $50M equity (submitted M30) likely delivers soon... advance\nmonth via book_closing to progress raise delivery...\nAction: book_closing()\nStep 44 (Month 33):\nThought: ... pending $50M equity (submitted M30, now 3 mos in) likely delivers soon... no bankruptcy imminent...\nadvance via book_closing to progress raise delivery...\nAction: book_closing()\n[Result: The agent strictly adheres to the delivery-lag and single-pending constraints, successfully bridges the\ncrisis months, and survives to the end of the simulation at Month 132.]\n\nIn this task instance, the PG-guided agent tracks pending funding, checks projected runway, and\nadvances the month while awaiting delivery. The baseline and memory-summary traces show invalid\n28\n\n\fProcedural Graphs: Self-Evolving Execution Structures for LLM Agents\n\nrequests. These observations illustrate different behaviors on the same instance; they do not establish\nhow frequently each behavior occurs across runs.\n\nD. Procedural Graph Construction: Supplementary Results\nThis appendix provides quantitative results, diagnostic case studies of construction failure modes,\nformulations of the five PG construction strategies, and the detailed experimental configurations.\nD.1. Efficiency and Robustness Statistics\nTables 9 (HotpotQA) and 10 (MultiChallenge) compare task performance, resource use, and parsing\nfailures across the five construction modes and the unguided baseline.\nTable 9 | HotpotQA test set performance, resource, and robustness statistics. Highlighted cells mark column optima\nacross all configurations, including the unguided baseline; ties are highlighted equally.\nConstruction Mode\nUnguided Baseline (w/o PG)\nMode 1: Hand-crafted Expert\nMode 2: Expert + Static Update\nMode 3: Expert + Online Evolution\nMode 4: Scratch + Static Build\nMode 5: Scratch + Online Evolution\n\nAns F1 (↑)\n71.21\n76.61\n77.16\n76.34\n69.49\n78.79\n\nTokens (↓)\n4,003.24\n9,045.69\n8,942.79\n10,658.36\n6,396.90\n10,115.89\n\nSteps (↓)\n4.88\n4.12\n4.11\n4.11\n4.30\n3.97\n\nParsing Fail. (↓)\n0.016\n0.007\n0.005\n0.009\n0.016\n0.016\n\nLatency (s, ↓)\n18.06\n39.34\n37.73\n39.61\n36.98\n31.53\n\nTable 10 | MultiChallenge test set performance, resource, and robustness statistics. Bold blue cells mark column\noptima across all configurations, including the unguided baseline; ties are highlighted equally. Pale blue marks Mode 5’s\nsecond-best values where Mode 2 ranks first.\nConstruction Mode\nUnguided Baseline (w/o PG)\nMode 1: Hand-crafted Expert\nMode 2: Expert + Static Update\nMode 3: Expert + Online Evolution\nMode 4: Scratch + Static Build\nMode 5: Scratch + Online Evolution\n\nOverall Success (↑)\n87.50\n58.93\n53.57\n92.86\n89.29\n91.07\n\nTokens (↓)\n7,403.98\n11,039.82\n5,990.79\n12,157.52\n14,859.80\n7,984.50\n\nSteps (↓)\n7.05\n6.60\n4.32\n6.73\n8.02\n5.05\n\nParsing Fail. (↓)\n1.05\n0.88\n0.36\n0.98\n1.07\n0.57\n\nLatency (s, ↓)\n127.59\n117.70\n65.93\n128.50\n166.57\n92.81\n\nSolver Steps and Latency. On MultiChallenge, Mode 5 uses 5.05 steps and 92.81 seconds per\nsample, compared with 8.02 steps and 166.57 seconds for Mode 4. Mode 2 has the lowest average\nstep count (4.32) and latency (65.93 seconds), but also the lowest success rate (53.57%). Mode 3\nachieves the highest success rate (92.86%), with 6.73 steps and 128.50 seconds per sample. These\nresults show why resource use should be read alongside task performance; aggregate statistics alone\ndo not identify the graph edits responsible for the differences.\nCompared with the hand-crafted Mode 1 graph (6.60 steps and 117.70 seconds), Mode 5 uses\nfewer steps and less time on MultiChallenge. On HotpotQA, Mode 5 has the lowest latency among\nthe PG configurations (31.53 seconds).\nAction Formatting and Parsing Robustness. On HotpotQA, expert-initialized Modes 1–3 have\nfewer parsing failures per sample than scratch-initialized Modes 4–5. Mode 2 has the lowest value\n(0.005), followed by Mode 1 (0.007) and Mode 3 (0.009); Modes 4 and 5 each have 0.016. On\nMultiChallenge, Mode 5 records 0.57 parsing failures per sample compared with Mode 4’s 1.07. The\n29\n\n\fProcedural Graphs: Self-Evolving Execution Structures for LLM Agents\n\nassociation between initialization and formatting therefore differs across tasks, and does not by itself\nestablish that a particular graph schema causes the reduction.\nToken Use. On MultiChallenge, Modes 1 and 3 use approximately 11.0k and 12.2k tokens per\nsample, respectively. Mode 2 uses approximately 6.0k, alongside its lower success rate. Mode 5 uses\n7,984.50 tokens, compared with 14,859.80 for Mode 4 and 7,403.98 for the unguided baseline. The\nMode 4–5 comparison reverses on HotpotQA: Mode 5 uses 10,115.89 tokens versus Mode 4’s 6,396.90.\nTotal token use reflects the complete interaction, including the number of steps and generated outputs,\nand cannot alone establish that a graph representation is more compact.\nD.2. Graph Construction Modes\nWe provide the formulation and implementation details for each of the five PG construction modes.\nHere, online evolution refers to incremental graph updates between training batches; the graph\nremains fixed within each episode and during test evaluation.\nMode 1: Hand-crafted Expert PG (Zero-shot Baseline)\nInitialization: A human-engineered directed graph 𝐺𝑒𝑥 𝑝𝑒𝑟𝑡 = (𝑉, 𝐸) containing expert-designed tool nodes, valid\ntransitions, and manually annotated natural language guidance.\nTraining Strategy: None. Zero-shot execution on the test set.\nEvolutionary Mutation: None. The graph structure and guidance remain static.\nValidation &amp; Safeguard: None.\n\nMode 2: Expert PG + Static One-time Update (Offline)\nRefinement Mode: static_onetime.\nInitialization: Initialized with the hand-crafted expert graph 𝐺𝑒𝑥 𝑝𝑒𝑟𝑡 from Mode 1.\nTraining Strategy: Static offline execution. The agent runs on the entire training split in a single pass to collect all\nsuccessful and failed trajectories.\nEvolutionary Mutation: Single-pass. The LLM refiner ingests all trajectories in a single large-context window to\nperform a one-time global offline update to transitions and guidance.\nValidation &amp; Safeguard: None. The refined graph is directly committed.\n\nMode 3: Expert PG + Online Evolution (Incremental)\nRefinement Mode: static_incremental.\nInitialization: Initialized with the hand-crafted expert graph 𝐺𝑒𝑥 𝑝𝑒𝑟𝑡 from Mode 1.\nTraining Strategy: Online incremental batches. The training split is partitioned into sequential strides (𝑆 = 100\nsamples for HotpotQA; 𝑆 = 20 samples for MultiChallenge).\nEvolutionary Mutation: After each stride, the refiner uses the latest failure logs to update nodes, transitions, and\nlocal guidance.\nValidation &amp; Safeguard: The candidate is evaluated on the validation split. If performance declines, the previous\nbest graph is restored.\n\n30\n\n\fProcedural Graphs: Self-Evolving Execution Structures for LLM Agents\n\nMode 4: Scratch + Static One-time Build (Offline)\nRefinement Mode: scratch_onetime.\nInitialization: Minimal skeleton graph 𝐺 𝑠𝑘𝑒𝑙𝑒𝑡𝑜𝑛 = (Start → End) with no intermediate nodes or additional transitions.\nTraining Strategy: Static offline execution. The agent runs on the entire training split in a single pass to collect all\nsuccessful and failed trajectories.\nEvolutionary Mutation: Single-pass. The LLM refiner ingests all trajectories in a single large-context window to\nperform a one-time global offline update to transitions and guidance.\nValidation &amp; Safeguard: None. The refined graph is directly committed.\n\nMode 5: Scratch + Online Evolution (Incremental)\nRefinement Mode: scratch_incremental.\nInitialization: Minimal skeleton graph 𝐺 𝑠𝑘𝑒𝑙𝑒𝑡𝑜𝑛 = (Start → End) with no intermediate nodes or additional transitions.\nTraining Strategy: Online incremental batches. The training split is partitioned into sequential strides (𝑆 = 100\nsamples for HotpotQA; 𝑆 = 20 samples for MultiChallenge).\nEvolutionary Mutation: After each stride, the refiner uses the latest failure logs to update nodes, transitions, and\nlocal guidance.\nValidation &amp; Safeguard: The candidate is evaluated on the validation split. If performance declines, the previous\nbest graph is restored.\n\nD.3. Experimental Setup\nTo ensure reproducibility, we detail the core experimental settings and dataset splits below:\nModel Selection and Hyperparameters. All construction-strategy experiments in this appendix,\nincluding agent execution and evolutionary refinement, are powered by the frozen Gemini 3.5\nFlash model snapshot. To ensure deterministic and reproducible tool-calling reasoning paths, the\nsampling temperature is set strictly to 0 and top-𝑘 sampling is configured with 𝑘 = 1, enforcing greedy\ndecoding across all model calls. Additionally, to prevent random execution deviations, the API safety\nfiltering thresholds are unified and held constant to eliminate premature trajectory blocking, and\nthe maximum generation length is locked at 2, 048 tokens for the agent and 8, 192 tokens for the\nevolutionary refiner to guard against truncated reasoning paths.\nHotpotQA Environment Setup. The HotpotQA experiments are conducted on a standard multi-hop\nreasoning split consisting of 1, 000 training samples, 1, 000 validation samples, and 1, 000 test samples.\nThe agent’s performance is measured using strict string Exact Match (EM) and word-level overlap F1\nscore between the agent’s generated answer and the ground truth.\nMultiChallenge Environment Setup. The MultiChallenge dialogue experiments are conducted on\na dataset split consisting of 100 training samples, 100 validation samples, and 56 test samples. Task\nperformance is evaluated via an LLM judge based on Gemini 3.1 Pro, measuring the Overall Success\nRate, alongside four core challenge subcategory axes: Inference Memory (IM), Instruction Retention\n(IR), Reliable Versioned Editing (RVE), and Self Coherence (SC).\n\nE. Round-by-Round Self-Evolution on EnterpriseArena\nTable 11 presents the round-by-round metrics of the 10-generation CFO evolution. The delta (Δ) rows\ntrack metric changes relative to the active best validation checkpoint. Appendix E.1 examines tool\nuse, and Appendix E.2 discusses candidate screening.\n31\n\n\fProcedural Graphs: Self-Evolving Execution Structures for LLM Agents\n\nTable 11 | PG self-evolution across ten rounds with Gemini 3.5 Flash. The Δ rows report metric changes relative to the\nprevious best validation checkpoint. Gray rows mark rounds without a committed graph update.\nEvolution Round\n\nOverall\nFull Surv.% Avg. Months\n\nBaseline\nValidate\n0.0%\nTest\n0.0%\nRound 01 [✓ Evolved]\nTrain\n0.0%\nValidate\n45.0%\nΔ vs. Base\n+45.0\nTest\n70.0%\nRound 02 [✓ Evolved]\nTrain\n85.0%\nValidate\n80.0%\nΔ vs. R01\n+35.0\nTest\n80.0%\nRound 03 [× Rolled Back]\nTrain\n80.0%\nValidate\n65.0%\nΔ vs. R02\n-15.0\nRound 04 [× Rolled Back]\nTrain\n80.0%\nValidate\n75.0%\nΔ vs. R02\n-5.0\nRound 05\nTrain\n80.0%\nValidate (R04)\n75.0%\nRound 06 [× Rolled Back]\nTrain\n80.0%\nValidate\n65.0%\nΔ vs. R02\n-15.0\nRound 07 [✓ Evolved]\nTrain\n65.0%\nValidate\n80.0%\nΔ vs. R02\n–\nTest\n95.0%\nRound 08 [✓ Evolved]\nTrain\n85.0%\nValidate\n90.0%\nΔ vs. R07\n+10.0\nTest\n85.0%\nRound 09 [✓ Evolved]\nTrain\n95.0%\nValidate\n90.0%\nΔ vs. R08\n–\nTest\n85.0%\nRound 10 [× Rolled Back]\nTrain\n90.0%\nValidate\n85.0%\nΔ vs. R09\n-5.0\n\nAvg. Score\n\nMulti-Crisis Survival\nAgent Performance\n1st Crisis 2nd Crisis 3rd Crisis Tools/Mo Actions\nRaised\n\n34.80\n33.30\n\n$28.377M\n$28.754M\n\n100.0%\n100.0%\n\n0.0%\n0.0%\n\n0.0%\n0.0%\n\n17.23\n18.60\n\n35.7\n34.2\n\n$0.47M\n$0.00M\n\n33.40\n88.90\n+54.10\n104.15\n\n$28.777M\n$38.594M\n+$10.217M\n$43.519M\n\n100.0%\n100.0%\n–\n100.0%\n\n0.0%\n60.0%\n+60.0\n80.0%\n\n0.0%\n45.0%\n+45.0\n70.0%\n\n16.25\n7.92\n-9.31\n3.62\n\n34.4\n89.9\n+54.2\n105.2\n\n$0.00M\n$40.68M\n+$40.21M\n$44.90M\n\n117.75\n112.60\n+23.70\n114.00\n\n$46.524M\n$46.038M\n+$7.444M\n$44.992M\n\n100.0%\n100.0%\n–\n100.0%\n\n90.0%\n85.0%\n+25.0\n90.0%\n\n85.0%\n80.0%\n+35.0\n80.0%\n\n3.39\n3.08\n-4.84\n3.11\n\n118.8\n113.6\n+23.7\n115.0\n\n$57.27M\n$52.33M\n+$11.65M\n$46.83M\n\n113.35\n102.15\n-10.45\n\n$46.857M\n$43.965M\n-$2.073M\n\n100.0%\n100.0%\n–\n\n85.0%\n75.0%\n-10.0\n\n80.0%\n70.0%\n-10.0\n\n3.08\n3.30\n+0.22\n\n114.3\n103.2\n-10.4\n\n$51.88M\n$46.74M\n-$5.59M\n\n115.05\n109.20\n-3.40\n\n$46.631M\n$49.831M\n+$3.793M\n\n100.0%\n100.0%\n–\n\n90.0%\n85.0%\n–\n\n80.0%\n75.0%\n-5.0\n\n3.06\n3.05\n-0.03\n\n116.0\n110.2\n-3.4\n\n$53.04M\n$70.85M\n+$18.52M\n\n114.05\n109.20\n\n$44.565M\n$49.831M\n\n100.0%\n100.0%\n\n90.0%\n85.0%\n\n80.0%\n75.0%\n\n3.12\n3.05\n\n115.0\n110.2\n\n$52.85M\n$70.85M\n\n114.90\n108.75\n-3.85\n\n$46.345M\n$43.831M\n-$2.207M\n\n100.0%\n100.0%\n–\n\n90.0%\n80.0%\n-5.0\n\n80.0%\n80.0%\n–\n\n3.09\n2.91\n-0.17\n\n115.9\n109.8\n-3.8\n\n$56.52M\n$54.54M\n+$2.21M\n\n99.70\n114.15\n+1.55\n126.05\n\n$40.722M\n$47.607M\n+$1.569M\n$47.360M\n\n100.0%\n100.0%\n–\n100.0%\n\n75.0%\n90.0%\n+5.0\n95.0%\n\n65.0%\n80.0%\n–\n95.0%\n\n3.19\n3.12\n+0.04\n3.10\n\n100.7\n115.2\n+1.6\n127.0\n\n$40.46M\n$68.91M\n+$16.58M\n$68.94M\n\n120.35\n121.20\n+7.05\n116.30\n\n$49.781M\n$57.371M\n+$9.764M\n$54.367M\n\n100.0%\n100.0%\n–\n100.0%\n\n90.0%\n90.0%\n–\n85.0%\n\n90.0%\n90.0%\n+10.0\n85.0%\n\n3.12\n3.13\n+0.01\n3.12\n\n121.3\n122.2\n+7.0\n117.3\n\n$77.33M\n$94.32M\n+$25.41M\n$82.32M\n\n126.05\n121.20\n–\n116.30\n\n$58.188M\n$56.570M\n-$0.801M\n$54.440M\n\n100.0%\n100.0%\n–\n100.0%\n\n95.0%\n90.0%\n–\n85.0%\n\n95.0%\n90.0%\n–\n85.0%\n\n3.08\n3.08\n-0.05\n3.06\n\n127.0\n122.2\n–\n117.3\n\n$97.84M\n$93.05M\n-$1.27M\n$82.32M\n\n121.15\n121.20\n–\n\n$58.418M\n$56.386M\n-$0.184M\n\n100.0%\n100.0%\n–\n\n90.0%\n90.0%\n–\n\n90.0%\n90.0%\n–\n\n3.07\n3.01\n-0.07\n\n122.2\n122.2\n–\n\n$88.32M\n$95.76M\n+$2.71M\n\nE.1. Computational Efficiency\nBeyond task performance, the evolved graphs also help reduce redundant tool use. As detailed in\nTable 11, the average number of tool invocations per simulation month (Tools/Mo) on the validation\nsplit drops from 17.23 in the Baseline to 3.08 in Round 2, stabilizing at 3.13 by Round 8. The baseline\nagent, operating under zero-shot ReAct, repeatedly queries the environment for cash balances and\nmarket metrics within the same turn. The evolved PG guides the agent through these queries once per\ncycle. This is an 81.8% reduction in tool invocations per simulation month, showing that the evolved\ngraph reduces environment interactions in this experiment. We report tool calls rather than tokens\nhere because the simulation logs record invocation counts but not per-month token consumption.\n\n32\n\n\fProcedural Graphs: Self-Evolving Execution Structures for LLM Agents\n\nE.2. Candidate Screening: Three Cases\nThe evolution loop combines validation checks with structural verification to filter unsuccessful\ncandidates, as illustrated by three cases:\n• Performance Rollback (Rounds 3, 4, 6): In Round 3, the mutation engine attempted to lower the\ncash threshold that triggers fundraising. While this succeeded on specific training seeds, it led to\npremature dilution and cash shortages on validation seeds, dropping validation survival by 15.0\npoints and average lifespan by 10.45 months. The gate rejected the candidate and restored the\nRound 2 checkpoint.\n• Execution Constraint Rollback (Round 5): In Round 5, the candidate failed structural verification\nbefore simulation, so validation was skipped. The reported validation metrics for this round carry\nforward the Round 4 results.\n• Validation Safeguard (Round 10): In Round 10, training survival was 90.0%, but validation\nsurvival fell to 85.0% (−5.0 points) and the mean time-averaged enterprise score on the validation\nsplit decreased by $0.184M. The validation gate rejected the mutation because its strong training\nperformance did not carry over to validation, and the loop terminated with the Round 9 graph.\nE.3. Step-by-Step Topological Analysis\nFigure 5 visualizes the topological changes of the CFO Procedural Graph across key evolutionary\nstages.\n• Initialization (Round 0 - Baseline): The agent has no structural prior (Start → End). Without\nintermediate procedural guidance, the LLM must infer the action sequence from the running\ntrajectory, leading to high computational cost, redundant tool calls, and missed tasks such as cash\nforecasts.\n\n33\n\n\fProcedural Graphs: Self-Evolving Execution Structures for LLM Agents\n\nInitialization (Round 0)\n\nGeneration B (Rounds 2-5)\n\nGeneration C (Round 6)\n\nGeneration D (Rounds 7-10)\n\nSTART\n\nSTART\n\nSTART\n\nSTART\n\nEND\n\nMonth\nStart\n\nMonth\nStart\n\nMonth\nStart\n\nrecall\nnotes\n\nrecall\nnotes\n\nGeneration A (Round 1)\n[+]\nrecall\nnotes\n\nSTART\n\nMonth\nStart\n\ncheck\ncash\nin\nbank\n\ncheck\ncash\nin\nbank\n\ncheck\ncash\nin\nbank\n\ncheck\ncash\nin\nbank\n\ncash\nflow\nforecast\ncalculation\n\ncash\nflow\nforecast\ncalculation\n\ncash\nflow\nforecast\ncalculation\n\ncash\nflow\nforecast\ncalculation\n\nsave\nnote\n\nsave\nnote\n\nsave\nnote\n\nsave\nnote\n\ncheck\nmarket\ndata\n\ncheck\nmarket\ndata\n\ncheck\nmarket\ndata\n\ncheck\nmarket\ndata\n\nDecide\nCapital\n\nDecide\nCapital\n\nDecide\nCapital\n\nfund\nraising\nrequest\n\nDecide\nCapital\n\nfund\nraising\nrequest\n\nbook\nclosing\n\npass\naction\n\nbook\nclosing\n\npass\naction\n\nEND\n\nfund\nraising\nrequest\n\n[-]\npass\naction\n\nbook\nclosing\n\nEND\n\nfund\nraising\nrequest\n\nbook\nclosing\n\nEND\n\nEND\n\nFigure 5 | Topological evolution of the CFO Procedural Graph. Green nodes/edges [+] denote additions; red dashed\nnodes/edges [-] denote deletions/pruning.\n\n• Generation A (Round 1 - Backbone Discovery): The loop suggests the following sequence:\nStart → Month_Start → check_cash_in_bank → cash_flow_forecast_calculation\n→ save_note → check_market_data → Decide_Capital. This structure guides the agent\nto audit cash, project runway, save context, and check market valuation before making a financing\ndecision.\n• Generation B (Rounds 2–6 - Working Memory): The loop inserts recall_notes immediately\nafter Month_Start. By guiding the agent to use save_note after the forecast and recall_notes\nat the start of the next month, the Procedural Graph provides durable external working memory\nthat preserves key metrics across months.\n• Generation C (Round 7 - Branch Pruning): The loop prunes the pass_action node (the “do nothing” action) and its incident edges. The resulting graph retains the branches from Decide_Capital\nto fund_raising_request and book_closing. This topology is adopted in Round 7.\n• Generation D (Rounds 8–10 - Administrative Bypass): The edge from fund_raising_request\nto book_closing is replaced with a direct link to End in Round 8, and this topology is retained\nthrough Round 10. Because the environment adapter already advances the month after a fundraising\nrequest, the revised graph suggests ending the current procedure and reassessing the new month’s\nstate instead of immediately following the request with another month-advancing action.\n\n34\n\n\fProcedural Graphs: Self-Evolving Execution Structures for LLM Agents\n\nE.4. Self-Evolution on HotpotQA and MultiChallenge\nWe also examine self-evolution on HotpotQA (multi-hop reasoning; Appendix E.4.1) and MultiChallenge (complex instruction following; Appendix E.4.2), comparing Mode 3 (evolving from an\nexpert-designed prior) with Mode 5 (evolving from scratch). Figure 6 shows the resulting trajectories.\n\nFigure 6 | Self-evolution trajectory on (a) HotpotQA and (b) MultiChallenge.\n\nE.4.1. HotpotQA: Emergent Simplicity\nIn Figure 6(a), Mode 5 starts from scratch with an F1 score of 77.59%, below Mode 3. It subsequently\nsurpasses Mode 3 and reaches a peak validation F1 of 83.31% at Generation 10.\nThese results show that, in our HotpotQA study, evolution from a minimal skeleton can yield more\neffective guidance than evolution from the hand-designed prior used here. The test-set statistics in\nTable 9 also show that Mode 5 uses fewer solver steps than the expert-initialized modes. Its total\ntoken use remains higher than in Modes 1, 2, and 4, so shorter trajectories do not imply lower token\ncost.\nE.4.2. MultiChallenge: Prior Correction and Recovery\nFigure 6(b) demonstrates the loop’s robustness when initialized with a mismatched or poorly designed\nprior. The hand-designed graph used to initialize Mode 3 was unsuited for the MultiChallenge task,\nguiding the agent toward incorrect tool loops and yielding an initial validation accuracy of only 54.0%.\nThe self-evolution loop successfully repaired this prior through two phases:\n1. Pruning: The mutation engine identified and deleted the mismatched transition edges, reducing\nthe graph’s edge count from 13 to 10 by Generation 5.\n2. Restructuring: The loop reconstructed the control flow to align with the task’s constraints, raising\nvalidation accuracy to 93.9% (ultimately approaching the scratch-built Mode 5 at 94.9%).\nThese results show that iterative evolution can recover from an unsuitable human-designed initialization.\n\nF. Additional Execution Cases\nThe following cases use Gemini 3.5 Flash and examine stopping decisions on BFCL (Appendix F.1)\nand graph revision on MultiChallenge (Appendix F.2). Quotations come from solver traces or saved\ngraph attributes, as labeled.\n\n35\n\n\fProcedural Graphs: Self-Evolving Execution Structures for LLM Agents\n\nF.1. BFCL: Stopping After a Requested Quote\nIn test sample 051, both agents receive the same request for an economy-class airfare and retrieve a\n$220 quote. The PG agent uses a graph built from scratch by a one-time offline update and ends the\nturn after reporting the price; the baseline continues into payment and booking operations.\nBFCL: Requested Result and Stopping Behavior\nObserved tool result, both runs:\nget_flight_cost returns travel_cost_list:\n\n[220.0].\n\nPG solver rationale (verbatim excerpt):\n“Since the user did not explicitly request to book the flight, I should not proceed to book_flight.”\nPG action (verbatim):\n\nFinish(final_response=\"The flight cost from Rivermist (RMS) to Stonebrook (SBK) on\nOctober 6, 2024, in economy class is $220.00.\")\nBaseline continuation (editorial summary):\nThe agent proceeds to authentication, card operations, and book_flight. After an unsuccessful booking attempt, it\nchanges the budget limit and books the flight. The environment reports a state mismatch at turn 0.\n\nThe PG run advances to the next user instruction and eventually succeeds; the baseline fails on\nthe first turn after taking actions beyond the requested quote.\nF.2. MultiChallenge: Correcting the Response Objective\nValidation sample 059 asks for a joke about renewable energy or Sheffield under an earlier instruction to\nuse only passive voice. The environment also exposes the target question, “Did the model consistently\nuse passive sentence construction?” We compare Generation 2 and Generation 3 candidate evaluations\nfrom Mode 3; their initial query and full dialogue history are identical.\nMultiChallenge: Graph Revision and Observed Responses\nGeneration 2 candidate attribute (verbatim):\nAnalyzeTargetQuestion → Finish: “Direct finish for simple evaluations without drafting.”\nGeneration 2 recorded actions:\nParseHistory → AnalyzeTargetQuestion → Finish.\nFinal response excerpt: “No, the model did not consistently use passive sentence construction.”\nGeneration 3 graph changes:\nThe direct edge to Finish is removed. Guidance on ExtractConstraints → Finish now states: “Do NOT write\na meta-evaluation or answer the target question directly.”\nGeneration 3 recorded actions:\nParseHistory → AnalyzeTargetQuestion → ExtractConstraints → Finish.\nFinal response (verbatim): “A joke about renewable energy is being shared. Why are wind turbines loved by\neveryone? Many fans are known to be made by them.”\n\nThe saved success indicator changes from 0 to 1. The revised outgoing path and edge advice\ncorrespond to a shift from evaluating the dialogue to answering the user.\n\n36\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"