Write the acceptance condition before choosing a label. Is the requirement identical text, the same calculated amount, the same approval decision or the same confirmed action? Each needs its own comparison.

Does a human correction still count as the same input?

A changed accepted value or evidence version creates a new input for the execution rule. Preserve the old input and result, then test the corrected input as a separate case. A deterministic rule can respond differently to different inputs without violating its stated boundary. The workflow guide distinguishes predetermined paths from dynamic agent behavior; it does not establish that every model result inside a workflow will repeat.

Consider a fictional invoice whose amount is unreadable. The workflow holds it for review. A reviewer supplies an amount and applicable policy, then the approved rule evaluates those accepted values. Compare fresh runs with that same reviewed input to assess rule repeatability. Keep the initial extraction, the human contribution and the later decision as separate evidence. PyTorch’s reproducibility guidance also makes clear why model or environment changes need their own comparison group.

StageEvidence to retainQuestion it answers
Initial attemptOriginal document, accepted inputs, missing fields and holdWhat could the automated system establish?
Human resolutionReviewer identity, changed values, evidence version and permission scopeWhat changed, and who was allowed to change it?
Resumed executionNew input manifest, all attempts and rule versionWhat actually reran under the corrected state?
Destination checkAuthoritative before/after state and operation receiptDid the permitted action occur, and how many times?

Can resuming after review repeat earlier work?

Yes, depending on the runtime. LangGraph’s interrupt documentation states that resumption restarts the node containing the interrupt. Code before the interrupt runs again. Its guidance therefore recommends idempotent operations, placing side effects after the interrupt, or separating them into their own nodes. It also warns that an effect committed after approval can repeat if the node then fails and retries. Moving a write after approval alone does not demonstrate that it happens only once.

For a proposed sandbox test, pause before an authorized fictional change, provide reviewed input, and observe every execution attempt and destination change after resumption. Include rejection, changed input and retry cases. Check that the approval matches the exact pending action. These are test instructions; we have not executed a LangGraph workflow or an external write for this guide.

The six-case human-resolution worksheet preserves automated and reviewed answer outcomes. Its calculator reports two initial answers and four later completed cases without rewriting the baseline. All cases are fictional, and action controls remain untested. Pair that worksheet with the action and retry procedures when the workflow changes an external system.

What do deterministic and probabilistic mean here?

This reference uses deterministic for repeatable results within a declared execution boundary and fixed relevant conditions. Probabilistic describes representing possible outcomes with probabilities or selecting outcomes using those probabilities. The terms can describe different aspects of one system.

Thinking Machines Lab separates sampling randomness from the numerical behavior of inference. Its explanation shows why a model’s use of probabilities and a serving system’s repeatability need separate examination. Read the technical account.

Illustrative example: suppose a fixed computation always returns probabilities of 0.8 for category A and 0.2 for category B. That vector represents uncertainty and is repeatable. Always selecting the larger value returns A; sampling from the vector permits either category. This is an invented mathematical example, not a measured model result or a confidence threshold recommendation.

Which layer should you compare?

The following is our engineering review framework. It builds on the inference distinctions above and LangChain’s distinction between predetermined workflows and dynamically directed agents. LangChain documentation.

LayerQuestionEvidence to request
PredictionWhat probabilities or candidate values does the model produce?Output values, input record and model version.
SelectionHow is an outcome chosen?Sampling or selection rule and configuration.
Numerical executionDo identical requests compute identical results under the declared conditions?Fresh-run comparisons and environment records.
Business executionWhich approved rule maps accepted inputs to a decision?Input acceptance record, rule version and decision.
External actionWhat did the destination system actually do?Request, response and resulting state.

Predetermined control flow does not by itself establish repeated model output. LangChain’s workflow examples include successive LLM calls; our recommendation is to test those calls separately from the graph’s permitted paths. Workflows and prompt chaining.

Why is temperature zero insufficient evidence?

Thinking Machines Lab explains that removing sampling randomness still leaves numerical execution to consider, including changes associated with batching. Its analysis distinguishes repeatability for a fixed batch from results that remain unchanged across batch sizes. This is a documented mechanism, not proof that every serving system behaves identically. Thinking Machines Lab.

PyTorch states that reproducibility is not guaranteed across releases, commits or platforms, and may differ between CPU and GPU even with identical seeds. It also warns that deterministic operations are often slower. Measure the relevant performance tradeoff on the intended workload instead of assuming a universal cost. PyTorch reproducibility guidance.

The LLM determinism guide covers the inference boundary in more detail.

Does a determinism warning mean enforcement is active?

No. PyTorch’s current reproducibility documentation distinguishes deterministic enforcement from warn_only=True. For its documented fused attention backends, warning-only mode can emit a warning while retaining nondeterministic paths. Record the flag, selected backend, device, dtype and library version; a warning log alone does not establish that the requirement was enforced. PyTorch documentation, checked October 28.

Our proposed review has two separate outcomes: configuration enforcement asks whether the system rejects or replaces a prohibited operation; observed repeatability asks whether fresh runs match the declared equality rule. A few matching outputs cannot establish the first property. An enforced configuration also cannot establish cross-platform equality: PyTorch explicitly limits reproducibility across releases and platforms.

Keep an approved failing control in the test plan, record the expected error or deterministic fallback, and retain the actual result. Then run the permitted workload repeatedly under the declared conditions. These are proposed checks, not experiments executed for this guide. Use Checklist criteria 3–6 to keep environment, fresh executions, equality and correctness separate.

How can probabilistic interpretation feed deterministic execution?

Proposed invoice design, not a tested implementation: use a model to propose fields from an invoice, validate those fields against the source and approved business records, then execute a versioned rule on the accepted values.

For an invented routing rule, amounts above 1,000 units require review and amounts at or below 1,000 take the standard route. The rule should act on a checked amount and currency. If a fresh extraction proposes a different amount, the execution layer has received a different input; identical routing is no longer the same-input test.

Make the handoff explicit:

  1. Retain the candidate fields and supporting record.
  2. Establish which values the workflow accepts and why.
  3. Apply the approved rule version to those values.
  4. Pause unresolved cases for authorized human review.
  5. Retain the decision and confirmation of any downstream action.

This design places a testable contract around the accepted inputs. Whether the whole workflow satisfies a broader determinism claim still requires evidence about extraction, validation, external state and exception handling. The companion RAG versus deterministic execution guide explains the evidence side of that handoff.

Can a repeatable rule still fail the policy?

Yes. Our executed six-case teaching example makes both rules repeat, then exposes a wrong decision at the policy boundary. This is synthetic Python routing, with no model calls or payment integration. The fixed policy says checked USD amounts strictly above 100,000 minor units require review. Exactly 100,000 takes the standard route.

Download cases and expected routes, runnable code, observed results, validation and instructions.

Synthetic caseExpected and correctDefective rule
99,999 USD minor unitsStandardStandard
Exactly 100,000StandardReview — fails
100,001ReviewReview
Missing amountHoldHold
EUR instead of USDHoldHold
Source not checkedHoldHold

The defective rule uses “at or above” instead of “above.” Both variants return the same route on repeated calls for every case. Only comparison with separately listed policy expectations reveals the defect: six of six reference matches for the correct rule, five of six for the defective rule. Those fractions describe this fixture, not a production accuracy rate.

Which boundary did the test cover?

The input is an accepted amount, currency and supplied source-check flag. The output is a route. We used integer minor units to avoid floating-point currency rounding in this example. A Boolean, negative, fractional or string amount is held.

The source-check flag is a teaching assumption. It does not prove that an invoice was read correctly or that a person approved a payment. If a fresh model extraction changes 100,000 to 100,001, the rule receives a different input and correctly changes its route. That would not establish or refute same-input determinism of the rule; the extraction boundary needs its own test.

What evidence should the reviewer keep?

Inspect the files, then run:

python3 run.py cases.json > reproduced.json

Two fresh local processes produced identical result files. Within each execution, both rule variants ran twice on each case. The validation record also confirms rejection of duplicate case IDs and unknown expected routes, plus holds for invalid amounts. This provides bounded execution evidence; it does not prove universal behavior.

Use the matching blank CSV / JSON and filled CSV / JSON to keep the failed correctness check visible beside the passing repeatability check. Input verification, external approvals, payment completion, replay and protection of evaluation files remain untested.

The Checklist supplies the review context. The companion hallucination measurement example keeps factual claims and abstentions separate.

How to cite: Deterministic AI. Boundary example, version 1, October 24, 2026. Link this guide and include your access date. Original text, code and fixtures are CC BY 4.0; identify adaptations.

What tests should settle the comparison?

Use three separate tests in the review. These are our recommended acceptance checks, not a certification standard.

  • Repeatability: hold the declared inputs, state and versions fixed; run fresh executions and compare the specified result. Report saved-result reuse separately.
  • Correctness: compare decisions against approved reference cases, including rule boundaries and missing inputs. A repeatable application of the wrong rule remains wrong.
  • Auditability: ask a reviewer to reconstruct one decision from its source records, accepted inputs, rule version, exception resolution and action outcome.

Then change one declared condition deliberately—such as a policy version—and test the expected new behavior. Keep this change test separate from fixed-condition repetition.

Start with the deterministic AI definition, run the testing protocol, and collect the records in the Deterministic AI Checklist. A useful comparison ends with a result someone can inspect and a clear account of what remains untested.

Source review, October 28, 2026: reread PyTorch reproducibility guidance, LangGraph workflow/agent definitions and Thinking Machines’ numerical-inference explanation through recovered page bodies. The synthetic example tests neither those frameworks nor an LLM.

Which evidence can you carry from one layer to another?

Carry the original observation with its boundary. A repeated probability vector can support a claim about that fixed computation. A repeated approval decision can support a claim about that rule and its accepted inputs. Neither result alone establishes that a fresh interpretation will produce the same inputs or that a remote action occurred once.

For a proposed review, retain three separate comparisons: generated or extracted values against their source, rule outputs against an independent expected decision, and action attempts against the destination state. Mark a comparison untested if that layer was not exercised. This is a review recommendation, not a new empirical result.

Use the worksheet chooser to match the unresolved layer to a test. The existing wrong-rule example supplies a local correctness counterexample; the RAG expense example proposes a source-to-action record. Neither substitutes for evidence from your deployed system.

Frequently asked questions

Does probabilistic mean the output changes on every run?

No. A repeatable computation can produce a probability distribution. Sampling from it and choosing its highest-probability outcome are different operations; actual reproducibility also depends on numerical execution and the environment.

Can a workflow be deterministic if it includes an LLM?

State which boundary is deterministic. Approved rules can govern execution using fixed accepted inputs, while a fresh model call may change those inputs. Test the model handoff and execution layer separately before making a whole-workflow claim.

Does temperature zero prove determinism?

No. Thinking Machines Lab explains why numerical execution and batch conditions matter even when token selection removes sampling randomness. PyTorch also documents reproducibility limits across environments.

Does repeatability prove a decision is correct?

No. Compare repeated results for determinism, and separately compare the decision against authoritative inputs and approved requirements for correctness.

Can a rule repeat perfectly and still fail the policy?

Yes. In our six-case synthetic example, both rule variants repeat, but an intentionally wrong boundary comparator fails one expected decision. No AI model or production payment was tested.

Does a human correction invalidate a deterministic rule?

A correction changes the input. Preserve both versions and compare fresh executions of the same corrected input separately; verify permission and destination effects as additional checks.

The source record

Read the original evidence and the scope of our review.

  1. Defeating Nondeterminism in LLM InferenceThinking Machines Lab · 2025-09-10 · Accessed 2026-11-06Primary technical article or documentation reread with fetch_page. No inference, workflow or hardware experiment reproduced.
  2. ReproducibilityPyTorch · 2026-05-14 · Accessed 2026-11-06Primary technical article or documentation reread with fetch_page. No inference, workflow or hardware experiment reproduced.
  3. Workflows and agentsLangChain · Not stated · Accessed 2026-11-06Primary technical article or documentation reread with fetch_page. No inference, workflow or hardware experiment reproduced.
  4. InterruptsLangChain · Not stated · Accessed 2026-11-06Full primary documentation read: resume restarts the node, and side effects require idempotency. No LangGraph execution performed.
← Latest storiesFollow the briefing ↗