Book a call

Deterministic rails for probabilistic agents

Why the AI era in capital markets will be built on trusted infrastructure

David White, Chief Commercial Officer, CloudMargin
David White
Chief Commercial Officer
Nico Busch, Chief Product Officer, CloudMargin
Nico Busch
Chief Product Officer

AI agents will create real value in capital markets, and real risk. Firms unlocking AI’s full promise without inheriting its risk will let agents think freely, yet make them act through deterministic, regulated infrastructure.

Collateral and margin operations across capital markets follow regulated and legally binding processes. A variation margin call is either calculated under the terms of the CSA or it’s wrong. An initial margin figure is either agreed under ISDA SIMM or it becomes a dispute. A piece of collateral either meets the eligibility schedule, haircuts and concentration limits or it doesn’t. These are deterministic workflows, where the same inputs must always produce the same, auditable output.

Generative AI is a different kind of technology. Large language models (LLMs) are probabilistic. They’re excellent at reading unstructured documents, spotting patterns and drafting decisions, yet they can give different answers to the same question and, occasionally, a confident wrong one.

The question for banks, buy-side firms and their supervisors isn’t whether to deploy AI in margin and collateral. It’s how to give AI and deterministic processes their proper roles, working out what AI can do in the process and where the process itself can now be redrawn. In this paper we argue the deterministic role is best played by specialist infrastructure. Agents reason, advise and propose. A managed, third-party deterministic platform validates, executes and records. Done well, that division of labour lets firms move faster with AI, not slower.

‍

Key takeaways

  • A $1.6 trillion operational problem AI agents can transform margin and collateral operations, from reading CSAs to forecasting liquidity and triaging exceptions
  • Probabilistic engines need deterministic rails LLMs improvise and fill gaps, while every margin call must be calculated the same way, every time
  • Agents propose, infrastructure disposes Let agents reason freely and route every action moving cash or securities through a deterministic, permissioned workflow orchestration
  • Guardrails accelerate adoption When the worst an agent can do is propose something the platform rejects, risk committees can approve more ambitious use cases sooner
  • Delegate the deterministic layer An independent provider gives AI a boundary it can’t redraw, separating agent reasoning from regulated, audited execution
  • CloudMargin delivers the rails today A fully automated, deterministic collateral workflow, already codifying and enforcing the rules agents must respect.

The prize: AI meets a $1.6 trillion operational problem

The economic case for AI in derivatives operations is large and growing. ISDA’s latest margin survey shows leading firms collected a record $1.6 trillion of margin on non-cleared derivatives at end-2025, equating to $524.7 billion of initial margin (up 21.7%) and $1,038.8 billion of variation margin.

The mix is also getting harder to manage. Cash fell from 80% of variation margin received in 2020 to 67.6% in 2025, with government and other securities taking up the slack. More securities mean more eligibility checks, haircuts, concentration limits, substitutions and settlement breaks. That’s exactly the kind of high-volume, rules-heavy, exception-driven work where a deterministic workflow earns its keep.

$1.6 trillion

Record margin collected on non-cleared derivatives at end-2025

86%

UK financial firms using AI, up from 75% in 2024

2%

Firms giving agents broad autonomy vs 80% using for decision support

Sources: ISDA margin survey, April 2026. Bank of England and FCA, October 2026

The industry already sees the opportunity:

  • Adoption is mainstream, yet AI advises rather than runs The Bank of England and FCA’s 2026 survey, published on 26 October, found 86% of UK financial firms now use AI, up from 75% in 2024, with operations and IT accounting for 31% of reported AI systems, more than any other area. The dominant mode is advisory, with 80% of respondents deploying agents for decision support, where humans decide and execute, against 46% with constrained execution and just 2% with broad autonomy
  • Derivatives-specific use cases are clear ISDA’s Future Leaders in Derivatives whitepaper points to GenAI summarising complex agreements, margin and collateral requirements and helping to “assist in selecting the least costly collateral”
  • The productivity upside is material McKinsey notes operations can account for 50 to 60% of a bank’s workforce, and expects AI could create “north of 40, 60, or 70 percent” of capacity, with one person eventually supervising “roughly 20 to 30 agents in some cases”
  • Regulators expect agents in wholesale markets FCA chief executive Nikhil Rathi said in June 2026 that agentic systems could support “liquidity management, trading workflows, and other market functions”.

In collateral specifically, the near-term value sits in five places:

  • Reading and digitising CSAs and eligibility schedules
  • Forecasting margin and liquidity needs
  • Investigating disputes and drafting counterparty responses
  • Recommending optimal allocations from available inventory, usually through an AI-assisted deterministic algorithm
  • Triaging the long tail of exceptions that consume operations teams every morning.

These are the points where the process itself can be redrawn. Each is a judgement task agents can own, provided the actions that follow run on deterministic rails.

The risk: Probabilistic engines in a deterministic world

The properties which make LLMs useful also make them dangerous inside a margin workflow. They generalise, improvise and fill gaps. A collateral process needs the opposite: no improvisation, no gaps and an answer that’s identical every time it’s run.

Putting a human in the loop doesn’t solve this on its own. Asking people to approve every agent action overwhelms operations teams and approval soon becomes a rubber stamp, an alibi rather than a control.

The right design has deterministic rules to automatically check every action, leaving people to review only the genuine exceptions where judgement adds value.

Investment professional reviewing live market data across six trading screens at night

The thesis: Agents propose, infrastructure disposes

The answer isn’t to keep AI away from collateral. It’s to separate thinking from doing. Market participants should let their agents reason, forecast, investigate and recommend as freely as they like, and require every action that moves money, collateral or legal obligations to pass through a deterministic, permissioned infrastructure layer.

Modern aircraft offer a useful analogy. Fly-by-wire systems let pilots and autopilots fly the plane, yet the flight-control computer enforces an envelope that neither can breach. Collateral infrastructure can play the same role for AI agents. The agent flies and the platform holds the envelope.

Guardrail architecture: Two layers, one boundary

Guardrail architecture: a firm’s AI agents propose actions, which cross a guardrail boundary of agent-ready APIs and MCP tools into CloudMargin’s deterministic workflow, which validates and executes them and routes exceptions to the operations team
The firm’s agents never touch cash or collateral directly. Every action crosses the boundary, where the provider’s rules either accept or return a reason for rejection.

Swipe to see the full diagram, or tap to open it full size

CloudMargin already runs the collateral lifecycle as a fully automated, deterministic workflow built on automation and straight-through processing (STP). The cloud-based platform is a natural outsourced guardrail for clients’ agentic workflows, with the rules agents must follow already codified and enforced in production.

Six mechanisms do the work:

  • Codified agreements CSA terms, eligibility schedules, haircuts, thresholds, minimum transfer amounts and concentration limits live as validated rules, not as text an agent must interpret each time
  • Validation at the boundary Every agent instruction, whether a call, an allocation or a substitution, is checked against those rules. Anything non-compliant is rejected with a machine-readable reason the agent can learn from
  • A fixed lifecycle The margin call moves through defined states. An agent can accelerate a step, yet it can’t skip one
  • Scoped permissions Agents can read broadly and write narrowly. Actions above set limits route to a human for four-eyes approval
  • Replayable, auditable outcomes The same inputs always produce the same result, and every action records which agent or person initiated it, which rule applied and who approved it
  • Graceful fallback If the AI layer fails or is switched off, the deterministic platform keeps running business-as-usual processing. Operational resilience doesn’t depend upon a model being available.

Firms can then set what Andrej Karpathy, former director of AI at Tesla, calls an “autonomy slider”, with more autonomy for low-risk steps such as dispute triage and less for high-risk steps such as releasing collateral. The slider is only safe if something outside the model enforces where it sits. That’s the infrastructure’s job.

Ensuring AI safety and controls in capital markets requires both the speed and intelligence of agents and the certainty of deterministic infrastructure

A shared view is taking shape

Across AI labs, analysts, enterprise software, the derivatives industry and regulators, the message is consistent. Agents deliver most when deterministic systems define what they’re allowed to do:

  • Analysts Gartner’s Anushree Verma advises using “AI agents when decisions are needed, automation for routine workflows and assistants for simple retrieval” (SD Times)
  • Enterprise software Salesforce turns business rules into “executable, deterministic logic”, letting agents get them right “every time” (Salesforce). Workday argues “systems of record with accurate, reliable data reduce AI risk” (Workday), and SAP positions ERP as the trusted system of record (TechTarget)
  • Regulators and bank leaders The FCA wants AI dependencies “properly mapped and governed” (FCA), and Goldman Sachs CEO David Solomon calls for “progress built on accountability, trust and confidence” (PYMNTS).

Firms are putting the same principle into practice. The advisory pattern in the 2026 BoE/FCA survey holds even in firms’ plans, with no more than 9% of respondents expecting agents to execute trades, initiate payments or change limits, even including planned deployments. Firms want agents to advise, not to transact unchecked. A fully automated, deterministic workflow fills exactly that gap.

Why guardrails are an accelerator, not a brake

Guardrails sound like constraints. In practice, they give a regulated firm the confidence to say yes. When the worst an agent can do is propose something the platform rejects, the risk committee can approve more ambitious use cases sooner.

DimensionAI wired directly into an in-house stackAI on top of a deterministic provider
Time to deploy an agentEach use case needs its own controls, testing and sign-offControls already exist at the boundary, new agents inherit them
Model risk scopeLLMs sit in the calculation path and must be validatedLLMs advise, the validated calculation engine decides
AccountabilityDifficult to show which model, prompt or person caused an outcomeEvery action is attributed, rule-checked and replayable
Model upgradesA new model version can change business logic behaviourModels can be swapped freely, business logic doesn’t move
Model outageProcessing stalls if the AI layer is unavailableBAU processing continues without the AI layer
Scarce talentAI engineers rebuild CSA logic and settlement plumbingAI engineers build differentiating agents and analytics

Three benefits matter most:

  • Speed Gartner attributes many failed agentic projects to “inadequate risk controls”. Buying these controls ready-made, inside a fully automated, deterministic workflow like CloudMargin’s, removes a common reason projects stall. It also follows Gartner’s own advice: automation for routine workflows and agents only where decisions are needed
  • Capital and liquidity Better forecasting, faster dispute resolution and smarter allocation release trapped collateral and reduce funding costs. Firms only see those gains once they trust agents in live processing, and the guardrail layer builds the trust
  • Readiness for digital assets Coalition Greenwich calls tokenised, high-quality collateral a potential “2026 game changer” that lets transfers “settle in minutes and unwind in hours” (Coalition Greenwich). When collateral moves in minutes, there’s no time for a human to catch an agent’s mistake after the fact. The controls have to live in the rails themselves.

Build versus delegate: De-risking the AI-built stack

AI coding tools have made it tempting to imagine rebuilding collateral management in-house. Doing so significantly underestimates the problem, even with the best AI coding methods.

A production-grade platform must codify every negotiated CSA, each with its own eligibility schedules, haircuts, thresholds and minimum transfer amounts. It must calculate initial margin under ISDA SIMM and regulatory schedules across jurisdictions, handle bilateral, tri-party and cleared flows, and connect to counterparties, custodians and settlement networks. Then it must keep pace with constant regulatory and market change. Beneath all of that complexity sits a platform challenge. The system must scale and hold up under stress when market volatility drives call volumes and disputes sharply higher.

The hard part isn’t writing code. It’s knowing what the code must do in every edge case, for every workflow step and margining scenario, and proving its accuracy to auditors and supervisors. That takes years of domain experience, not weeks of AI-assisted development.

A firm that takes on the build anyway stacks two kinds of AI risk on top of each other. At build time, the danger isn’t that the code behaves randomly. Once written, it runs deterministically. The danger is that it’s deterministically wrong. An untested edge case is frozen into the logic and repeated on every call, often passing tests written with the same blind spots. Every AI-assisted change for new regulation or a new counterparty is a fresh draw on that risk. At run time, AI reasoning adds a genuinely probabilistic layer. Delegating the deterministic layer to a provider that already runs it as a fully automated, proven workflow removes the first and contains the second.

The evidence favours delegation:

  • Partnered AI succeeds more often MIT NANDA’s The GenAI Divide found buying from specialised vendors and building partnerships succeeds about 67% of the time, while internal builds succeed only one-third as often. Fortune notes this is “particularly relevant in financial services and other highly regulated sectors” (Fortune)
  • AI-written code carries hidden security debt Veracode tested over 100 LLMs and found AI-generated code introduced security flaws in 45% of tasks, rising above 70% for Java. Its CTO, Jens Wessling, says models “are getting better at coding accurately but are not improving at security” (Veracode)
  • Most of the stack doesn’t need to be agentic Gartner’s warning that many use cases “don’t require agentic implementations” applies squarely to margin calculation and settlement messaging. They need to be correct, not creative, which is what a fully automated, deterministic workflow such as CloudMargin’s already delivers
  • Mutualisation beats replication A provider amortises the cost of keeping CSA logic, regulatory change and connectivity correct across its whole client base. An edge case found for one client is fixed for all. ISDA’s argument for mutualised standards applies equally to mutualised infrastructure.

A practical division of labour:

CapabilityWhere it should sitWhy
Strategy, risk appetite and optimisation guidanceIn-house, with optimisation execution supported by providerIt’s the firm’s edge and judgement
Agents for forecasting, dispute investigation and client insightIn-house, or co-built with the providerDifferentiating and safe once actions are bounded and checked by provider
CSA codification, eligibility, haircuts and margin calculationProviderMust be identical every time and independently tested
Call lifecycle, approvals and audit trailProviderSupervisors expect a provable control environment
Connectivity to counterparties, custodians and settlement networksProviderCommodity plumbing that’s costly to build and maintain
Regulatory change in margin rulesProviderShared cost, faster adoption, fewer interpretation gaps

Delegation isn’t abdication. The FCA insists “accountability for regulated activities and outcomes must remain clear”. The quality of a provider’s workflow, its data and its audit trails is therefore decisive. A specialist provider’s entire business is the control environment. The documentation, testing and assurance a firm needs to discharge that accountability already exist.

Concentration risk deserves an honest answer too. The Bank of England has warned that “a widespread outage of one or several key models could leave many firms unable to deliver vital services”. A model-agnostic deterministic provider that keeps processing when the AI layer is down reduces the dependency rather than adding to it.

Electronic market ticker glowing orange against a blurred city at dusk

What to demand of an infrastructure partner

The model only works if the deterministic provider is built for an agentic world. A legacy platform that agents can only reach through screen-scraping or overnight files isn’t a guardrail. It’s a bottleneck.

Participants should test potential partners against seven requirements:

RequirementWhat to look forQuestion to ask
A credible AI strategyAI is central to the roadmap, with dedicated engineering talentWhere will agentic AI sit in your product in two years?
Agent-ready interfacesComprehensive APIs and support for open standards such as the Model Context Protocol (MCP), with well-documented toolsCan our agents call your validation and workflow functions directly?
Usable, real-time dataPositions, calls, inventory and disputes exposed in structured, permissioned formWhat data can an agent read, how latent is it and what entitlements/permissions exist?
Explainable rejectionsEvery refused instruction returns a machine-readable reasonWhen our agent gets something wrong, what does it learn from you?
Configurable autonomyThresholds, four-eyes rules and escalation set per action typeCan we set different autonomy for triage and for releasing collateral?
Proof, not promisesDeterministic replay and a complete audit trail of every actionCan you reproduce any call and show who or what initiated it?
Model-agnostic resilienceWorks with any LLM and keeps running if the AI layer failsWhat happens to our margin process if our model provider goes down?

Anthropic’s guidance shows why the interface matters. Builders should “carefully craft your agent-computer interface (ACI) through thorough tool documentation and testing”.

For a collateral platform, the interface is the guardrail. It’s where the provider’s rules meet the client’s agents. CloudMargin starts from the right foundation, a fully automated, deterministic collateral workflow.

Conclusion: Let agents think, make infrastructure act

AI will reshape capital markets operations. The winners won’t be the firms with the most agents. They’ll be the firms who put agents into live processing safely, prove it to their supervisors and move faster than competitors still stuck in pilots.

The fastest route is to separate the probabilistic from the deterministic. Keep the intelligence which differentiates you in-house. Delegate the rules that must never bend to a fully automated, deterministic provider with an AI strategy, agent-ready interfaces and a control environment built for regulators.

Candlestick chart and rising trend line glowing over teal circuit-board traces

Three steps market participants can take now:

  • Map the workflow Split each collateral process into “think” steps, where AI can reason freely, and “do” steps, where outcomes must be deterministic
  • Test your provider Put the seven questions above to your infrastructure partner. If it can’t answer them, your agents will have nothing safe to stand on
  • Start bounded, then widen Begin with dispute triage and margin forecasting, where agents propose and the platform disposes. Raise autonomy as the audit trail builds evidence.

Taken together, these steps enable firms to put agents to work where they add the most value, without handing over control of cash, collateral or legal obligations. Every action an agent proposes is validated against codified rules, executed through a proven, fully automated workflow and recorded for supervisors, with real-time visibility and control throughout. Risk committees gain the confidence to approve more ambitious use cases sooner, and AI moves from pilot to production at the pace the market demands.

‍

CloudMargin and AI readiness

CloudMargin gives firms the guardrails to move AI agents from pilot to production. Every collateral workflow runs end-to-end on one platform, governed by permission-based controls, configurable rules and approval workflows across teams and regions. Agents propose actions, while the platform decides what executes, under which rule and with whose approval.

Guardrails are only as strong as the data behind them. CloudMargin consolidates agreements, positions and inventory data into a single real-time data ledger. Agents reason from accurate, consistent data, significantly reducing the probability of error.

The CloudMargin platform provides resilience in an AI world. Autoscaling AWS infrastructure and an active-active deployment keep performance high. Business as usual processing continues if the AI layer is unavailable.

CloudMargin’s award-winning, cloud-native platform is trusted worldwide by +260 buy-side and sell-side institutions and named Collateral management and optimisation product of the year at the Risk Markets Technology Awards 2027, our fifth win in the category since 2019 and second consecutive year earning the honour.

CloudMargin’s guardrails are in place today, ready to put AI agents to work.

Sources

‍

Key takeaways

Tokenised assets are moving from pilot to production, with institutions and regulators advancing live use cases

Legacy platforms built on overnight data feeds, manual processes and rigid asset models can't deliver the fully automated, real-time workflows digital assets need, making operational capability the new limiting factor

Real-time collateral rails bring together five components: flexible ledger connectivity, configurable asset hierarchies, real-time inventory, automated substitution processing and multi-ledger settlement

The five components unlock a broader collateral pool, increased collateral velocity, lower funding costs and release trapped liquidity

Firms delaying modernisation risk losing out twice, missing optimisation benefits today and facing costly adaptation or replacement later

CloudMargin delivers all five components today, enabling firms to connect, classify, allocate and settle new tokenised assets as they become available.

1
Flexible connectivity to digital asset ledgers

Firms connect to several ledgers, custodians and tokenisation platforms at once, and add or change providers as the market evolves.

CloudMargin and digital asset readiness

CloudMargin's award-winning, cloud-native collateral management platform is digital asset-ready. Built for real-time visibility, intelligent workflow automation and operational resilience, the platform supports digital assets alongside traditional assets through a flexible connectivity layer and configurable asset hierarchies, adding new asset types, providers and venues as market structure evolves.

Digital assets are moving into institutional workflows now, and firms with modern infrastructure and real-time control will be first to capture the benefits. CloudMargin will keep working with emerging vendors as networks, custodians and interoperability models mature, supporting clients through every phase of adoption.

CloudMargin's real-time collateral rails are in place today, ready to help firms put digital assets to work.

The benefits of real-time collateral rails

Increased collateral velocity

Faster response to margin calls, substitutions and intraday liquidity requirements

Lower funding costs

Optimisation across digital and traditional assets on a single platform

Release of trapped liquidity

Mobilisation of assets stuck in transit or outside traditional settlement windows

Single source of data

Real-time status across inventory, exposure and settlement for every stakeholder

Adaptability

Connect with new providers and asset types without re-platforming or costly integration projects

$1.6 trillion

Record margin collected on non-cleared derivatives at end-2025

86%

UK financial firms using AI, up from 75% in 2024

2%

Firms giving agents broad autonomy vs 80% using for decision support

Sources: ISDA margin survey, April 2026. Bank of England and FCA, October 2026

Methodology and sources