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
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 decides | A Export data to the assistant | B A read-only API | C 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.
05
Articles that show this
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.
Or write to me directly at contacto@danielcolaco.pt.