Skip to main content

Module sensitive_handlers

Module sensitive_handlers 

Source
Expand description

The routes of the Sensitive tool (SPEC_SUPER_AGENT_2026_10_25.md §4): an agent asks for a sensitive operation, the super agent approves or denies it, and an approved one starts its countdown, which the person can veto.

POST /api/v1/sensitive/{request,approve,deny,cancel,status,list} { agent_id, … }

The agent’s token decides who acts; the body’s agent_id must be a name that agent answers to. Every message these send is from AgentMux, names the requester, and says whose request it is: nothing in one is the operator’s voice.

Functions§

act 🔒
Do action for the agent, and leave an audit row for the steps of a request: the row names the agent that did it, a refused approval or denial included.
act_inner 🔒
approved_note 🔒
ask_the_super_agent 🔒
Send the super agent the request, and say to the requester what came of it.
audit_result 🔒
An audit row for what slug did to the request id. A step refused before any request existed has nothing to attach a row to.
denied_note 🔒
facts_of 🔒
The facts of a request: an object of strings.
file_request 🔒
File a request for op as the agent uid/slug and ask the super agent. The Sensitive tool’s request, and what the tools that did these things on their own now do instead.
handle_sensitive 🔒
is_super 🔒
must_get 🔒
request_note 🔒
What the super agent is told. The summary is built from the request’s facts; the reason is the requester’s own words, quoted as theirs.
require_super 🔒
shown 🔒
A request as an agent reads it. reason and deny_reason are the agents’ own words.
status_for 🔒
Where the request id stands, for the one that asked it (uid): the remote operation app.upgrade’s status read.
super_uid 🔒
The uid of the agent holding the super seat, if any.
tell 🔒
Tell an agent something, from AgentMux. Not delivered (the agent isn’t running) is not an error.
text 🔒
who 🔒