You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
child sandboxes: children keep a policy their parent rejected #6091
I use OpenShell to run sub-agents in child sandboxes under a root agent's sandbox. I need a child never to hold more access than its parent is running with, so that a parent's policy bounds what its sub-agents can do.
Description
Child sandboxes (experimental) copy their parent's policy. Since #5641, the gateway sends a new parent revision to the parent and its children at the same time, and each sandbox handles its own load result.
If the parent rejects a revision that its children load, they run different policies until the parent loads a later one. When that revision grants more access, the children keep it, even while the parent is blocked under fail_closed. Nothing tells the user; the mismatch shows only in policy status, logs and OCSF events.
A policy the supervisor rejects is usually rejected by the parent and children alike, since they run the same supervisor. A parent-only failure needs a parent-specific cause, such as a path or user its image lacks.
Context
The child sandboxes page documents this as a known limitation.
Options considered:
Block every child when the parent fails to load, as a separate step from sending the policy. Deferred for v1: a parent-only failure needs rare conditions, and the check must apply whether the change widens or narrows the policy, which the gateway does not classify today.
In v2, children get their own policies that must be a subset of the parent's. Narrowing the parent then needs a step that trims each child's policy; this issue may be resolved by that step.
Definition of Done
Decide whether a parent's load failure should affect its children.
Implement that decision, or close this issue with the v2 design and remove the known limitation from the child sandboxes page.
Activity