Key takeaways
- Databricks and Microsoft describe the medallion architecture as a pattern for organising data in a pipeline; the same bronze, silver and gold split can be applied to entire sources an AI agent draws on.
- A bronze source (email, note, folder of file versions) is only a signal for the agent to check, a silver source lets it answer while citing the version, and it acts only on gold data.
- When an email gives a different bank account from the golden record, the agent does not decide: it hands the discrepancy to a person, in UiPath as an Action Center escalation with a fixed recipient.
- UiPath documents scoping a Context Grounding index by folder path and file type, so the silver boundary is drawn by the folder structure prepared before the agent is built.
- A source moves up a layer through work on the data (an owner, versioning, matching, steward approval), not through a better prompt - hence the order: data first, AI second.
An AI agent in the accounts payable team is preparing a payment for a supplier invoice and finds the supplier’s bank account in three places. The first is an email from the supplier’s usual address saying the company has switched banks. The second is the “Suppliers - bank accounts” spreadsheet maintained by the chief accountant, last updated in March. The third is the supplier’s golden record in SNOK MDM, approved by a data steward. All three look credible. Only one of them should decide where the money goes.
A request to pay into a “new account” is the textbook business email compromise (BEC) scenario. The FBI’s Internet Crime Complaint Center recorded 21,442 BEC complaints in 2024, with losses of USD 2.77 billion. An agent that treats every source as equally reliable could make that payment faster than any clerk. In Poland there is a tax exposure on top: for a transaction above PLN 15,000 paid into an account missing from the VAT white list, the buyer can become jointly liable for the supplier’s VAT. Each of the agent’s sources therefore needs a layer and a set of permissions before anyone chooses a model or writes a prompt.
The medallion architecture in a data pipeline
Anyone who has built a lakehouse or a modern data warehouse knows the bronze, silver and gold split. Databricks describes the medallion architecture as a design pattern for organising data logically. Bronze holds raw, unvalidated data; silver holds validated, cleaned and enriched versions; gold holds highly refined views that feed analytics, dashboards, machine learning and applications. Microsoft recommends the same pattern for Fabric, and its example of silver-layer work is matching customer records across systems.
Both descriptions follow a single record through a pipeline. An AI agent behaves differently: it does not read tables in sequence but reaches for whole sources - a mailbox, a document folder, a spreadsheet, a transactional system. That is why the layer belongs to the source itself.
Layers for entire agent sources
A source’s layer defines what an AI agent may do with data from that source: flag a signal for checking, answer while citing the version, or carry out an operation.

Bronze - mailboxes, chat, notes, folders full of file versions. Nobody is accountable for their accuracy, and the same fact often appears in several versions. For an agent, such a source is a signal and nothing more: it can spot that a supplier is announcing a change of bank account and open a task for someone to verify it. It cannot use the source as the basis for an answer or an action.
Silver - departmental spreadsheets, documents with metadata, procedures from a controlled register. Each has an owner, a date and a status. The agent may answer questions from silver sources, always naming the source and version, but it does not change data or move money on their strength.
Gold - the SNOK MDM golden record, approved business rules, the transactional system. The data has a steward, has passed validation and approval, and every change is recorded in its history. This is the only layer the agent takes operational data from, such as the account for a payment. It never overwrites a golden record without human approval.
Laid out this way, the three layers move the question on from whether the agent can access the mailbox to what it may do with its contents.
Conflicting sources are resolved by a person
The most important rule covers sources that disagree. When an email gives a different account from the gold record, the agent does not pick one, even if the email is more recent and came from the supplier’s genuine address - the Polish government’s guidance warns that once a mailbox is compromised, a BEC message can come from exactly such an address. It passes the discrepancy to a person. Polish government guidance on BEC makes the same point for businesses: verify any request to change a bank account through a different channel from the message that carried it.

In UiPath, this escalation runs on Action apps in Action Center. According to the documentation, if the model picks the escalation recipient and no valid recipient can be determined, the task is created unassigned. Guaranteed routing requires a fixed recipient - in this case, the supplier data steward - or an input binding. If the discrepancy turns out to be a genuine change of account, the steward updates the golden record through the SNOK MDM approval workflow, and the agent uses the new version only once it has been approved. UiPath can also store an escalation’s resolution and apply it automatically to a comparable case; for bank account changes that feature is best switched off, because every such change has to go through a person.
For payments in Poland the gold record alone is not enough; one more step is needed. Article 117ba of the Polish Tax Ordinance makes the buyer jointly liable for the supplier’s tax arrears, limited to the VAT attributable to that supply, if an invoice is paid into an account that, on the day the transfer is ordered, is not on the VAT taxpayer register kept by the Head of the National Revenue Administration (the so-called VAT white list). The rule applies to business-to-business transactions with a one-off value above PLN 15,000, however many instalments they are paid in (Article 19 of the Entrepreneurs’ Law). There are exemptions, including notifying the head of the tax office within 7 days of ordering the first transfer to such an account, or paying through the split payment mechanism. Checking the gold-record account against the white list should therefore be a fixed step before every transfer. A private members’ bill (Sejm print no. 2806) would raise the Article 19 threshold to PLN 25,000; after its first reading on 19 November 2026 it was referred to committee and has not been passed. This is a description of the law, not tax advice; how it applies to your process is worth confirming with a tax adviser.
How a source moves from bronze to gold
A source reaches a higher layer through work on the data, not through a better prompt.
Moving from bronze to silver takes three steps: the source gets an owner, the documents get metadata (status, version, effective date), and duplicates and superseded versions are removed from the scope the agent reads.
Moving from silver to gold is master data management proper: record matching, survivorship rules, approval by a data steward and a change history. We covered this stage in detail in our piece on how a golden record is built in MDM. For suppliers, the starting point is usually a clean vendor master, which we discussed in “One supplier, five names”.

The layers in UiPath and SNOK MDM
Back to the bank account from the opening. In the gold layer the agent reads the supplier record from SNOK MDM with a tool rather than by searching documents. UiPath documents API workflows, Integration Service connector activities and published processes as agent tools; which one fits depends on how the golden record is exposed in a given organisation.
Silver-layer documents, such as current procedures and policies, are served by a Context Grounding index scoped by folder. Context Grounding indexes give agents access to permissioned knowledge. The documentation describes scoping an index by folder path (including subfolders when /** is appended) and by file type; it does not describe filtering by document status. The silver boundary therefore has to be built into the folder structure: current documents in one place, the archive outside it. We apply the same principle when designing RAG-based AI assistants. Citations are enabled in the agent for DeepRAG queries, and DeepRAG supports PDF files only. Tabular data such as the bank account spreadsheet can be read directly from the system, for example as a Data Fabric entity attached as context, but under the silver rule only to answer questions while citing the version.
The email itself stays outside the agent’s index, in the bronze layer. A separate process handles the mailbox: it spots the request to change bank details and raises a task. The agent preparing payments never reads that mailbox.
The task goes to Action Center, to a fixed recipient: the supplier data steward. In a process with several human steps, that role falls to a decision gate in UiPath Maestro, which we described in our article on HITL gates and the AI Trust Layer.
SNOK MDM covers the data side of the gold layer: validation, de-duplication with a rationale for the data steward, an approval workflow, change history and synchronisation back to source systems. In an international environment spanning eighteen countries and nine source systems, the platform handles around 100,000 master data events a year.
The test: 20 cases, two access models
Aleksandra designed the test alongside the concept for this article, and we ran it on 2 December 2026. The set comprised 20 synthetic supplier invoices: 10 consistent ones, 5 with an email about a changed bank account sent from the supplier’s address, and 5 where the spreadsheet showed a different number from the gold record. The agent was Qwen3.6-35B-A3B with reasoning enabled, running locally on a MacBook Pro with an M4 Max chip, so no data left the machine. In variant A the agent received all three sources with no description. In variant B the same sources carried a layer label and the rules from this article, written into the agent’s instructions.
In none of the 40 responses did the agent prepare a payment to an account other than the one in the gold record. All 5 bank-change emails were escalated in both variants, so the reasoning model recognised the BEC pattern without the layers too. The difference showed up with the spreadsheet: variant B escalated 5 of 5 discrepancies, variant A 4 of 5, and in the fifth case returned a malformed response. In every one of its 10 escalations, variant B named the layer of the source that caused the discrepancy - the first thing a data steward needs when verifying the case in Action Center. For the consistent invoices, both variants prepared 9 of 10 payments to the gold-record account and produced one malformed response each.

A capable model catches an obvious fraud attempt, but a rule written into instructions remains an instruction, and malformed responses occurred in both variants. In production, the layers are therefore enforced by architecture: the agent preparing payments has no mailbox in its index and reads operational data only through a tool connected to the gold system. Payment safety then no longer depends on whether the model spots the trick on a given run.
A checklist before you build the agent
Before choosing a model or writing a prompt, answer six questions first:
- Which sources will the agent use, and which layer does each belong to?
- Who owns each silver source, and where is a document’s status recorded?
- Does the folder structure separate current documents from the archive before the Context Grounding index is built?
- Which system does the agent take operational data from, and through which tool?
- Who receives the task when sources disagree, and is that a fixed recipient?
- How does a change reach the golden record, and who approves it?
The answers shape the agent’s architecture more than the choice of model does. If you are planning an agent that will work on supplier, customer or material data, we would be glad to discuss how to organise its sources and golden record before it is built - get in touch or see how we build agents in UiPath.
Frequently asked questions
What is the medallion architecture?
It is a pattern for organising data in three layers, described in Databricks and Microsoft documentation: bronze holds raw data, silver validated and cleaned data, and gold refined views ready for analytics and business use.
Can an AI agent change a supplier’s bank account on its own?
Not in the model described here. The agent detects the discrepancy and raises a task for a person in Action Center, and any change to the golden record goes through the data steward’s approval workflow in SNOK MDM.
How do you limit the documents a UiPath agent reads?
A Context Grounding index is scoped by folder path and file type, so current documents have to be separated from the archive in the folder structure before the index is built.
Sources
- Databricks: What is the medallion lakehouse architecture? - accessed 02.12.2026
- Microsoft Learn: Medallion lakehouse architecture in Microsoft Fabric - accessed 02.12.2026
- FBI IC3: Internet Crime Report 2024 - accessed 02.12.2026
- gov.pl: Oszustwa typu BEC (Polish government guidance on BEC) - accessed 02.12.2026
- Polish Tax Ordinance, consolidated text, Journal of Laws 2026 item 622 - accessed 02.12.2026
- Polish Entrepreneurs’ Law, consolidated text, Journal of Laws 2025 item 1480 - accessed 02.12.2026
- Sejm: legislative process, print no. 2806 - accessed 02.12.2026
- UiPath: Agent contexts (Context Grounding) - accessed 02.12.2026
- UiPath: Working with Context Grounding - accessed 02.12.2026
- UiPath: Agent escalations - accessed 02.12.2026
- UiPath: API workflows as agent tools - accessed 02.12.2026
- UiPath: Building effective agent tools - accessed 02.12.2026
- UiPath: Integration Service activities as tools - accessed 02.12.2026
