Skip to content

Concept

The permission tree ​

Every workspace has one table that decides what may happen. Rows are places, columns are holders, and each cell is allow, ask or off. The model cannot see or change the table, so no text it reads can talk it past it.

PlaceChatAgent digestPhone alice-phoneVoice
file_readallowallowoffallow
http_readaskaskoffask
http_read › *.home.exampleallowallowoffask
mail_sendaskoffoffoff
mail_send › bob@home.exampleallowoffoffoff
ssh_execaskoffoffoff

An example tree. › is a target pattern under a tool.

Places ​

A place is anything a holder can use:

  • A tool: a built-in one (http_read), a plugin's (plugin/weather/now) or an MCP server's (mcp/acme/search). Tools sit in groups, so mcp/acme holds every tool of that server.
  • A target under a tool: a host, a path, a mail address or an SSH host and command, written as a pattern (*.home.example, notes/*, *@home.example, admin@fw.home.example docker ps *).
  • A secret (secret/<alias>): who may send it, and only ever to the hosts it belongs to.
  • A field of the household profile (profile/<field>): your places, language, units.

Holders ​

HolderWho it isStarts with
chatevery chat a person watchesreading allowed; reaching out and changing things ask
voicea spoken session, in the app or on a satellitea short read-only list
agent:<name>one scheduled agentnothing, until you accept what it asks for
remote:<device>one paired device that calls tools, such as an MCP clientnothing
ext:<name>an extension's own codewhat installing it granted

A widget and a watch also have a column. What they may call is exactly what you accepted when they were made, and no answer adds to it.

Cells ​

CellWhat it means
allowthe call runs
aska person decides; an agent on a schedule leaves a draft instead
offthe tool does not exist for that holder: the model is not even shown it

An empty cell takes its value from above, with one rule that keeps the tree safe: allow is never inherited. An allow on a group counts as ask for what is below it. So a new tool an MCP server adds starts at ask, never at the server's allow.

How a call is decided ​

In the caller's column, a call's place is looked up in this order:

  1. A rule at this exact place decides.
  2. An off or ask stored above it decides. An allow above counts as ask.
  3. A default from the code decides.
  4. Nothing anywhere means off.
  • Every target must pass. A mail to three recipients is checked three times, and the strictest answer wins.
  • The strictest pattern wins. When *.home.example allows and nas.home.example asks, a call to the NAS asks. A more specific pattern does not beat a stricter one.
  • A lock holds a place. A locked ask or off covers everything below it, and no answer can lift it to allow. Only you, editing the tree, can.

Answers become rules ​

When a chat asks and you allow, Remember on the approval decides what the tree keeps:

RememberWhat is stored
Oncenothing; the next call asks again
2 h · this chat (for a while)an allow in that chat's own column, for two hours by default
Alwaysan allow in the chat column, for every chat, on that target or a wider pattern you chose

A no is never stored. Only a chat's answer can be remembered: an agent, a device or voice asks every time, and giving them allow is your edit. Where you change cells: Permissions.

nocturn is open source. Example hosts and people on these pages are made up.