Blog Post

Azure Architecture Blog
28 MIN READ

Autonomy is a permission, not a prompt

Baptiste Ohanes's avatar
Nov 30, 2026

Designing agentic trade-finance examination inside a regulator's boundary

About this article. This article is written from the author's perspective as an Enterprise Cloud Solution Architect contributing to the wider Microsoft community, and the views expressed are the author's own. It is not official Microsoft documentation, product guidance or a product announcement. For official guidance, see Microsoft Learn and the Azure Architecture Center. The scenario is fictional and uses synthetic data only. The article proposes a design; it does not describe a customer engagement, a production deployment or measured production results, and its only measurements come from a prototype running on synthetic data. Please read the legal notice at the end of this article before you use any part of this design.

A companion proof of concept is available at baptisteohanes/multi-agent-trade-finance-examination on GitHub, for evaluation with synthetic data only, under the licence stated in the repository. It holds the multi-agent deployment and the examiner workbench, Bicep templates with a command-line tool to stand up the Azure components, and documentation of the architecture and workflows. It isn't production-ready, and deploying it creates Azure resources that you pay for.

Executive summary

Under UCP 600 (the Uniform Customs and Practice for Documentary Credits), a bank has at most five banking days to decide whether the documents presented under a letter of credit comply. Consider a fictional Islamic bank in Dubai that, in this scenario, spends three to four days on each file, while regional competitors move to same-day turnaround and its regulator holds open findings on its anti-money-laundering screening.

This article proposes an Azure design in which five agents built on Microsoft Foundry are designed to read, cross-check and draft, while examiners, the Sharia board and Compliance keep every decision the law assigns to them. Three choices carry the design. First, a deterministic Durable Functions workflow, not a language model, holds each case and its legal clocks. Second, each agent's autonomy is a set of permissions enforced by its identity and the tools API Management gives it, so an instruction hidden in a document cannot add a power the agent lacks. Third, people sign decisions with keys no agent can reach, and the systems that move money or release holds verify each signature against the evidence it covers.

The illustrative design objectives set for this hypothetical scenario are examination in under four hours, more accurate discrepancy calls, proposed controls intended to address the causes of the open anti-money-laundering (AML) findings, and capacity for twice the volume with the same team. They are design goals only. No customer deployment has achieved them, they haven't been validated in production, and readers shouldn't expect similar outcomes: results in any real deployment depend on its configuration, data, validation, controls and governance. In this design, people make every regulated decision.

Monday, 9 a.m., Dubai

Mariam has been reading documentary credits for eleven years, and she can still tell what kind of week it'll be from the weight of a courier pack.

On Monday morning, one lands on her desk with ten documents. Among them are a bill of lading from Karachi, an invoice in English with an Urdu stamp, a certificate of origin and the Murabaha paperwork. Together they back a letter of credit for a Dubai trader buying 2,000 tonnes of basmati rice.

The clock is already running. After five banking days, the bank loses the right to refuse the documents [1].

Mariam checks every page against the credit, UCP 600 and ISBP 821 (International Standard Banking Practice). The invoice reads "Basmati rice 1121, crop 2026", but the bill of lading just says "rice." That's fine, because documents other than the invoice can describe the goods in general terms. The consignee worries her more. He's "Mohammed Al Hashimi" on one document and "Muhammad Alhashemi" on another. Is that one man or two? It isn't her call, so she sends it to Compliance. Then she notices that the Murabaha sale contract is dated a day before the bill of lading made out to the bank's order. Did the bank sell goods it didn't own yet? That question goes to the Sharia team.

By Thursday, she's on day four. This file turns out to be mostly fine, but about one in five isn't, and she never knows which one it'll be until she's deep into it.

A lot rests on people like Mariam. She works in trade-finance operations at an Islamic bank in Dubai. Her team handles 150,000 trade documents a year across about 16,700 letters of credit. They come from four corridors, the United Arab Emirates (UAE), Saudi Arabia, Pakistan and Türkiye, and the design assumes about half of them are Murabaha.

The bank has plenty of customers who want its trade-finance business. What holds back fee income, about 900 million UAE dirhams (AED) a year, is how fast people can read. In this hypothetical scenario, the fictional bank assumes that if the same team could handle twice the volume, fee income would grow by more than 40%, which would turn trade finance from a cost centre into a growth engine. That figure is a fictional assumption, not a projection.

The regulator is watching too, and has stepped up its AML scrutiny of trade finance since 2025 [3]. In the scenario, the Central Bank of the UAE (CBUAE) has open findings on the fictional bank's AML screening. In a real, unrelated case, on 30 October 2026, the CBUAE fined a bank's branch AED 200 million and personally fined that branch's chief executive and reporting officer [6].

Giving Mariam her week back, and giving leadership the growth it wants, turns out to be much more subtle than a demo suggests. The rest of this article shows why, and how.

What success looks like

For Mariam's file, success isn't "the agents processed ten documents." It's four outcomes:

  • The name variant reaches Compliance with both spellings and the screening engine's result beside them, and only Compliance decides.
  • The early sale contract reaches the Sharia board as a memo that cites the standards of AAOIFI (the Accounting and Auditing Organization for Islamic Financial Institutions), and only the board decides.
  • The parts of the file that comply don't wait for either question.
  • No decision misses day five, and no approval outlives the evidence it was given on.

What each stakeholder needs to see

A single green "compliant" light would hide too much. Each stakeholder asks a different question, and the design has to answer each one with its own evidence.

Table 1. The evidence each stakeholder needs.

WhoWhat they needWhat agents change
Head of Wholesale Banking, the sponsorCould the same team, in principle, handle twice the volume and provide a same-day service?Twice the volume with the same examiners, in under 4 hours each (Illustrative design objective, tested in the POC, not validated in production)
Chief Compliance OfficerWhich proposed controls target the causes of the open AML findings, are holds placed fast, and does nothing tip off a customer?Replayable screening results with their list versions, time from potential match to hold, re-screening on every list change, rejects at the tipping-off filter
Sharia boardDoes each memo carry the evidence we need, and do we still decide?Memos with the sequence check and citations, and approvals per day
Model Risk and the Model Oversight CommitteeCan we stop any agent version at once, and show it was validated?The registry, release thresholds, override rates by language and corridor, and kill-switch tests
Chief Financial OfficerWhat does one correctly examined presentation cost?Platform, model capacity and staff time per presentation, not per agent run
Document examinerLess routine reading, more time for judgementAn exception queue with the evidence assembled, not every page

Why agents, and why not one agent

Hiring more examiners gives you more capacity, but it doesn't make the work more consistent, flexible or scalable. Templates and RPA ponetially wouldn't solve it either: they break as soon as they meet the mix of layouts and languages coming in from four corridors. The job itself is reading documents, checking them against each other and drafting a response, all on a tight deadline. That's the kind of work that agents, once configured, validated and supervised, can help with.

Why not build one capable agent and let it handle everything? Because the law already names who decides each call, from the examiner to the money-laundering reporting officer (Table 2), and the CBUAE treats every agent as a model in its own right [4].

The useful question isn't how autonomous the process could be, but where autonomy fits in a process the law has already divided up. The answer is five agents, each with its own permissions (Table 3).

Regulations above all

Before choosing a single service, we listed what the bank can't negotiate. Each item below closes off at least one tempting design, and the agents follow from the list.

Table 2. Non-negotiables in this scenario, where each comes from, and the designs they exclude.

Compliance ruleSourceDesign excluded in this scenario
An examiner decides whether documents comply, and the bank sends one refusal within five banking daysICC (International Chamber of Commerce) rules incorporated in the credit [1]An agent that sends a refusal, or a clock that lives in a model's context
The Sharia board approves structures, against the AAOIFI standardsUAE law [2]An agent that approves a Murabaha sequence on its own
Only Compliance releases a sanctions hold, and only the reporting officer decides on a suspicious reportUAE law [3]A screening agent with a release tool; a status message that tips off
Every agent is a model: registered, validated, monitored and able to be switched off at onceCentral Bank regulation [4]Models that update automatically; a prompt change without a validation gate
Confidential customer data stays in the UAE, including what a model readsLaw for stored data [5]; the PDPL (Personal Data Protection Law) for personal data outside banking law [16]; bank policy for inferenceGlobal and Data Zone model deployments
A sealed trail of every proposal, decision, time and evidence version, kept for at least five yearsLaw for retention [3]; policy for the hash chainLogs that an administrator can rewrite

Some of these rows are law and some are bank policy, and the split decides how to build them. As a consequence, law goes into the structure, as an identity that lacks a tool or a check in code that no prompt can reach, and policy goes into configuration the bank can change without a release. The same split between law and policy may be adapted to other jurisdictions, subject to local legal review.

Autonomy, written as permissions

Each agent's level of autonomy follows from the first three rows of Table 2:

  • L2: an agent recommends and a person decides.
  • L3: it acts, but only within limits set in code and by signed approvals.
  • L4: it acts on its own within automated checks, and its output still feeds a decision that a person signs.

A level is only a label until it becomes a permission. Table 3 shows what each agent's identity may do and, more importantly, what no instruction, injected or genuine, can make it do.

Table 3. Agent permission matrix.

AgentLevelIt mayIt can neverWho decides
Document ExtractionL4 per document type and language once its thresholds are met; L2 otherwiseRead its own presentation's documents; write fields with a confidence score and page positionRead another presentation, call bank systems, see screening or approvalsThe examiner reviews any field under the confidence threshold
UCP 600 ExaminationL2Read the credit and extracted fields; search the licensed rulebook; run the citation checkRead screening, vessel or price data; send messages; approveThe examiner
Sharia StructuringL2Read contracts and transaction events; search AAOIFI and Higher Sharia Authority texts; run the sequence checkApprove a structure; change fee rules or templatesThe Sharia board
Sanctions and Goods ScreeningL3Submit parties, vessels and goods to the screening engine, with dual-use items flagged; place a hold; raise an AML alertRelease a hold; read alert outcomes or suspicious transaction reports; contact the customerCompliance and the reporting officer
Release and SettlementL3Read the approved case; get fees from the fee service; submit to the payment APIHold SWIFT (interbank payment messaging) credentials; submit without valid approvals; change approved amountsThe approvers at each gate, whose signatures the payment API verifies

With the context and its constraints set, the next sections turn to the functional and technical design.

Mariam's file, the agentic way

Figure 1. One presentation through the workflow, with its gates and clocks.

Same courier pack, same Monday, in the proposed design. The documents are scanned for malware and hidden instructions, and the extraction agent turns every page into fields that point back to their place on the page. The three checks run side by side. Examination finds no conflict in the goods description and cites ISBP. Screening normalises both spellings of the consignee for the engine. The Sharia check flags the early sale contract and drafts a memo citing AAOIFI.

Mariam doesn't open ten documents. She opens her queue with the evidence beside each page, accepts one finding, rejects another with a reason code, and signs off, as she does for every file. A refusal goes to the bank's trade-finance system, which issues the notice. The Sharia board gets a memo to decide on, not one to assemble. The design targets 30 minutes of agent preparation, which would leave most of the four-hour examination objective for the people who decide. Both are hypothetical design objectives, not results.

 

Figure 1.1. The examiner workbench in the proof of concept, on synthetic data.

Where agents aren't enough: binding approvals to evidence

By Monday afternoon, Mariam has signed off the file and the other approvers have signed their gates. Each signature becomes a token bound to a hash of exactly what its signer saw: Mariam's to her sign-off, the Sharia board's to the memo, and the payment approver's to the payment instruction and its fee quote.

That night, a sanctions list changes. The workflow re-screens every open presentation, Mariam's included, and this time the engine returns a potential match on the consignee. A hold goes into core banking at once.

On Tuesday morning, the release agent submits the payment with Monday's approvals. Every signature is genuine, and the payment hub refuses anyway. It finds the open hold, and its own final screening of the payment message returns the same match. Only Compliance can release the hold, with a signature bound to that hold. Had the list changed nothing, the payment would have gone through, because Monday's approvals still cover what they were about: the documents, the memo and the instruction.

The hash catches a different change. If the fee quote expires overnight and a new one is issued, the instruction changes, and Monday's payment approval no longer matches it. The hub refuses it as an evidence mismatch, and the approver signs a new instruction. A design that stored an "approved" flag would have paid on Tuesday in both cases. That's the difference between recording a decision and binding it to its evidence.

The high-level design: agents propose, the workflow disposes

For this scenario, five design decisions matter most: the three from the executive summary, and two that keep rules and records out of the model's reach.

In this design, the supervisor isn't a language model. It's a Durable Functions orchestration: one instance per presentation, an explicit state graph from "received" to "sealed", the three checks in parallel, people as external events and durable timers for the legal clocks. Agents return schema-validated proposals, and nothing they write moves the case forward. Microsoft's agent orchestration guidance also advises against model-driven handoff when routing follows fixed rules [15].

Autonomy lives in identities, not instructions. Each agent has its own Microsoft Entra Agent ID and reaches bank systems only through tools that API Management publishes as MCP servers, scoped per agent. The screening agent can place a hold but has no tool to release one, and the release agent never touches SWIFT credentials. An instruction hidden in an invoice can override a prompt. It can't conjure a missing permission. One identity per agent also makes the agents easier to inventory and govern in Microsoft Agent 365.

People sign, and the systems that move money check. Every decision happens in one workbench, also available as a Teams tab so that people can work where they already are. Each signature is a token like those in the Tuesday scene: made with a hardware-held key in Azure Key Vault Managed HSM that no agent can reach, and verified by the payment and hold-release APIs themselves, so a change in the middle, by an agent or a person, can't go unnoticed.

In this design, code decides wherever the law needs the same answer twice. Sanctions matching stays in the bank's screening engine and the agent only normalises and explains. Murabaha sequencing is checked in code and the agent only drafts the memo. A deterministic checker rejects any finding whose citation isn't in the licensed rulebook, or whose quote isn't in the documents. These are also the controls the design proposes against the causes of the bank's open AML findings. The findings cite inconsistent screening, so the design intends to keep one matching authority, store every result with its list version and settings so any decision can be replayed, and re-screen every open case on each list change. These controls are design intent; implementing them doesn't by itself satisfy any regulatory expectation, and Compliance remains accountable for the outcome.

Every operation can be verified. Each state change, model call, tool call and approval is journalled, hash-chained and notarised at every gate, and each presentation closes into a sealed record kept for five years or more. When the regulator asks "why?", the bank can show who proposed, who decided, when, on which evidence and under which versions. The record proves integrity and accountability. It doesn't prove that a judgement was right or that a document is genuine; people and the checks in code answer for that. The design relies on append-only ledger tables in Azure SQL Database for the signed heads and on immutable Blob Storage for the evidence files. Azure confidential ledger could replace them, but it wasn't available in UAE Central at the time of writing [17], which means that in a cross-region disaster recovery, the ledger couldn't be consulted.

Application telemetry, stripped of prompt and response content, goes to an operations Log Analytics workspace in UAE North, and security signals go to a separate Microsoft Sentinel workspace. Power BI on Microsoft Fabric in UAE North reports throughput, the four-hour target and the model-risk measures.

The design from above

Figure 2.1. Who decides, what orchestrates and what the agents can reach.

Table 4. Services chosen for this scenario, and the alternative set aside for it.

ComponentServiceReasonAlternative not chosen here
Case workflowDurable Functions on zone-redundant Premium [12]Deterministic routing, and legal clocks that survive restartsA supervisor agent that plans the case
AgentsFoundry Agent Service, standard setupAgent state in bank-owned stores, inside the bank's networkBasic setup with Microsoft-managed storage
Agent identityMicrosoft Entra Agent ID, one per agentThe permission matrix becomes identities the gateway can checkOne shared application identity
Tool doorAPI Management with MCP tools, per-agent allow-lists, daily quotas and a kill switchOne door, one log and one switch for every agentAgents calling bank systems directly
ReadingDocument Intelligence through the Foundry resourceFields with page positions, so every finding points at the pageReading pages with a vision model alone
ApprovalsApproval service with a signing key in Key Vault Managed HSMThe systems that act verify the signature themselvesAn "approved" flag in a database
ModelsGPT-5.1 on one shared Regional Provisioned deployment in UAE NorthResidency for inference; one 50-PTU block covers the shared loadGlobal Standard and Data Zone Standard
EvidenceHash-chained journal and immutable storage, sealed per presentationEach record can be verified, not only retrievedApplication logs as the audit trail

 

Figure 2.2. The demo implementation tested in the proof of concept.

Proof of concept and results

The proof of concept (POC) is at baptisteohanes/multi-agent-trade-finance-examination on GitHub, for evaluation with synthetic data only.

It differs from the proposed architecture in three ways:

  • The demo relies on a Global Standard deployment of GPT instead of Regional Provisioned deployments in UAE North.
  • Everything is deployed in one resource group, for simplicity rather than modularity.
  • Disaster recovery isn't covered.

Figure 2.3 shows the results of a first set of runs. They are prototype figures on synthetic data, from one run per scenario, not results from a production deployment, and they don't predict the performance of any other deployment.

Figure 2.3. Measured agent and system time per scenario in the prototype, one run each on synthetic documents; human sign-off at the gates comes on top.

How an agent earns its level

Evidence, not a setting, decides an agent's level. Under the CBUAE's model standards, each agent version is a model [4], and "version" means the model, prompt, tools, rulebook snapshot and thresholds together. Each version is registered, pinned, validated, run in shadow and then monitored through examiner overrides, with a three-layer kill switch at the workflow, the gateway and the identity.

 

Figure 3. Each agent version goes through the model-risk lifecycle before it touches a live file.

What the golden sets must contain

The golden sets come from past credits with examiner-confirmed outcomes, stratified by product, corridor, language and document type. They deliberately include the cases most likely to fail: poor scans, stamps and handwriting, transliterated names, Hijri dates, tables that run across pages, ISBP subtleties such as typing errors that don't change the meaning, and documents carrying injected instructions. They also include files that comply. Without them, an agent that flags everything would look as though it never misses a discrepancy, while burying Mariam in false alarms.

Raw model evaluation as the first step

New models arrive every month. In the three months before this article was written:

  • GPT-4.1 was deprecated, the cheaper challenger was days from retirement [9], and GPT-5.1 replaced both. Because models plug into this architecture as configuration, the change needed no redesign.
  • GPT-5.6-sol is being tested as a short-term enhancement, with more granular provisioned capacity (a regional minimum of 15 PTUs in steps of 5, instead of 50 in steps of 50 for GPT-5.1) [8] and faster answers (Table 5).
  • GPT-6-sol has a much stronger impact in terms of rework. It was attractive for the same reasons as GPT-5.6-sol [8], and raw model evaluations suggested it would improve the application in many respects. However, a first round of evaluations of the whole agentic chain showed that many prompts had to be rewritten to be stricter and limits recalculated.

In short, evaluating the model is not enough: the whole agentic chain has to be adapted with each new model version.

Table 5 records one round of model-only tests on the synthetic demo dataset, and the same model running inside the deployed agents.

Table 5. Model-only and agentic evaluation on the synthetic demo dataset of the POC, one round of tests.

MetricGPT-5.1GPT-5.1 AgenticGPT-5.6-solGPT-6-sol
Extraction99.2%99.7%100%100%
Examination recall95.1%84.6% (100% detected)97.5%98.8%
Examination precision72.0%81.5%72.5%73.4%
Safety pass rate93.9%100% (8 of 8 checks)93.8%100%
Tipping-off leaks1000
Examination p9576.5 s137 s (whole step)20.6 s9.2 s
 
Important

These results come from one round of tests on a small synthetic dataset built for this proof of concept. They are not a benchmark, aren't representative of the models' general performance, and aren't suitable for comparing models or vendors. They depend heavily on the prompts, tools, workflow and evaluation design written for this case, and another configuration could produce different results.

In the agentic column, every known discrepancy was detected, but two were filed under the wrong category, which lowers recall to 84.6%; the time covers the whole examination step, not one model call. The test records, dataset and method behind every figure in this table are kept with the companion repository.

Release thresholds

Table 6 lists the thresholds proposed for the POC. Model Risk sets the final values, and the examiners' own performance on the same sets is the baseline any agent must match. Each proportion is reported with its sample size and a 95% Wilson interval, and a metric passes only when its lower bound also meets the threshold. The companion repository holds the thresholds and the evaluation cases.

Table 6. Proposed release thresholds. These are targets an agent must meet before release, not results achieved.

AgentMetricProposed threshold
ExtractionAccuracy of fields accepted without reviewAt least 99.5% as a 95% Wilson lower bound, per document type and language, before L4 is enabled
UCP 600 ExaminationRecall of known discrepanciesAt least the examiners' baseline on the same set
UCP 600 ExaminationPrecision of findingsAt least 80%, so the exception queue stays useful
UCP 600 ExaminationCitation validity100%, enforced in code
Sharia StructuringSequence-check accuracy100%
Sanctions and Goods ScreeningReplay of past decisions100% identical
All agentsHigh-severity attacks that succeed in the red-team suiteNone, on every change
All agentsAgent preparation per presentation30 minutes or less at the 95th percentile

After go-live, examiner overrides with their reason codes become the main signal, tracked by document type, language and corridor, and each failure found in production becomes a new test case.

Security: every document is considered potentially hostile until proven otherwise

Trade documents come from third parties, so the design treats every page as untrusted input [4]. Table 7 lists the seven threats that mattered most.

Table 7. The threats that shaped the design.

ThreatHow it could happen hereWhat stops it
Instructions hidden in a documentAn invoice tells the examination agent to report no discrepanciesPrompt Shields on every document [11]; untrusted text passed as delimited data; strict output schemas; the citation checker; no agent can approve or pay
Forged or replayed approvalAn insider or a compromised agent tries to trigger a paymentTokens bound to the presentation, the evidence hash, an audience and an expiry, with single-use nonces, verified by the payment API against a pinned key
Tipping offA drafted refusal mentions an alertAgents can't read alert outcomes; the refusal package carries no screening fields; a fail-closed filter at the handoff sends any hit to the manual queue
Inference leaving the UAEA Global deployment or spillover processes data abroadAn allow-list of regional deployment types and no spillover (see the residency section below)
Leakage between transactionsContext from one customer's credit appears in another'sOne conversation per step and agent; no shared agent memory; no customer documents in vector indexes
Malicious filesAn upload carries malwareMalware scanning on upload, in region, before any parsing
Version swap after the factA prompt or threshold is changed and a decision is claimed to have used itA versions manifest hash in every journal entry, and a write-once version archive

Three platform gaps turn controls into components you have to build and test. Where a region offers the managed service, prefer it:

  • Groundedness detection isn't offered in UAE North at the time of writing [13], so the deterministic citation checker does that work.
  • Prompt Shields is trained and evaluated mainly on English, so the bank red-team suite must cover Arabic, Urdu and Turkish documents, and the structural controls don't rely on detection alone [11].
  • Microsoft Defender for Cloud threat protection for AI services isn't offered in UAE North either [14], so the security workspace runs custom detections on gateway and agent logs.

Every store is encrypted with customer-managed keys held in Azure Key Vault Managed HSM and sits on a private endpoint.

Customer Lockbox covers provider access where a service supports it.

Sovereignty, resilience and cost

Residency covers inference, not only data. Article 6.1 of the CBUAE Outsourcing Regulation keeps confidential customer data in the UAE [5], and the bank extends the rule to inference. Microsoft's data zones don't cover the Gulf [7]. So production runs in UAE North, UAE Central holds data recovery only, and an Azure Policy allows exactly two model deployment types: Regional Provisioned and Regional Standard. That also limits which models you can choose, whether managed or open-weight.

Disaster recovery for AI can be a person. UAE Central, the only other region the rules allow, offers no Foundry model and no AI Search. Would running the agents in containers change that? No. Containers move the agent loop, not the model, and a container in UAE Central calling GPT-5.1 in UAE North fails with the region it replaces.

If UAE North goes down on Wednesday, a named incident authority declares recovery mode, case data fails over to UAE Central, and every agent stops at its workflow flag, the one kill-switch layer that survives the region. The design targets a recovery workbench, without AI, within an hour; this is a recovery objective that hasn't been tested. Her decisions go to a hash-chained recovery journal, replayed at failback before agents are re-armed one by one on named approval. Deadlines derive from calendars and holds stay in core banking, so the legal clocks survive. The option is intended to need no new compliance position and to be sustainable for a limited period.

An alternative would be to keep AI alive, with agents on AKS on Azure Local or Arc-enabled Kubernetes in the bank's UAE data centre, with Foundry Local serving open-weight models and agentic runtime on GPUs [10]. It's a second platform: potentially a second model validated per agent and language, a GPU fleet to run, and recovery capped at L2, because the L4 evidence belongs to one model. However, the investment is far from negligible and its benefits are limited: a workload deployed across availability zones, with a sound backup strategy to restore in another region, may already meet the bank's availability objectives. Only the bank's own assessment of the cost and benefit of such a disaster-recovery plan can tell whether it's worth it.

Figure 4. Two recovery options for a UAE North outage.

Cost is set by the platform's shape. The estimate below is illustrative, for the fictional scenario only. It uses Azure list prices for UAE North and partial recovery in UAE Central; actual costs depend on region, agreements, usage and configuration, and readers shouldn't expect the same economics.

Table 8. Illustrative production estimate for the scenario, in US dollars (USD) per month, at list prices on 23 November 2026.

Component150,000 documents a year300,000 documents a year
GPT-5.1, one shared reserved deployment: 50 PTUs, 100 at double volume14,35028,700
Key Vault Managed HSM, primary and replica4,6724,672
API Management and application gateway4,5744,574
Document Intelligence2,2504,500
Hosting, databases, storage, logs3,1873,895
Indicative subtotal29,03346,341
Per document2.321.85
Per presentation (9 documents on average)20.9016.68

The subtotal excludes connectivity to the bank (ExpressRoute, gateways and firewall), assumed to come from the bank's existing network hub, as well as security services, full log archiving, implementation and staff, and every price needs a quote.

The general and examination agents share one block, which at peak (the busiest hour, assumed at twice the average) is planned to run at about 36% against a 60% planning ceiling for peak load. By the same planning estimate, a burst of 10 presentations arriving within 10 minutes would clear in about 25 minutes, inside the 30-minute target but with little margin. Both figures are planning assumptions to validate in shadow mode, not measurements.

That's still only the cloud bill. The figure the Chief Financial Officer (CFO) needs is the cost of one correctly examined presentation: the platform, plus examiner and Sharia board time at its loaded cost, plus the rework behind overridden findings, divided by the presentations decided correctly rather than by agent runs. The bank holds the staff costs, so the pilot should ba able measure that figure from its first week.

When the pattern can be reused, and when it can't

The design targets an Islamic bank's trade-finance desk because it combines strict rules, documents in many layouts and languages, and tight residency and personal-data constraints, which makes it a demanding test. The same pattern may apply where experts check documents against rules, a named person signs, and a clock runs, subject to each organisation's own requirements, validation and controls.

Table 9. Other desks with a clock and a signature.

Where it appliesWhat the agents prepareWhat code decidesWho signs
Insurance claimsThe claim file from forms, invoices and photosPolicy limits and exclusionsThe claims handler or adjuster
Customs brokerageThe declaration from invoices and certificatesTariff classification and dutyThe licensed customs broker
Client onboarding and KYC (know your customer)The client profile and source-of-wealth narrativeSanctions and politically exposed matchingThe compliance officer
Supply-chain finance and factoringThe invoice and shipment checksEligibility and concentration limitsThe credit officer
Guarantees and standby creditsThe demand and its supporting documentsExpiry and amount checksThe guarantee officer

Across these settings, only the inputs move: which documents arrive, which rulebook they're tested against and whose name goes on the decision. The machinery doesn't change: they are still agents limited to proposals, a workflow that owns the deadline, approvals the acting system checks for itself and a trail that can be verified from the beginning to the end.

This architecture doesn't fit when:

  • No regulation or policy assigns the decision to a named person. An assistant that drafts and a person who edits is enough.
  • The checks can't be written down. If an examiner's judgement can't be reduced to a rulebook passage or a rule in code, the citation checker and the sequence check have nothing to enforce.
  • A team already meets the deadline with a checklist. At a few hundred credits a year, PTU blocks can cost more than the people they would help.
  • Residency rules out every model you can reach. Recovery without AI is acceptable for a day, but not as the normal way of working.
  • The answer is needed in milliseconds, as in instant-payment screening. A human gate breaks that service level, so the screening engine should decide alone.

Rolling it out: prove, assist, scale

  1. Prepare. Request reserved capacity and AI Search in UAE North and access to UAE Central, prove the agent identity mechanism, assign the region and deployment-type allow-lists, and ask the bank for its baseline examination times, discrepancy recall and staff costs.
  2. Prove, in shadow mode. Run extraction, examination and screening beside examiners for one product and one corridor. Agents place no hold; they record what they would have done. Exit only when the thresholds in Table 6 are met on golden sets and live shadow files, and only after the CBUAE's non-objection.
  3. Assist. Open the exception queue in the pilot scope, with Sharia memo drafts and holds released in the workflow. Test all three kill-switch layers, and sample signed decisions every week.
  4. Scale. Add the release agent through the payment API and extend to all corridors and products, then measure volume per examiner and cost per correctly examined presentation against the bank's own baseline and its illustrative objective.

What we would tell another architect on Monday

  1. Map decision rights before you draw agents. Who decides, under which clock?
  2. Write autonomy as a permission matrix, with one identity per agent, tools scoped at the gateway and an "it can never" column.
  3. Give time to a deterministic workflow. Legal deadlines belong in durable timers, not a context window.
  4. Bind every approval to the evidence it saw, and let the system that acts verify it.
  5. Enforce residency with allow-lists, and query the catalogue in each subscription.
  6. Budget for the controls your region lacks. They're components, with owners and tests.
  7. Plan recovery around the model, not the runtime. Without an in-country model, recovery is people.

This design has less autonomy than a demo might show, and far more than Mariam has today. In this design, the agents prepare the reading and drafting; she, the Sharia board and Compliance keep the decisions, now with cited evidence and a clock that can't be forgotten.

Autonomy is a permission, not a prompt.

This article describes a design for a fictional scenario. It isn't legal, regulatory, Sharia or other professional advice, and it doesn't represent Microsoft's view of how any regulation applies. Mariam, the bank and every figure attributed to the bank are fictional and don't represent any real customer or deployment.

The architecture is illustrative. In this design, people make every regulated decision, and the article isn't compliance advice: validating any design against applicable law and regulation remains the responsibility of the organisation that deploys it. The performance, capacity, cost and timing figures are hypothetical design objectives or prototype measurements on synthetic data; none has been validated in production, and readers shouldn't expect similar outcomes.

References to UAE law, CBUAE regulation, ICC rules and AAOIFI standards summarise the author's reading. Confirm every regulatory point with your own Legal, Compliance and Sharia functions before you rely on it.

Azure facts, regional availability and prices were checked between 5 and 29 November 2026, and they change often. The costs are illustrative list-price estimates, and the text under Table 8 states what they exclude. The recovery options are proposals that haven't been tested. Model results reflect one round of tests on a synthetic dataset; they are not a benchmark and not a ranking of models or vendors.

Microsoft, Azure and the other Microsoft product names are trademarks of the Microsoft group of companies. Other model and product names are the trademarks of their respective owners. The illustrations and diagrams were created for this article.

References

Web pages were read between 5 and 29 November 2026.

  1. ICC, Uniform Customs and Practice for Documentary Credits (UCP 600), Arts 5, 14 and 16; International Standard Banking Practice (ISBP 821, 2023).
  2. UAE Federal Decree-Law No. 6 of 2025, Art 24; Higher Sharia Authority Resolution No. 18/3/2018; AAOIFI Shari'ah Standards No. 8 (Murabahah) and No. 14.
  3. UAE Federal Decree-Law No. 10 of 2025 and Cabinet Resolution No. 134 of 2025, Art 25; Cabinet Decision No. 74 of 2020 on targeted financial sanctions; FATF (Financial Action Task Force) Recommendations, including Recommendation 16 on payment messages; CBUAE Guidance on Trade-Based Money Laundering and Illicit Transshipment (2025).
  4. CBUAE, Model Management Standards: https://rulebook.centralbank.ae/en/entiresection/4893; CBUAE AI Guidance Note (11 February 2026).
  5. CBUAE, Outsourcing Regulation for Banks, Art 6: https://rulebook.centralbank.ae/en/rulebook/outsourcing-regulation-banks
  6. WAM news agency, CBUAE enforcement announcement, 30 October 2026: https://www.wam.ae/en/article/c3051du-cbuae-imposes-financial-penalty-aed200000000
  7. Microsoft Learn, Deployment types for Microsoft Foundry Models: https://learn.microsoft.com/azure/foundry/foundry-models/concepts/deployment-types
  8. Microsoft Learn, Provisioned throughput sizing: https://learn.microsoft.com/azure/foundry/openai/how-to/provisioned-throughput-sizing
  9. Microsoft Learn, Model deprecations and retirements: https://learn.microsoft.com/azure/foundry/openai/concepts/model-retirements
  10. Microsoft Learn, Foundry Local on Azure Local: https://learn.microsoft.com/azure/azure-sovereign-clouds/private/foundry-local/concept-models
  11. Microsoft Learn, Prompt Shields in Azure AI Content Safety: https://learn.microsoft.com/azure/ai-services/content-safety/concepts/jailbreak-detection
  12. Microsoft Learn, Durable Functions overview: https://learn.microsoft.com/azure/azure-functions/durable/durable-functions-overview
  13. Microsoft Learn, Azure AI Content Safety region availability: https://learn.microsoft.com/azure/ai-services/content-safety/region-availability
  14. Microsoft Learn, Defender for Cloud regional availability: https://learn.microsoft.com/azure/defender-for-cloud/regional-availability
  15. Microsoft Learn, AI agent orchestration patterns, Azure Architecture Center: https://learn.microsoft.com/azure/architecture/ai-ml/guide/ai-agent-design-patterns
  16. UAE Federal Decree-Law No. 45 of 2021 on the Protection of Personal Data (PDPL), Arts 2, 18 and 22.
  17. Microsoft Azure, Products available by region: https://azure.microsoft.com/en-us/explore/global-infrastructure/products-by-region/table

Addendum

Lexicon

Financial and regulatory acronyms

AcronymMeaning
AAOIFIAccounting and Auditing Organization for Islamic Financial Institutions, which publishes the Sharia standards for Islamic finance
AEDUAE dirham, the currency of the United Arab Emirates
AMLAnti-money laundering
CBUAECentral Bank of the UAE, the bank's regulator
CFOChief Financial Officer
FATFFinancial Action Task Force, the international body that sets anti-money-laundering standards
HSHarmonized System, the international code for classifying traded goods
ICCInternational Chamber of Commerce, which publishes UCP 600 and ISBP
IMO numberThe International Maritime Organization's unique identifier for a ship
ISBPInternational Standard Banking Practice (ISBP 821), the ICC's guide to examining documents under UCP 600
KYCKnow your customer: the checks a bank runs on a client's identity, ownership and activity
PDPLUAE Personal Data Protection Law (Federal Decree-Law No. 45 of 2021)
SWIFTSociety for Worldwide Interbank Financial Telecommunication, the network banks use to send payment messages
UAEUnited Arab Emirates
UCP 600Uniform Customs and Practice for Documentary Credits, the ICC rules that most letters of credit incorporate
USDUS dollar

Technical acronyms

AcronymMeaning
AIArtificial intelligence
AKSAzure Kubernetes Service
APIApplication programming interface
EICARA harmless test string that every antivirus engine detects as malware, used to test scanning
GPTGenerative pre-trained transformer, the family of OpenAI models that includes GPT-5.1
GPUGraphics processing unit, the hardware that runs models locally
HSMHardware security module, a device that holds signing keys so that software can use them but never read them
HTTP 429The "too many requests" response a service returns when a caller exceeds its capacity
IDIdentity, as in Microsoft Entra Agent ID
L2, L3, L4Autonomy levels: L2 recommends, L3 acts within limits, L4 acts on its own within automated checks
LLMLarge language model
MCPModel Context Protocol, a standard way to expose tools to agents
PTUProvisioned throughput unit, the unit in which Azure reserves model capacity
RPARobotic process automation

Trade-finance and Islamic-finance terms

TermMeaning
Bill of ladingThe carrier's receipt for goods shipped, which can also transfer the right to the goods
Certificate of originA document stating where the goods were produced
DiscrepancyA point where the documents don't comply with the terms of the credit
HoldA block in core banking that stops funds moving until Compliance releases it
IjaraAn Islamic lease, in which the bank owns the asset and rents it to the customer
Letter of credit (documentary credit)A bank's undertaking to pay the seller when the seller presents documents that comply with the credit's terms
MurabahaAn Islamic cost-plus sale: the bank buys the goods and sells them to the customer at a disclosed mark-up, and must own them before it sells them
PresentationThe set of documents a seller presents under one letter of credit
Sharia boardThe scholars who rule on whether the bank's structures comply with Islamic law
Suspicious transaction reportThe report a bank files with the authorities when it suspects money laundering; only the money-laundering reporting officer decides to file it
Tipping offTelling a customer, directly or indirectly, that they are under suspicion, which AML law forbids

Evaluation terms

TermMeaning
Golden setA fixed set of evaluation cases with examiner-confirmed outcomes
PrecisionThe share of the agent's findings that are real discrepancies
RecallThe share of real discrepancies that the agent finds
Shadow modeAgents run beside the examiners and record what they would have done, with no effect on live files
Wilson intervalA confidence interval for a proportion that stays reliable on small samples
 
Published Nov 30, 2026
Version 1.0
No CommentsBe the first to comment