Orchestration Across Deterministic and Probabilistic Steps

Preserve one accountable business state while rules, software, models, people and external systems obey different kinds of logic.

Research Essays

Orchestration Across Deterministic and Probabilistic Steps

Preserve one accountable business state while rules, software, models, people and external systems obey different kinds of logic.

Rajesh Ranjan Mahapatra

A Mixed-Logic Orchestration Plane for keeping authoritative state, evidence, authority, retries and recovery explicit across deterministic software, probabilistic AI and human decisions.

© 2026 Rajesh Ranjan Mahapatra. 24 min read

Orchestration Across Deterministic and Probabilistic StepsAll Research Essays

TLDR

  1. Design evidence-bearing state transitions, not prompt chains: every step consumes a typed state, performs a bounded operation and emits a durable result.
  2. Keep the workflow’s state machine, branch authority, budgets and failure rules outside the model, even when a model proposes the next move.
  3. Place probabilistic work inside a sandwich of deterministic admission, evidence assembly, semantic checks, authority gates and outcome reconciliation.
  4. Classify failures before retrying. An unknown write, stale state, rejected claim and transient network fault demand different recovery paths.
  5. Use the smallest control plane that preserves transaction integrity; bypass the model when ordinary code is the clearer and safer answer.

The JSON was valid and the payment was wrong

A model reads a supplier invoice and returns the exact object its schema demands: supplier identifier, currency, amount, tax and purchase-order reference. Every field has the correct type. The workflow accepts the object, calculates a due date with ordinary code and sends a payment request. Only later does an analyst discover that the model combined the subtotal from page one with the tax total from a superseded page.

The failure is easy to misname. The model did not break JSON. The workflow engine did not miss a state transition. The payment interface accepted a valid request. Each component performed its local contract, yet the business outcome was wrong because no component owned the assertion that the extracted values belonged to the same invoice version. A structural guarantee was allowed to impersonate an evidentiary guarantee.

Structured output is valuable precisely because it narrows one class of failure. OpenAI’s own technical account distinguishes conformance to a JSON Schema from mistakes inside otherwise valid values.[14] That distinction should alter architecture. Syntax lets software parse a result. It does not establish provenance, freshness, policy compliance, semantic consistency or authority to commit.

The unit of reliable mixed-logic orchestration is an evidence-bearing state transition. The orchestrator must preserve authoritative state, type every step, test admissibility, assign branch and commitment rights, and leave receipts for effects and recovery. A model may interpret or propose. It must not silently convert uncertainty into durable business truth.

One state carried across four kinds of logic A central authoritative state connects blue deterministic rails, amber probabilistic cells, violet human decisions and a red commitment surface, with receipts returning to the centre. THE STATE IS SHARED; THE LOGIC IS NOT AUTHORITATIVE BUSINESS STATE DETERMINISTIC RAIL rules · reads · invariants PROBABILISTIC CELL interpret · propose HUMAN GATE decide · resolve COMMITMENT SURFACE write · send · grant effect receipt returns to state
Figure 1. Illustrative mixed-logic circuit. Reliability comes from preserving one versioned state across unlike transition types, not from pretending every component is deterministic.

Thought experiment: the coin that becomes a command

Suppose a classifier is right nine times out of ten for a low-stakes internal label. Its uncertainty is tolerable because a person can notice an odd category and nothing outside the system changes. Now connect the same label directly to an access-revocation API. Model quality has not moved, but the consequence of one bit has. The workflow needs identity binding, a policy rule, an authorised actor and a recoverable write before that bit can become a command. Confidence cannot supply any of them.

The insight is broader than human approval. A person is not automatically the missing control. For repetitive low-consequence cases, deterministic assertions and sampled outcome review may outperform case-by-case sign-off. For discretionary or high-consequence cases, the person must receive evidence, see uncertainty, possess genuine authority and have enough time to decide. The orchestration problem is to put the right form of resolution at the transition where uncertainty meets consequence.

Part I · Control planeThe orchestrator owns durable state, not intelligence

Calling a model from a workflow engine does not make the model deterministic. It makes nondeterministic work visible inside a deterministic control system, provided the boundary is real.

This article’s Mixed-Logic Orchestration Plane has eleven services: case admission, authoritative state, a Step Type Registry, Typed Step Contracts, a deterministic control kernel, probabilistic execution cells, admissibility gates, a commitment gateway, recovery control, an execution ledger and lifecycle assurance. The design is vendor-neutral. A durable engine can implement parts of it, but product features do not decide business truth or authority.

Durable-execution systems illustrate a useful separation. Temporal’s architecture, for example, records an append-only history, requires workflow logic to be deterministic and places side effects in activities that are idempotent or non-retryable.[4] That is vendor engineering evidence, not proof that any particular model workflow is safe. It clarifies why replayable control logic and uncertain external effects need different contracts.

The state store contains current facts, permissions, reservations, unresolved conditions and prior effects. A model receives a bounded snapshot and a run identity, not ownership of that state. Its response becomes a proposed transition. The kernel checks that the starting version is still current, applies explicit routing conditions and records why the case moved. The execution ledger stores observable inputs, outputs, decisions and receipts, not hidden reasoning.

Mixed-Logic Orchestration Plane Eleven cooperating services surround a versioned state spine, with entry at case admission and exit through commitment and recovery. MIXED-LOGIC ORCHESTRATION PLANE VERSIONED STATE case · evidence · effects 1 · Trigger and case admission 2 · Authoritative state store 3 · Step Type Registry 4 · Typed Step Contract 5 · Deterministic control kernel 6 · Probabilistic execution cell 7 · Admissibility gate 8 · Commitment gateway 9 · Recovery controller 10 · Execution ledger 11 · LIFECYCLE, ASSURANCE AND REAUTHORISATION
Figure 2. This article’s orchestration plane. Each service has a narrow duty; the state spine prevents a fluent component from becoming the system of record.

One credit case, eleven services

A commercial-credit case enters with authenticated identity, an eligible product and a starting record version. Code calculates policy ratios. A model extracts covenants from signed documents and cites exact pages. Reconciliation compares names, dates, amounts and facilities across authoritative records. A credit officer resolves material ambiguity and owns the decision. An atomic booking service writes the approved facility using an idempotency key. Every service contributes, but none can claim that another service’s condition has passed.

NIST’s AI RMF 1.0 treats task definition, intended use, human roles, testing, monitoring, safe failure and recovery as continuing system duties; the current AIRC page also states that the voluntary framework is being revised.[1] Its Generative AI Profile adds component interaction, pre-deployment testing and incident management.[2] These sources support lifecycle discipline, while the transition mechanics here are this article’s synthesis.

Part II · Transition grammarType the step before choosing the tool

A workflow is not deterministic or probabilistic as a whole. Each transition has a logic type, authority limit and failure grammar.

The Step Type Registry names pure transforms, authoritative reads, deterministic writes, probabilistic interpretations, probabilistic proposals, human judgements, external effects, waits, compensation and terminal states. The label changes design. A read may be retried under freshness rules. A non-idempotent write may not. An interpretation can cite evidence but cannot commit. A human judgement needs a named role, service time and expiry. Compensation needs its own authority and receipt.

BPMN 2.0.2 formalises events, gateways, messages, errors, termination and compensation, which makes it a useful notation vocabulary.[3] A diagram still cannot prove that an implementation preserves versions, runs the declared checks or reconciles an external effect. The registry joins the visual process to runtime contracts.

Step Type Registry An opaque prompt chain enters a registry and emerges as coloured typed tokens for rules, reads, interpretations, proposals, decisions, writes, waits, repair and terminals. FROM OPAQUE CHAIN TO TYPED TRANSITIONS PROMPT CHAIN state and authority unclear STEP TYPE REGISTRY contract · owner · retry class RULE READ INTERPRET PROPOSE DECIDE WRITE WAIT REPAIR TERMINAL
Figure 3. Registry transformation. Validators and recovery paths receive types too; otherwise the workflow hides uncertainty precisely where failures are handled.
Step type Accepted input Logic Permitted authority Output Retry semantics Owner
Pure transform Versioned typed values Fixed function No external effect Derived value Replayable Software owner
Authoritative read Identity, object, scope Deterministic query Read named source Fresh value plus version Bounded, freshness-aware Data service
Probabilistic interpretation Evidence manifest Model inference Describe, extract, classify Cited structured claim Repair once or change route AI service owner
Probabilistic proposal Declared candidate set Model ranking or planning Recommend only Proposal and alternatives Budgeted; no blind loop Decision-service owner
Human judgement Evidence and unresolved issue Authorised discretion Decide named object Reasoned decision receipt Expiry or alternate route Named role
Deterministic write Approved operation Atomic service call Change named record Transaction receipt Idempotent or prohibited System owner
External effect Authorised command Remote operation Send, pay, grant or command Effect acknowledgement Reconcile before retry Commitment owner
Wait or signal Open condition Timer or event Pause only Signal or expiry Not a duplicate action Case owner
Compensation Original effect receipt Business-specific repair Counteract declared effect Recovery receipt Idempotent where possible Recovery owner
Terminal Reconciled case Closure rule Complete, reject or stop Final state receipt New case to reopen Outcome owner

The Typed Step Contract goes beyond a schema

Every transition receives an identifier, type, version, owner, purpose and permitted population. It binds the input schema to an authoritative state version and evidence manifest; names the authenticated principal, operation, object and environment; defines either a deterministic invariant or bounded probabilistic task; and declares outputs, claims, assertions, budgets, side effects, failure states, retry class, receiver, receipt and reauthorisation trigger. A schema sits inside that contract. It is not the contract.

Contract field Enforcement point Pass evidence Failure state Receiving owner
Purpose and population Case admission Eligible case identity Out of scope Process owner
State and sources Context assembly Versioned source manifest Stale or missing evidence Data owner
Principal and permission Before operation Authorisation decision Policy failure Authority service
Probabilistic task Execution cell Run identity and configuration Abstain or technical failure AI service owner
Assertions Admissibility lattice Independent check receipts Fail or unresolved Domain control owner
Budgets Control kernel Remaining attempt and consequence balance Budget exhausted Operations owner
Side effects Commitment gateway Idempotency and approval Unknown or prohibited write Commitment owner
Recovery and closure Recovery controller Reconciled final state Quarantine Repair or outcome owner

Negative control: the no-model invoice

An invoice arrives through a trusted structured channel. Supplier, order, receipt, tax treatment and tolerance rules are complete. The same inputs and policy version always produce the same posting decision. Inserting a model would add variability, evaluation work and another failure surface without resolving ambiguity. The registry selects deterministic reads, transforms and an idempotent write. This negative control matters because an architecture that always routes through AI is a product preference, not orchestration discipline.

Part III · AdmissibilityPut uncertainty inside a probabilistic sandwich

Deterministic preparation establishes what may be considered. A bounded model step interprets or proposes. Independent gates decide whether the result can influence state.

The Probabilistic Sandwich Pattern begins with authenticated admission, eligibility, consent, duplicate detection and a starting version. Approved sources become an evidence manifest. The model performs one named task under a run identity, fixed tools and budgets. Structural, evidentiary and semantic gates test the result. An authority gate chooses among declared routes. Only then can an authorised action create an effect receipt, followed by reconciliation against business state.

This pattern does not require a person after every model call. A service agent may classify intent and draft a remedy, while a deterministic entitlement service checks account, product, amount ceiling and duplicate status. A small reversible credit can proceed through a narrowly authorised write. The model’s role is still probabilistic, but the consequential claims are independently established.

Probabilistic Sandwich Pattern A case moves from deterministic admission through bounded model interpretation, three independent assertion layers, authority and an action whose receipt is reconciled. UNCERTAINTY CROSSES GATES BEFORE AUTHORITY ADMIT + ASSEMBLE BOUNDED MODEL CELL STRUCTURE EVIDENCE SEMANTICS AUTHORITY GATE AUTHORISED ACTION RECEIPT RECONCILE RECONCILED OUTCOME UPDATES THE NEXT VERSION
Figure 4. The sandwich separates format, evidence, meaning and authority. A hard failure does not disappear inside an average confidence score.

The assertion lattice preserves hard stops

The Admissibility Assertion Lattice returns pass, fail, unresolved or not applicable for syntax, case binding, evidence, freshness, permission, arithmetic, semantic consistency, uncertainty, policy protection, authority, duplicate safety and downstream preconditions. Each answer carries evidence and an owner. The lattice is deliberately not a score. Perfect formatting cannot compensate for a permission failure; strong citations cannot make a stale state current; model agreement cannot grant decision rights.

Consider a procurement proposal that recommends a supplier using a claim for which it provides no source. The evidentiary gate does not ask the model to regenerate until a citation appears. It identifies the missing evidence, requests it from an approved source or routes to a person who can decide without that claim. Repetition may create consistency, but consistency without an external truth signal is not verification.

Admissibility Assertion Lattice Eight independent assertion gates form a lattice. A red failed authority gate blocks the route despite green passes elsewhere. NO STRONG DIMENSION CANCELS A HARD FAILURE SYNTAX IDENTITY EVIDENCE FRESHNESS POLICY SEMANTICS AUTHORITY DUPLICATE NEXT STATE TRANSITION BLOCKED unresolved freshness routes separately; failed authority stops
Figure 5. Illustrative assertion lattice. Unresolved and failed gates remain visible instead of being averaged into a workflow score.
Gate Test Pass evidence Unresolved route Hard failure Reauthorisation trigger
Structure Required fields and identifiers Validator receipt One constrained repair Malformed output Schema change
Case binding Identity and correlation match Case token Re-admit Wrong subject Identity design change
Evidence Claims cite permitted sources Manifest and passages Request named evidence Fabricated source Source or retrieval change
Freshness Versions remain current Version comparison Refresh state Revoked or closed case Freshness policy change
Semantics Values agree with domain constraints Cross-field assertions Human resolution Contradiction Validator change
Policy Rule and affected-party protection Policy-service decision Named exception route Prohibited action Policy or law change
Authority Actor may choose this consequence Signed grant or role Wait for decision No authorised owner Role or delegation change
Replay safety Duplicate cannot repeat an effect Idempotency record Reconcile Unsafe replay Operation change

Thought experiment: three agreeing models and one missing fact

Three independently prompted models recommend the same supplier. Their agreement appears stronger than one answer, but all three used the same incomplete tender pack, which omitted a sanctions update. Add more model votes and consensus rises while truth does not. Now add one authoritative sanctions query and the recommendation changes. Parallel proposals can expose alternatives or reduce latency; they do not become independent verification when their evidence and blind spots are shared.

The Branch Authority Protocol confines models to declared routes. Deterministic conditions select deterministic branches. A model may rank allowed candidates, while no-match, multi-match, ambiguity and stale state remain explicit outcomes. Consequential branches require an independent rule or authorised person. Rejected alternatives and their evidence are retained only to the level needed for audit, privacy and challenge.

Part IV · Failure semanticsRetry the failure class, not the step name

A retry is another state transition with cost and consequence. It is safe only when the failure class, side-effect certainty and remaining budget permit it.

A transient read failure may justify bounded retry with exponential backoff and jitter. Throttling may need delay under a shared budget. Malformed output may permit one constrained repair. Unsupported content should request specific evidence or change route. Policy denial stays terminal until the case or authority changes. Stale state requires re-admission. An unknown write requires reconciliation before any new attempt. Human non-response becomes expiry, not silent consent.

AWS Step Functions documents named errors, retries, catches, timeouts, backoff and jitter as explicit state-machine behaviours.[5] AWS Well-Architected guidance explains request tokens and idempotent responses.[6] Google’s SRE account shows why retries can amplify overload and why backoff, jitter and load shedding matter.[7] These mechanisms become business-safe only when paired with effect certainty and authority.

Retry and Recovery Semantics Matrix Six failure tokens route to bounded retry, reject, re-admit, reconcile, dead letter or human repair, while a shared budget drains. CLASSIFY BEFORE ACTING AGAIN TRANSIENT SEMANTIC REJECT STALE STATE UNKNOWN EFFECT BUDGET EXHAUSTED REPAIR FAILURE RECOVERY CONTROLLER shared retry budget BACKOFF + JITTER REQUEST EVIDENCE / REJECT RE-READ + RE-ADMIT RECONCILE BEFORE RETRY DEAD LETTER + SAFE STOP QUARANTINE + HUMAN REPAIR
Figure 6. Failure semantics control retries. Repeating the same model and prompt is not a universal recovery strategy.
Failure class Effect certainty Retry Reconciliation Compensation Human route Terminal state
Transient read fault No effect Bounded with backoff Confirm fresh read None After budget Partial or failed
Malformed model output No effect One repair Revalidate structure None If task remains needed Abstain
Unsupported claim No effect No blind regeneration Seek named evidence None Resolve evidence need Reject or partial
Stale state Prior effects known Re-admit, not resume Compare versions If policy requires Material conflict Expired branch
Unknown write result Unknown Prohibited until query Read by idempotency key Only after confirmed effect Ambiguous consequence Quarantine
Policy or permission denial No new effect Never under same state Record decision None Declared exception only Rejected
Retry amplification Mixed Open circuit Count all layers As effects require Operations incident Degraded or suspended
Compensation failure Original effect persists Repair-specific Inspect current world state New forward action Named repair owner Reconciled exception

The payment timeout with an unknown world state

A payment service times out after receiving a request. The workflow cannot infer that the payment failed, and it cannot infer that it succeeded. The kernel records an unknown-effect state tied to the original idempotency key. A reconciliation query checks the service or ledger. If a durable receipt exists, the workflow advances without repeating the payment. If confirmed absent, a bounded retry may be safe. If the service cannot answer, the case remains quarantined for repair.

The same discipline prevents nested retry storms. If a model client retries twice, an activity layer retries three times and a workflow retries the activity four times, one outage can create a multiplication of calls. The Probabilistic Execution Budget covers attempts, candidates, tokens, tools, time, spend, evidence requests, downstream calls and cumulative consequence across layers. A single kernel spends the budget and opens the circuit before the system turns one failure into a capacity event.

Part V · Commitment and repairCompensation moves forward; it does not erase history

A consequential workflow needs a map of compensable actions, pivot points, retryable forward work and effects that cannot be undone.

The Commitment and Compensation Map records the object, operation, recipient, environment, actor, preconditions, reversibility, atomicity, idempotency, receipt, reconciliation query, retry prohibition, repair route and point of no return for each effect. Long-lived transactions often cannot use one atomic database commit. The Sagas paper introduced decomposing such work into local transactions with compensating actions after partial execution.[18]

Cloud architecture guidance makes the practical caveat explicit: compensation is application-specific, must account for concurrent work and may require manual intervention.[8] The saga pattern distinguishes compensable, pivot and retryable transactions and exposes the trade-off between orchestration and choreography.[9] A refund does not unsend a disclosure. Revoking access does not erase what was seen. Cancelling a booking may charge a fee and disappoint a traveller. Recovery establishes a valid forward state.

Commitment and Compensation Map A sequence crosses two compensable actions, a pivot, retryable forward actions and an irreversible notice, with receipts linked to reverse-order repair and quarantine. THE PIVOT CHANGES THE RECOVERY GRAMMAR RESERVE C1 HOLD C2 PIVOT P CAPTURE R1 NOTICE IRREV. COMPENSATE WITH LINKED RECEIPTS QUARANTINE + REPAIR communicate current state
Figure 7. Illustrative saga-like map. Compensation is a new authorised transition linked to the original effect, not a claim that the past disappeared.
Action Reversibility Pivot status Idempotency Receipt Recovery Authority
Temporary stock hold Expires or releases Compensable Reservation key Hold identifier Release and verify Inventory service
Credit decision Decision can be superseded Human pivot Decision version Signed decision Reopen under new evidence Credit officer
Payment capture Refund differs from reversal Retryable after pivot Payment key Ledger entry Reconcile, then refund if authorised Payment service and finance
Access grant Revocable, exposure persists Consequential Grant request ID Access event Revoke and investigate Identity owner
External notice Irreversible communication Point of no return Message key avoids duplicates Delivery acknowledgement Corrective notice Communications owner
Failed compensation Original effect remains Recovery blocked Repair case ID Failure and current-state record Quarantine and manual forward repair Incident owner

Applied example: onboarding wakes into a new policy

An onboarding flow pauses while a candidate supplies evidence. During the wait, policy changes. The returning signal carries the old correlation identifier, but the kernel compares the stored policy and case versions with the current ones. The stale branch expires. Admission rebuilds the evidence set and re-evaluates eligibility. The model’s earlier summary remains historical evidence, not a current decision input. The person is told what changed rather than asked to approve an invisible version conflict.

Human decisions are states, not inboxes

A human gate specifies the decision object, evidence pack, unresolved question, permitted options, challenge route, service target, expiry and alternative path. Two parallel model branches that propose incompatible fraud actions do not race to a write. Their evidence packs enter a declared adjudication state. The investigator may choose, seek more evidence or abstain. If time expires, the workflow applies an interim protection or closes safely; non-response never becomes approval.

The EU AI Act creates jurisdiction-specific logging, information, deployer and human-oversight obligations for covered systems on a phased timetable.[11] ISO/IEC 42001:2023 provides an organisational management-system frame for objectives, operation, performance evaluation and improvement.[12] Neither source dictates this orchestration plane globally. They reinforce the need to connect technical events to named organisational responsibilities where they apply.

Proportionality and limitsThe strongest rival is unnecessary machinery

A typed control plane can become an expensive distributed system wrapped around a useful model call.

That objection is serious. Durable engines, validators, human queues, traces and compensation add latency, cost and change burden. In a low-consequence advisory task, a user may inspect the output and try again. Some model work cannot be independently checked without redoing it, and rigid gates can reject novel but valuable answers. Choreography can also avoid a central bottleneck when services are simple, loosely coupled and own their local outcomes.

The answer is proportionality, not universal orchestration. Keep known logic in ordinary code. Use one bounded model call when one interpretation is sufficient. Add durable coordination for long-running, multi-system, failure-prone or consequential work. Prefer sampled or outcome-based review when case-by-case approval adds little. Anthropic’s practitioner guidance similarly recommends beginning with the simplest pattern and distinguishes predefined workflows from model-directed agents.[13] It is vendor guidance, not comparative proof.

OpenTelemetry’s GenAI semantic conventions offer useful vocabulary for model operations, tools and tokens, but the relevant attributes are currently marked Development.[10] A trace should record what happened without dumping protected prompts by default. It is evidence for diagnosis, not an explanation of correctness. ReAct demonstrates interleaved reasoning, action and observation in studied tasks,[15] while AgentBench documents long-horizon, decision and instruction-following failure modes across its benchmark environments.[17] Neither authorises a production side effect.

Explicit failure boundary

Stop unsafe orchestration when no authoritative state can be identified; when evidence cannot be bound to the case; when a semantic claim cannot be checked or assigned to a qualified decision-maker; when branch or commitment authority is absent; when an external effect cannot be distinguished from an unknown timeout; when compensation has no workable owner; or when the ledger cannot reconcile the business state. The correct terminal state may be abstain, reject, partial completion, quarantine or manual service. Completion is not compulsory.

LLMCompiler reports benefits from separating planning, task fetching and parallel execution in its evaluated function-calling tasks.[16] Parallelism can reduce latency, but it also creates branch races, shared-evidence blind spots and cumulative budgets. Parallel proposals should synchronise at a deterministic adjudication point. A majority of models is not a substitute for an external fact, and the first branch to finish does not gain authority by speed.

Twelve worked routesMake ordinary and broken states equally designable

The following compact cases type the decisive transition and show where the workflow must route. They are worked design examples, not client deployments.

1 · Commercial credit

Rules establish eligibility and ratios; a model extracts cited covenants; cross-record assertions reconcile facilities; a credit officer decides; an atomic booking service writes. The human gate owns consequence, while the model owns no branch or booking right.

2 · Straight-through invoice

Trusted structured inputs and stable tolerances require reads, transforms and one idempotent write. No probabilistic task remains. The designer bypasses the model and monitors exceptions rather than adding an extraction cell for appearance.

3 · Parallel fraud evidence

Separate cells examine transaction narrative, device history and account linkage. A deterministic synchroniser binds outputs to the same version and applies identity rules. An investigator adjudicates conflicts before any hold or report.

4 · Reversible service credit

A model classifies intent and drafts a response. Entitlement and amount come from deterministic services. A low ceiling, duplicate check, reversible credit operation and receipt permit bounded execution without ritual approval.

5 · Uncited supplier claim

A proposal claims a supplier meets a resilience standard but cites nothing. The evidence gate requests the precise certificate or routes to procurement. Regeneration is prohibited because another fluent assertion would not repair the missing source.

6 · Schema-valid contradiction

The extracted currency is GBP, the cited page states EUR and the converted total uses neither declared rate. Cross-field and citation assertions fail. The downstream pricing step never receives the object, despite impeccable JSON syntax.

7 · Unknown payment write

A timeout follows dispatch. The case moves to unknown effect, queries by idempotency key and advances only after a ledger receipt or confirmed absence. A blind retry is not one of the available routes.

8 · Parallel branch conflict

One model proposes freezing an account while another proposes monitoring. Both used admissible evidence. The synchroniser marks multi-match, preserves both packs and sends the declared decision object to an investigator instead of allowing a race.

9 · Stale onboarding branch

A policy version changes during a wait. The old branch is invalidated, the case is re-admitted and the evidence manifest is rebuilt. Prior output remains in history but cannot authorise a current decision.

10 · Failed booking compensation

A cancellation request fails after a confirmed booking. The original receipt and compensation attempt enter quarantine. A repair owner checks present inventory, communicates with the affected party and creates a reconciled forward resolution.

11 · Small-company sequence

A small firm uses ordinary application code, one structured document extraction and a proprietor’s commitment gate. It records case version and receipts without buying a heavyweight agent platform. Proportional control beats architectural theatre.

12 · Three-layer retry storm

Client, worker and workflow retries begin during an outage. A shared attempt budget stops multiplication, jitter spreads permitted reads, the circuit opens and unresolved cases enter a visible dead-letter route with an operations owner.

Executable decision instrumentMixed-Logic Orchestration Designer

Load a named scenario or change the control conditions. The instrument returns one of five routes and exposes the state, checks, authority, failure semantics and receipts behind it.

Mixed-Logic Orchestration Designer Typed steps, evidence, budgets and negative-control signals enter a circuit that returns five coloured orchestration routes. A ROUTE, NOT A MATURITY SCORE TYPED STEPS + STATE EVIDENCE + ASSERTIONS BUDGETS + RETRIES AUTHORITY + HUMAN EFFECT + RECOVERY MIXED-LOGIC DESIGNER hard gates remain visible DETERMINISTIC BOUNDED + VERIFY PARALLEL + ADJUDICATE HUMAN COMMITMENT COMPENSATE + REDESIGN
Figure 8. The live Designer combines typed transitions, assertions, budgets and effect certainty. It returns a route rather than concealing hard failures in a score.

Design one mixed-logic route

Scenario buttons exercise positive paths and negative controls for false structured values, stale state, unknown writes, branch conflict and retry amplification.

Pause for human decision at the commitment gate

Typed transition pathAdmit → interpret → assert → human decide → authorised write
Authoritative stateCurrent case version remains in the control kernel.
Evidence and versionManifest, cited passages and version comparison accompany the case.
Probabilistic cellOne bounded interpretation emits a proposal, not a command.
Admissibility assertionsStructure, identity, evidence, freshness, semantics and policy remain separate.
Branch authorityThe named person selects among declared routes.
Execution budgetsAttempts, tools, time, spend and consequence are bounded.
Retry semanticsNo action retry occurs without failure classification.
Commitment and compensationThe gateway requires approval, idempotency and a recovery class.
Retained human decisionA qualified owner resolves material ambiguity.
Expected receiptsDecision, transaction and downstream acknowledgement are linked.
Monitoring ownerProcess and operations owners reconcile route and outcome.
Safe-stop conditionExpiry, authority loss or failed assertion prevents commitment.
Reauthorisation triggersReopen after material model, policy, source, branch or effect change.

How to use the result

The route is an architecture hypothesis, not approval to deploy. Write contracts for every probabilistic, human and consequential node; exercise ordinary, stale, conflicting, timeout and partial-effect states; reconcile receipts to authoritative records; compare the non-AI route; and confirm that operations can staff dead-letter, adjudication and repair queues. The instrument cannot establish local model performance, legal compliance, fairness, human effectiveness or economic value. Those require representative tests and accountable decisions.

ConclusionLet uncertainty participate without inheriting the workflow

A reliable mixed-logic workflow does not demand certainty from a model. It demands honesty from the architecture. Rules remain rules. Interpretations remain claims. Proposals remain proposals. Human discretion is a declared state. Writes expose their atomicity and duplicate behaviour. Timeouts preserve uncertainty. Compensation acknowledges that the world moved. Every transition leaves enough evidence to decide what can happen next.

The Evidence-State Transition Ledger is the practical memory of that honesty: case and correlation identifiers, prior and proposed versions, step type and contract, principal and permission, evidence snapshot, configuration versions, assertions, selected route, attempts, budget balance, effects, idempotency, acknowledgements, recovery and final state. It records externally observable control facts, not private model reasoning. Monitoring should keep those views separate rather than compressing them into a cheerful health score.

The design decision is therefore precise: keep the state machine deterministic, place probabilistic work inside typed cells, make admissibility independent, give commitment its own authority, and engineer failure as carefully as success. When that control plane would cost more than the consequence warrants, simplify it. When no safe state, truth signal, authority or recovery path exists, stop. Mixed logic becomes dependable only when none of its parts is allowed to pretend it is another.

Evidence baseSources and foundations

Links and current status were checked immediately before drafting. Standards, laws and vendor engineering documents are scoped to their stated purpose, version and jurisdiction. The Mixed-Logic Orchestration Plane, Step Type Registry, Typed Step Contract, Probabilistic Sandwich Pattern, Admissibility Assertion Lattice, Evidence-State Transition Ledger, Branch Authority Protocol, Probabilistic Execution Budget and Designer are this article’s synthesis.

  1. NIST AIRC, AI RMF Core, version 1.0, voluntary framework; current page notes revision in progress.
  2. NIST AI 600-1, Generative Artificial Intelligence Profile, July 2024.
  3. Object Management Group, Business Process Model and Notation 2.0.2.
  4. Temporal, architecture documentation, product-specific durable-execution guidance.
  5. AWS Step Functions, Handling errors in workflows, product documentation.
  6. AWS Well-Architected, Make all responses idempotent.
  7. Google, Site Reliability Engineering: Addressing Cascading Failures.
  8. Microsoft Azure Architecture Center, Compensating Transaction pattern.
  9. Microsoft Azure Architecture Center, Saga distributed transactions pattern.
  10. OpenTelemetry, Generative AI semantic conventions, relevant attributes currently marked Development.
  11. European Union, Regulation (EU) 2024/1689, with jurisdiction-specific and phased application.
  12. ISO/IEC 42001:2023, Artificial intelligence management systems.
  13. Anthropic, Building Effective Agents, practitioner guidance published December 2024 and carrying a current-change notice.
  14. OpenAI, Introducing Structured Outputs in the API, provider engineering account and named-model evaluations.
  15. Yao et al., ReAct: Synergizing Reasoning and Acting in Language Models.
  16. Kim et al., An LLM Compiler for Parallel Function Calling.
  17. Liu et al., AgentBench: Evaluating LLMs as Agents.
  18. Garcia-Molina and Salem, Sagas, SIGMOD 1987.