JARVIS gives the people who run the company an assistant of their own. They type or talk to it, and it pulls numbers, explains a stuck job, builds the board pack and drafts the email. Most of what it does is reading. The design work that matters is in the rest: what it is allowed to change, who decides, and what happens when someone with real authority wants it to stop asking.
That request comes to every system with real users, usually from the people with the most on their plate. It comes for a good reason. They want the business to move, and every extra click feels like friction someone else put there. This post is about how I build so that the honest answer can be "yes, safely" more often than "no", and what I learned when the pressure arrived to make it simply do whatever it's asked.
Least privilege, starting from nothing
The agent at the centre of JARVIS holds no credentials. Not a single key to any of the company's platforms. Every platform call goes through a gateway on the same server, and the gateway holds the credentials, somewhere the agent can't reach. The agent can ask the gateway to do something. It can never do it itself, and it can never see what the gateway used to do it.
The company's core system for jobs, the Job Adding System, works the same way. The agent reaches it through an MCP connector (MCP is the open protocol assistants use to call tools), which offers a fixed catalogue of read-only checks, with no tool that writes. The connector, not the agent, holds what it signs in with, and the system checks who is behind each server on every call, so one line on its side cuts a person off.
That one decision does most of the security work. An agent that holds nothing can't leak it, can't be tricked into pasting it somewhere, and can't take it with it when a conversation goes somewhere odd. The gateway is ordinary code with tests. It doesn't have moods, and it doesn't get talked into things.
The gateway then applies least privilege per platform, not per server:
- Read-only by default. Accounting, field service and the grant platforms are read-only whatever anyone asks. The company's own automations own those records, so a change there is made in that system or through the automation that owns it.
- Owned fields are refused. The Job Adding System keeps the job records in step across the company's platforms. The gateway knows which columns and fields that system writes, and refuses any change to them from JARVIS, with a short note saying where the change belongs.
- Some things are never on the list. Payroll in any form, bulk deletes, mail forwarding rules, sharing outside the company, administration of any workspace. The gateway refuses them in code, whoever asks and however it's worded.
The list of what JARVIS can do is short, explicit and in code. That turns out to matter in a way I didn't expect, which I'll come back to.
Zero trust on the box and the network
Least privilege decides what an identity may do. Zero trust decides which identities and networks are trusted at all, and the answer is none, by default.
Each person gets their own server. Nobody shares an assistant, a home directory or a set of tokens with anyone else. The servers sit on a private network with a deny-by-default policy: a person's own devices can reach their own server, on SSH, and nothing else. No server can start a connection to another server, to a laptop or to my machine. A compromised server could talk to nothing on that network.
On the server, the agent runs in a sandbox. Its web traffic goes through a proxy with an allowlist, so it reaches the company's platforms through the gateway and a short list of approved sites, and nothing else. The ports the gateway listens on are locked to the one person the server belongs to. Every request is authenticated, budgeted and logged: which platform, which operation, what happened. None of it is trusted because it happens to be "inside".
None of this is exotic. It's the same posture I'd want for any service holding the keys to a business. The difference is that the client is a language model, which is very good at being helpful and has no built-in sense of when helpful is the wrong thing to be.
Ask first, by design
Every change JARVIS makes is held until the person approves it, with one narrow kind of exception I'll come to. The approval card shows the gateway's own rendering of the change, built from the request the agent actually sent, not the agent's description of what it meant to send. If the model says "I'll update the job's notes" and the request would change something else, the card shows the something else.
Approvals are clicks. That sounds like a small detail and it isn't. JARVIS can be spoken to, and a spoken "yes" is just words sent to the model, so the voice path can never approve anything. A misheard sentence, a line read out of a customer's email or a clever instruction hidden in a document can ask JARVIS to do something. It can't approve it.
Underneath sit budgets: how many calls each person may make to each platform in a minute and a day, with a floor reserved for the business's own automations. An enthusiastic assistant can never starve the systems the company actually runs on.
When the answer people want is "never ask"
Then the request came: can it stop asking? Then a broader one: can it just do whatever it's asked?
I understand why. If you know exactly what you want, an approval card for the hundredth date change of the week isn't governance, it's a toll booth. But removing the approval layer wholesale doesn't make the assistant faster. It turns it into a privileged service account with a chat window, driven by a model that can be wrong, and by anything the model reads.
The answer I landed on isn't yes or no. It's narrow. I call them fenced lanes:
- A lane is one named kind of change, such as "a crew label on a job card", or "the install date on one job that hasn't been booked yet". Not "writes to the scheduling board".
- The gateway checks the fence on every write. The right board, the right column and nothing else, the right item, and a value in the right shape: a real date within the next year, on an item that really is a job. It reads the item to check, so the model can't name one job and change another.
- Inside the fence, the change runs without a click. Outside it, the same request is held exactly as before. Clearing a date, touching another column or changing two jobs at once still asks.
- Every lane has a daily cap, a log line per change, and an expiry if it goes unused. IT records it deliberately, and one setting removes it.
Least privilege applies to automation too. The aim is the smallest grant that removes the friction, not the biggest one that removes the question. The person who asked gets what they wanted, which was speed on a task they do all day. Nobody gets an assistant that can do anything it's told by anyone who can get words in front of it.
An agent shouldn't guess about itself
This is the part I didn't see coming.
Under pressure to be helpful, the assistant started explaining itself, confidently and wrongly. It told someone it could do things it couldn't. It gave its own theory for why a change had been refused, with a plausible reason that wasn't the real one. It sketched how IT could build things, as if those designs were on the way. At one point it told someone IT could see their conversations, because it keeps notes.
None of that was malicious. A language model fills gaps, and nothing had told it where the edges of its own setup were. But every wrong claim created a governance problem: expectations only people could meet, and a misunderstanding about privacy that only people could fix.
The fix was instructions, plus the short list I mentioned earlier:
- Check, never assume. What it can do comes from the documented list, or from trying, since every change is held anyway. The gateway's answer is the truth, not the model's expectation.
- One line when it can't. "I can't do that: everything I can do is predefined in my core codebase, and this isn't built in." If the gateway names where the change belongs, it says so. Then it offers to raise the request with IT. No reasons, no theories, no designs, and no explaining why it won't explain.
- Exact about privacy. Conversations and notes are read by IT only with the person's written agreement. What IT does see is listed, plainly: which checks ran, which sites were contacted, who logged in, and a one-line note per request that records the kind of thing asked, never what was said.
An assistant that is exact about its own limits is easier to trust than one that tries to please. It's also easier to govern, because the conversation moves from "the AI said it could" to "here's the request, here's the queue".
Governance is a delivery speed
The last lesson is about pace. When the assistant can draft anything in seconds, people expect the systems behind it to change in seconds too. They shouldn't, and pretending otherwise burns trust faster than any refusal.
So the process is part of the design. IT replies to every request within a set time. Anything that touches the core system that books and invoices jobs goes through change control and the change advisory board. Every change to JARVIS runs the full test suite, around sixteen hundred tests, before it can deploy, and it deploys one way only. That's fast where it's safe (a draft, a report, a proposal) and deliberate where it isn't (a booking, money, a customer).
The quickest route to "yes" is a system people trust enough to grant the next lane.
What I took from it
- Give the agent nothing to leak. Put the credentials in a gateway and a connector that are plain, tested code, and let the agent ask.
- Make approval a click on the system's own rendering of the change, never a word the model heard.
- When people ask for "never ask", grant a fence, not a key: one kind of change, checked on every write, capped, logged and revocable.
- Tell the agent exactly where its edges are, and to say "I can't" in one line rather than guess.
- Speed comes from trust, and trust comes from a process that's visible, predictable and the same every time.
