Architecture decisions · Applied AI

Letting AI assistants into our system without handing them the keys

People already paste company data into assistants, and connecting one directly can expose documents, apply changes nobody approved or send confidential text to an outside model.

01

How it is diagnosed

List what an assistant would read, change and send onward; then where each rule would be enforced: in the system, or only in the assistant's instructions.

02

The options, side by side

Switch on a situation and see what each option does with it.

A

Export data to the assistant

A ticket hides an instruction to send a record outThe record is already outside.

A key leaksThere is nothing to revoke: the copy is already out.

An assistant proposes a wrong changeIt cannot change anything.

When it fits
A one-off question over a fixed set of documents.
Trade-offs
The copy goes stale the next day and carries no access rules.

B

A read-only API

A ticket hides an instruction to send a record outNothing in the API stops what the assistant does with what it read.

A key leaksThe key is revoked.

An assistant proposes a wrong changeIt cannot change anything.

When it fits
The assistant only needs to look things up.
Trade-offs
No help with changes, and access is often all or nothing.

C

An MCP server with limits enforced by the system

A ticket hides an instruction to send a record outIn the lab, the read above the key's level came back 'not found', sending was refused, and every step was in the audit log.

A key leaksThe key is revoked, its tokens end, and the audit log shows what it read.

An assistant proposes a wrong changeIt waits as a diff; a person rejects it; nothing is applied.

When it fits
Assistants should read and draft changes under rules you set.
Trade-offs
It has to be built, and every rule has to hold in one place, tested.

03

What decides between the options

How sensitive the data is, whether assistants need to change anything, and which model providers may receive which material.

What decidesA Export data to the assistantB A read-only APIC An MCP server with limits enforced by the system
Sees no more than its user An assistant with more access than the person it acts for is a new point of entry. limited The export carries no rules. needs work If the API checks the key's user. suits it Keys only narrow; above the key's ceiling the answer is 'not found'.
Changes A change from an assistant should be reviewed by whoever owns the record. limited None, or by hand. limited None. suits it Proposals a person approves, as a diff.
Instructions hidden in a document An assistant can be fooled by the text it reads; safety cannot depend on it not being fooled. limited What the assistant does next is outside your control. needs work Read-only limits the harm. suits it The assistant gains no authority: what it tries is refused, queued or logged.
What it takes to build The protection should match the risk, not exceed it. suits it Nothing: a file. needs work An API, if there is none yet. limited A server, its access rules and the tests that prove them.
Sees no more than its user A B C

An assistant with more access than the person it acts for is a new point of entry.

  • A · Export data to the assistant limited The export carries no rules.
  • B · A read-only API needs work If the API checks the key's user.
  • C · An MCP server with limits enforced by the system suits it Keys only narrow; above the key's ceiling the answer is 'not found'.
Changes A B C

A change from an assistant should be reviewed by whoever owns the record.

  • A · Export data to the assistant limited None, or by hand.
  • B · A read-only API limited None.
  • C · An MCP server with limits enforced by the system suits it Proposals a person approves, as a diff.
Instructions hidden in a document A B C

An assistant can be fooled by the text it reads; safety cannot depend on it not being fooled.

  • A · Export data to the assistant limited What the assistant does next is outside your control.
  • B · A read-only API needs work Read-only limits the harm.
  • C · An MCP server with limits enforced by the system suits it The assistant gains no authority: what it tries is refused, queued or logged.
What it takes to build A B C

The protection should match the risk, not exceed it.

  • A · Export data to the assistant suits it Nothing: a file.
  • B · A read-only API needs work An API, if there is none yet.
  • C · An MCP server with limits enforced by the system limited A server, its access rules and the tests that prove them.

04

What the work looks like

The step of the offer where a case like this usually starts:

03

Architecture assessment

Findings, risks, options and next steps, in writing. A good starting point when the scope is not yet clear.

See the service: Applied AI →

05

Is this your case?

Send it with this problem already selected; the next page asks which options you considered and a little context. No verdict on your system: that only comes once I understand it.

Send this case →

Or write to me directly at contacto@danielcolaco.pt.