Skip to main content

Module protocol

Module protocol 

Source
Expand description

The session.permission.respond JSON-RPC method and its wire types (#7948).

Why: an ask rule suspends a tool call inside a spawned task; a client releases it with this request. It lives beside the gate because it writes into the permission broker, not the session registry. What: PermissionDecision (the three answers), PermissionRespondParams (the flat wire shape), and register.

Trust model (#7948): session.permission.respond accepts an answer for ANY session from ANY connection that can reach the daemon’s RPC surface. It checks neither that the caller is attached to the session nor who the caller is. This matches every other RPC method today. Revisit it before the daemon serves more than one tenant. Test: permissions::tests::protocol_tests — the whole module.

Structs§

PermissionRespondParams
session.permission.respond’s parameters.

Enums§

PermissionDecision
A client’s answer to one Event::PermissionRequested.

Constants§

PERMISSION_RESPOND_METHOD
The JSON-RPC method name clients call to answer a permission request.

Functions§

register
Register session.permission.respond onto router.