Compiling Stochastic Agent Skills into Deterministic Unit-Tested Sub-Programs
Convert natural-language agent skills into unit-tested, deterministic code modules so candidate improvements can be verified cheaply with lower evaluation variance.
Time
Compute level
Resources
What the paper used
Prerequisites
Scope
The Gap
In the Limitations section (Beyond agent artifacts, page 10), the authors contrast frozen-weight agent evolution with deterministic program evolution (citing GPU kernel optimization, ARC-AGI-2, and Atari policy search), noting that program evolution structurally reduces evaluation noise sigma^2 via cheap parallel re-evaluation and deterministic environment diagnostics. In Appendix I.1, effective Terminal-Bench skills (such as seed-027 and seed-099) largely encode concrete programmatic verification recipes (e.g., verifying public symbol exports, tokenizer boundary checks, and tiny-input assertions).
“Whether resolution similarly constrains program evolution is therefore an open question that our framework can address but our experiments do not.”
Limitation
When candidate fixes are expressed solely as natural-language guidelines in SKILL.md files, validating whether a candidate works requires full end-to-end stochastic LLM rollouts in expensive containers, keeping evaluation noise high and masking small task-specific improvements.
Proposed Solution
Develop a hybrid skill-compilation evolution loop where the proposer emits paired natural-language instructions and executable verification/tool sub-programs (e.g., automated pre-submission contract checkers, tokenizer/API probing scripts, and deterministic parsers). Evaluate candidate sub-programs first on cheap deterministic unit-test suites derived from past failure trajectories before running full end-to-end LLM rollouts.
Why This Matters
Shifting part of the evolved artifact from stochastic natural-language advice to deterministic executable tooling is expected to structurally lower evaluation noise sigma^2 and improve candidate selection reliability.
How to Get Started
How to test it: Measure sigma, tau, and held-out test success rate on Terminal-Bench v2.1 and repaired SpreadsheetBench across 8 independent runs comparing text-only SkillOpt-Lite against compiled skill+tool evolution; stop if executable sub-programs fail to reduce evaluation noise sigma or introduce harness regressions exceeding gains.
- Audit failure trajectories from Terminal-Bench v2.1 training tasks (Table 4) to catalog recurring deterministic failure modes such as mismatched exported symbols or tokenizer mismatches shown in Appendix I.1.
- Extend the Mini-SWE-agent 2.4.6 workspace to allow evolved artifacts to bundle executable Python verification scripts alongside SKILL.md instructions.
- Build a replayable unit-test harness over frozen intermediate repository states from training rollouts to score candidate verification scripts deterministically.
- Run 8 evolution runs with DeepSeek-V4-Flash and GPT-5.6 Luna on Terminal-Bench v2.1 and evaluate resulting artifacts 8 times each on the 53 held-out test tasks.
Suggested by AI. Adapt it to your setup.
Has This Been Done?
SKILL-DISCO and Agent Skill Evaluation and Evolution discuss distilling and evaluating agent skills and traces, but they do not specifically implement a hybrid compilation loop that targets deterministic unit-tested sub-programs derived from past failure trajectories.
- Agent Skill Evaluation and Evolution: Frameworks and Benchmarks · 2026 · 20 citations
- SKILL-DISCO: Distilling and Compiling Agent Traces into Reusable Procedural Skills · 2026 · 9 citations
- Grounded Scaling: Why Agentic AI Needs Deterministic Environments · 2026 · 4 citations
We searched OpenAlex and arXiv for “deterministic program evolution agent skills verification noise reduction” and “Compiling Stochastic Agent Skills into Deterministic Unit-Tested Sub-Programs” and an AI compared the idea with the top 10 results. A small search can miss relevant work.
Source Paper
The Resolution Hypothesis: Agent Evolution's Key Is Identifying ImprovementsYuanhao Zeng, Shaocheng Lan, Ao Lu +8 more · 2026
This paper investigates why agent evolution methods—which iteratively propose and select external artifacts such as prompts, skills, memories, and harnesses for frozen LLMs—frequently stall or trade rankings across benchmarks. By decomposing score variance into evaluation noise and run-to-run artifact variance across seven methods, six models, and over 10 million LLM calls, the authors formulate and validate the Resolution Hypothesis: agent evolution is bottlenecked not by proposing better artifacts, but by noisy evaluations failing to distinguish genuine small improvements from random luck.
Related Ideas
- Cross-Interface Harness Adaptation via Abstract Contract SynthesisSelf-Improvement Memory Enables Continual Recursive Self-Improvement🔴Hard
- Hardware Counter Guided Reinforcement Learning for Assembly and Kernel SuperoptimizationInCoder-32B: Code Foundation Model for Industrial Scenarios🟠Medium
- Adversarial Specification Probing and Multi-Seed Contrast Verification for Verifier-Free Harness EditsHarness^2: Recursive Agent Harnessing for an Open World🟠Medium
- Executable Programmatic Verifiers for Robust Micro-Skill Lifecycle ManagementTokenEconomizer: Experience-Driven Black-Box Cost Control for Coding Agents🟡Fairly easy
- Requirement-Coverage and Execution-Trace-Aware Candidate Deliverable SelectionHarness^2: Recursive Agent Harnessing for an Open World🟢Easy