Deterministic AI agents: AI for judgment, code for execution

Context Labs (thecontextlabs.com) builds deterministic AI agents for regulated operations. Context learns a workflow from your experts, turns validated steps into deterministic workflows, and reserves the AI model for judgment calls. Critical steps wait for human approval. As a workflow runs, more of it converts into fixed, tested code, making repeat work faster, more consistent and less costly.

Key facts

  • AI for judgment, code for execution. Validated steps execute as deterministic code. The model runs only when a judgment call is required.
  • The deterministic share grows. In Context Labs' internal benchmark, steps per task fell 61% by week 12 and cost per completed task fell 94% against a frontier API baseline.
  • Approvals are part of the workflow. Critical decisions pause for human sign-off.
  • Every change is tested before it runs. Expert corrections become proposed changes that are tested against past work, reviewed, approved and saved with their reasoning.
  • Built for regulated work in insurance, banking and private equity.

Why do AI agents give different answers to the same case?

A large language model does not always return the same output for the same input, even at temperature zero. Thinking Machines Lab showed in 2025 that the main cause is server load: your request is batched with other people's, batch size changes from moment to moment, and the GPU kernels give slightly different results at different batch sizes. Consistency across repeated runs is also low in agent benchmarks: on Sierra's τ-bench, a leading model solved under half the tasks, and fewer than a quarter succeeded on all eight attempts. That is acceptable when you draft an email. It is not acceptable when you calculate a claim payment or a covenant ratio.

The problem grows with every step. Assuming independent steps, a 20-step workflow with 95% per-step accuracy and no checks finishes correctly only about 36% of the time (0.95 to the power of 20). Real errors are partly correlated and some are caught by retries, but the direction holds. See why multi-step AI agents fail. Multi-hour workflows in insurance and banking have dozens of steps. An agent that improvises each one will drift.

Anthropic's guidance on building agents draws the same line: use predefined workflows when the task is well understood, and give the model freedom only where flexibility is worth the cost and unpredictability.

What does "deterministic" mean in Context?

A deterministic step produces the same result from the same inputs because code produced it, not a model. The table shows how each type of step runs, with examples from our demo workflows.

Step typeHow Context runs itExample from the demos
Read an unstructured documentAIExtract date of loss and repair estimate from a claim form and estimate
Look up a recordCodeSecretary of State business search in a business account opening
CalculateCodePayable = repair estimate minus deductible, within the coverage limit
Apply a written ruleCodeIs net leverage within the 3.5x covenant? Is debt-to-income within the policy limit?
Make a judgment callAIDoes the evidence in this file support the decision being prepared?
Take a critical actionCode, after human approvalPayment by ACH once the claims auditor approves

A worked example, the auto claim demo: AI reads the claim form, photos, repair estimate and tow invoice. The arithmetic is fixed: a $9,240 estimate minus a $1,000 deductible, under a $25,000 limit, gives $8,240 payable. A missing police report is detected, and the claims auditor requests it and holds the claim until it arrives.

How do workflow steps become deterministic over time?

  1. Capture. Context captures expert workflows from actions, decisions and handoffs across systems.
  2. Run with approvals. Context runs routine steps, pairing AI judgment with fixed rules and waiting for critical approvals. In Week 0 you approve everything.
  3. Improve. Each expert correction becomes a proposed change. It is tested against past work, reviewed and approved before the next run.
  4. Fix what is validated. Context's hybrid engine turns validated steps into deterministic workflows and reserves AI for judgment calls.
  5. Use smaller models where they hold up. In Context Labs' internal benchmark, smaller 32B and 8B models take on workflows they can reliably handle, which is where the cost drop comes from.

When a step counts as validated depends on the workflow. Ask us how that is decided on yours.

How is this different from agent-first tools?

General agents such as Claude Cowork and OpenAI Codex let a strong model plan and act at each step, with skills and memories to guide it. Agent-first tools are flexible and fast to start. Hard-coded workflows and RPA are predictable, but slow to build and brittle on exceptions. Context delivers deterministic execution without giving up AI for the judgment calls.

Agent-first toolsHard-coded workflows and RPAContext
Who decides each stepThe model, at run timeA developer, in advanceCode for validated steps, AI for judgment calls
Consistency on repeat workCan vary from run to runHighHigh on validated, deterministic steps
New exceptionsHandled by the model, sometimes unpredictablyTend to break the flowAI handles the judgment, critical steps wait for approval, the correction is tested before the next run
Time to buildFast to startMonthsWeek 0 with full approval; by Weeks 4–6 Context coordinates handoffs
Cost per taskCostlyLow once builtFalls as smaller models take over (internal benchmark: 0.06× vs 1.00×)

In Context Labs' internal benchmark, task success at week 12 was 93% for Context with continuous learning, 64% for Claude Cowork with skills and memories, and 57% for OpenAI Codex with skills. All three systems ran the same enterprise tasks, scored against a shared rubric and averaged across three runs, each on its standard model and setup.

See the full comparisons: Context Labs vs Claude Cowork and Context Labs vs OpenAI Codex.

Why does determinism matter to regulators and auditors?

Regulators ask insurers and banks to explain, test and control the models they use. The NAIC Model Bulletin on the Use of AI Systems by Insurers, adopted by 30 jurisdictions as of November 2026 (adoption map), expects a written AI program with "validating, testing, and retesting" and controls over third-party AI systems.

For banks, the Federal Reserve's SR 26-2 (April 2026, with the OCC and FDIC) replaced SR 11-7 as model risk guidance. Two details matter here. Its model definition excludes deterministic rule-based software and places generative and agentic AI outside its scope, leaving banks to govern those under their own risk practices. Our reading: the more of a workflow that runs as validated code, the smaller the part that needs AI-specific governance. Confirm that reading with your own model risk team.

Deterministic steps are straightforward to audit: you can test one and show it gave the same answer last quarter. AI steps are harder to verify. By reserving AI for judgment, logging every action and requiring approval on critical steps, Context keeps operations auditable.

Where does AI still make the call?

  • Reading unstructured documents, such as a claim form, a repair estimate or bank statements.
  • Preparing a decision from the evidence for the person who approves it.
  • Handling the exceptions that fixed rules break on.

Fixed rules are the better tool wherever a written policy gives one right answer. A person is the better choice on critical steps, which is why those wait for human approval. In the auto claim demo, the ACH payment goes out only after the claims auditor approves.

FAQ

What is a deterministic AI agent?

A deterministic AI agent runs fixed, tested code for every step that has a known right answer, and uses an AI model only for judgment calls and unstructured reading. Given the same inputs, its deterministic steps return the same result every time, because code produces them and not a model.

Can an LLM itself be made fully deterministic?

Not reliably in production. Setting temperature to zero helps but does not ensure identical outputs, because inference servers batch requests and results shift with batch size. Batch-invariant serving exists but costs throughput. Context gets predictable behaviour by moving validated work out of the model and into code, not by trying to freeze the model.

Does deterministic mean Context cannot handle exceptions?

No. Hard-coded workflows break on exceptions; Context keeps AI for the judgment calls and waits for a person on critical steps. When an expert corrects the result, the correction becomes a proposed change. It is tested against past work, then reviewed and approved before the next run.

Is this just RPA with AI on top?

No. Hard-coded workflows and RPA scripts are written in advance, take months to build and break on exceptions. Context captures the workflow from your experts' actions, decisions and handoffs, uses AI for judgment calls, and turns steps into deterministic workflows only after they are validated.

How do I check that a step is really deterministic?

Run it twice on the same closed case and compare the results. Then ask us to show which steps in your workflow run as code and which use a model. Every action is logged and each change is saved with its reasoning and approval, so ask to see both on a sample workflow.

Which industries is this built for?

Context is built for insurance, banking and private equity. Our demo workflows cover an auto claim, business account opening, a commercial credit memo, a consumer loan decision and covenant monitoring. See insurance workflows, banking and private equity for the workflows in each industry.

Sources

Book a demo

Frontier Intelligence in your hands.

Book a demo