Context Assembly as the Controlled Variable: A Control-Theoretic View of Harness Policies for Frozen LLM Agents
This paper proposes a control-theoretic framework for frozen LLM agents that treats context assembly as the controlled variable, utilizing an online outer policy to dynamically optimize prompt components while providing formal stability guarantees and uncertainty calibration.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
The Art of the Perfect Prompt: A Control Theory Story
Imagine you are trying to teach a brilliant, but incredibly stubborn, robot how to solve a mystery. This robot is an AI, and it's "frozen," meaning its brain is set in stone; you can't rewire its neurons or teach it new facts. It knows a lot, but it doesn't know how to use that knowledge for your specific puzzle unless you give it the right instructions. In the world of Artificial Intelligence, this setup is called an "agent." For a long time, researchers have been trying to figure out how to make these agents reliable, treating them like machines that need to be steered. They use ideas from "control theory," which is basically the science of keeping things stable and on track—like how a cruise control system in a car constantly adjusts the gas pedal to keep the speed steady, or how a thermostat tweaks the heat to keep a room comfortable.
The big question this paper tackles is: What exactly should we be steering? Most people have been trying to control what the robot does next (like which tool to pick up) or who it talks to. But this paper suggests that the real magic happens before the robot even starts moving. It's about controlling the "context"—the specific instructions, the examples you show it, and the amount of background information you feed it. Think of it like a chef who can't change the recipe book (the frozen AI), but can change the ingredients, the lighting in the kitchen, and the notes on the counter to get the perfect dish. The authors want to know if we can build a smart system that automatically figures out the best way to set up these instructions on the fly, and if that system is stable enough to trust.
The Paper's Big Idea: Steering the Setup, Not the Robot
This paper, written by Debjyoti Paul in July 2026, proposes a fresh way to look at AI agents. Instead of trying to control the robot's actions directly, the authors suggest controlling the context assembly. In plain English, this means controlling the "setup" of the prompt: which template to use, which few examples to show the AI, how much information to retrieve from a database, and how many times the AI should check its own work.
The authors imagine a two-part system. The first part is the "frozen" AI agent—the robot that actually does the work. The second part is a "harness" or a controller sitting outside the robot. This controller is a smart learner (using methods like a "contextual bandit" or a "REINFORCE" policy) that constantly experiments with different setups to see which one gets the best results. It's like a stage manager who can't change the actor's lines (because the actor is frozen), but can change the lighting, the props, and the script notes to help the actor perform better.
What They Found: A Reality Check
The authors didn't just dream up this idea; they tested it to see if it actually works and if it's stable. They ran experiments with a specific setup where the controller had to choose from 729 different possible configurations (a combination of different prompt styles, tools, memory policies, and verification steps). They ran these tests for 60 episodes (trials) per run, totaling 240 episodes across different seeds.
Here is the honest truth about what they found:
1. The Stability Test (Is it getting better?)
The authors wanted to see if the controller was learning to get better over time, a concept they call "stability." In a perfect world, the controller's performance should go up or stay the same as it learns. However, their data showed something different. Over the 60 episodes they tested, the performance actually trended slightly downward or stayed flat for most runs. Three out of four test runs showed a tiny negative slope.
The authors explain that this isn't necessarily a failure of their idea, but a limitation of the test size. They argue that with 729 possible options to choose from, 60 episodes is simply not enough time for the controller to learn the ropes. It's like trying to learn a massive library of 729 different languages in just a few days; you haven't had enough time to practice enough to get good. They note that even with 300 episodes (five times more than their stability test), their companion paper found the system still couldn't beat a static, pre-set baseline. The conclusion is that the system is currently in an "under-sampled" regime—it's too small a sample size to prove the long-term theory, even though the theory itself makes sense.
2. The Confidence Test (Does it know when it's guessing?)
The second thing they checked was "uncertainty calibration." This asks: Does the controller know when it is confident and when it is unsure? In a real-world scenario, if the AI is unsure, it should tell a human to step in.
The results here were quite surprising and a bit messy. The controller's "confidence" score (based on how likely it thought its choice was) was extremely low—around 0.0014—while the actual success rate of the tasks was much higher, around 0.64 (64%) and 0.58 (58%). This is a huge gap, roughly two orders of magnitude.
The authors explain this isn't a bug in the learning; it's a math problem. Because there are 729 options, the probability of picking any single one is naturally tiny (about 1/729, or 0.0014). So, the controller looks "unconfident" all the time, even when it picks the right answer. This means that if you tried to use this raw confidence number to decide when to call a human for help, it wouldn't work—you'd call a human for every single task, even the easy ones. The paper suggests that to fix this, you would need to recalibrate the confidence signal (perhaps by looking at the gap between the top two choices rather than the raw probability), but they admit they haven't tested that fix yet.
The Bottom Line
This paper doesn't claim to have solved the problem of AI control. Instead, it offers a very specific, honest look at a new way of thinking: controlling the context rather than the action. It argues that while this is a promising and distinct idea, the current experiments show that we are hitting a wall because the space of possibilities (729 configurations) is too big for the amount of data we can realistically collect in a day.
The authors are careful not to call this a breakthrough. They explicitly state that their stability results are "noise-dominated" and that their confidence signals are currently "uninformative" without extra fixes. They are essentially saying, "Here is a new lever to pull, but right now, we don't have enough practice swings to know if it works perfectly, and our current way of measuring confidence is broken." It is a call for more data and better calibration methods, rather than a declaration of victory.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.