Skip to content
AI-generated research idea🔴Hard🔬Significant ResearchRelated work found

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

a couple of months

Compute level

Large cluster

Resources

LLM API access and a multi-node CPU container cluster for running Terminal-Bench v2.1 and SpreadsheetBench sandboxes

What the paper used

Over 10M LLM calls and 400K CPU core hours across 1,030 independent evolution runs and over 2.1M test trajectories.

Prerequisites

program synthesis, software testing/verification, and agentic scaffolding (Mini-SWE-agent)

Scope

build from scratch

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.”
From the paper, Limitations, page 10. Matched against the PDF text.

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.

  1. 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.
  2. Extend the Mini-SWE-agent 2.4.6 workspace to allow evolved artifacts to bundle executable Python verification scripts alongside SKILL.md instructions.
  3. Build a replayable unit-test harness over frozen intermediate repository states from training rollouts to score candidate verification scripts deterministically.
  4. 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?

Related work found

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.

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 Improvements

Yuanhao 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

Is this a good idea?

Share onXLinkedIn