StoriesOctober 4, 20266 min read

Your AI agent needs a double lock between clients, not a promise

An AI agent (or an external collaborator) only seeing one client's data can't depend on nobody making a mistake when setting it up. Here's how we turned it into a rule the system itself enforces, with two locks instead of one.

Pol

Fundador de AutoBoost

AI agentsAI security
Your AI agent needs a double lock between clients, not a promise

Your AI agent that quotes, invoices, or queries a client's ERP should only ever see that one client, never the others. The uncomfortable question is who actually guarantees that: the system, or the hope that nobody forgets to configure it right? At AutoBoost we had to answer that about our own system for managing collaborators and clients, and until recently our answer was the wrong one: it worked, but only by chance.

The problem: "it works" is not the same as "it's guaranteed"

Until a few weeks ago, whether an external AutoBoost collaborator only touched a single client's work depended on exactly one thing: whoever assigned them projects not giving them one from a different client by mistake. There was no rule in the system preventing it. If someone filled in a form wrong, or if someone manually tampered with the request that form sends, nothing on the server would stop it.

It never actually happened. But "it never happened" and "it couldn't happen" are two very different sentences, and only the second one is a real guarantee. It's exactly the same problem faced by any business that connects an AI agent to its ERP, CRM, or billing system with access spanning several clients at once: whether the agent only touches the right client's data usually depends on how the prompt or query happened to be written that day, not on a rule the system enforces no matter what.

That difference is what separates an incident that never happens from one that eventually does, the day someone (a person or an agent) does something nobody anticipated.

What we changed: from one door to two locks

The fix wasn't to make the system more complicated. It was to stop trusting a single point of control and put two in place, each one watching for something different:

  1. The form no longer offers what it shouldn't. When a collaborator is onboarded, they get assigned one or more specific clients. From that point on, any screen where they could be assigned a new project only shows projects belonging to those clients. They can't pick wrong because the wrong option never appears.
  2. The server rejects what the form shouldn't have allowed through, just in case. This is the lock that actually matters: even if someone tampers with the request by hand, or a bug in the form lets something through it shouldn't, the server checks the rule again before saving anything, and rejects it if it doesn't fit.

The first lock prevents mistakes made by accident. The second prevents mistakes made by tampering, by an interface bug, or by anything nobody imagined when the form was written. An AI agent that acts on its own, without a person reviewing every single step before giving the green light, is exactly the kind of actor that needs that second lock the most: it doesn't make clumsy mistakes, but it can land in a state nobody anticipated if the context it receives is poorly built, or if an instruction gets interpreted in an unexpected way.

What happens when you remove a client from someone (or an agent)

There's a third rule, smaller but almost as important as the first two: taking a client away from a collaborator also removes their access to that client's projects, but the hours they'd already logged stay intact. The lock cuts off access going forward, it doesn't erase or corrupt what already existed.

It's a distinction any business that grants and revokes access (an employee who switches accounts, a collaborator whose contract ends, an AI agent whose scope gets narrowed) has to resolve explicitly. If revoking access also reaches into historical data, the lock turns into a new risk instead of fixing the one that was already there.

Checklist: before giving multi-client access to an AI or an outside collaborator

QuestionWhy it matters
Who decides which clients this identity (person or agent) can touch?If the answer is "whoever assigns the work, case by case," that's a habit, not a rule
Does the interface only offer what's allowed, or does it rely on the user not making a mistake?The first lock reduces the error, it doesn't eliminate it
What happens if someone (or something) sends the request directly, bypassing the interface?If the server doesn't check the rule again, the first lock is decorative
Does removing access delete or affect the data already generated with it?Revoking the future and protecting the past are two separate things that need to be guaranteed on their own
Does the rule apply the same way whether a person or an unsupervised AI agent is the one coming through?An agent without constant human oversight needs the second lock more than anyone

The decision rule is short: if isolation between clients depends on nobody making a configuration mistake, it isn't isolation, it's luck. It only counts as a guarantee once the system enforces it at more than one point, and the last of those points is the one that receives and stores the data, not the one that requests it.

Where this actually shows up

This stops being theoretical the moment an AI acts without someone reviewing every step. In the AI sales agent that quotes over WhatsApp inside the ERP of an industrial distributor carrying more than 50,000 products (full case), every incoming message first validates which client it belongs to before applying a price tier, checking stock, and creating the opportunity or order. If that validation relied only on the prompt being written correctly, an ambiguous or tampered message could end up applying one client's pricing to another, or showing stock that client was never meant to see.

Giving multi-client access to an AI agent (or to any external collaborator) is part of the same integration work we do at AutoBoost before letting an agent touch real production data: see more at /servicios.

If your business is evaluating connecting an AI agent to a system holding data for several clients, and you're not sure whether the isolation between them is a rule or just a habit, tell us about your case and we'll look at it with you.

Share article
Your AI agent: a double lock between clients | AutoBoost