SysArt
Book a briefing
SysArt

AI agents

Best Practices for On-Prem AI Agents

Practical controls for AI agents on private infrastructure: scoped tools and identities, human approval, logging, memory rules, safe releases and ownership.

Last reviewed by SysArt AI Architecture Team5 min readHow we review

In short

On-premises AI agents need the same controls as agents anywhere: narrowly scoped tools under a defined identity, human approval for consequential actions, a trace of every step, rules for what memory keeps, and versioned releases with regression tests. Private infrastructure reduces external data exposure, but it does not stop prompt injection, over-broad permissions or unclear ownership.

Key takeaways

  • Running an agent on-premises keeps data inside your boundary, but it does not stop prompt injection, over-broad permissions or unclear ownership.
  • Give each agent the fewest, narrowest tools it needs, run them under a defined identity, and enforce authorisation in the downstream systems.
  • Require human approval for consequential actions, and show reviewers the request, the evidence and the exact change.
  • Log versions, sources, tool calls, approvals and results for every run, and release prompts, tools, policies and models together, with regression and adversarial tests.
  • Every production agent needs a named owner, an entry in the AI inventory and a route into incident management.
Enterprise team planning AI agent operations

Why do on-premises AI agents need their own operating practices?

An AI agent acts as well as answers, so its mistakes can change data, send messages or start processes. Running the agent on-premises keeps prompts and data inside your boundary, but the main agent risks do not depend on where the model runs.

OWASP’s Top 10 for LLM Applications 2025 describes Excessive Agency (LLM06) as the vulnerability that enables damaging actions when a model produces unexpected, ambiguous or manipulated output, whatever the cause. It traces this to excessive functionality, excessive permissions and excessive autonomy. Prompt injection (LLM01) is one common cause, and OWASP states that it is unclear whether fool-proof methods of preventing it exist. The UK National Cyber Security Centre (NCSC) went further in December 2025: prompt injection may never be totally mitigated, so the realistic goal is to reduce its likelihood and impact.

The practices below therefore limit what an agent can do when its model is misled, and make every action traceable.

How narrowly should you scope an agent’s tools?

As narrowly as the task allows. OWASP’s mitigations for excessive agency work as a checklist:

  • Minimise tools. Give each agent only the tools its workflow needs, and each tool only the functions it needs.
  • Avoid open-ended tools. Prefer a tool that creates one type of ticket over shell access or arbitrary URL fetching.
  • Minimise permissions. Grant downstream access at the lowest level that works, such as read-only database rights.
  • Act in the user’s context. Where a tool acts on behalf of a user, run it with that user’s permissions, not a broad service account.
  • Enforce authorisation downstream. The systems the agent calls should check every request themselves rather than trust the model’s decision.

The NCSC states the same principle from another angle: a model that processes input from an untrusted party should have only that party’s privileges. In practice, give each agent its own service identity, keep secrets out of prompts, and keep a separate tool allowlist for each workflow.

Which agent actions need human approval?

Actions that are consequential, irreversible or visible outside the organisation: payments and financial postings, changes to access rights, outbound communication on the organisation’s behalf, deletion of records and regulatory submissions. Low-risk, reversible actions can run without approval, provided they are logged.

An approval only works if the reviewer can judge it. Show the original request, the evidence the agent used, the exact change it proposes and the result of any policy check. Watch for rubber-stamping: for high-risk AI systems, Article 14 of the EU AI Act requires a design that lets the people overseeing the system remain aware of the tendency to rely too much on its output, known as automation bias. Our post on human oversight for enterprise AI agents covers approval design, and the explainer on human-in-the-loop AI covers the wider pattern.

What should you log for every agent run?

Enough to reconstruct what the agent did and why, without relying on raw prompt logs. For each run, capture:

  • the request, the user and the business context;
  • the model, prompt and tool-definition versions in use;
  • the identifiers of retrieved documents and memory items;
  • each tool call, with its arguments and result;
  • policy decisions and approvals, including who approved and when;
  • the final output or action, plus errors and retries.

Logs of agent runs often contain personal data, so agree access rules and retention periods with your data protection officer. For high-risk systems, Article 26 of the AI Act requires deployers to keep the automatically generated logs under their control for at least six months, unless other Union or national law provides otherwise.

How should agent memory be managed?

Persistent memory makes an agent more useful and riskier at the same time: it can accumulate personal data, and content planted in memory can influence later sessions. Decide explicitly what the agent may store, such as task state, approved facts or user preferences, and scope it to the user and purpose. Set retention and deletion rules, never store credentials, and treat anything read back from memory as untrusted input. Our post on agent memory and forgetting covers retention design.

How do you release changes to an agent safely?

Treat prompts, tool definitions, policies, model versions and retrieval sources as one release. A change to any of them can change the agent’s behaviour, so each needs review, versioning and a way back.

Before each release, run a regression suite of representative tasks and an adversarial suite that tries to misuse the agent, including instructions hidden in documents and tool outputs. OWASP recommends regular adversarial testing and attack simulations as a prompt-injection mitigation. Roll out gradually and keep the previous version ready, as described in our post on canary deployments for AI models.

Who owns an agent in production?

Every production agent needs a named business owner, a technical owner and defined approvers, plus an entry in your AI inventory and a route into the incident process. Ownership answers the questions that logs cannot: who decides the agent’s scope, who accepts its residual risk and who switches it off. Our agentic AI governance framework sets out roles and controls, and the agent design canvas records an agent’s purpose, tools and boundaries in one place.

How mature is your agent operation?

Most organisations move through three stages. Use the table to see which controls the next stage needs.

StageTools and accessOversightEvidence
PilotOne agent, read-only tools, test dataPeople review every outputBasic traces
Controlled rolloutNarrow write tools under a dedicated identityApproval for consequential actionsFull traces, regression tests
OperationalPer-workflow allowlists, enforced in downstream systemsRisk-based approvals, monitored for automation biasVersioned releases, adversarial test results, incident records

What does the EU AI Act add?

It depends on the agent’s intended purpose. If an agent is part of a high-risk AI system, such as one used for recruitment or creditworthiness assessment under Annex III, the high-risk requirements apply from 2 December 2027. They include human oversight by design (Article 14) and, for deployers, oversight by people with the necessary competence, training and authority, and log retention (Article 26). The transparency rules in Article 50 already apply: an AI system that interacts directly with people must be designed so that they are informed they are dealing with AI, unless that is obvious. Our guide to high-risk AI systems explains the classification; confirm your own obligations with qualified legal counsel.

SysArt implements enterprise AI agents with these controls designed in: scoped tools, approvals, tracing and evaluation, on infrastructure the client controls.

Frequently asked questions

What is the first control an on-prem AI agent needs?

Scoped tool access under a defined identity. Before an agent goes live, decide which tools it may call, which functions each tool exposes, which identity each call runs under and what must be logged. Enforce those limits in code and in the downstream systems, not in the prompt, because a model that reads untrusted content can be manipulated into requesting other actions.

Can on-prem AI agents still create security and governance risk?

Yes. Private infrastructure reduces external data exposure, but the risks in OWASP's Top 10 for LLM Applications still apply: prompt injection through documents and tool outputs, excessive permissions, and actions taken without approval. The UK NCSC has written that prompt injection may never be totally mitigated. Over-broad permissions, weak logging and unclear ownership create risk wherever the model runs.

What should an AI agent log?

The request and user, the model, prompt and tool-definition versions, the identifiers of retrieved documents and memory items, every tool call with its arguments and result, policy decisions and approvals, and the final output or action. Agree access and retention with your data protection officer; for high-risk AI systems, deployers must keep automatically generated logs for at least six months.

Does the EU AI Act require human oversight of AI agents?

Only for some. The human oversight requirements in Article 14 apply to high-risk AI systems, such as those used for recruitment or credit decisions under Annex III, from 2 December 2027. The transparency rules in Article 50 already apply to systems that interact directly with people. Whether an agent is high-risk depends on its intended purpose, so confirm the classification with qualified legal counsel.

How should agent memory be handled?

Decide explicitly what an agent may remember, such as task state, approved facts or user preferences, and scope memory to the user and purpose. Set retention and deletion rules, never store credentials, and treat anything read back from memory as untrusted input, because content planted in memory can influence later sessions. Include stored memory in your data protection reviews.

Related insights

Plan your private AI with people who build it

Book a briefing. We look at your use case, data and constraints, and you leave with the deployment options and governance steps that fit.