Concepts

Policies, verdicts, actions, layers, bindings, and what a sandbox reaches with and without a policy

Policies and rules

A policy is a list of rules. A rule is a verdict, an action and a thing:

Allow  net  api.github.com

You write a policy in the simple form above, or in JSON through the API. Both forms hold the same rules and refuse the same mistakes. An unknown word is an error, never a guess, and every error names its line. Policy syntax has every form.

A stored policy has a name, such as build, and a version number that goes up with every change. A policy holds at most 1,000 rules.

Verdicts

VerdictWhat happens
AllowThe action goes through and is recorded.
DenyThe action is refused at once and recorded. The program gets a clear refusal, never a connection that hangs.
AskThe action is refused at once, and a request goes to a person you named. Once they allow it, the agent's retry goes through. See Approvals.

Actions

ActionWhat it covers
read, writeA folder of Pod's shared drive, granted by name. write includes read.
netA host name, an address or range, or everything else, with an optional port. Where traffic is read, also methods and paths.
useA connected tool: its key and the traffic the key may be attached to.
msgMessages between the sandboxes of a swarm, to or from another policy.
callOne tool call through a connected tool, such as an MCP tools/call, with tests on its arguments.

Not available yet Rules on message topics and on tool calls are checked and compiled, and decide Deny until the sandboxes read them.

Actions lists what each action takes.

Which rule wins

  • Inside one policy, the most specific thing wins: an exact name over a wildcard, a wildcard over everything else, a longer path over a shorter one. At equal weight, Deny beats Ask and Ask beats Allow. The order of lines does not matter.
  • Across layers, every layer must allow an action, and the strictest verdict wins.
  • A policy that says nothing about an action allows nothing for it. No folder, no tool and no host. A policy that wants the open internet says Allow net everything else in so many words.

Layers and the ceiling

Rules come from several layers. Each one can only narrow the layers above it.

LayerWho sets it
OrganizationA person with the admin role
Project, its named policies, and its default for sandboxes with no policyA person with the admin role
A preset, such as coding or model-apisMapier writes it; your policy pins a version
A draftProposed by Pod, accepted by a person
A spec fileWhoever commits the file
One sandboxA create call, a mount, or the dashboard

The organization's and the project's policies are the ceiling. People with a fresh second factor change the ceiling. API keys work beneath it: a key can pick a policy for a sandbox and add rules for that one sandbox, and anything above the ceiling is cut, with the cut rules listed in the sandbox's binding.

A key issued inside a sandbox can never widen its own access. A sandbox it creates gets its parent's policy or a narrower one.

Bindings

A binding says which policy a sandbox runs under, plus any rules for that sandbox alone. You bind a policy when you create the sandbox, by naming it in the create call (createSandbox, fields policy and rules); Pod's front door then binds it through bindSandbox. Sandboxes that share one compiled policy can message each other and share folders, within what that policy grants. Sandboxes under different policies are fenced from each other unless both policies allow it.

With and without a policy

The sandbox hasIt reaches
No policyThe public internet.
A policy, or rules of its ownOnly what the policy and its rules grant.

Either way, Pod's fixed baseline always blocks cloud metadata addresses, link-local and private networks, loopback, the servers' own networks and outbound mail. No policy can open them, and log-only mode does not lift them.

Mounting a folder or connecting a tool on a sandbox with no policy does not close its network. Only attaching a policy does. An Enterprise project can switch its default for sandboxes with no policy to deny.

When traffic is read

A rule that names a site, such as Allow net api.github.com GET /repos/*, needs Pod to read the sandbox's encrypted web traffic, check the request, and send it on. So does a connected tool, since Pod attaches its key. Pod switches reading on for a sandbox only when its policy has such a rule, and the dashboard shows it on the sandbox's page with the rules that caused it.

When reading is on, Pod places a certificate of that sandbox's own in its trust store. A program that trusts only its own certificate list may need pointing at the system's, and a program started before the certificate was placed may need a restart.

Without reading, a rule can name addresses, ranges and ports, but not methods or paths, and no key can be attached. A name rule on a protocol Pod does not read, such as SSH or a database, is enforced by address and port only, and the dashboard marks it as the weaker kind.

End users

If you give sandboxes to your own users through Pod, each end user is a trust domain of their own. A process of Pod's that reads one end user's traffic never serves another's, and the record names the end user each sandbox works for.

Not available yet Policies are stored, checked and compiled, but sandboxes do not enforce them until Pod's per-sandbox firewall ships.