Permission reference
The parts of the permission tree, their names in the app and on the command line, and the pattern syntax of each target type. The tree is stored per workspace in permissions.json; the defaults come from the code and are never stored.
Holders
| Holder (CLI) | In the app | Who | Default |
|---|---|---|---|
chat | Chat · every chat | every chat a person watches | reading allowed; targets ask |
chat:<id> | a chat's strip | one chat's own column: timed allows from answers only | nothing |
voice | Voice · spoken | a spoken session in the app or on a satellite | a short read-only list |
agent:<name> | the agent's name · agent | one agent | off |
remote:<device> | the device's name · device | a paired device that calls tools; by id or name | off |
ext:<name> | the extension's name · by itself | an extension's own code | what installing it granted |
widget:<name>, watch:<name> | their names · widget, watch | a standing call on a schedule | what you accepted when it was made |
nocturn perms takes all of these except chat:<id>, widget: and watch:. A chat's own column holds only what its answers set for a while.
Places
| Place | Example | What it is |
|---|---|---|
| a built-in tool | http_read (builtin/http_read) | see Built-in tools |
| a plugin's tool | plugin/weather/now | one tool of an installed plugin |
| an MCP server's tool | mcp/acme/search | one tool of a connected server |
| a group | mcp/acme | every tool of that server |
| a target | http_read › *.home.example | a pattern under a tool with a target type |
| a secret | secret/opnsense-api | who may send that credential; its hosts are fixed |
| a profile field | profile/places | what an extension may read of the household profile |
Cells
| Cell | The call | The model |
|---|---|---|
| allow | runs | sees the tool |
| ask | waits for a person; an agent on a schedule leaves a draft | sees the tool |
| off | is refused | does not see the tool |
How a place resolves
- A rule at the place itself decides.
- Above it, a stored off or ask carries down. Allow never does: an allow above counts as ask.
- Otherwise the default from the code decides.
- Nothing anywhere is off.
When several patterns match one target, the strictest wins. A call with several targets (a mail to three people) must pass for every one. A tool with a target type needs its targets allowed: allow on the tool itself covers none, so allow * for every target.
Locks
A lock sits on ask or off at a place and covers everything below it. Under it, an answer can allow once but keep nothing, and allows that earlier answers left stop counting. Allows you set yourself still stand. In the app it is Always ask; on the command line --lock.
Target types
| Type | Tools | Pattern | Covers | Wider suggestion |
|---|---|---|---|---|
| host | http_read, http_write, dns_resolve, ping | nas.home.example, *.home.example, * | the host; *.home.example covers home.example and every subdomain. A port is part of the host: api.example.com:8443 | the parent domain: *.example.com |
| path | file_write, file_move, file_remove, mail_attachment_save | notes/todo.md, notes/*, * | a workspace path; * does not cross /, so notes/* is one level | the folder: notes/* |
| address | mail_send | bob@home.example, *@home.example, * | one recipient, case-insensitive; checked per recipient | the domain: *@home.example |
| ssh | ssh_exec | admin@fw.home.example docker ps * | a user, a host and a command; a * word is any one word, and as the last word any number | the first words plus *, or the same command on *.<parent> |
| glob | image_generate, image_edit, profile_set | *, ? | any text; * crosses / | none |
The daemon never suggests * as a wider pattern. A host pattern takes * only as its first label: *.com is refused.
Origins
| In the app | In nocturn perms show |
|---|---|
| Set by you | set by owner |
Set by your answer in "<chat>" | set by answer in chat <id> |
Timed until HH:MM | timed until HH:MM |
Installed with <extension> | set by installed with <extension> |
Inherited from <place> | inherited from <place> |
| Default | default |
| Nothing by default | nothing says otherwise |
Files and commands
| What | Where |
|---|---|
| Stored rules | nocturn-data/workspaces/<name>/permissions.json |
| "For a while" | forAWhile in workspace.json, default 2h |
| Show | nocturn perms show [--holder H] [--node N] [--all] |
| Set | nocturn perms set <holder> <node> [target] allow|ask|off [--lock] [--reload] |
| Clear | nocturn perms clear <holder> <node> [target] [--reload] |
| Agents | nocturn agent show|accept <name> |
| Devices | nocturn remote allow <device> <tool>..., nocturn remote show <device> |
A running daemon reads permissions.json again at nocturn reload, or at once with --reload. Every command takes -w <workspace>; the default is main.