Abstract art, not data.
Release and operations · Practitioner
Stop assigning. Start solving.
A model name and a k in your code are a frozen guess. Declare tuned variables, search the program space, and let a release gate decide what ships.
Disclosure. I wrote the paper this article explains, and I founded Traigent, which publishes Tune AI. I quote the paper where the exact words matter. Read the ownership disclosure.
The problem
A team ships a support assistant. In the first week someone tries a few settings, picks the best-looking ones, and writes them into the code:
model = "gpt-5.4"
retrieval_depth = 8
prompt_template = "guided"
history = True
k = 4
It works. Months later three things happen, one after the other. The provider retires the model. Finance lowers the cost cap. The test tickets turn out to be stale. Each time, an engineer opens the file, changes a line, and hopes. Nobody can say whether the old k = 4 was ever the right answer, or only the right answer for that week.
Those five lines look like programming. They are a measurement result that someone pasted into a source file and forgot to date.
Why this is hard for agents
In ordinary code you can read a line and know what it does. For an agent, you cannot read k = 4 and know whether it is good. You learn that by running the system on an evaluation set and measuring quality, cost and latency. The value is not something you derive. It is something you search for.
The settings also interact. In the paper’s running example, if history is off, then k must be zero. Some combinations cannot exist. Others exist on paper but not in your environment, because a model is unavailable or a cost cap is violated.
And the answer expires. The paper puts it directly: “a chosen assignment is valid only relative to an environment, evaluation set, and policy state.” It lists what moves: provider models and APIs change, input distributions drift, evaluation sets age, and objectives such as quality, cost, latency and safety get renegotiated.
So an assignment is the wrong kind of thing to keep as the source of truth. Keep the space, and keep the rule for choosing from it.
I call that the program space: every version of your agent that your settings allow, plus the rules for which versions may run and which one may ship. You do not write one program and then adjust it. You maintain a space of programs and solve for the one to release. Program synthesis research already uses the phrase for the set of programs a search can reach. Here it means something more specific: a space you version, govern and release from.
The practice: declare the variable, solve for the value
The paper calls this Statistical Software Engineering (SSE). The paper credits a 1996 National Research Council report with stating statistical software engineering for classical software. Here “statistical” has a specific meaning in the paper: promotion relies on “sampled evaluation sets, estimated evidence, effect-size margins, and confidence/risk thresholds.”
The vocabulary is short:
- Tuned variable. A program variable whose value changes externally evaluated behaviour, whose admissible domain may change with the environment, and whose changes need statistical re-validation, not code review alone.
- Program space. What SSE maintains instead of code plus settings. The paper’s words: “a versioned governed program space: domains, structural constraints, eligibility, evaluation assets, and a statistical release gate.”
- Assignment. One choice of value for every tuned variable.
- Variant. The paper writes: “Each c ∈ Θ denotes a program variant.” An assignment is a candidate program, not a line in a settings file.
- Feasible set. The variants that pass the structural constraints and are eligible in the current environment.
- Gate. The rule that maps evidence about an incumbent and a candidate, under a policy, to pass, defer or fail.
Here is the contrast. The first block is an assignment. The second is a declaration, shortened from the paper’s Section 2. The paper writes it in a notation called TVL, and says TVL is used only as a compact way to declare the space.
# Assignment: one answer, no context
model: gpt-5.4
k: 4
# Declaration: the space, the rules, the objective, the gate
environment: { models: [gpt-5.4-mini, gpt-5.4, claude-opus-4-7], budget_usd: 0.02 }
evaluation_set: { dataset: support_tickets_v3, seed: 13 }
tvars:
- { name: model, type: enum[str], domain: environment.models }
- { name: retrieval_depth, type: int, domain: [4, 8, 12] }
- { name: prompt_template, type: enum[str], domain: [brief, guided] }
- { name: history, type: bool, domain: [true, false] }
- { name: k, type: int, domain: [0, 2, 4, 6, 8] }
constraints: { structural: [{ when: history = false, then: k = 0 }] }
objectives:
- { name: quality, measure: answer_accuracy, direction: maximize }
- { name: cost, direction: minimize }
- { name: latency, direction: minimize }
promotion_policy:
{ dominance: epsilon_pareto, alpha: 0.05, min_effect: { quality: 0.01 },
tie_breakers: [cost, latency],
chance_constraints: [{ name: bias_rate, test: fairness_test, threshold: 0.05, confidence: 0.95 },
{ name: hallucination_rate, test: hallucination_check, threshold: 0.03, confidence: 0.95 }] }
With a declaration, the value of model or k is no longer something you write. It is the output of two steps. A search proposes variants inside the feasible set and measures them. A release gate decides whether a candidate may replace the incumbent.
Two cautions from the paper keep “solve” honest.
First, the search is not exact. The paper says: “Governed program spaces are large, conditional, and noisy; practical search is budgeted and approximate.” You measure a sample of the space with finite uncertainty.
Second, the best score does not win. The paper says that Pareto analysis “identifies admissible trade-offs, not the release rule itself.” The gate, not the optimum, decides.
Walk through the program space
Each dot below is one variant of the support assistant. Use the buttons to follow the argument: all combinations, then the ones the structure forbids, then the ones the environment forbids, then a budgeted search, then the gate. Then press “Model changes” to see why yesterday’s assignment cannot be trusted.
The domains and the constraint come from the paper’s example. The paper gives no scores for the other variants, so those are invented to make the space readable. Only c0 to c3 carry the paper’s numbers, and even their settings, cost and latency are invented, because the paper does not list them.
The program space of the support assistant
Quality for c0 to c3 comes from the paper's example. All settings, costs, latencies and other scores are illustrative.
Drag to rotate. Click a dot to see its assignment.
Selected variant
Select a dot to see its assignment as code and its scores.
Showing the static view after the gate.
Text version. The cube has three axes: Quality, Cost and Latency. Each dot is one variant of the support assistant, which means one assignment of model, retrieval_depth, prompt_template, history and k. The structural constraint history=false ⇒ k=0 removes some combinations. The environment removes more: an unavailable model or a cost over budget_usd 0.02. The search measures a budgeted sample of what is left. The gate then decides about the candidates, as the table shows.
| c | Quality evidence | Safety and cost evidence | Gate |
|---|---|---|---|
| c0 | 0.840 on 500 locked promotion tickets | The incumbent. | incumbent |
| c1 | Δ = .020, CI [.012, .028] | bias CI [.038, .062] > .05 | fail |
| c2 | Δ = .005, CI [−.003, .013] | CI crosses 0; below δ | defer |
| c3 | Δ = .018, CI [.011, .025] | safety bounds hold; cost/latency ok | pass |
The counts are plain arithmetic on the paper’s domains. Three models, three retrieval depths, two templates, two history settings and five values of k give 180 combinations. When history is false, k must be zero, which removes 72 of them and leaves 108. The environment then removes more. What is left is the feasible set. Only the feasible set is worth searching.
When the environment changes, the feasible set changes with it. The paper spells out what follows. If the domain expands, the incumbent stays valid in the old subspace while candidates may use the new options. If eligibility narrows or a constraint invalidates the incumbent, “a compliant fallback is required.” If the evaluation set changes, the incumbent is re-evaluated before any candidate comparison. If the gate policy changes, existing evidence is judged again under the new policy. An assignment carries none of that logic. A declared space does.
One more property follows. Tightening the structural constraints or the eligibility, while holding the evaluation set and gate fixed, “cannot expand the promotable set” (the paper’s observation). Stricter rules can only shrink what is promotable.
A worked example: the gate on three candidates
The paper’s example supposes the incumbent scores 0.840 on 500 locked promotion tickets, with a minimum effect of δ = 0.010 on quality. Three candidates come out of the search:
| Candidate | Quality evidence | Safety and cost evidence | Gate |
|---|---|---|---|
| c1 | Δ = .020, CI [.012, .028] | bias CI [.038, .062]; upper bound .062 > .05 | fail |
| c2 | Δ = .005, CI [−.003, .013] | CI crosses 0; below δ | defer |
| c3 | Δ = .018, CI [.011, .025] | safety bounds hold; cost/latency ok | pass |
Read it row by row.
c1 has the biggest quality gain. Its interval sits above the .010 margin. Yet its bias-rate interval, [.038, .062], reaches above the .05 safety threshold: its upper bound, .062, is greater than .05. That is fail, not defer, because a safety chance constraint must be certified below its threshold (here, at 95% confidence). An interval that is not entirely below .05 means the constraint is not certified, and failing to certify it blocks promotion.
c2 is safe, but its quality interval does not clear δ at the chosen confidence. The paper’s verdict is defer, “rather than a noisy promotion.” The incumbent stays and you collect more evidence.
c3 clears the quality margin, keeps the safety bounds within policy, and stays acceptable on cost and latency. The gate returns pass.
If you had sorted by accuracy, you would have shipped c1. The paper’s summary: “promotion is not ‘pick the highest accuracy’.” It is “a governed transition over evidence, not a scalar optimization result.”
What this does not solve
- It is a position paper. The paper says: “Making G concrete under noisy AI evaluation is beyond this position paper.” It names three open research problems: gate semantics for pass, fail and defer; estimating the feasible set without exhaustive evaluation; and governing evaluation assets as they refresh, drift and become contaminated.
- The gate has requirements, not a finished recipe. The paper lists paired uncertainty over objective deltas, bounded evidence for low-rate safety measures, multiplicity and selection effects across candidates, and re-evaluating the incumbent when governance state changes.
- The example numbers are an illustration. The paper says “Suppose the incumbent scores 0.840.” They are not a benchmark result.
- The visual is a teaching picture. Apart from c0 to c3, the dots are invented, and the search budget in the picture is an arbitrary number.
- You still need a good evaluation set. A gate is only as honest as the tickets behind it. Two papers listed below report that automatic harness search can overfit to the tasks it searches on. The paper’s example gates on “locked” promotion tickets for the same kind of reason.
Related work
Each quote below comes from the linked source, checked on October 31, 2026. The links are for orientation, not endorsement.
- DSPy and TextGrad optimize LLM pipelines against a metric. The paper’s framing: they “focus on optimizing assignments; SSE treats the governed space over which such optimization is admissible.”
- Meta-Harness is “an outer-loop system that searches over harness code for LLM applications.”
- AutoHarness, from Google DeepMind authors, has a model synthesize a code harness through “iterative code refinement given feedback from the (game) environment.”
- HarnessCompass says that existing automatic harness evolution methods “often overfit to the evolution tasks.” RRSI describes the same risk: “evolve-set performance may improve without corresponding gains on unseen tasks.”
- Automated Discovery Has No Universally Superior Harness finds that “No fixed harness is reliably superior across the evaluated model-problem pairs.”
- doubleAI writes about search for hard reasoning tasks. In one research post it says such tasks “require the model to actively search the space of ideas.” That is a different object from a governed space of program settings. The phrase “program space” did not appear in the doubleAI research posts checked for this article.
See it in practice
The example above is written in TVL, the notation the paper uses and documents here: “a typed specification language for AI agent requirements, agent design spaces, evaluation evidence, verification, and a foundation for scoped certification.” Traigent, which publishes Tune AI, builds tools for evaluating, experimenting with and optimizing agents, as the About page says. You do not need either. Any notation or tool that keeps the same five parts works: domains, constraints, eligibility, an evaluation set, and a gate.
Source: Nimrod Busany, “Statistical Software Engineering with Tuned Variables,” arXiv:2604.19822, April 2026.
Tune AI is published by Traigent. Read the ownership disclosure.