Approval Gates
Guide to approving, rejecting, and editing agent actions — where the prompt reaches you, and how to tune the threshold.
Sophon pauses and asks for approval whenever an agent wants to do something risky. This guide covers what you see, how to respond, and how to tune the behavior. For the deeper reference — risk levels, timeouts, audit trail — see Approval Gates & Risk Levels.
Since v2.2.0, the host can opt into a separate Allow all tools mode for Admins in trusted workspaces. It is explicitly confirmed and timed, can cover Critical calls, and ends when untrusted content is read. The threshold behavior below describes normal approval modes. See permission modes.
Chat-requested agent-package installs and required-skill cards need the full preview and approval in the Dashboard. Other surfaces can reject those cards. Workflow approvals and questions are limited to their owner and same-tenant Admins. See Agent Packages.
What you see
When an agent proposes an action at or above the approval threshold — Medium out of the box, and Critical always asks whatever the threshold is — a card appears in Dashboard → Approvals (and, if you have mobile enabled, a push notification). The card shows:
- Tool — what the agent is about to call
- Risk — the level the call was actually raised at, color-coded
- Parameters — the exact inputs the agent chose
- Preview — if available (e.g., the draft email body). A file edit shows its diff, and a shell call shows the exact command
- Countdown — time remaining before auto-timeout (default: 5 minutes)
You can:
- Approve — run with the original parameters
- Edit — tweak parameters before approving (only if the tool allows editing). A card that shows a whole shell command can be edited, and the agent is told what actually ran
- Always allow — approve, and let later calls of the same kind run without a card for a while. Offered only for some calls in a trusted coding workspace; see standing rules
- Reject with feedback — skip this call and tell the agent what to do instead. The agent continues with your note
- Reject — skip this call. In an interactive chat or voice turn, a plain reject ends the turn, and the agent says it stopped
One prompt, and it comes first
As of 2.0 a tool that needs approval asks once, before it runs. Earlier versions asked twice, and the second prompt arrived after the tool had already executed — approving or rejecting it changed nothing.
Since 2.1, a plain reject or a timeout of a tool call in an interactive chat or voice turn ends that turn. Use reject with feedback when you want the agent to carry on another way. In other runs (a plan step, a sub-agent, an automation), a rejected call still comes back to the agent as an error result it can react to.
Approving a file edit whose file changed while the card was open is refused with STALE_APPROVAL; the agent has to make the edit again. A preview too large to show whole is cut, and must be opened and read to its end before it can be approved. On the Dashboard's Approvals page, a cut card or any diff offers Review in chat instead of Approve.
The one place you'll still see two cards is a shell command on a paired desktop: the general gate asks first, then the desktop tool asks again at Critical with the exact command as an editable preview. Redundant rather than unsafe, and on the list to collapse.
Every request ends in exactly one recorded outcome: Approved, Edited, Rejected, Cancelled or Timed out, written once. If two devices answer the same card, the first answer is the one that counts. A timeout or a cancel can never later turn into an approval.
Approving from where you are
You don't have to be at the Dashboard.
- Mobile push — if you have Sophon Mobile installed and
approvalRequestsnotifications enabled, the request arrives as a push notification with Approve / Reject action buttons. Tap to respond without opening the app. (Respects your push quiet hours — see Notifications.) - Channel of origin — if the conversation is running on Telegram, WhatsApp, Slack, etc., the approval request is posted back to that same chat. You answer there with
approve <id>orreject <id>, using the id the prompt carries. - By voice — on the Voice page, the Command Bridge, or Sophon Mobile's Voice tab, the prompt is read out and you answer out loud. A plain "yes" is enough at None, Low and Medium risk; High and Critical need you to say "yes, approve". See Approvals & Questions by Voice.
- CLI —
sophon approvals pendinglists what's waiting;sophon approvals decide <id> --approve/--rejectanswers from a terminal, andsophon approvals edit <id>opens the preview in$EDITORand approves with edits./approvalsis retired in v2.2.0; use the shell command above to list open gates. In chat, an approval arrives as a card with a live countdown:Aapproves,2always allows where offered,Frejects with feedback,Rrejects,Vopens the full preview,Eedits andSskips (the pinned surface keepsA,R,EandS). See Interactive Chat.
Answer in one place and the rest close on their own: deciding a request — or letting it time out, or having it cancelled — closes the open cards on the other surfaces and any voice prompt waiting on it.
Answering from a channel
Two things are worth knowing about the channel path, both new in 2.0.
An approve/reject reply is accepted only from the chat the request was actually delivered to. Someone in another group wired to the same bot cannot answer by guessing an id. The flip side is that the check is per chat, not per person: anyone in that chat can answer, and if the Gateway restarts while a request is still pending, the reply falls back to the channel's default chat. Per-sender binding is on the roadmap — do not treat the current scoping as one.
Requests raised outside a conversation turn have no channel to go to. An MCP tools/call, a workflow step, or a background job is answered on the Dashboard or mobile instead.
Info requests
A related pattern: the agent needs information, not a yes/no. As of v1.15, this is a structured ask rather than a one-off question:
- One ask bundles 1–4 questions, each with a short header chip (max 12 characters) so you can see at a glance what's being asked.
- Each question offers 2–4 options, every option carrying a label and a one-line description so you know what you're picking.
- Questions can be multi-select where it makes sense ("which calendars should I watch?").
- Free text is always allowed — options are suggestions, never a cage. Type your own answer at any point.
Where you answer depends on where you are:
- Dashboard — the question card renders each question with its options. Click an option, or just type in the composer: while a question is active, your typed message answers it — the server routes it to the question, no special syntax needed.
- CLI — sequential pickers walk you through the questions one at a time.
- Mobile — the same card, options plus free text.
- External channels (WhatsApp, Telegram, Slack, …) — the agent texts you numbered options; reply with the number(s) or with free text, and the reply is parsed into an answer.
Timeouts are honest: an unanswered ask expires with an explicit TimedOut result to the agent — Sophon never silently assumes the first option.
Pending asks are also available over REST:
GET /api/info-requests/pending
POST /api/info-requests/{id}/respondThese don't gate tool execution the same way approvals do; they just block the agent on your answer (or on the timeout).
Requests from a plan step or a sub-agent
New in 2.0. When a plan step or a sub-agent needs an approval or an answer, the card now surfaces in the conversation you're actually watching — Dashboard, Mobile, CLI and the channel the conversation came from — tagged with the step it came from, with a link into that step's own session. Previously a sub-agent could sit on a request nobody ever saw until it expired.
These waits are held in memory, not parked durably, so a Gateway restart while one is open fails that step attempt and the plan retries it. And nobody answering is still a decision: an unanswered approval is rejected, an unanswered question tells the step to proceed on its best judgment. Neither ever becomes an approval or a silently picked option.
Tuning what gets asked
Two host-wide settings, both at Settings → Security → Approvals, both live — a save applies to the next tool call, with no Gateway restart:
- Approval threshold — the level at or above which a call needs a human. Default Medium.
- Per-tool overrides — replace one tool's declared risk, up or down.
The order they're applied in matters:
- A per-tool override replaces the tool's static risk.
- A per-call assessed risk can only raise the result — a tool whose risk depends on its arguments (
remote.control, say) classifies each call, and the higher of the two wins. - Critical always prompts, whatever the threshold and whatever the override. On a Critical tool an override does nothing at all.
- Otherwise you're asked when the effective risk lands at or above the threshold.
{
"Sophon": {
"ApprovalPolicy": {
"DefaultRiskThreshold": "Medium",
"PerToolOverrides": { "email.send": "High", "code.execute": "High" }
}
}
}To stop a single conversation asking about routine calls, turn on auto-approve for that session with a risk ceiling (/permissions auto-approve on medium in the CLI). Critical is never auto-approved whatever ceiling you pick, and auto-approvals are still recorded in the audit trail.
Since 2.1, auto-approve that a person turns on covers less. It never covers shell commands, coding agents, skills, or tools that send data out or send messages, and in a bound coding workspace it never covers an edit or a shell call. A cron job, webhook or channel message that runs in a chat with auto-approve on and sends mail or a message now raises a card. The heartbeat's and the plan runner's own auto-approval floors are unchanged.
Coding sessions in the CLI
A CLI chat bound to a folder on the Gateway's machine is a coding session. There, every edit, file change and shell call asks, whatever the threshold says, and the card shows the diff or the command. Three things can stand in for a card, and each has a narrow reach.
Permission modes
Each session has a permission mode. default asks before edits. acceptEdits lets file edits inside the trusted workspace run without a card. plan is read-only until you approve a plan. Switch with Shift+Tab or /permissions in the CLI, or the mode chip on the Dashboard.
Accept edits needs a trusted, bound workspace and an elevated connection (in practice, the CLI on the Gateway's machine). It covers only the edit tools, and never shell commands, coding agents, deletes, copies or moves. Files that can run code always get a card even under accept edits: package manifests and lockfiles, build and CI files, git hooks, IDE settings, Dockerfiles, and agent instruction files such as AGENTS.md and CLAUDE.md.
Standing rules
In a trusted workspace, some cards offer always allow (2 in the CLI). The rule then covers matching calls in that session until it expires:
- A tool rule covers the read-only network tools
http.request(GET and HEAD only),web.fetchandweb.scrape. - A command-prefix rule covers
os.executecommands that start with the same program and at most two more plain words, such asdotnet test. A covered command runs that program directly, with no shell.
Some commands never get an always-allow offer: chained commands, pipes and redirects, paths, some switches, and programs that can do anything, such as shells, interpreters, curl, docker, git push, npm install and dotnet tool. Rules last 8 hours by default (Sophon:Workspace:StandingRuleTtlHours, from 1 to 24), and a session holds at most 32. Once any turn in the session reads untrusted content, network and command rules stop covering for the rest of that session. Every mcp.* call in a bound session always asks.
List and revoke rules with /permissions rules and /permissions revoke <id|all>. On Personal, always allow needs the CLI; the Dashboard says it requires the CLI.
Runs with nobody there
A headless run (sophon -p or sophon exec) never approves anything. Every card is rejected with the feedback non-interactive: not approved (--permission-mode <mode>), every question is skipped, and the run exits with code 2 if it was denied something it needed. To let a headless run use a tool or a command without a card, pass --trust-workspace with --allow <tool> or --allow "os.execute:<prefix>", which creates standing rules before the first turn. See Headless runs.
Timeout behavior
- Default timeout: 5 minutes.
- Timeout = reject. The tool call fails with "approval timed out". In an interactive chat or voice turn that ends the turn; elsewhere the agent decides what to do next.
- Per-request override — workflows can set longer timeouts (up to 24 hours) for approvals that need human deliberation.
Plan approvals
Whether a multi-step plan waits for you is governed by PlanApprovalMode:
- Interactive sessions gate plans by default (mode
Always). You see the full DAG — every step, its risk, its dependencies — and approve once before anything runs. Plan approvals have a longer default timeout (10 minutes) since you have more to read. - Unattended runs — heartbeat, cron, subagent, and webhook — auto-proceed past the plan gate, so a scheduled plan never stalls waiting for someone who isn't there. Individual steps still raise their own tool-level approvals whenever a call reaches the threshold, and a Critical one always does.
- Per-session override — you can change the behavior for a single session without touching the default. In the CLI chat that is
/permissions plan-approval always|elevated-risk|never: every plan waits, only plans with a step at Medium risk or above wait, or the plan gate is off. Tool approvals inside the steps still apply either way. A sub-agent's or plan step's session cannot change its own setting. - Host default — set it at Settings → Security → Approvals (config key
Sophon:AgentExecution:PlanApproval, live-reloaded — no restart needed).
Editing a plan happens on the card itself. On the Dashboard you can change each step's description, dependencies, tool hints and risk, reorder or remove steps, and add new ones before approving; a plan the agent proposed in plan mode also has a Markdown tab. In the CLI, E on a plan card opens the plan as markdown in $EDITOR.
Plans proposed in plan mode
New in 2.1. In plan mode the agent only reads, then proposes a plan as a card with its goal, steps and risks. From the card you can run it here (optionally switching to accept edits), run it as a graph, edit it, send it back with feedback (at most Sophon:AgentExecution:PlanMaxRevisions times per turn, default 3), or reject it.
Approving that card ends plan mode, so only the session's owner on an elevated connection can approve it. Everyone else who can see the card, including channel replies, REST and sophon approvals decide, can only reject it. On Personal that means you approve plans from the CLI; the Personal Dashboard can only reject a plan. On Pro and Enterprise the owner's Dashboard can approve it.
Audit trail
Every approval decision is logged — who, when, which tool, which parameters, what outcome. View at Admin → Audit. Filterable by user, tool, date, and outcome. Required for compliance in Enterprise.
Where to go next
- Approval Gates & Risk Levels — the full reference with risk definitions
- The CLI Coding Agent — workspace trust, permission modes and standing rules in practice
- Approvals & Questions by Voice — what Sophon says, and what counts as an answer
- Notifications — push categories and quiet-hours behavior
- Planning — how plan-level approvals work