# Check a subagent's OpenShell policy against a boundary

DevFeed: [Check a subagent's OpenShell policy against a boundary](<https://devfeed.tech/articles/check-a-subagent-s-openshell-policy-against-a-boundary-129766.md>)

Original publisher: [Read original article](<https://nirmata.com/2026/11/12/openshell-policy-ceilings-and-least-privilege-delegation/>)

Author: Ritesh Patel

Published: 2026-11-12T04:23:18.277431Z

Content type: tutorial

Language: en

Sources: [Nirmata](<https://devfeed.tech/sources/nirmata.md>)

Topics: [OpenShell](<https://devfeed.tech/topics/openshell.md>), [policy-as-code](<https://devfeed.tech/topics/policy-as-code.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-agent-governance](<https://devfeed.tech/tags/ai-agent-governance.md>), [ai-agents](<https://devfeed.tech/tags/ai-agents.md>), [ai-governance](<https://devfeed.tech/tags/ai-governance.md>), [allows](<https://devfeed.tech/tags/allows.md>), [boundary](<https://devfeed.tech/tags/boundary.md>), [candidate](<https://devfeed.tech/tags/candidate.md>), [coverage](<https://devfeed.tech/tags/coverage.md>), [delegation](<https://devfeed.tech/tags/delegation.md>), [docs](<https://devfeed.tech/tags/docs.md>), [domains](<https://devfeed.tech/tags/domains.md>), [effective](<https://devfeed.tech/tags/effective.md>), [filesystem](<https://devfeed.tech/tags/filesystem.md>), [gateway](<https://devfeed.tech/tags/gateway.md>), [global](<https://devfeed.tech/tags/global.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [kubernetes](<https://devfeed.tech/tags/kubernetes.md>), [kubernetes-security](<https://devfeed.tech/tags/kubernetes-security.md>), [openshell](<https://devfeed.tech/tags/openshell.md>), [parent](<https://devfeed.tech/tags/parent.md>), [policy](<https://devfeed.tech/tags/policy.md>), [policy-as-code](<https://devfeed.tech/tags/policy-as-code.md>), [run](<https://devfeed.tech/tags/run.md>), [sandbox](<https://devfeed.tech/tags/sandbox.md>), [subagent](<https://devfeed.tech/tags/subagent.md>)

## AI overview

OpenShell's Policy Prover checks offline whether a candidate policy stays within a maximum-access boundary; only `within_boundary` passes, and the check does not apply or enforce the policy. For a subagent, save the parent's allowed policy as the boundary and the subagent policy as the candidate, run `openshell-prover check ... --boundary ... --output json`, and inspect coverage. Use the sandbox's effective policy as the candidate when checking a live sandbox, including provider-added rules. Treat `unsupported` and `inconclusive` as evidence gaps: limitations include audit-mode endpoints, several protocols and query-parameter rules, path and binary-glob comparisons, unresolved hostnames, and resource limits. The policy advisor separately allows network-rule proposals, with manual approval by default; its risk check is distinct from the boundary check. A global policy replaces sandbox policies rather than constraining them. A pass does not establish task suitability, runtime enforcement, or Kubernetes-layer safety.

## Source excerpt

OpenShell's docs call a maximum-access policy a boundary. The prover checks that a subagent's policy allows nothing beyond the parent's. Here is how to run it.