AI
Same approval. Different recipient.
An employee checks the recipient and quotation, clicks “Approve” and moves on. The system records the approval. Before the document is sent, the email address on the contact record changes. The contact ID stays the same. Does the earlier approval still authorise sending the document?
- Author
- CreateIT
- Published
- Reading time
- 17 min
Listen to the articlesynthesised voice, 26:01
For this article, we built a small program that simulates sending a quotation and tested 13 predefined scenarios. It used fictional customer data, sent no emails and made no payments. The experiment did not call a language model. We tested the part of a system that decides whether a prepared action may proceed after a person has approved it.
One result exposes an important distinction. The values passed to a program, known as arguments, can remain identical while the recipient they refer to has changed. Asking “Is this the same request?” does not always answer the business question “Will the system do what the person approved?”
If your company is introducing an AI agent that works with customer records, orders and documents, this distinction needs testing before the automation goes live. A better-looking approval screen cannot resolve it on its own.
The same contact ID does not guarantee the same recipient
In the demonstration, the system receives an instruction to send a particular quotation to a selected contact. That contact has a stable identifier. Their email address is stored in a simulated customer record. We deliberately change the address between approval and execution.
The request still contains the same contact ID, quotation ID and other arguments. But when the program prepares to send the quotation, it reads the contact record again and retrieves the new address. An approval tied only to the original arguments can miss that change.
No AI invented a different recipient. We changed the synthetic record ourselves. That makes the test useful because it separates a model's decision from the ordinary application logic that reads and uses business data.
In a real workflow, a colleague might edit the record, an import might update it, or another system might supply a new address. The change may be entirely legitimate. The question concerns the earlier permission. Did the person authorise sending the document to a specific address, or to whichever address happens to be on that record later? Your business rules and your software need to give the same answer.
What we built and tested
We implemented three deliberately different versions of one workflow. Each uses the same fictional data and starts each scenario from the same initial state. This is a small experiment in application logic. It does not compare commercial products or measure how carefully employees review requests.
- Variant A records only that approval was given. If an approval flag is present, it proceeds using the data available at execution time.
- Variant B compares the tool call arguments. It checks whether the information passed to the program matches what was approved, including the specified contact and amount. It does not compare all the information the program later retrieves through those references.
- Variant C also checks the action that would actually take place. It binds permission to the recipient's email address and the attachment contents. It checks relevant record state, the approver's authority and the approval's validity. Separate logic handles retries.
We deliberately omitted some controls from A and B so that we could compare how the three approaches respond to the same scenarios. Neither represents a particular vendor's product. C is also a demonstration, not a security system ready to copy into a company's production environment.
We described the scenarios and expected behaviour before running the tests. In each run, we recorded the actions accepted by a simulated sending service. This local component writes to a log instead of contacting an email server. Its log lets us observe an accepted action even when we simulate a lost response to the program that made the request.
Two scenarios check that permitted work can still proceed. In one, nothing has changed. In the other, the revised action receives a fresh approval. A system that always refuses to act would fail these tests.
The procedure, code, initial data and results are available in the experiment protocol and recorded results. You can also download the reproducible experiment. It uses only the Python standard library.
What the 13 scenarios showed
We ran every scenario against all three variants. In the table, “accepted” means an entry in the local simulator's log. It does not mean an email was delivered. We distinguish actions accepted twice from cases where the calling program never established the outcome.
| Test case | A, Approval flag | B, Tool arguments | C, Resolved action and conditions |
|---|---|---|---|
| 01The approved action is unchanged | 1Acceptance confirmed | 1Acceptance confirmed | 1Acceptance confirmed |
| 02No approval has been given | 0Stopped without approval | 0Stopped without approval | 0Stopped without approval |
| 03A different contact is specified | 1Acceptance confirmed. The data differs from what was reviewed. | 0Stopped because arguments changed | 0Stopped because arguments changed |
| 04The attachment content changes | 1Acceptance confirmed. The data differs from what was reviewed. | 1Acceptance confirmed. The data differs from what was reviewed. | 0Stopped because resolved data changed |
| 05The quotation amount changes | 1Acceptance confirmed. The data differs from what was reviewed. | 0Stopped because arguments changed | 0Stopped because arguments changed |
| 06The quotation can no longer be sent | 1Acceptance confirmed. The required conditions were not met at execution time. | 1Acceptance confirmed. The required conditions were not met at execution time. | 0Stopped because the record changed |
| 07The approver’s authority is revoked | 1Acceptance confirmed. The required conditions were not met at execution time. | 1Acceptance confirmed. The required conditions were not met at execution time. | 0Stopped because authority was revoked |
| 08The approval has expired | 1Acceptance confirmed. The required conditions were not met at execution time. | 1Acceptance confirmed. The required conditions were not met at execution time. | 0Stopped because approval expired |
| 09An accepted action is requested again | 2Acceptance confirmed. The action was accepted twice. | 2Acceptance confirmed. The action was accepted twice. | 1Previous result returned |
| 10Response lost, duplicate requests can be recognised | 2Acceptance confirmed. The action was accepted twice. The program does not know the outcome of the first attempt. | 2Acceptance confirmed. The action was accepted twice. The program does not know the outcome of the first attempt. | 1Result of the accepted action recovered |
| 11Response lost, duplicate requests cannot be recognised | 2Acceptance confirmed. The action was accepted twice. The program does not know the outcome of the first attempt. | 2Acceptance confirmed. The action was accepted twice. The program does not know the outcome of the first attempt. | 1Outcome unresolved. Human review is required. |
| 12Changes are reviewed and approved again | 1Acceptance confirmed | 1Acceptance confirmed | 1Acceptance confirmed |
| 13Email changed in the same contact record | 1Acceptance confirmed. The data differs from what was reviewed. | 1Acceptance confirmed. The data differs from what was reviewed. | 0Stopped because resolved data changed |
The counts show how many actions the simulator accepted. They do not confirm message delivery. In case 11, C submitted one action, which the simulator accepted. The program did not receive the response and recorded an unknown outcome. A person must still establish what happened. This table does not measure how safe a system is.
These results do not estimate how often businesses experience such failures. We selected the scenarios to examine the capabilities and limits of three defined approaches. They cannot tell us what percentage of AI systems are secure or how often a particular company will encounter this problem.
The most revealing comparison is between B and C. Exact argument comparison stopped actions when the arguments themselves changed. It did not stop an action when the same contact ID resolved to a different email address, or when the same file reference pointed to different contents. Those scenarios required additional checks.
A filename and a checksum are not enough
The attachment test shows a similar distinction. In this scenario, a reviewer sees one document. After approval, we replace its contents while keeping the same file reference. The tool call has not changed, but the document is no longer the one presented for review.
B compares the reference and allows the action. C also compares a checksum of the actual contents and stops it. A checksum is a value calculated from a file's contents that can be used to detect a change.
What the calculation covers matters. If it covers only a request containing a filename, it has not checked the file itself. Including the actual contents makes this particular substitution detectable. You need to know exactly what is being compared.
Even a correctly calculated checksum does not establish who gave permission or whether that person had the authority to do so. If the program being controlled can freely rewrite its own approval record, the comparison cannot be trusted. Approval and the approved data need to be stored and checked somewhere the action's initiator cannot arbitrarily alter.
Our demonstration assumes that the component proposing an action cannot arbitrarily modify the approval record. That record is held in the experiment's process memory. We did not test protection against a compromised server, a stolen employee account or forged approval. Those threats require separate testing.
No response does not mean nothing happened
The system submits a request, waits and displays an error. The user clicks again, or the program retries automatically.
We created two versions of this scenario. In both, the simulator accepts the action before the calling program loses the response. This tests whether the program incorrectly treats “I received no answer” as equivalent to “Nothing was done”.
In the first version, a unique operation key identifies one intended action and its retries. It is not a password or secret credential. C retries using the same key and receives the original result without a second acceptance record. This is idempotent processing. Repeating the request leaves the intended system state the same as making it once.
In the second version, the simulator cannot recognise repeated requests. C records an unknown outcome and does not automatically submit the action again. As observers, we can see one accepted action in the simulator's log. The calling program cannot. It must not claim either definite success or definite failure.
Someone must establish what the service did before retrying. Otherwise, an uncertain outcome can become two orders, two messages or two records.
The AWS Builders' Library article on safe retries discusses lost responses, operation identifiers and changed request parameters. With a real service, inspect the API's guarantees and how long it retains operation keys. Our local simulator does not verify those guarantees in an external system.
Approval can become invalid without a document changing
Not every relevant change is visible in the text being sent. An order might be cancelled after approval. An employee's permissions might change. Permission might expire at a specified time. An earlier approval flag does not establish whether the action is still allowed now.
We tested these conditions in separate scenarios. C stopped execution when the relevant record state changed, the approver no longer had the required authority, or the approval expired. A and B did not perform those checks.
A real project needs explicit rules for changes that invalidate permission. Editing a comma in a customer's notes need not restart the entire workflow. But the program should not have to guess whether a different recipient, attachment or order status matters. That relationship belongs in the business rules.
When we gave the revised action a fresh approval, all three variants accepted it. The requirement is to keep permission tied to the action that will actually take place, while allowing legitimate changes to receive a new approval.
A smarter AI model cannot solve this on its own
An AI agent may draft a message, find a quotation and propose the next action. A tool or another program then performs it. That program reads databases, contacts external services and handles errors. This stage needs precise rules that hold regardless of how convincingly a model explains its choice.
The model may select the correct contact while the program later reads a different address from that contact's record. It may prepare one appropriate action while a retry creates two records. We could demonstrate these risks without calling a language model because the failure occurs during execution.
An AI system can wait for human approval by pausing its workflow. You need to know what happens when it resumes. LangGraph's documentation, for example, explains that the interrupted node, a unit of program logic, restarts from the beginning. Any action inside it that creates a record or sends something needs protection against unintended repetition.
The LangGraph documentation on interrupts describes this behaviour and its implications for repeated execution. This explains how a particular tool works; it is not a finding that the tool is inherently unsafe.
The problem predates AI
Security guidance has long distinguished the moment an action is checked from the moment it is performed. If relevant data changes in between, the earlier check may no longer apply. OWASP recommends binding authorisation to meaningful transaction data and checking authorisation again before execution.
These principles appear in the OWASP Transaction Authorization Cheat Sheet. It provides implementation guidance, not statistics about failures in businesses.
The arXiv preprint Approval Laundering, submitted on 30 September 2026, examines differences between approved and executed actions in coding-agent environments. Another preprint, Approve What, Exactly?, submitted on 15 October 2026, addresses binding permission to the intended action and presenting it faithfully to the approver.
Those papers do not justify generalising their results to every business or drawing conclusions about how often employees make mistakes. They show that this question is also being studied in AI systems. Our contribution is a separate, reproducible business-workflow demonstration, with source code and the result of each scenario.
Tool developers are also introducing specific checks. Microsoft Agent Framework's documentation describes requesting fresh approval or stopping execution when tool arguments change after approval. That is an important check before a tool call. The business application must still account for any data it later retrieves through the supplied identifiers.
The Microsoft Agent Framework documentation on tool approval describes that behaviour. Our A, B and C variants do not assess the implementation or security of that framework.
What to check in a real project
The approval screen should show what will happen. A person authorising a document to be sent needs to see the recipient, document and scope of the action clearly. “Process customer” is too vague if it can lead to different outcomes. It must also be clear whether permission covers one action or a defined group of actions.
The program needs to retain the approved action's data and compare it with the data it will use at execution time. Where it follows references to mutable records, define which values are fixed by approval and which must be checked again. Locking every record while waiting for approval can obstruct normal work. The solution needs to fit the workflow.
Data can also change between the final check and the action itself. Our experiment runs in a single process and does not test concurrent employees or multiple servers. A real system needs to preserve the connection between approval and execution across that gap too. Database transactions, conditional version checks and a carefully designed task queue may form part of the solution. The choice depends on the architecture.
Service failures also need a plan. Preventing accidental repetition requires an identifier for one intended operation, not merely a comparison of identical payloads. A customer may intentionally place two identical orders. A retry after a lost response should not accidentally create a second one.
The execution log should connect the person's decision, the approved version, the execution attempt and its result. If the outcome is unknown, the system should say so. Logs need sufficient evidence for investigation and appropriate access controls. They should not unnecessarily duplicate entire documents or store passwords and access keys.
Ask your developer to demonstrate one concrete scenario. What happens if the email address on a contact record changes after approval? Have them show it in an isolated test environment with fictional data. Repeat the exercise with a substituted attachment, a cancelled order and a lost service response.
What our results do not establish
Thirteen deliberately chosen scenarios are a small set. They do not cover every possible change, attack or programming error. We did not test people's ability to spot incorrect approvals. There was no language model, real CRM, email service or distributed infrastructure in the experiment.
Application state and the acceptance log are held in memory. The tests do not establish durability after a server crash, resilience to concurrent requests or guaranteed exactly-once delivery by an external service. Nor do they establish that approved content is accurate, useful or in the company's interests.
A person can approve the wrong quotation. Binding execution precisely to that approval helps prevent an unnoticed substitution; it does not make the original decision correct. Content quality, employee permissions, the approval interface and technical execution are related areas that still need separate evaluation.
C is not a universal solution. It combines several controls, so this experiment does not isolate each control's contribution to the result. What it provides is a comparison of three predefined approaches under the same scenarios, and a basis for asking more precise questions about your own project.
An AI project starts with clear business rules
At CreateIT, we use AI in business systems where it makes working with documents and free-form text easier. We implement business rules, access rights and critical calculations as precise application logic. This experiment illustrates why that division matters in approval workflows too.
If you want to automate quotations, customer enquiries or document handling, start with one action. We can define who may propose it, what the person approves, how the system checks execution and what happens if something fails. We define the scope after reviewing your existing systems and the process you want to improve.
Read more about our approach to business systems development. For an initial conversation, a description of the process is enough. Leave out customer data and access credentials.