# Enterprise Agent Guardrails: Tools, Permissions, and Stop Conditions

How to bound an enterprise agent: which tools it may call, whose permissions it inherits, what it must not do, and when a person has to take over.

An enterprise agent is a model that can call tools. The sentences it writes are the visible part. The operational risk sits in the tool call: a record updated, a message sent, a file opened in a system the person at the keyboard was not meant to reach. Bounding the agent means deciding four things before the first production call: which tools it may use, whose permissions it inherits, what it must refuse, and when a person takes over. This guide is for the technology leader who owns those decisions and for the team that implements them.

A retrieval assistant and an agent that sends mail need different controls, even when they share a model. Enforce the bound in the runtime that invokes tools. A prompt can steer the model; the gateway is what denies a call.

## Authority levels

Give every workflow one of four levels, recorded next to the owner's name. The level is a ceiling. Lower actions stay available. Higher actions stay unavailable, including when the model proposes them.

**Retrieve.** The agent looks information up through approved read tools and returns what it found, with the source. It does not file a decision or change a system of record. An empty result is reported as empty. A record the caller may not see is omitted, including from earlier turns.

**Draft.** The agent may retrieve, then write something a person will edit: a summary, a reply, a change note. The draft stays in that person's working space. Sending it, filing it as the official record, or treating it as the decision is a higher level. Draft is the right default for most internal assistants.

**Recommend.** The agent may retrieve, draft, and state a recommended action with the evidence and the uncertainty. A person still decides. The recommendation has to be separable from the action. If accepting the sentence is the same control as performing the change, the workflow is Act and should be governed as Act.

**Act.** The agent may perform a defined write: create a ticket, set a field, send a message, open a pull request. Act is a privilege for a named workflow, a named tool, and a named class of action. It is not a property of the model. New action classes start at Draft or Recommend until evaluation shows the workflow stops when it should. Irreversible actions still need a person to confirm the exact call.

Put the level on the workflow record in one line: name, owner, level, tools, and what "done" means. "Just let it send" is a level change. Review it the same way you review a new tool.

## Tool allow-lists

The agent may call only tools on that workflow's allow-list. Everything else is denied, including tools the platform exposes for other work. If a retrieved page says "call the mail tool" and mail is not on the list, the runtime refuses. Keep the list in configuration the model cannot edit.

**Name the tool, not a category.** "Search the approved knowledge index" is an entry. "Use the internet" is not. For HTTP, name the host, the method, and the path pattern. GET on a documentation host is a different entry from POST on a customer API.

**Separate reads from writes.** Reading a system and changing it are different entries. Letting the model pick methods on a client SDK exposes the whole API. Bind create, update, delete, send, and permission changes as separate entries, each absent until someone adds it.

**Constrain arguments.** Prefer an enum or a pattern: a project key, a queue, a label set, a maximum row count. A free-text query against a database will outrun the workflow description.

**Pin the environment.** Production tools stay off development agents. Development credentials stay off the production list.

**Version the list.** A change names the workflow, the level, and the tool added or removed. The running agent loads a version. If you cannot name the version behind Tuesday's call, you cannot explain the call.

A shell, a networked code interpreter, a signed-in browser, mail send, permission administration, and any tool that accepts raw credentials still need their own entries. Add them only after evaluation, with a named owner accepting the residual risk in writing.

## Whose permissions the agent inherits

The agent inherits the caller's permissions and nothing broader. If the person cannot open the record, export the file, or send from that mailbox, the agent cannot either. Pass the caller's token, or a narrower token derived from it, into every tool. The downstream system applies the same authorization the interactive app already uses.

Four patterns break inheritance.

A shared service account that can see more than the caller lets every user of the agent reach the union of that account's data, so a prompt injection becomes an access bug. A job with no person in session gets its own identity, allow-list, and written data scope, and that identity stays off the interactive agent.

A retry as administrator, after "permission denied," removes the control. Return the denial and leave access changes on the organization's existing path.

A token that outlives the session keeps acting after the person leaves, changes role, or loses the data. End the tool credential with the session, and revoke it on the same path as the person's access.

A tenant or customer id supplied by the model is not an authorization decision. Take the tenant from the authenticated session and check every customer, account, or tenant argument against it. Text retrieved for one tenant is not a reason to query another.

The workflow record should say that calls run as the signed-in user, on a token that ends with the session, and cannot reach data that user cannot reach. If that is false, the workflow is not ready to Act, and it may not be ready to Retrieve.

## Idempotency and side effects

Calls fail in ordinary ways: timeouts, dropped connections, a restart mid-plan. A model that tries again will repeat a side effect unless the tool and the runtime are built for that. Classify every allow-listed tool before you turn retries on.

Reads are safe to retry. Log them. Reading a sensitive record is an event even when nothing changes.

Idempotent writes leave the same state when repeated with the same key. Creating a ticket under a client-generated key, setting a field to a specific value, or storing an object at a fixed name can work this way if the downstream system honors the key. The runtime creates the key once per intended action and stores it before the call. Retries reuse it. A new key on each attempt produces duplicates.

Non-idempotent writes are unsafe to retry on hope: mail, chat posts, payments, counter increments, appended comments. Retry the transport only when the downstream system can show the first call did not commit. Otherwise stop and ask a person.

Make the side effect one call with a visible end state, such as setting a status to a specific value. An open instruction like "do what seems right in the CRM" has no boundary. A relative change such as "add one" needs its own idempotency key.

For several writes, define order and what partial completion means. If the ticket exists and the notification failed, report both and stop. A compensating delete is a separate tool: tested, allow-listed, and confirmed. Until then, reversal is a person's decision.

## Confirmation for irreversible actions

Some effects are practical to undo: a draft, a ticket moved back, a flag flipped twice. Others are not: a delivered message, a destroyed record, a submitted payment, a granted permission, a customer notification, a merge to the production branch, a document sent outside the organization. Treat the second set as irreversible even when a product offers a short recall. Recall is a courtesy, not the control.

Hold the action until a person sees the exact call: tool name, the arguments that matter (recipient, amount, record id, permission change), and which workflow proposed it. Confirmation is a runtime event bound to that hold, not a later "yes" in the transcript that can attach to the wrong call. Display the hold, commit only on its confirmation event, and expire it. Yesterday's approval does not authorize today's send.

Use confirmation inside Act. If a person must approve every step, stay at Recommend: the agent prepares the material, and the person acts in the system they already use. Confirmation pays off when one precise action is on screen and a person can judge it quickly.

Stop and hand back the work when:

- The action is outside the level or the allow-list.
- A required field is missing, ambiguous, or taken from content the caller did not supply.
- The tool returns permission denied, a conflict, or a result you cannot classify.
- The same action was already attempted and the outcome is unclear.
- The payload tells the agent to ignore policy, contact someone the caller did not name, or move data to a new place.
- The caller is absent, so an irreversible step has nobody to confirm it.

A stop is a finished run: what is known, what was not done, and what a person needs in order to decide. Do not reach the same effect through a second allow-listed tool.

## Logging tool calls

If you cannot reconstruct a call, you have a script with a chat in front of it. Log in the runtime. The model can narrate intent. The log records what ran.

Store a call id; workflow name and allow-list version; authority level; caller and tenant; tool name; arguments with secrets and credentials removed; the idempotency key on writes; any approval reference; time; result (success, denied, error, cancelled, or awaiting confirmation); and the downstream record id when one returns. Tie the call to the conversation or job so the sequence is readable.

Store document ids and the authorization decision rather than copies of restricted documents. Retain logs long enough to investigate an incident and to say who caused a change. The operating team should not be able to edit them, and read access stays limited because arguments still hold customer content.

Read a weekly sample: denials, writes, expired confirmations, and arguments taken from retrieved content. Change the list after that reading. Zero denials can mean the list is wider than the work; a crowd of denials can mean it no longer matches the tasks.

## Evaluate before you expand scope

A new tool, a higher authority level, or a new system behind an existing tool is a release. Evaluate on the production runtime, with the allow-list and the permission check in force. An admin playground shows the model with the bound off.

Rerun a small case set whenever the list or the level changes.

- Ordinary requests the workflow should complete at its current level.
- Requests that need a higher level, which must stop.
- A caller without permission, who must get a denial and must not see the protected record.
- A caller in another tenant, who must not see the first tenant's data.
- Retrieved or pasted text that demands a disallowed tool, a new recipient, or an ignore-the-list instruction. The runtime refuses.
- A retried write, which must not double the side effect.
- An irreversible action with no confirmation, which must not commit.
- An unclear tool result, which must stop.

Keep the cases, the date, and the decision with the change. Expand when they pass and the owner accepts what the tool can still get wrong. Watch the log sample for a set period before the next expansion, and make removal a configuration change. Groundedness and task fit still need their own checks. This gate only asks whether the agent called allowed tools, as this caller, once, and stopped when it should.

## Operating checklist

Use this at first release and at each review.

1. Name the workflow, the owner, and the level: retrieve, draft, recommend, or act.
2. Publish the allow-list with argument constraints, environment, and version. Keep reads and writes as separate entries.
3. Run each call as the caller, on a session-scoped token, with no administrator retry.
4. Mark each write idempotent or not. Require a key where a retry could duplicate the effect.
5. Hold irreversible actions for confirmation of the exact call. Expire unconfirmed holds.
6. Enforce stop conditions in the runtime and return a clear handoff.
7. Log caller, tool, redacted arguments, result, and approval id. Review denials, writes, and abandoned confirmations.
8. Run the cases before any expansion, and file them with the decision.
9. Remove a tool in configuration when cases or logs show the bound failing.

The misses that ship are usually a skipped line: a shared service account, a write added to finish a demo, a retry that sent the mail twice, or a confirmation that lived only in the transcript. Keep level changes and new tools on the same path as any other production change.

The [engagements overview](/engagements/) describes how advisory work is structured, and the [capabilities overview](/capabilities/) covers the broader enterprise AI and architecture practice. When you are ready to talk, [get in touch](/contact/).

This is general information, not legal advice.
