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.
| Who | What they need | What agents change |
|---|---|---|
| Head of Wholesale Banking, the sponsor | Could 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 Officer | Which 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 board | Does 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 Committee | Can 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 Officer | What does one correctly examined presentation cost? | Platform, model capacity and staff time per presentation, not per agent run |
| Document examiner | Less routine reading, more time for judgement | An 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 rule | Source | Design excluded in this scenario |
|---|---|---|
| An examiner decides whether documents comply, and the bank sends one refusal within five banking days | ICC (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 standards | UAE 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 report | UAE 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 once | Central 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 reads | Law for stored data [5]; the PDPL (Personal Data Protection Law) for personal data outside banking law [16]; bank policy for inference | Global and Data Zone model deployments |
| A sealed trail of every proposal, decision, time and evidence version, kept for at least five years | Law for retention [3]; policy for the hash chain | Logs 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.
| Agent | Level | It may | It can never | Who decides |
|---|---|---|---|---|
| Document Extraction | L4 per document type and language once its thresholds are met; L2 otherwise | Read its own presentation's documents; write fields with a confidence score and page position | Read another presentation, call bank systems, see screening or approvals | The examiner reviews any field under the confidence threshold |
| UCP 600 Examination | L2 | Read the credit and extracted fields; search the licensed rulebook; run the citation check | Read screening, vessel or price data; send messages; approve | The examiner |
| Sharia Structuring | L2 | Read contracts and transaction events; search AAOIFI and Higher Sharia Authority texts; run the sequence check | Approve a structure; change fee rules or templates | The Sharia board |
| Sanctions and Goods Screening | L3 | Submit parties, vessels and goods to the screening engine, with dual-use items flagged; place a hold; raise an AML alert | Release a hold; read alert outcomes or suspicious transaction reports; contact the customer | Compliance and the reporting officer |
| Release and Settlement | L3 | Read the approved case; get fees from the fee service; submit to the payment API | Hold SWIFT (interbank payment messaging) credentials; submit without valid approvals; change approved amounts | The 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.
| Component | Service | Reason | Alternative not chosen here |
|---|---|---|---|
| Case workflow | Durable Functions on zone-redundant Premium [12] | Deterministic routing, and legal clocks that survive restarts | A supervisor agent that plans the case |
| Agents | Foundry Agent Service, standard setup | Agent state in bank-owned stores, inside the bank's network | Basic setup with Microsoft-managed storage |
| Agent identity | Microsoft Entra Agent ID, one per agent | The permission matrix becomes identities the gateway can check | One shared application identity |
| Tool door | API Management with MCP tools, per-agent allow-lists, daily quotas and a kill switch | One door, one log and one switch for every agent | Agents calling bank systems directly |
| Reading | Document Intelligence through the Foundry resource | Fields with page positions, so every finding points at the page | Reading pages with a vision model alone |
| Approvals | Approval service with a signing key in Key Vault Managed HSM | The systems that act verify the signature themselves | An "approved" flag in a database |
| Models | GPT-5.1 on one shared Regional Provisioned deployment in UAE North | Residency for inference; one 50-PTU block covers the shared load | Global Standard and Data Zone Standard |
| Evidence | Hash-chained journal and immutable storage, sealed per presentation | Each record can be verified, not only retrieved | Application 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.
| Metric | GPT-5.1 | GPT-5.1 Agentic | GPT-5.6-sol | GPT-6-sol |
|---|---|---|---|---|
| Extraction | 99.2% | 99.7% | 100% | 100% |
| Examination recall | 95.1% | 84.6% (100% detected) | 97.5% | 98.8% |
| Examination precision | 72.0% | 81.5% | 72.5% | 73.4% |
| Safety pass rate | 93.9% | 100% (8 of 8 checks) | 93.8% | 100% |
| Tipping-off leaks | 1 | 0 | 0 | 0 |
| Examination p95 | 76.5 s | 137 s (whole step) | 20.6 s | 9.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.
| Agent | Metric | Proposed threshold |
|---|---|---|
| Extraction | Accuracy of fields accepted without review | At least 99.5% as a 95% Wilson lower bound, per document type and language, before L4 is enabled |
| UCP 600 Examination | Recall of known discrepancies | At least the examiners' baseline on the same set |
| UCP 600 Examination | Precision of findings | At least 80%, so the exception queue stays useful |
| UCP 600 Examination | Citation validity | 100%, enforced in code |
| Sharia Structuring | Sequence-check accuracy | 100% |
| Sanctions and Goods Screening | Replay of past decisions | 100% identical |
| All agents | High-severity attacks that succeed in the red-team suite | None, on every change |
| All agents | Agent preparation per presentation | 30 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.
| Threat | How it could happen here | What stops it |
|---|---|---|
| Instructions hidden in a document | An invoice tells the examination agent to report no discrepancies | Prompt 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 approval | An insider or a compromised agent tries to trigger a payment | Tokens 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 off | A drafted refusal mentions an alert | Agents 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 UAE | A Global deployment or spillover processes data abroad | An allow-list of regional deployment types and no spillover (see the residency section below) |
| Leakage between transactions | Context from one customer's credit appears in another's | One conversation per step and agent; no shared agent memory; no customer documents in vector indexes |
| Malicious files | An upload carries malware | Malware scanning on upload, in region, before any parsing |
| Version swap after the fact | A prompt or threshold is changed and a decision is claimed to have used it | A 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.
| Component | 150,000 documents a year | 300,000 documents a year |
|---|---|---|
| GPT-5.1, one shared reserved deployment: 50 PTUs, 100 at double volume | 14,350 | 28,700 |
| Key Vault Managed HSM, primary and replica | 4,672 | 4,672 |
| API Management and application gateway | 4,574 | 4,574 |
| Document Intelligence | 2,250 | 4,500 |
| Hosting, databases, storage, logs | 3,187 | 3,895 |
| Indicative subtotal | 29,033 | 46,341 |
| Per document | 2.32 | 1.85 |
| Per presentation (9 documents on average) | 20.90 | 16.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 applies | What the agents prepare | What code decides | Who signs |
|---|---|---|---|
| Insurance claims | The claim file from forms, invoices and photos | Policy limits and exclusions | The claims handler or adjuster |
| Customs brokerage | The declaration from invoices and certificates | Tariff classification and duty | The licensed customs broker |
| Client onboarding and KYC (know your customer) | The client profile and source-of-wealth narrative | Sanctions and politically exposed matching | The compliance officer |
| Supply-chain finance and factoring | The invoice and shipment checks | Eligibility and concentration limits | The credit officer |
| Guarantees and standby credits | The demand and its supporting documents | Expiry and amount checks | The 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
- 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.
- 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.
- 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.
- 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
- Map decision rights before you draw agents. Who decides, under which clock?
- Write autonomy as a permission matrix, with one identity per agent, tools scoped at the gateway and an "it can never" column.
- Give time to a deterministic workflow. Legal deadlines belong in durable timers, not a context window.
- Bind every approval to the evidence it saw, and let the system that acts verify it.
- Enforce residency with allow-lists, and query the catalogue in each subscription.
- Budget for the controls your region lacks. They're components, with owners and tests.
- 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.
Legal notice
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.
- ICC, Uniform Customs and Practice for Documentary Credits (UCP 600), Arts 5, 14 and 16; International Standard Banking Practice (ISBP 821, 2023).
- 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.
- 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).
- CBUAE, Model Management Standards: https://rulebook.centralbank.ae/en/entiresection/4893; CBUAE AI Guidance Note (11 February 2026).
- CBUAE, Outsourcing Regulation for Banks, Art 6: https://rulebook.centralbank.ae/en/rulebook/outsourcing-regulation-banks
- WAM news agency, CBUAE enforcement announcement, 30 October 2026: https://www.wam.ae/en/article/c3051du-cbuae-imposes-financial-penalty-aed200000000
- Microsoft Learn, Deployment types for Microsoft Foundry Models: https://learn.microsoft.com/azure/foundry/foundry-models/concepts/deployment-types
- Microsoft Learn, Provisioned throughput sizing: https://learn.microsoft.com/azure/foundry/openai/how-to/provisioned-throughput-sizing
- Microsoft Learn, Model deprecations and retirements: https://learn.microsoft.com/azure/foundry/openai/concepts/model-retirements
- Microsoft Learn, Foundry Local on Azure Local: https://learn.microsoft.com/azure/azure-sovereign-clouds/private/foundry-local/concept-models
- Microsoft Learn, Prompt Shields in Azure AI Content Safety: https://learn.microsoft.com/azure/ai-services/content-safety/concepts/jailbreak-detection
- Microsoft Learn, Durable Functions overview: https://learn.microsoft.com/azure/azure-functions/durable/durable-functions-overview
- Microsoft Learn, Azure AI Content Safety region availability: https://learn.microsoft.com/azure/ai-services/content-safety/region-availability
- Microsoft Learn, Defender for Cloud regional availability: https://learn.microsoft.com/azure/defender-for-cloud/regional-availability
- Microsoft Learn, AI agent orchestration patterns, Azure Architecture Center: https://learn.microsoft.com/azure/architecture/ai-ml/guide/ai-agent-design-patterns
- UAE Federal Decree-Law No. 45 of 2021 on the Protection of Personal Data (PDPL), Arts 2, 18 and 22.
- 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
| Acronym | Meaning |
|---|---|
| AAOIFI | Accounting and Auditing Organization for Islamic Financial Institutions, which publishes the Sharia standards for Islamic finance |
| AED | UAE dirham, the currency of the United Arab Emirates |
| AML | Anti-money laundering |
| CBUAE | Central Bank of the UAE, the bank's regulator |
| CFO | Chief Financial Officer |
| FATF | Financial Action Task Force, the international body that sets anti-money-laundering standards |
| HS | Harmonized System, the international code for classifying traded goods |
| ICC | International Chamber of Commerce, which publishes UCP 600 and ISBP |
| IMO number | The International Maritime Organization's unique identifier for a ship |
| ISBP | International Standard Banking Practice (ISBP 821), the ICC's guide to examining documents under UCP 600 |
| KYC | Know your customer: the checks a bank runs on a client's identity, ownership and activity |
| PDPL | UAE Personal Data Protection Law (Federal Decree-Law No. 45 of 2021) |
| SWIFT | Society for Worldwide Interbank Financial Telecommunication, the network banks use to send payment messages |
| UAE | United Arab Emirates |
| UCP 600 | Uniform Customs and Practice for Documentary Credits, the ICC rules that most letters of credit incorporate |
| USD | US dollar |
Technical acronyms
| Acronym | Meaning |
|---|---|
| AI | Artificial intelligence |
| AKS | Azure Kubernetes Service |
| API | Application programming interface |
| EICAR | A harmless test string that every antivirus engine detects as malware, used to test scanning |
| GPT | Generative pre-trained transformer, the family of OpenAI models that includes GPT-5.1 |
| GPU | Graphics processing unit, the hardware that runs models locally |
| HSM | Hardware security module, a device that holds signing keys so that software can use them but never read them |
| HTTP 429 | The "too many requests" response a service returns when a caller exceeds its capacity |
| ID | Identity, as in Microsoft Entra Agent ID |
| L2, L3, L4 | Autonomy levels: L2 recommends, L3 acts within limits, L4 acts on its own within automated checks |
| LLM | Large language model |
| MCP | Model Context Protocol, a standard way to expose tools to agents |
| PTU | Provisioned throughput unit, the unit in which Azure reserves model capacity |
| RPA | Robotic process automation |
Trade-finance and Islamic-finance terms
| Term | Meaning |
|---|---|
| Bill of lading | The carrier's receipt for goods shipped, which can also transfer the right to the goods |
| Certificate of origin | A document stating where the goods were produced |
| Discrepancy | A point where the documents don't comply with the terms of the credit |
| Hold | A block in core banking that stops funds moving until Compliance releases it |
| Ijara | An 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 |
| Murabaha | An 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 |
| Presentation | The set of documents a seller presents under one letter of credit |
| Sharia board | The scholars who rule on whether the bank's structures comply with Islamic law |
| Suspicious transaction report | The report a bank files with the authorities when it suspects money laundering; only the money-laundering reporting officer decides to file it |
| Tipping off | Telling a customer, directly or indirectly, that they are under suspicion, which AML law forbids |
Evaluation terms
| Term | Meaning |
|---|---|
| Golden set | A fixed set of evaluation cases with examiner-confirmed outcomes |
| Precision | The share of the agent's findings that are real discrepancies |
| Recall | The share of real discrepancies that the agent finds |
| Shadow mode | Agents run beside the examiners and record what they would have done, with no effect on live files |
| Wilson interval | A confidence interval for a proportion that stays reliable on small samples |
Published Nov 30, 2026
Version 1.0Baptiste Ohanes
Microsoft
Joined October 04, 2018
Azure Architecture Blog
Follow this blog board to get notified when there's new activity