Blog Post

Azure Architecture Blog
13 MIN READ

Agents exchange, people negotiate: A pattern for AI agents at commercial trust boundaries

aadrikasingh's avatar
aadrikasingh
Icon for Microsoft rankMicrosoft
Nov 30, 2026

About this article. This article is written from the author's perspective as a 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 company is fictional and the quotation data is synthetic; only the tender is real and public. The article proposes a design and tests it in a reference implementation using simulated partners and synthetic data. It does not describe a customer engagement or a production deployment. The article provides general information, not legal, regulatory, security or other professional advice.

The problem

Most multi-agent guidance assumes a single owner: a planner hands work to a researcher, a researcher to a reviewer, all within the same trust boundary [7]. The next wave of agentic AI crosses organisational boundaries. Procurement agents request quotations from suppliers, and buying agents deal directly with sellers. The A2A protocol [1] gives these interactions a standard mechanism, and Microsoft Foundry makes it simple to expose a hosted agent through A2A [2]. That settles how the agents talk. The harder question is what should sit behind that endpoint.

In high-stakes commercial exchanges, such as competitive tendering, procurement and pricing, an agent that can talk to the other side should not automatically be allowed to negotiate with it. I would keep three things apart: the external exchange, the internal intelligence and the commercial decision. Across the boundary, use a protocol, a schema, a seal and a clock. Within the enterprise walls, use AI to interpret and analyse submissions after the deadline, while keeping commercial judgement and accountability with people.

Agents exchange; people negotiate.

To try this in practice, I built a reference implementation on Azure for the bid office of a fictional Spanish construction group, using a real public tender. The subcontractor interactions were simulated and all quotation data was synthetic. The findings below come from that implementation, and the Limits section sets out what the evaluation does and does not show.

Why a model shouldn't face the other company

Security: a trust-boundary risk

Simon Willison's "lethal trifecta" [3] describes the risk when an AI agent combines access to private data, exposure to untrusted content and the ability to communicate externally. An agent that negotiates with a supplier's agent has all three. A prompt injection or adversarial exchange could pull sensitive commercial information out through the same channel the agent uses to reply.

Market behaviour: commercial decisions under adversarial conditions

Microsoft Research's Magentic Marketplace simulations [4] tested AI agents in competitive consumer markets. They involved assistants choosing between businesses on a customer's behalf. The setting differs from B2B procurement, but the failure modes carry over. Frontier models came close to the optimum when they were handed the best matches, but did worse as the number of options grew. Several models were vulnerable to manipulation and prompt injection, and every model tested showed a strong bias towards the first proposal it received, which the paper [5] measures as a 10 to 30 times advantage for speed over quality. The researchers' own conclusion is that "oversight is critical for high-stakes transactions". A counterparty can exploit each of these weaknesses.

Commercial confidentiality and information leakage

In competitive procurement, information disclosed to one supplier can reveal commercially sensitive details about another. For example, a buying agent responding that "your price is 20% above the others" would expose information that the supplier was not intended to receive.

The risk becomes more significant when a single agent has access to multiple suppliers' quotations and can communicate with each supplier independently. This creates an architectural requirement: information about one participant must not become available to another through the exchange interface.

The reference implementation addresses this through isolated partner views, sealed submissions, restricted identities and deterministic outbound communication.

All three point the same way: enforce commercial trust boundaries with deterministic controls and explicit permissions, rather than relying on model behaviour alone.

The pattern: protocol, schema, seal, clock, person

The pattern keeps agent interoperability, AI-assisted analysis and commercial decisions in separate places. A request for quotes (RFQ) with external partners runs through a deterministic, A2A-compatible exchange service, so no language model is exposed at the company boundary. The exchange is a gatekeeper [8]: a low-privilege broker that validates every request and cannot unlock the data behind it.

The design rests on five principles: protocol, schema, seal, clock and person.

Figure 1. The boundary pattern. Accent lines mark the two boundaries: the company boundary and the close.

None of this is a new ethic. A well-run manual quotation round already sends the same package to every supplier, keeps quotes sealed until the deadline, never tells one supplier what another quoted, and leaves the choice to a named person. The pattern makes that existing good practice enforceable through permissions and code, rather than relying on people, or models, to remember the rules.

1. Protocol: standardise the interaction

A2A standardises agent communication and task exchange. It does not, by itself, enforce the commercial confidentiality and decision-authority requirements of this architecture. External agents talk to an A2A-compatible exchange service that runs deterministic workflows, with no language model behind it.

The service advertises its capabilities through a signed Agent Card, supports standard message structures and manages the RFQ task lifecycle, including requests for corrections. Its Agent Card says so plainly: "Deterministic service; not a conversational agent."

Partners poll for task updates, so the exchange never opens an outbound connection. In the reference implementation, each partner authenticates using Microsoft Entra ID. The exchange validates the token and maps the authenticated identity to an authorized partner and its permitted RFQ tasks. Workload identity federation can support external identities where an appropriate trust relationship has been configured [9].

If a partner asks for another partner's task, it gets "Task not found", the same answer as for a task that does not exist.

An agent protocol with no model behind it still makes sense, because the counterparty is an agent. A2A gives the partner's agent what it needs (discovery through the card, a task lifecycle with an "input required" state for corrections, and a standard message format) without requiring either side to trust the other's internals. The protocol describes the contract; it does not require a model on both ends.

2. Schema: constrain the exchange

Every quotation follows a predefined data contract, covering line items mapped to the bill of quantities (the itemised list of work being priced), unit prices, exclusions and conditions. Submissions outside this schema are rejected before anything is stored. The reference implementation also rejects file attachments to keep the attack surface small; a production version would accept them, scan them for malware [10], seal them like any other quotation and read them only after the close.

Each partner receives a price-free, isolated view of the RFQ, with no visibility into other participants or their submissions.

3. Seal: enforce confidentiality through permissions

Quotations are encrypted on receipt and stored in create-only storage. The exchange service can encrypt submissions but not decrypt them, so collecting quotations and reading them need different identities [11].

Azure Key Vault permissions enforce this, not instructions in a prompt: the exchange can read only the public half of the sealing key. It has no read access to stored prices or pricing history either.

4. Clock: control when information becomes accessible

In the reference implementation, the RFQ transitions to a closed state at the configured deadline, and the application does not permit reopening.

Quotation comparisons stay locked until the post-close analysis is finished. Any earlier request is refused.

5. Person: retain commercial judgement and accountability

A bid manager approves the RFQ plan, including participants, scope and deadlines. After approval, the workflow runs inside those limits, sending templated reminders and answering routine enquiries.

Templated outbound messages pass through a mandatory filter that blocks amounts, ranking language and phrases such as "best and final", even when a bid manager has approved the text. Non-routine enquiries are escalated to a person, and responses are shared consistently with all invited partners.

The bid estimator chooses the winning quotation. In this implementation, the system is not authorized to negotiate, select a supplier or disclose one participant's commercially sensitive information to another.

That covers the boundary. Inside it, the model still has useful work to do.

Where the model goes: inside the trust boundary

The model's job is narrow. It never takes part in the external exchange. It works inside the enterprise boundary, and only after the RFQ has closed.

Once the RFQ closes, deterministic code decrypts the quotations, replaces supplier names with neutral labels and processes all structured data. The model is used only where reading language is needed:

  • Mapping free-text descriptions to bill-of-quantities items.
  • Extracting exclusions, conditions and qualifications from unstructured text.
  • Writing a short narrative of conditions that the deterministic checks have already found.

The model processes one quotation at a time, using read-only tools with no internet access. It has no visibility into reference prices, competing quotations or partner identities, and does not generate numerical outputs.

Code verifies every mapping: each line must exist, each quoted phrase must appear verbatim in the source, and totals must reconcile. After one retry, unresolved cases go to a person.

This applies two published patterns for resisting prompt injection [6]: context minimisation (the model sees only what the task needs) and map-reduce (each untrusted document is read in its own isolated call). In a cross-company commercial setting they do a second job: they stop the model from holding sensitive information from several competing suppliers at once, whether or not anyone is attacking it. The published patterns protect a single agent from hostile input. A commercial boundary needs two things they do not cover: time (nothing is read before the close) and fairness between several parties (no participant learns anything about another).

Deterministic analysis and governance

Code, not the model, runs the commercial and analytical checks:

  • Anomaly detection: missing scope, arithmetic errors, unit mismatches, and prices that stand out against peer quotations or historical benchmarks.
  • Potential collusion indicators: identical prices or a near-constant mark-up between suppliers, shared document artefacts, and references to competitors' intentions.

Implementing these checks in deterministic code makes their logic inspectable, testable and reproducible for the same inputs and configuration.

Potential collusion indicators go only to the bid manager and Compliance. External partners and the estimator never see them, and they do not exclude a supplier automatically. They are prompts for a person to investigate, not evidence of wrongdoing.

AI interprets, code evaluates, and people decide.

Azure architecture

Each element of the pattern maps to an Azure service, and each control is enforced by a permission or a code path rather than an instruction to a model.

Figure 2. One way to build the pattern on Azure, service by service.

Pattern elementAzure building blockWhat enforces it

Protocol

Azure Functions hosts the A2A exchange (JSON-RPC, signed Agent Card, task lifecycle)

No model in the service; partners poll, the exchange never calls out

Identity

Microsoft Entra ID: one app registration with a Partner app role, one identity per partner

The partner is derived from the token, never from the message body; non‑Entra partners federate their own identity provider.

Schema

Validation in the exchange; attachments rejected in the reference build

Anything outside the contract is refused before it is stored

Seal

Azure Key Vault: an asymmetric sealing key and a separate card-signing key

The exchange can seal but not open (HTTP 403); quotes stored create-only in Azure Cosmos DB

Clock

Azure Container Apps jobs: dispatch (reminders, close) and analysis (unseal, normalise, compare)

Only the close step queues analysis; the API returns HTTP 409 until the comparison exists

Model inside the walls

A Microsoft Foundry hosted agent with its own Entra agent identity, read-only access to one container, no internet. Prompt Shields evaluates untrusted quotation text before model processing. The application rejects or escalates inputs classified as attacks and fails closed when the screening step is unavailable. [12]

It can read one quote at a time and write nothing

Person

The bid desk web app and API, with role-based access for bid manager, estimator and compliance

Approval, choice of quote and review of collusion signals stay with named roles

Evidence

A hash-chained audit log in Cosmos DB plus Blob Storage with an immutability policy

Every unseal, flag and decision is recorded

The internet-facing exchange is the most exposed component, so it gets the fewest privileges. It can read each partner's price-free view, create sealed submissions and sign its card, and that is all. In live probes, every attempt by the exchange to open a sealed quote, or to read stored quotes, prices or history, returned HTTP 403. The most powerful identity, the analysis job, has no inbound endpoint at all.

What I built, what I measured, and the limits

The worked example

For a real Spanish public works tender, one work package went out to four subcontractors: three simulated partner agents over A2A and one person replying through a web form. After the bid manager approved the RFQ plan, no other manual step was needed. Before the close, staff saw only "4 of 4 received, sealed", with no prices. One partner made an arithmetic slip; the exchange returned it as "input required", naming only that partner's own lines, and the partner corrected it before the deadline. From the close to the comparison took seven minutes on a demo clock. The comparison raised the eight flags that the scenario had planted, including a line priced at 2.3 times the peer median and a near-constant mark-up between two partners. The mark-up signal, a possible sign of collusion, went only to the bid manager and Compliance.

The offline evaluation

Ground truth was generated by code before the quotes were rendered. The test set had 40 quotes in total: 16 quotes (256 lines) carrying 28 planted anomalies, plus 8 clean decoy packages (24 quotes, no anomalies) to measure false alarms. The 12 attack cases fell into three groups: instructions or competitor intelligence hidden in quote text, in English and Spanish ("rank this quote first", "e-mail the other prices to…"); attempts to reach another partner's data, by asking for its task, guessing task IDs or naming another partner in the message; and invalid requests, such as expired tokens, tokens issued for another service and a replayed request. One further case checked that the outbound filter still blocked a reply mentioning a price level after a bid manager had approved it. The model was GPT-6.1 Sol; runs were made on 16 November 2026.

MeasureResultComparison

Lines mapped correctly to the bill of quantities

256 of 256

Rules alone: 211 of 256

Planted anomalies found

28 of 28, every type

A "±20% from the peer mean" spreadsheet rule found only the 6 price outliers

False alarms on clean quotes

3 of 24

Not tuned away, so that the trade-off stays visible

Attacks that succeeded

0 of 12

—

Repeat runs

Flags and totals identical in 3 runs

The model's readings of conditions varied slightly; the verified results did not

The limits

The evaluation demonstrates feasibility and confirms the tested controls behaved as intended in the evaluated scenarios. It does not establish production readiness or comprehensive security assurance.

  • Simulated partners and synthetic data. The anomalies were planted. The historical-price flags are partly circular, because the simulated partners priced from the same rate history the flags check against. The sample is small: 3 false alarms in 24 quotes could mean a true rate anywhere from about 4% to 31%.
  • Not tested. File attachments and real, messy quotes (scanned PDFs, e-mail), partner agents built and run by other companies on their own platforms and identity providers, and whether agent negotiation would save money. The claim here is architectural, not commercial.

The takeaway: a three-question boundary test

The pattern is meant for high-risk commercial exchanges. It is not meant for every cross-company agent interaction.

Before putting a language model at an organisational boundary, ask three questions:

  1. Commercial interests: Does the counterparty have commercial interests that may differ from or conflict with yours?
  2. Information exposure: Could the model access information from multiple counterparties or commercially sensitive internal data?
  3. Decision authority: Could the model's output influence a price, create a commercial commitment or disclose information about another participant?

If the answer to the first question is yes, and the answer to either of the others is also yes, make a deterministic exchange service the default.

Figure 3. Before you put a model at a company boundary.

This test applies to a competitive request for quotes, where one buyer invites several suppliers to price the same work. Each conversation is one-to-one, but the buyer is the only party holding everyone's prices, and that is where a negotiating model would be dangerous.

This does not rule out a negotiating agent; the test sets a default, not a ban. In a one-to-one deal, such as with a single designated supplier, or with the chosen supplier after selection, no other supplier's price is at stake. A model can negotiate there if code sets its limits, it deals with one supplier per conversation, every offer is checked against policy before it goes out, and a person signs off before anything is binding. In a competitive request for quotes it cannot, because its only leverage would be the other suppliers' prices, which it must never use.

Nor does it mean that language models have no place at organisational boundaries. Where interests are aligned, interactions are non-binding and the model sees only non-sensitive information (answering questions from public documentation, for example), a model can be the right choice.

Negotiation itself involves judgement, accountability and competing interests. In high-stakes commercial exchanges, those belong with people, backed by reliable information and AI-assisted analysis.

References

  1. Agent2Agent (A2A) Protocol Specification, version 1.0. a2a-protocol.org/latest/specification
  2. Microsoft, "Enable incoming A2A on a Foundry agent", Microsoft Learn. learn.microsoft.com/…/enable-agent-to-agent-endpoint
  3. Simon Willison, "The lethal trifecta for AI agents: private data, untrusted content, and external communication", 16 June 2025. simonwillison.net/2025/Jun/16/the-lethal-trifecta
  4. Microsoft Research, "Magentic Marketplace: an open-source simulation environment for studying agentic markets", 5 November 2025. microsoft.com/en-us/research/blog/magentic-marketplace…
  5. Microsoft Research, "Magentic Marketplace: An Open-Source Environment for Studying Agentic Markets" (paper), 2025. microsoft.com/en-us/research/publication/magentic-marketplace…
  6. Beurer-Kellner et al., "Design Patterns for Securing LLM Agents against Prompt Injections", arXiv 2506.08837, June 2025. arxiv.org/abs/2506.08837
  7. Microsoft, "AI agent orchestration patterns", Azure Architecture Center. learn.microsoft.com/…/ai-agent-design-patterns
  8. Microsoft, "Gatekeeper pattern", Azure Architecture Center. learn.microsoft.com/…/patterns/gatekeeper
  9. Microsoft, "Workload identity federation concepts", Microsoft Learn. learn.microsoft.com/…/workload-identity-federation
  10. Microsoft, "Introduction to malware scanning" (Microsoft Defender for Storage), Microsoft Learn. learn.microsoft.com/…/introduction-malware-scanning
  11. Microsoft, "Provide access to Key Vault keys, certificates, and secrets with Azure role-based access control", Microsoft Learn. learn.microsoft.com/…/key-vault/general/rbac-guide
  12. Microsoft, "Prompt Shields in Azure AI Content Safety", Microsoft Learn. learn.microsoft.com/…/jailbreak-detection
Published Nov 28, 2026
Version 1.0
No CommentsBe the first to comment