Skip to content

child sandboxes: children keep a policy their parent rejected #6091

Backlog

Description

@patkraw

User Story

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

  1. added
    state:triage-needed
    on Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    state:triage-needed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions