class LittleGhost::Sandbox::Policy

Normalizes requested filesystem, process, environment, and child-network controls into one immutable policy. Policy is a declaration, not proof of isolation; the selected backend reports the policy it actually enforces and rejects controls it cannot enforce.

When environment is omitted, child processes receive a scrubbed locale and path baseline without inheriting other host values. An explicit Hash or EnvironmentPolicy replaces that baseline, including an empty Hash. Workspace routing values are added separately when a process starts.

policy = LittleGhost::Sandbox::Policy.new(
  files: {root: :read_write},
  network: :none
)

policy.root_filesystem       # => :isolated
policy.environment.inherit?  # => false