# How we integrate AI agents into your systems

- Canonical: https://comonad.co.uk/approach
- Source: Comonad Limited
- Last updated: 4 December 2026

The model proposes an action. Your systems decide whether it happens. Every agent we build acts through a gateway that checks who it is, what it may do and whether a person has to approve, and every step leaves evidence your teams can test against. This page sets out that architecture, the contract we write for each agent and the four steps we deliver it in.

## The architecture

A person or event gives the agent a task. The agent proposes actions; it cannot call your systems directly. The action gateway checks identity, permissions, approval conditions and the shape of the input before a permitted call reaches an enterprise system with a scoped credential. Refused actions are logged. Most actions go through without a person; only those that meet an approval condition wait for one. Every step is recorded, and the record feeds evaluation, monitoring and audit, which in turn change the agent and its rules through a normal release.

- The model proposes; application and infrastructure code enforce authority. A permission that only exists in a prompt is not a permission.
- Retrieved content is untrusted. A document, email or web page the agent reads can carry instructions, so it cannot widen what the agent may do.
- Tool inputs and outputs are validated against a schema before anything acts on them.
- Credentials are scoped to the action and short-lived where the system allows it. Retries and side effects are controlled, so a repeated call does not pay twice.
- There is a way to recover: stop the agent, revoke its access and fall back to the previous way of working.
- Verification is independent. Another model agreeing with the first is useful, but it is not a test.

## The agent operating contract

Before we build an agent, we write down what it is for and what it may do, with the person who will own it. That document is the agent operating contract. It is short, it is reviewed by your risk and security teams, and each field that can be enforced is turned into a control.

It is a working document we produce with you, not a product, a platform or a certification.

- Purpose and owner: What the agent is for, and the named person accountable for it. Enforced by: Recorded in the agent's registration and on every record it produces.
- Data: What it may read, and what it must never see. Enforced by: The agent's identity and the data permissions behind it.
- Tools and actions: The tools it may call, with which arguments. Enforced by: The gateway's allow-list and input schemas.
- Prohibited actions: What it must never do, whatever it is asked. Enforced by: Refused at the gateway, and tested.
- Approval conditions: Which actions wait for a person, and which person. Enforced by: Approval rules in the gateway, routed to your existing workflow.
- Runtime and cost limits: How long it may run, how many steps, and what it may spend. Enforced by: Time-outs, step limits and budgets in the runtime.
- Evaluation criteria: What a good result looks like, agreed with the owner. Enforced by: The evaluation suite, run before each release.
- Escalation: When it stops and hands to a person. Enforced by: Hand-off rules in the workflow.
- Monitoring: What is watched, and who is told. Enforced by: Traces, alerts and the action record.
- Versioning and revocation: How a change is released, and how the agent is switched off. Enforced by: Release gates, credential revocation and a tested stop.

## Start with one workflow. Build from there.

1. Understand: We start from a workflow you run today: the systems it touches, who decides, what must not go wrong and how you will judge the result. For software delivery, the workflow is one team, one repository and one kind of change.
2. Engineer: We build the agent, its integrations and the controls around it: the identity it acts under, the permissions it holds, the gateway that checks each action, and the approval steps where a person has to decide. The rules are written down first and enforced in code.
3. Verify: We test representative cases, the ways the work can fail and the controls themselves. The checks are independent of the agent: a second model agreeing with the first is not a test.
4. Deploy and improve: Once you accept it, the work goes live through your own release process. We watch the outcomes with your team, then hand over, with a tested way to stop the agent and fall back.

## The same approach in software delivery

For coding agents the shape is the same, with different parts. The trigger is a task. The gateway is the repository's permissions, branch protection, the review rules and the CI checks. The enterprise systems are the repositories and the release pipeline, and the evidence is the change record. Independent verification means acceptance tests the agent did not write.

## Where governance is the starting point

Some organisations start with the governance rather than the build, because AI is already in production or the EU AI Act may apply to them. For a UK business that sells or uses AI in the EU, that is [EU AI Act consultancy](/services/eu-ai-act). For a management system built to the standard, it is [ISO/IEC 42001 readiness](/services/iso-42001). Both sit within our [AI governance consultancy](/services/ai-governance), and both reuse the operating contract and the evidence described above.

## What this does not mean

- It does not mean a person approves everything. Routine actions within the agent's permissions run on their own and are recorded; only actions that meet an approval condition wait.
- It does not make an agent safe in every case. It makes its authority explicit, its actions checkable and its mistakes recoverable.
- It is not a platform we sell. The gateway, the records and the evaluations are built in your environment, on the tools your policies allow, and stay with you.
- It is not legal advice. Where controls map to the EU AI Act, ISO/IEC 42001 or a sector regulator, your counsel decides how the law applies.

## Questions about the approach

### What is enterprise agent engineering?

Enterprise agent engineering is the work of putting AI agents into an existing organisation: connecting them to its applications and data, giving each agent an identity and limited permissions, enforcing approval rules in the systems it acts through, and evaluating and monitoring what it does.

### What is an action gateway?

An AI agent action gateway is the point between an AI agent and the systems it acts on where every proposed action is checked before it runs: which agent is asking and for whom, whether this tool and these arguments are within its authority, whether a person must approve, and what is recorded. It can be a dedicated service or built from controls you already run, such as an API gateway, your identity provider and a workflow tool. [What is an AI agent action gateway?](/guides/ai-agent-action-gateway) sets out the checks.

### Why not let the model follow rules in its prompt?

Because a model can be talked out of its instructions, including by content it reads. Rules in a prompt shape behaviour; rules in the gateway and the identity system decide what can actually happen.

### What is an agent operating contract?

A short document, written with the agent's owner before it is built, that sets out its purpose, data, tools, prohibited actions, approval conditions, limits, evaluation, escalation, monitoring and how it is switched off. The enforceable fields become controls.

### Do we need new tools to do this?

Not necessarily. We start from what you already run: your identity provider, API gateway, workflow and approval tools, logging and CI/CD. We add what is missing and say so in the written scope.
