Skip to content
SofieSofie
All posts

Security6 min read

The model never writes: how approval works in Sofie

Sofie can create a Jira issue, send a Slack message or purge a cache, but only a person can make it happen. Here is the architecture behind that sentence.

An assistant that can only read is safe and limited. One that can act is useful and frightening. Sofie can create and update Jira issues, send Slack messages and e-mails, schedule reminders, log CRM interactions and purge a Cloudflare cache: 16 write operations in all. The design question was how to make that power boring.

Stage, then approve

The answer is architectural, not a polite instruction to the model. An action tool never writes. It stages an intent and returns a preview of exactly what will happen. The write itself runs only after a person presses Approve.

  1. Request
  2. Staged
  3. Preview
  4. Approve
  5. Written
  6. Audit record
Nothing reaches a system until the person who asked approves it.
  • Only the person who asked can approve their own request.
  • A staged action expires after 30 minutes.
  • One action targets one thing. There are no bulk operations, by design.
  • Edits are allowed only on fields the action declares editable, and they are checked again on the server.
  • Each person is limited to 20 actions an hour.

Why this beats prompt injection

Sofie reads Slack messages, Jira descriptions, ticket bodies and web pages. Any of them can contain text written to manipulate an AI. Because the model cannot write, the worst a planted instruction can do is produce a proposal, which a person then sees and rejects.

Some operations are left out on purpose: deleting anything, suspending hosting accounts, and any invoice or payment operation.

Every outcome is on the record

Staging, running, failing, cancelling and refusing all write the same kind of audit row. A refusal is recorded as loudly as a success, and every artefact Sofie creates is signed: created by Sofie, requested by the person who asked.

Reports that cannot act

Scheduled reports run with actions disabled. A Monday summary can pull numbers from every connected system, but it can only report. It can never do anything.