Controls

The cut-off switch, connection tests, log-only mode, presets and drafts

Beside the rules, five controls help you write a policy, check it, and stop a sandbox fast.

The cut-off switch

Pulling the cut-off switch is published at once to one sandbox, every sandbox under one policy, or a whole project, and refuses all their network traffic once sandboxes enforce policies. The sandboxes keep running; they reach nothing until the cut-off is lifted.

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

Pulling it only narrows, so any member whose role may write permissions, or an API key with permissions:write, can pull it (pullCutOff). Lifting it takes a person with the admin role and a fresh second factor (liftCutOff).

curl -X POST "https://api.pod.mapier.ai/v1/cut-offs?project=$POD_PROJECT" \
  -H "Authorization: Bearer $POD_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"target": "sandbox", "target_id": "sbx_…"}'

target is sandbox, policy or project.

Connection tests

A connection test says what a sandbox's policy would decide for a request, without sending it: the verdict, the rule that decided, why, whether the request would be read, and whether the baseline, a cut-off, log-only mode or an answered Ask decided. Test against a running sandbox, with its answered Asks, or against a policy alone (testConnection).

Use it before you attach a policy, and when an agent reports a refusal you do not expect.

Log-only mode

Log-only mode is for a first run. It lets a net request that would be denied or asked through, and records what would have happened. You run the agent on its task, read the record, and write the policy from what it reached.

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

It never mounts a folder, never attaches a key, and never lifts the fixed baseline. Switching it on takes a person with the admin role and a fresh second factor, and an end time, at least 1 hour and at most 7 days away (setLogOnly). Switching it off early takes the same. No API key and no spec file can do either.

Presets

Mapier writes presets for common work, and keeps them versioned:

PresetWhat it allows
codingThe common code hosts and package registries, over HTTPS
model-apisThe public APIs of the common model providers, over HTTPS

A policy pins a preset at a version, as a layer above its own rules. A published version never changes. When Mapier publishes a newer one that allows more, your policy stays on its version until a person reads what the newer one newly allows and accepts it. List presets and every version's rules with listPresets and getPreset.

Drafts

Pod can draft a policy for you. A draft is a layer under one of your policies: it can only narrow that policy, never widen it, and it takes effect only when a person accepts it.

Draft fromHow
Watching a runA sandbox runs its task in log-only mode, and Pod recommends a policy from the connections, folders and tools it used.
A refusalPod proposes one narrow rule for the thing just refused, with what it would newly allow.
The taskA model reads the task and proposes rules, before the run.

Not available yet Drafts from watching a run or from a refusal arrive with enforcement; drafts written from a task arrive later.

A run under attack teaches the wrong lesson, so a learned rule is never applied alone: every draft shows what it would allow, and a person reviews it. Ask for a draft with createDraft; accepting one is a person's action with a fresh second factor (acceptDraft). Model calls for drafts from a task are billed to you as usage.