# Permissions

Blossom asks macOS for one thing — Automation, and only when you jump to a terminal — and asks you for each capability of each plugin.

![macOS permissions model: never requested vs optional and scoped](/docs/permissions.jpg)

## macOS permissions

| Permission | Optional | What it is for | If you say no |
|---|---|---|---|
| **First launch** | No, for a downloaded build | Ad hoc signed and not notarized, so Gatekeeper stops it once | Allow it in **System Settings → Privacy & Security**; a source build needs none |
| **Open at login** | Yes, off | Starts Blossom when you log in | You open it yourself |
| **Keychain** | Yes | Keeps the token you type for a plugin; Blossom reads only its own items | The plugin works without it and says what it misses |
| **Automation** | Yes | Asked once for Terminal, iTerm2 and Ghostty, the first time you jump to a session there; it finds the tab or pane by terminal device | It brings the app forward without the tab, and says once where to allow it |
| **Protected folders** | Yes | Desktop, Documents and Downloads: a granted plugin path or a repository there may make macOS ask once | The plugin is refused that file; the session is named as outside a repository |

> [!TIP]
> **Never asked, ever: Accessibility, Screen Recording, Input Monitoring, Full Disk Access.** The global shortcut — <kbd>⌥</kbd> <kbd>Space</kbd> by default — is a hot key registered with the system, following the pointer needs nothing, and tmux, Zellij, WezTerm, kitty and editors are asked with their own command line. Blossom never types into a terminal.

> [!NOTE]
> Automation and protected-folder prompts are described from the code, and are not yet tried by hand.

## Plugin sandbox permissions

A plugin starts with nothing. It gets what its manifest asks for **and** what you granted, one capability at a time, in **Settings → Plugins**. A new version asking for more needs a new grant; removing a plugin drops them all.

| Capability | What it allows | Without the grant |
|---|---|---|
| **Network** | `GET` over `https`, port 443, to the exact hosts the manifest names; no redirect followed | `not_granted` |
| **Sending** | `POST` of JSON, 64 KiB at most, to the hosts it says it sends to | It cannot post |
| **Keychain token** | A token you type, added by Blossom to requests to that one host; the plugin never sees it, and posting with it is its own switch | Requests go without it |
| **Read-only files** | The paths under your home folder the manifest names, and a listing of a granted folder | `not_granted` |
| **Chosen folders** | Everything in a folder you pick with *Choose…*; choosing is the grant | It reads nothing there |
| **Alerts** | Waking at a time the plugin sets, 60 seconds to a day ahead, and a short toast | Never woken, never alerts |
| **Settings & clock** | The values you typed, and the current time. No grant needed; a value never widens its reach | — |

A plugin cannot start a program, open a socket, write a file or reach the clipboard, and every call has fixed limits of time, work and memory: [Capabilities and limits](plugins/capabilities.md).

## Adapter trust model

An adapter has no permissions to grant: **it runs as you, outside the sandbox**, with everything you can do. Treat adding one like installing any command line tool.

- **What ships.** Blossom starts only the adapters its configuration lists: those of this repository, and newer or other ones from the signed catalog on *Install* or *Update*. A command you write in settings runs a program nobody reviewed.
- **Connecting is atomic.** Only its own entries, after yours; the file is copied first and replaced in one rename. Read-only files, links and files that are not plain JSON or TOML are left alone. See [decisions/connecting.md](../decisions/connecting.md).
- **Acting is opt-in.** *Let Blossom act on the sessions of &lt;agent&gt;* in **Settings → Agents** is off until you turn it on, and only for an adapter that declares the capability. See [privacy/data.md](privacy/data.md).

> [!WARNING]
> A module Blossom puts inside an agent with no hooks **runs inside that agent**: it reports a few fields, returns at once, reads no file, starts no program, swallows every error — and *Disconnect* deletes it.
