Phin Tech docs Playpen in the store →

Proposals: the rest of the inbox, and letting the agent propose

Network requests already lists each sandbox's proposals, and has Approve, Reject and Approve All. Three things are missing.

Clear, history and a reason #

The risk check's findings #

rule get prints each proposal's risk-check result, as Prover: prover: no new findings or its findings. Playpen's parser doesn't read that line. So a flagged proposal looks like any other, and Approve All (approve_all_requests) approves every pending one, flagged or not. rule approve-all leaves flagged ones out unless given --include-security-flagged. Read the line into NetworkRequest and show any findings on the row. Decided: Approve All leaves flagged proposals out and says how many it left, and each of those needs its own Approve. Snapshot a flagged proposal's real output first, since none has been seen here.

Letting the agent propose #

When OpenShell's advisor is on, the agent can read its policy and recent denials, and propose a rule with a reason, through http://policy.local in the sandbox. It's off by default (agent_policy_proposals_enabled). Even with it off, blocked connections become drafts, which is what Playpen shows now. Turning it on gives better proposals: a whole REST path instead of one host and port, plus the agent's reason.

Not offered: automatic approval #

proposal_approval_mode = auto approves every proposal the risk check finds nothing wrong with, and that includes any new public host. In one test (OpenShell v0.1.2) it approved 12 of 12. Playpen exists so that a person decides what a sandbox reaches. It already makes every sandbox with --approval-mode manual, and this plan keeps that. If a gateway sets auto globally, the requests section says so, since that overrides the sandbox.

How it's built #