feat(acp_client): settle a sandboxed agent's permission requests through the gate

Open
#1,279 0 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@LivXue is already working on this.

Since Nov 12, 2026.

Assessment

This issue has not been assessed yet.

Description

Reserved for @LivXue: waiting for LivXue to resolve this. Please do not pick it up.

Summary

An external ACP agent's session/request_permission is answered by auto_approver in raven/acp_client/permissions.py: approve, unless the host's deny rules refuse the command. PR #1269 gives Raven's own agents the host's whole permission set and, where the platform supports it, the host's OpenShell sandbox. When such an agent runs sandboxed, its permission requests should be settled by the gate of the turn that owns the run (PermissionGate.authorize_runtime): ask asks the user, full approves, a deny rule refuses. This is the second half of decision D12, left out of PR #1269.

Ruled constraint

A subagent that does not run in a sandbox keeps auto-approving every request (OpenShell does not support Windows, among other cases). Only a sandboxed child changes.

What is missing

  • A route from an ACP session to the gate and responder of the turn that owns it. request_dispatcher answers every request on the pool's connection, outside the turn's task, so current_gate() is not bound there. Elicitations already have such a route, by sessionId: _SessionElicitors in raven/acp_client/pool.py, with identity-checked attach and detach. Permission requests have none.
  • A marker that a child runs sandboxed, recorded when its config is rendered (raven/config/product_render.py, inherit_host_permissions), so the dispatcher can tell the two cases apart.

Tests to have

  • A sandboxed child in ask mode prompts the user through the owning turn.
  • A sandboxed child in full mode is approved without a prompt.
  • A child that is not sandboxed never prompts, and still has a host-denied command rejected.
Dominant language
Python
Stars
4.1k
Forks
94
Avg merge
2d 7h
Merged PRs (30d)
216

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from EverMind-AI/Raven

All issues in EverMind-AI/Raven

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.