Company-agent architecture: from one request to a verified business action
Contents
- What are the layers of a company agent?
- How does one request move through the architecture?
- How is identity decided?
- What is the knowledge layer for?
- Where does code run, and what does it hold?
- Why separate storage from the sandbox?
- What does the model gateway do in this picture?
- What does "verified" require?
- What happens when a layer fails?
- Can you adopt only some of these layers?
A company agent architecture is the set of layers that turns one request into a checked business action: an identity that decides what the agent may touch, knowledge that tells it what the business means, tools that reach your systems, a sandbox where it runs code, storage that keeps the result, a model call for the reasoning, and an approval step plus a trace around the actions that matter. This guide follows one request through those layers, then shows where each layer fails and how to adopt only some of them.
It is a technical guide, so it skips the definitions. If you need those first, read what is an AI agent. For exact setup commands, use the Adapt docs. The open-source company agent opens in developer preview on January 12, 2027, with a waitlist until then, so this post describes the architecture rather than something you can install today.
What are the layers of a company agent?
Most agent demos show a model and a tool. A company agent has to answer questions the demo skips: whose permissions does this action use, whose definition of "revenue" applies, where does the code run, where does the output live, and who approved the email? Glean makes a similar argument in its piece on the emerging agent architecture: the layers need to work together, and security can't be a separate model for each tool.
Slack / email / web
│ request, as Priya
▼
┌─────────────────────────── company agent ───────────────────────────┐
│ identity & policy ─▶ knowledge ─▶ agent loop (plan, act, check) │
│ │ │ │ │ │
│ ▼ ▼ ▼ ▼ │
│ allow / ask / company tools via model gateway │
│ deny per action definitions connections (any provider) │
│ │ │
│ ▼ │
│ sandbox (runs code) ◀──▶ storage │
│ │ files, memory │
│ ▼ │
│ approval ─▶ action ─▶ trace / activity log │
└──────────────────────────────────────────────────────────────────────┘
Each box is a separate concern with its own failure mode. The sections below take them in the order a request meets them.
How does one request move through the architecture?
The example below is the renewals scenario Adapt's own product overview and security page use, so the names and systems are illustrative rather than a customer. Priya Shah asks the Renewals agent about Northwind in Slack.
| Step | What happens | Layer |
|---|---|---|
| 1 | Priya asks in Slack: prepare the renewal for Northwind and send them our security pack. | Surface and identity. The request arrives as Priya. Per the overview, each agent acts with the user's permissions. |
| 2 | The agent reads the renewal playbook and the company's definitions. | Knowledge. Shared knowledge holds definitions, decisions and instructions. Current facts still come from the systems they live in. |
| 3 | It reads Northwind's deals in HubSpot. | Tools and policy. Priya can read deals, so the call is in policy and allowed. |
| 4 | It looks up open invoices in Stripe and runs code to summarize them. | Sandbox and credentials. Code runs in a per-session sandbox. The Stripe key is kept from the model, and the call is logged. |
| 5 | It writes the account summary where the next run can find it. | Storage. Storage keeps files and memory between runs. |
| 6 | Each reasoning step calls a model. | Model gateway. The gateway routes to the model configured for that step. |
| 7 | It drafts an email to Northwind with the security pack attached. | Approval. Sending email is set to ask. Priya sees the draft and approves, and only then does it send. |
| 8 | It tries to change the contract price in Salesforce. | Policy. The change is outside Priya's access, so it's blocked and the attempt is logged. |
| 9 | The run ends with a summary of what it did. | Trace. The activity log records each action, who it ran for and whether it succeeded or was denied. |
Two things in that table do most of the work for trust. Step 8 is a denial the agent could not talk its way around, because the check lives in the policy layer rather than in a prompt. And step 7 is a human decision at the one action that leaves the company.
How is identity decided?
Identity answers "whose access is this?" before anything else runs. In this design the agent acts as the person who asked, so it can't reach what that person can't. The alternative, a shared service account, is simpler to set up but turns every request into the service account's access level. Whichever you choose, make it explicit per connection, and make sure the activity log records both the person and the agent. The security page's log lines read "Priya Shah via Renewals" for this reason.
What is the knowledge layer for?
Models know nothing about your fiscal calendar or your definition of churn. The knowledge layer holds those definitions, decisions and process instructions so the agent doesn't guess. A rule of thumb from the product pages: keep reusable meaning in knowledge, and read live numbers from the system of record. Saved knowledge goes stale, while a live read doesn't, so don't store a figure you could query.
Where does code run, and what does it hold?
Agents are most useful when they can write and run code, which is also the riskiest thing they do. The sandbox layer contains it: a per-session environment separate from your app. For how that works in detail, see how we run sandboxes for agents. Credentials follow a similar rule. Per the security page, vaults and secret bindings give each workflow scoped, revocable credentials, so the model works with the result of a call rather than holding the key.
Why separate storage from the sandbox?
A sandbox is disposable by design. Anything the next run needs has to live somewhere that outlives it, which is what the storage layer is for. In the example, step 5 is why Month-End Close can start from the Renewals agent's summary instead of rebuilding it. Our post on shared filesystems for agents covers the file side.
What does the model gateway do in this picture?
The gateway sits between the agent and the model providers, so the model is a setting, not a code change. Adapt's model gateway lets you use your own provider keys at 0% markup or let Adapt hold the keys, which adds 5.5% on the provider's list price per the pricing page. Where your data goes is a provider decision: the security page says the provider's terms govern retention and training, so review what is sent to each model. A gateway routes calls; it doesn't make a weak model good or decide which model is right for a step. You still evaluate that on your own workload.
What does "verified" require?
Calling the final step a verified business action only means something if each layer left evidence. A reasonable bar:
- Authorization: the policy layer allowed the action for this person, and the log says so.
- Approval: actions that leave the company or change money were approved by a named human.
- Read-back: the agent checked the result in the system of record (the email appears in Sent, the record shows the new value). Put this in the workflow's instructions; don't assume it happens.
- Trace: you can reconstruct the run's tool calls and results afterward. Adapt's security page describes traces that show each run's tool calls.
What happens when a layer fails?
| Failure | What the design does | What to verify before you rely on it |
|---|---|---|
| Action outside the person's access | Policy denies it and logs the attempt (step 8). | That every connection actually enforces per-user access. Not every integration inherits the source system's controls. |
| Approval not given | The run waits on the person; the action doesn't happen. | How long a pending approval lives, and who is told. |
| Code fails in the sandbox | The failed run is visible in the trace. | Whether your workflow retries, and whether a retry could repeat a side effect. |
| Model provider errors | Because the model is a setting, you can point a step at another provider. | Whether switching is automatic or manual in your setup. |
| Knowledge is out of date | Live reads from systems of record avoid stale facts; saved knowledge needs a review owner. | Who owns each knowledge entry and how often it is checked. |
| Partial run | Storage keeps whatever finished runs wrote. | That downstream steps check for a complete output, not just a file's presence. |
The right column is deliberate. Several of those answers depend on your configuration, and we'd rather you test them than take our word for them.
Can you adopt only some of these layers?
Yes. The sandbox, storage and model gateway also work with an agent you already have, at the same published rates, and Adapt asks you to talk to the team to confirm the setup. A sensible order, if you're building rather than buying:
- Model gateway first, if you already run an agent and want to change models without code changes. Settle whose keys you use and who sees the data.
- Sandboxes next, when the agent needs to run code that shouldn't touch your app.
- Storage after that, when runs need to build on each other's work.
- Identity, knowledge and approvals last, which are the hard part: they need decisions from your security and operations owners, not just engineering.
Whether to build all of this yourself is its own question, and the ownership trade-offs are where most teams get surprised. The developer guide covers how to start from the company agent or from components. If you want to see the whole path on your own systems, talk to the Adapt team or join the waitlist for the open-source company agent.
The company agent goes open source on January 12.
Join the waitlist