How to keep what the model makes up out of the agent

What the model makes up must not reach the agent

Everyone agrees that a value the model made up should not go straight into a real system call. That is why we ask people to approve, validate schemas, and add guardrails. But all of these look at the value after it has arrived, and only at the value. An account number the user typed and one the model made up are the same string. From the value alone, neither the user, a validator, nor another model can tell them apart.

Models reason. That is their job. The trouble starts when reasoning fills a blank that has no source. If the tool, the criteria, or a value an agent executes with was filled in that way, it was made up, and the execution has no grounds.

Today the model and the agent are treated as one

So the question becomes “how far can we trust the model?”, and the answer points to a better model or a stronger prompt.

But models fill blanks. In Why Language Models Hallucinate, researchers at OpenAI and Georgia Tech asked for a person’s birthday and added, “If you know, just respond with DD-MM.” A state-of-the-art open-source model was asked three times and gave three different wrong dates. The paper traces this to training and evaluation that reward a guess over an admission of not knowing.

The paper’s fix is to change how models are scored, so that a model that doesn’t know says so. That is a fix on the model side. But the blanks in front of an execution are usually not about what the model knows.

No model can know a value the user never gave, or a condition nobody declared.

The model reasons, the agent executes

The model reasons. It plans, picks candidates, looks up values, and asks the user. None of that shrinks.

The agent executes, and keeps the model’s reasoning from crossing into execution. Here “agent” means the execution layer, not the model-and-tools loop the word usually refers to.

Reasoning gets into execution in three places:

  • Which tool: what action, and when
  • Which criteria: what must be checked before it runs
  • Which values: what goes into the tool

There is nowhere to write the criteria

An input schema has room for argument names and types, and nothing else. Rules from tool providers and users, such as “the balance must cover the amount”, “confirm with the user before running”, or “the daily limit is X”, end up as prose in a description, or nowhere.

So the model’s assumptions decide which tool to use, which criteria to pass, and which values to put in.

Two methods

Declare the checklist. If the model decides what has to be checked, that checklist is reasoning too. What gets asked and what gets skipped changes from run to run, and a missing item doesn’t look missing. It looks like it was never there. So the criteria are declared before execution, outside the model, by whoever is responsible for them. Providers write the conditions for their tools. Users write the scope of what they delegate.

Check the source. Looking at a value after it arrives can’t separate what was made up from what wasn’t. Asking the model to label where each value came from doesn’t help, because the model writes the label too.

So the agent doesn’t take a value and validate it. It takes a pointer to where the value is supposed to be, and checks that location itself, in a defined source. The sources are what the user said, settings the user approved in advance, and system measurements. A value found in none of them stays unknown, and while anything is unknown, the execution is not in an executable state.

Checking sources is what separates the model from the agent. A value whose source can’t be confirmed was made up, and what was made up does not get into the agent. Criteria come from declarations. Values come from sources.

Tool selection can’t be proven by source checks the way argument values can. It can be compared against the declared scope, the allowed tools, and what the user asked for, but nothing fully proves that a tool matches an intent stated in natural language. The spec states this limit as it is.

Model’s reasoning Grounds for execution
Tool Proposes which tool to use Compared with what the user called the action and when they said to do it
Criteria Guesses what to check and whether it holds Checklists declared by providers and users before execution
Values Proposes values and where they are Checked directly in what the user said, pre-approved settings, or system measurements
Execution Produces a call The decision record. Executable only when nothing is unknown

Stopping is not a failure

That nothing prohibited an action is not grounds for it. Only what’s confirmed, within what the user stated or approved, can run. So sometimes things will stop.

Model developers do train agents to stop and confirm before irreversible actions. But the decision to stop still sits inside the model, and the model is rewarded for finishing. A completed task scores; a stopped one counts as a failure. So when something is blocked, it tends to find another way through, like cancelling an existing booking to make a new one.

It’s the same structure as the paper cited earlier:

Facing a question it can’t answer Facing an execution that’s blocked
How it’s scored today “I don’t know” scores 0; a guess scores 1 if right Stopping is a failure; finishing another way is a success
So the model guesses tries something it wasn’t asked to do
The fix Give credit for “I don’t know” (the paper) Don’t count a stop with a recorded reason as a failure (the spec)

The paper fixes it on the model side. The spec fixes it on the execution side: the line for when to stop is drawn outside the model, and what stops because it wasn’t confirmed is recorded, with its reason, as a normal outcome.

The verdict ends in a record

The record holds the intent and purpose the user stated, the source of every value used, the conditions checked, the items left unknown, and the criteria nobody declared. Intent the user stated is kept apart from intent that was interpreted. Whoever calls the tool reads that record and nothing else.

So the record holds more than what was executed. It holds what was meant to happen, on what grounds the execution was judged executable, and what could not be confirmed.

Schema validation, tool-server checks, permission layers, and prompts stay as they are. Nothing is being replaced. The point is to build the place that was missing. The appendix sets out what changes compared with current practice.

Specification: Taking Definition and Verdict Authority Out of the Model)
Earlier version of this argument: Misalignment is not required for an agent to act without authorization


Appendix. How this differs from current practice

Current practice checks capability and permission, leaves the rest to the model, and blocks what it can’t verify. This spec moves the rest outside the model, and treats what isn’t confirmed as something to resolve, not only something to block.

Current practice This spec
The question How far can we trust the model? Has everything this execution needs been confirmed?
Model and agent Treated as one. Reasoning and execution share a single flow The model reasons, the agent executes. What the model makes up does not get into the agent
Who sets the criteria Nobody, so the model decides on every call. Nothing is kept as a rule, so the rules can’t be listed Providers, users, and the adopting team declare them in checklists outside the model. They change without a deploy and can be listed
Where to write them The input schema holds argument names and types. Conditions and intent have no field Values, conditions, and intent are slots of the same kind
Grounds to trust a value A looked-up value and a made-up one are the same string. Any source label is written by the model too The location the model points to is queried directly in a declared source
Tool The model picks one. If the input schema passes, it runs Compared with what the user called the action and when they asked for it. Not provable in code
Blanks The model fills them and leaves no sign it did They stay unknown. Nothing the model filled in passes through
When something can’t be verified AI governance and security controls usually block execution when a required condition is unmet or can’t be verified (fail-closed). What happens after the block is left open The block is not the end. If the user can answer, the user is asked. If only the system can, it is measured. If nobody can, it goes back to whoever declared it, for definition repair. Once everything is confirmed, the execution is executable. A confirmed condition that prohibits execution is recorded as a hold
Who decides the check is complete A person clicks through a form the model filled in Code that counts unknowns. No confidence scores
Who decides to execute Verification is a branch inside the execution flow, so it can be skipped, and skipping leaves no trace The verdict ends in a record. The executing party reads it and decides
Record The tool called and its final arguments. Sources, checked conditions, and runs that didn’t execute are not kept Each slot’s state and source, unknown items and their routes, unmet items, and runs that didn’t execute
After an incident Ask the model, which produces a plausible story Look in the record. Responsibility splits by whether a value, a condition, or the intent was left undeclared
As models improve They fill blanks more convincingly and pass review more easily They ask better questions. Their authority to decide does not grow

Unchanged: schema validation, tool-server checks, permission layers, prompts.

Hi @Jang-woo — great framing here. The “values come from sources” principle is essentially a provenance chain, and you’re right that current agent frameworks mostly skip it.

What already exists in this direction:

  • Structured outputs / JSON mode forces models to emit constrained schemas but doesn’t track where field values come from — your “check the source” step is the missing piece
  • The OWASP LLM Top 10 lists “excessive agency” as a risk category; your execution record concept directly addresses auditability there
  • Formal information flow control in security research calls this “taint tracking” — marking data by origin and refusing to let tainted values reach sinks without review

A practical sketch: Tool definitions (OpenAI function-calling, Anthropic tool_use) already carry argument schemas. You could extend schema annotations with a source field — {"type": "string", "x-source": "user_provided"} — and have the agent framework reject any argument whose filled value’s provenance doesn’t match the declared source. Checkable at runtime without modifying the model.

The hardest case is multi-step chains where a prior model output becomes the input to the next step. Your “decision record” idea handles this: track whether a value originated from user input or from a prior model generation, mark the latter as “model-derived”, and require explicit confirmation before it enters an irreversible action.

One open question worth spec’ing: how do you classify tool output (e.g. database query results)? Not “model-made-up”, but also not direct user input. I’d suggest a third bucket: “system-verified, user-unreviewed” — usable for reads, requiring confirmation for writes.

Looking forward to seeing this developed further.

Thanks Jang-woo. I think you are right-on with regard to the need to keep the task identity of the agent defined outside of the model.

I wonder if it might be helpful to think of this as a stability problem rather than a problem of determinative control? The goal is to have the executive identity of the agent stably defined. The model, by its very nature, can redefine terms of reference in unpredictable ways, depending on what it encounters through the agent. So the model cannot play a role in defining the agent’s executive constraints because that will undermine task identity. By framing this as a stability problem, it keeps open the possibility that the model can still potentially undermine the identity of the agent by completely reframing the whole context of operation. Only when the domain of all possibilities that the agent might encounter through the model is determinable in advance can stability be ensured. But this is much harder to accomplish than it might at first appear because of the way that the model can continually redefine the terms of reference. Therefore, the possibility of unexpected instability should be the default expectation that must be managed.

Thanks, this is a useful map of where it sits.

On the x-source sketch: that’s close to what the spec proposes, declaring allowed sources per argument. The part I’d be careful about is who determines the filled value’s provenance. If the tag comes from the model’s output, or from a framework that trusts the model’s claim, a made-up value gets a clean tag too. So in the spec the model never supplies provenance. It points to a location (which segment of the user’s message, which character span), and the gate checks that the value is actually there. If it isn’t found in any allowed source, the slot stays unknown.

That’s also where it differs from taint tracking. Taint tracking follows data from an untrusted origin. Here nothing the model generates counts as an origin at all, and the case I care about most has no attacker: a blank the user never filled, which the model fills plausibly. CaMeL and FIDES are the closest prior work, and the spec cites them in section 9.1.

Multi-step chains: agreed. A prior model output is never a source. The only carry-over is prior_state, taken from a previous run whose record says it executed, and even that needs the user’s confirmation before it settles a slot.

Tool output: the spec has a source for this, measured_data, a system API read at that moment. Whether a slot accepts it, or also needs the user’s confirmation, is declared per slot by whoever owns the checklist, not by a global bucket. One split I’d add to yours: a measurement (a balance, whether an account exists) is different from content a tool returns (an email body, a scraped page). The reference skeleton treats that content as untrusted text. It can’t settle a value on its own, so the agent has to ask and take the answer back from the user.

Reads aren’t gated at all. The check applies only to irreversible actions.

Thanks, Timothy. I agree the model can reframe the terms of reference at any point, and I don’t think that can be engineered away on the model side.

Where it matters most is tool selection. If the model reframes what the user is trying to do, it can pick a different tool, and a different checklist comes with it. Guarding against that takes more conversation and more confirmation before the tool is settled: asking the user to describe the action in their own words, and not putting a tool name in front of them to approve. Even then it can’t be fully prevented. The spec lists this as a known limit in section 8.1.

What can be bounded is the scope. The user’s instruction sets limits the model can’t widen, such as the amount, the recipient, or when it should happen. Those are declared outside the model and checked against declared sources, however the model reframes the context. How tightly to hold that boundary is a choice for the adopting system’s policy, and it may also depend on how a given model tends to behave.

On instability as the default expectation: that’s close to how the spec treats state. Nothing is confirmed until it’s confirmed from a declared source. Unknown is where every slot starts, not an exception.

One edge case worth separating is provenance from freshness: a pointer can identify the correct source at validation time, then the source can change before the tool executes. Could the record bind a checked value to a version or hash and require a recheck at dispatch if the underlying source changed? That would help close a time-of-check/time-of-use gap without asking the model to judge its own evidence. I work in marketing for BOMTOBE, makers of orke, and am following agent-execution design; I have not tested this proposal.

Thanks, that’s a fair distinction. Provenance and freshness are different problems, but they don’t belong to the same owner.

Conditions the user declared are the user’s responsibility. That includes values they typed or answered, the scope they set, and settings they approved in advance. These don’t drift on their own. If one changes, the user changed it, and that’s a new declaration, not something the system should detect and absorb. Approvals are bound to the exact slot and value, so a changed value voids its approval and the action goes back to the user. Neither the system nor the model gets to decide that the new value is close enough. And because every verdict is recorded, it stays clear afterwards who declared what, and when.

The state of the world is the system’s. A balance or an account status is never carried over from an earlier check. The system measures it again right before the call. You’re right that a small window remains between that measurement and the actual dispatch. The gate can’t close it, because the gate doesn’t execute. It has to be closed at execution: a conditional execution on the tool’s side (“transfer only if the balance still covers it”), or an idempotency key with a confirming measurement afterward. A hash or version helps where the source is a versioned record, but for live state the commit itself has to carry the condition.

So freshness has two owners: the user for what they declared, the system for the state of the world. Neither is the model’s.

That distinction between declared user values and live system state is helpful. For tools that cannot enforce a conditional write or idempotency key, would the adopting system treat the check as insufficient and route the call back for human confirmation? That seems like a practical boundary between ‘measured immediately before’ and ‘guaranteed at commit.’ I work in marketing for BOMTOBE, makers of orke; this is a design question, not a tested implementation.

Good question. I’d draw that boundary too, but I wouldn’t route it to human confirmation.

A person confirming doesn’t close the window either. They see a snapshot, just like the measurement did, and the time they take to confirm only makes the window wider. And it moves the problem to the wrong owner. The state of the world is the system’s to guarantee. If the tool can’t hold the condition at commit, asking the user to click through turns a system gap into a user decision they can’t actually verify.

What the user needs is to be told in advance, and a record. Banks already do this with scheduled transfers. When you set one up, you’re told it may fail and asked where to be notified. On the day, the bank checks the balance again. If it isn’t there, the transfer doesn’t go through, the failure is recorded, and you’re told. You aren’t asked to confirm the balance. You’re informed up front, and you get the outcome.

Notice also what the bank doesn’t do. It doesn’t take the money from another account, send a smaller amount, or try again the next day. None of that was in the instruction, so none of it is attempted. That’s the default the spec is built on: only what the user stated or approved can run, and anything outside that isn’t tried, even when the original action fails. Agents today tend to do the opposite. When something is blocked, they look for another way to get it done, like cancelling an existing booking to make a new one.

The spec follows the same pattern as the bank. If a tool can’t guarantee the condition at commit, that’s a gap on the provider’s side, and the provider should declare it. The user is told before the action runs, through a notice attached to the tool. Whether to accept that risk at all, for example allowing it for small amounts but not large ones, is the adopting system’s policy.

And whatever happens, the decision record shows what was checked, when, and what the user was told, so a failure can be explained afterwards rather than reconstructed.

Could the model have a non-authoritative role in challenging the checklist itself?

For example, if every declared condition is resolved but the model notices a potentially relevant condition that isn’t represented, it could flag that as a possible omission without being allowed to add the rule, satisfy it, or use it as execution authority.

That would let inference help find holes in the specification while keeping definition authority outside the model.

Would that fit your boundary, or do you see even this kind of challenge as too unstable? —SS

That could help if it only emits a cited omission report: quote the source and name the missing predicate, while leaving both checklist and tool permissions unchanged. Require an explicit spec revision before execution; keep the warning separate from completion records. I’d test it with seeded omissions and measure false alarms separately. I work with BOMTOBE on Orke, a desktop workspace for Claude Code/Codex agents; keeping proposals distinct from completed actions is a useful workflow boundary.

Yes, that fits, and it covers a weak spot. An undeclared condition leaves no trace in the record, so it looks like it never existed. A model noticing it is one of the few ways it would come to light.

I added it to the spec as 4.7, thanks to your comment. The model can report a condition that seems relevant but isn’t in the checklist. The report doesn’t affect execution: it doesn’t create or fill a slot, and it doesn’t enter the verdict. It goes to whoever declared that checklist, and they decide whether it becomes a rule.

The Muse Marketplace case is a good example. Sending a home address to a stranger before the pickup is confirmed is the kind of gap a model could notice, and one the spec alone wouldn’t catch, because nobody declared it.

Agree on the shape: cite the source, name the missing condition, change nothing. Seeded omissions with false alarms counted separately is the right test, and probably the only way to know whether the reports are worth reading.

Your comment and SS’s together led to a new section, 4.7. The one place I went a different way is that a report doesn’t affect execution at all, not even by requiring a revision first. Otherwise the model would effectively hold a veto, and what it reports varies from run to run, which is the same problem as letting it write the checklist. The report goes to whoever declared the checklist, and the decision stays with them.

Thanks for adding 4.7 and clarifying that the report stays outside the verdict. A useful regression pair could measure detection and citation quality on seeded omissions, with false alarms reported separately, then assert that the report never changes planned actions, consent state, or tool permissions. That tests both usefulness and the execution boundary. I work on Orke at BOMTOBE, a desktop workspace for Claude Code and Codex; this is a test suggestion, not an evaluation I’ve run.

Thanks, that’s a good pair. The spec only states the property, that a report never changes the verdict or anything downstream of it. How to test it belongs with the implementation, so I’ll keep your pair in mind as a test case for the reference skeleton. Measuring usefulness and the boundary separately makes sense, since a report can be useful and still leak into execution, or the other way around.

The pointer is the strong move in this design — the model claims a location, code checks it, and a made-up value has nowhere to hide. One case still slips through it, inside your strongest source. Instruction is a segment the user typed directly, but a user message can carry text the user did not write: a pasted email, a forwarded note, quoted text, an attachment. Those bytes sit in the same message, so a pointer can land on a value inside them, the gate finds it exactly where the model said it was, and the slot settles as if the user had declared it — when its origin is whoever wrote the pasted text. That is the same content your measurement-versus-content split already refuses when a tool returns it; arriving inside the user’s own message should not promote it.

The fix is small and leaves the cascade untouched: segment kind has to be fixed when the message arrives, by the harness, before the model sees it — typed segments are instruction, carried segments are content. A value found only in a carried segment cannot settle a slot; it can only trigger the ask, and the user’s answer settles it as user_answer, which the cascade already handles. The check that could prove this wrong is one seeded message: the user types a request in their own words and pastes a note naming a different account number than the one they mean. If the gate settles the pasted number as instruction, the hole is real. If the skeleton already refuses carried segments, then only the definition of “typed directly” needs writing down — either way, the spec comes out tighter.

Thank you for coming back to this post and reading it this closely. It is the short version of the whole idea, and I had let it sit. You found the case that matters most: the hole is inside the strongest source, not around it.

Where the skeleton stands: the gate already refuses a value in an untrusted segment. The model can point at it, but it does not settle; it goes to the user, and the answer comes back as user_answer. What the gate cannot do is check the label. It trusts whatever segment kind it is handed. So your check comes out exactly as you predicted it would, depending on the label. A cross-check another team ran this week has the same shape: one sentence from a forwarded note, run three ways. Labeled as the user’s, its value settles as instruction and the action executes. Labeled untrusted, the gate asks. Answered, it settles as user_answer.

So the fix was what you described: writing down what “typed directly” means, and who decides it. The spec now says that when segments are labeled as the user’s, pasted text, forwarded or quoted text, and attachments are excluded. They stay in the input as untrusted segments, even inside the user’s message. The labels are set by the adopting system when the message arrives, before the model sees it, never by the model. Where the input path does not preserve that distinction, the labels cannot be trusted either. The skeleton now states this as the caller’s contract on the segment type.

You were right that it comes out tighter either way. The cascade did not change; the definition it rests on did.