Layer 8 · place
sandbox
What a workload can reach: an isolation level, the paths it may write, the hosts and ports it may connect to, and the secrets it may read, by name only. Default deny: a reach no rule names is refused. A secret's value is never part of the contract.
Depends on
- shared · layer 0 · 4 references
Used by
- runtime · layer 8 · 6 references
Entities
Sandbox
One set of reach rules a workload runs under.
Identified by sandbox_id (SandboxId).
| field | type |
|---|---|
isolation | IsolationLevel |
writable_paths | list of Path |
egress | list of EgressRule |
secret_grants | list of SecretName |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Lifecycle of Sandbox
Retired.Commands
CheckEgress
Check an egress.
Called by: Enforcer.
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
unknown refused | no such Sandbox | Unknown: No sandbox has this identity. |
retired refused | state == Retired | Sandbox: The sandbox is retired; it allows nothing. |
denied refused | not (some r in egress with r. | Egress: No egress rule names this host and port. |
allowed | otherwise | leaves the Sandbox as it is |
More columns: swipe horizontally, or focus the table and use the arrow keys.
CheckSecretRead
Check a secret read.
Called by: Enforcer.
| field | type |
|---|---|
sandbox_id | SandboxId |
name | SecretName |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
unknown refused | no such Sandbox | Unknown: No sandbox has this identity. |
retired refused | state == Retired | Sandbox: The sandbox is retired; it allows nothing. |
denied refused | not (some s in secret_ | Secret: No grant names this secret. |
granted | otherwise | leaves the Sandbox as it is |
More columns: swipe horizontally, or focus the table and use the arrow keys.
CheckWrite
Check a write.
Called by: Enforcer.
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
unknown refused | no such Sandbox | Unknown: No sandbox has this identity. |
retired refused | state == Retired | Sandbox: The sandbox is retired; it allows nothing. |
denied refused | not (some p in writable_ | Write: The path is not writable in this sandbox. |
allowed | otherwise | leaves the Sandbox as it is |
More columns: swipe horizontally, or focus the table and use the arrow keys.
DefineSandbox
Define a sandbox.
Called by: Operator.
| field | type |
|---|---|
isolation | IsolationLevel |
writable_paths | list of Path |
egress | list of EgressRule |
secret_grants | list of SecretName |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
defined | otherwise | creates a Sandbox in Active; emits Sandbox |
More columns: swipe horizontally, or focus the table and use the arrow keys.
RetireSandbox
Retire a sandbox.
Called by: Operator.
| field | type |
|---|---|
sandbox_id | SandboxId |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
unknown refused | no such Sandbox | Unknown: No sandbox has this identity. |
retired | otherwise | moves the Sandbox Active → Retired; emits Sandbox |
wrong-state refused | the Sandbox is in a state that does not allow it | Sandbox: The sandbox is not in a state this command acts from. |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Events
| event | fields | emitted by |
|---|---|---|
SandboxDefined | sandbox_ SandboxId, isolation IsolationLevel | Define |
SandboxRetired | sandbox_ SandboxId | Retire |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Views
| view | rows | fields |
|---|---|---|
SandboxesSandboxes | each Sandbox | sandbox_ SandboxId, isolation IsolationLevel, writable_ list of Path, egress list of EgressRule, secret_ list of SecretName, state State |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Types
| type | is | values or fields |
|---|---|---|
EgressRule | a record | host Host, port integer |
HostA host name or address, matched exactly. | an identifier or value | string |
PathA path in the file system the workload sees, matched exactly. | an identifier or value | string |
SecretNameThe name a secret is granted by; the value never appears. | an identifier or value | string |
More columns: swipe horizontally, or focus the table and use the arrow keys.
KPIs
5 KPIs from the KPI catalogue. A gate must be zero for a variant of an architecture to count.
Correctness
| KPI | unit | better | gate | status |
|---|---|---|---|---|
secrets_left_sessionConfirmed secrets in the arguments of a tool call whose effect leaves the sandbox. How: ExposureDetected events with class Secret, channel ToolInput and verdict Gap, on a tool of category Network, Message or Execute. Must be 0. | count | lower | gate | computed today source: docs/kpis.md |
secrets_in_promptsConfirmed secrets in a prompt. How: ExposureDetected events with class Secret, channel Prompt and verdict Gap. Not a gate, because the owner pasting a value is not an agent leaking one; it still reaches the model provider. | count | lower | – | computed today source: docs/kpis.md |
secrets_in_tool_outputConfirmed secrets in the result of a tool call. How: ExposureDetected events with class Secret, channel ToolOutput and verdict Gap. Not a gate, because the value entered the context but did not leave. Unconfirmed matches (verdict Unk) are listed apart for review. | count | lower | – | computed today source: docs/kpis.md |
attacks_through_exec_scopeAttack cases that got through the exec scope in an attack suite. How: In a fixed suite of attack cases, ToolCallCompleted of a call that the exec scope should have stopped. Must be 0. Report tasks done under the scope beside it, because a scope that blocks work is no answer. | count | lower | gate | planned source: research/2609.08371 |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Quality
| KPI | unit | better | gate | status |
|---|---|---|---|---|
egress_denied_attemptsTool calls refused because they reach outside the sandbox. How: ToolCallDecided refusals on tools of category Network or Message, or Execute with an outward effect, per sandbox. | count | lower | – | planned source: design |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Settings
The settings a part of this block carries in an architecture document. agenticspec sim check refuses any other setting (setting_unknown) and a value outside its type (setting_invalid), and a part that lacks a setting marked required in the default column; the contract copies a setting into the ports it narrows. The last rows of each table are the settings every part takes. What no setting here types (a file, a path, an audience, the use of a model) goes into the part's notes, a map with free keys and values that the check takes as written and nothing reads.
A part sandbox:
| setting | type | unit | default | contract | what |
|---|---|---|---|---|---|
isolation | enum Isolation: none, process, container, user_, micro_ | every port | How the sandbox isolates what runs in it. | ||
egress | part list | every port | The parts and the endpoints of the architecture (endpoints:) the sandbox may reach. | ||
secrets | string list | every port | The secrets what runs in the sandbox may read, by name (^[a-): the sandbox block's secret grants. A deployment asks a part of the unit of the part its per names to declare each. | ||
count | integer of at least 1 | 1 | How many copies of the part run. | ||
per | part | One copy of the part for each copy of the named part. | |||
notes | notes | Free notes on the part, a map with keys and values of any kind: what no setting of its block types. The check takes any map; the simulator, the search and the contract never read it. |
More columns: swipe horizontally, or focus the table and use the arrow keys.