Agentic AI Non-Determinism: Repeat the Boundary, Not the Route

Agentic AI non-determinism newspaper-style header with the thesis "Repeat the boundary, not the route" and three Thinkers360 Certified Expert badges, by Dr. Harish Kotadia, Ph.D.

What is agentic AI non-determinism?

Agentic AI non-determinism is the fact that the same agent, given the same task twice, takes a different route each time. The prompt is the same, and so is the model. But the steps, the tool calls, and sometimes the answer are not. So a test that expects the same route twice will fail, and a test that checks the boundary will not.

New here? I publish one agentic AI governance post every weekday. Subscribe to the blog and it lands in your inbox the moment it goes live.

You cannot repeat the route. You can repeat the boundary.

Why can I not repeat the route?

Because the model does not run the same way twice, even when I ask it to. Even temperature zero does not fix it. In September 2025, Thinking Machines Lab showed why. The math inside the inference server shifts with the size of the batch a request happens to share. So their test sent one prompt a thousand times at temperature zero, and still got dozens of distinct answers back.

Then the agent loop multiplies it, because one step feeds the next. One different token at step three picks a different tool at step four. Anthropic’s guide to agent evals says it plainly: “Agent behavior varies between runs, which makes evaluation results harder to interpret than they first appear.” The same guide notes that “a task that passed on one eval run might fail on the next.”

I read that as a fact of the workload, not a bug to file. For twenty years, IT testing assumed the same input gives the same output. Agentic AI non-determinism breaks that assumption at the root. So the test has to change, not the agent.

What does agentic AI non-determinism break in testing?

It breaks every test that scripts the path. A golden transcript, a recorded sequence of tool calls, an assertion that step five calls the pricing API. All of those pass on Monday, then fail on Tuesday with nothing changed. So the team spends a week chasing a regression that does not exist.

It also breaks single-run confidence. Anthropic’s guide separates two numbers. “pass@k measures the likelihood that an agent gets at least one correct solution in k attempts.” And “pass^k measures the probability that all k trials succeed.” In short, a demo is pass@1 on a good day, while a control needs pass^k across many. I have watched teams ship on the first number, then the second number pages them at two in the morning.

What is the boundary, and why can I repeat it?

The boundary is the set of things the agent may not do, no matter which route it takes. For example, which files it can write, which hosts it can call, and which actions need a human. Also which branch it cannot merge into. None of those depend on the route, so I can test all of them the same way every time.

Anthropic’s guide points the same direction. “It’s often better to grade what the agent produced, not the path it took,” because “agents regularly find valid approaches that eval designers didn’t anticipate.” The end state is stable, but the route is not. So I grade the end state and I assert the boundary.

In Claude Code, for example, the boundary lives in configuration, not in the prompt. Deny rules in managed settings block a tool call before it runs. A PreToolUse hook in the hooks reference can reject any call by exit code. Both fire on every route, because the runtime fires them, not the model.

What I test Repeats across runs? How I test it
The route (tool call order) No I do not. A golden transcript is a flaky test.
The end state (file, record, ticket) Mostly State-based grader, many trials, pass^k
The boundary (deny rules, hooks, egress) Yes Break-in tests: try the forbidden action, expect a block, every run
The evidence (trace, audit trail) Yes Assert every run produced one, whatever route it took

More on the Agentic AI Evidence Layer


What do I test first?

The boundary, with a break-in test. I write a task that tempts the agent to cross each line. Write outside the allowed folder, call a host off the allowlist, or merge into a protected branch. Then I run it fifty times and expect fifty blocks. Even one pass through is a finding, not noise.

Second, the end state. For each task in the eval suite I write a grader that checks the artifact, not the transcript. For example, a record updated, a file in the right shape, or a ticket closed. Then I run each task many times and report pass^k, because that is the number a risk committee should see. Third, the evidence. Every run, whatever the route, must leave a trace, and on failure an incident record as well.

Last, I stop chasing route flakes. If the end state is right and the boundary held, a different route is not a defect. So I log it and move on.

Where does this sit in the six layers?

Agentic AI non-determinism is a property of the runtime layer of my six-layer architecture. But the answer to it lives in two other layers. The enforcement layer holds the boundary, in deny rules and hooks. Then the evidence layer holds the proof, in the eval suite and the traces. So the runtime is where the route varies, while the other two are where I stop caring that it does.

On the Five-Stage Roadmap, this is where Piloted teams get stuck. They test the route, then the route moves, and they lose faith in the agent. Governed teams test the boundary. Assured teams publish pass^k and the break-in results to a committee that never reads a transcript.

What transfers to regulated loan origination?

The idea that the decision must be the same, even when the path is not. In my work in regulated loan origination, two underwriters can reach the same approval by different reasoning. But the regulator does not test the reasoning. The regulator tests that the rule held. Someone verified the income, the ratio stayed under the cap, and the adverse action notice went out.

That is the boundary test, and it is at least thirty years old. Agentic AI non-determinism just makes it the only test that works. I would rather explain to an examiner that the route varied and the rule held than the reverse.

Roadmap diagnostic: pick one agent task and run it twenty times. How many routes did you get, and did the boundary hold on all twenty?

The bottom line

Instructions in, results out was IT. Intent in, outcomes out is agentic AI. But an outcome you cannot reproduce is not one you can certify. So what you reproduce has to be the boundary and the end state, not the route. So test the line the agent may not cross, then grade what it produced. Run it many times. Let the route go.

My books go deeper on both sides of this. Intent In, Outcomes Out covers the architecture. Earned Autonomy covers how the evidence buys the next tier.

Book covers of Intent In, Outcomes Out and Earned Autonomy by Dr. Harish Kotadia, Ph.D., two field guides to agentic AI architecture and governance.

When your agent took a different route last week, did anyone check whether the boundary held, or only whether the route changed?

Go deeper

© Dr. Harish Kotadia, Ph.D., All Rights Reserved, 2026

Dr. Harish Kotadia, Ph.D., is an Enterprise AI Architect with 20+ years of IT consulting experience serving Fortune 100 clients, specializing in agentic AI systems built on Anthropic Claude, AWS Bedrock, and Google Vertex AI.

Disclaimer: This blog post is based on publicly available academic publications, vendor documentation, open standards, and news items from reputed media sources linked above. This post is intended for educational purposes, to help the enterprise agentic AI community build a shared vocabulary from public, authoritative sources.

Views and opinions expressed here are my own and do not represent those of any employer or client, past or present. The analysis presented is my independent interpretation of the published sources linked above and does not constitute legal, financial, or consulting advice of any kind.

 


Discover more from Agentic AI Governance | Dr. Harish Kotadia, Ph.D.

Subscribe to get the latest posts sent to your email.

Leave a Reply