Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 860 Bytes

File metadata and controls

28 lines (18 loc) · 860 Bytes

Approvals

Approvals are permission requests raised by provider hooks. They appear in the approvals queue and the orchestrator.

Flow

  1. A provider hook emits an approval request to agentd.
  2. agentd sends approval.requested to the control plane.
  3. The dashboard shows the approval with session context.
  4. An operator decides allow or deny.
  5. The decision is sent back to agentd and the hook resumes.

Decision modes

  • hook - respond through the provider hook API.
  • keystroke - send keystrokes into tmux as a fallback.
  • both - attempt hook response and keystrokes.

Timeouts

Approvals can time out if a provider does not receive a decision in time. Timed out approvals are marked inactive.

API

  • GET /v1/approvals - list approvals.
  • POST /v1/approvals/:id/decide - allow or deny.

See Provider Hooks for setup.