# Limits and Guardrails



<Info>
  This is a **public, customer-installed** Slack app running on your own data.
</Info>

## Tenancy [#tenancy]

* Your Slack workspace is connected to exactly **one** Surface environment:
  the one an owner or admin of your Surface team installed Prism from.
* Every tool Prism has reads that environment. There is no tenant argument
  it could pass, and no path to another customer's data.
* Approval clicks are checked against the workspace that owns the pending
  action. A click from elsewhere reads as *not found*, not *forbidden*, so it
  never confirms to an outsider that the action exists.
* In [Slack Connect channels](https://www.withsurface.com/docs/platform/sam/shared-channels) the gate is
  on **who is asking**, per channel.

## Permissions [#permissions]

| Control                  | Who sets it      | Effect                                                                               |
| ------------------------ | ---------------- | ------------------------------------------------------------------------------------ |
| Capability modules       | The Surface team | A tool outside an enabled module is never shown to the model, so it cannot be called |
| Writes enabled           | The Surface team | Off for a new workspace. While it is off, Prism is fully read-only, and it says so   |
| Daily question limit     | The Surface team | 1,000 by default, rolling 24 hours                                                   |
| Who can approve a change | Fixed            | The person who asked, or any Slack workspace admin                                   |

Three tools are **never** exposed to a customer whatever the configuration:
creating environments, inviting members, and filing feedback tickets.

## The Approval Gate [#the-approval-gate]

Anything not explicitly marked read-only waits behind an Approve/Cancel card.
The gate reads the tool's own annotation rather than a hand-maintained list of
dangerous operations, so a brand-new tool defaults to *needs approval*.

* The card carries the **finished** change. A placeholder or half-filled payload
  is bounced before any card is posted.
* The database row, not the card, is the source of truth. A double-click can't
  run a change twice; a lost card can't strand a half-done write.
* Editing published content edits the draft. Publishing is a second approval.
* **One exception:** the **Save in Vault** button *is* the approval, with no
  second card. It only ever creates a new dated document under `slack/` and
  can't overwrite or delete anything.

## Stopping Mid-flight [#stopping-mid-flight]

Every status line carries a **Stop** button while Prism is working. A stopped turn
changes nothing: writes were already waiting behind approval cards. Background
jobs carry the same button on their progress card.

## Budgets [#budgets]

| Budget                       | Value                                                                      |
| ---------------------------- | -------------------------------------------------------------------------- |
| Questions per workspace      | 1,000 / rolling 24h                                                        |
| Spend per question           | $5 ceiling, including generated images                                     |
| Reasoning steps per question | 15, with 4 lookups per step                                                |
| Background jobs              | 20 / rolling 24h · 2 concurrent · $12 and \~18 minutes each · 12 items max |
| Web searches / page reads    | 3 each per question; 10 / 20 per background job                            |
| Images in / out              | 8 read per message (5 MB each), 4 generated per request                    |
| Text files                   | 50,000 characters                                                          |
| Schedules                    | 10 per workspace                                                           |

Hitting a cap always produces a message (&#x2A;"that question got too big for one
go, try narrowing it down"*), never silence.

## Reaching the Outside World [#reaching-the-outside-world]

Page fetching is `https` only, follows at most 3 redirects, caps at 2 MB and 10
seconds, and re-checks the resolved IP on **every** hop against private and
link-local ranges. It cannot be talked into reading an internal address.

## What Is Stored [#what-is-stored]

| Stored                                                                   | Where and why                                                                                                                                                                                                                                               |
| ------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| The question, the answer, status, tools used, cost, tokens, URLs fetched | One row per question, which powers the daily cap, the usage tool and our dashboards. Question and answer text also ride along on the product-analytics event, both cut at 4,000 characters. Tool results, meaning your Surface data in bulk, are never sent |
| Memory documents                                                         | Per workspace or channel. Fully visible and deletable in App Home                                                                                                                                                                                           |
| Schedules                                                                | Prompt, cadence, slot, target channel                                                                                                                                                                                                                       |
| Pending changes                                                          | Until approved or cancelled                                                                                                                                                                                                                                 |
| Slack bot token                                                          | The token of your environment's Slack integration, the same one your workflows' Slack alerts use. Uninstalling the app from Slack revokes it                                                                                                                |

Uninstalling marks the workspace as gone rather than deleting it, so install
history survives for support. Prism stops responding.
