SessionLimitsChoice
Experimental
The session/start limits choice: every member is
optional — a start names only the axes it chooses, and an omitted axis
reads the daemon default: the daemon’s own posture on the sandbox axes,
and on trust untrusted unless the daemon serves trusted by default
(ADR 59770 D4a). On a daemon whose default sandbox is off, turning the
sandbox on takes both sandboxEnabled: true and sandboxNetwork;
naming sandboxEnabled: true without sandboxNetwork, or a network
restriction (restricted or proxy-only) without naming
sandboxEnabled, is refused -32602 (data.reason: "tighterSandboxUnserved") until settles how a session turns the
sandbox on there; a network restriction beside an explicit
sandboxEnabled: false, which never turns it on, is refused the same way
while is open, so drop the restriction. Where the ceiling allows
the sandbox off over a sandbox-on default, a network restriction beside
sandboxEnabled: false is admitted and restricts nothing: with the
sandbox off the network is not sandboxed, so the session runs and
reports sandboxNetwork: "enabled".
Reports use SessionLimits, whose members are always present. A
session/resume names only workspaceTrusted here (ADR 73001 D6).
Fields and variants
Section titled “Fields and variants”sandboxEnabled— ExperimentalsandboxNetwork— ExperimentalshellEnabled— ExperimentalworkspaceTrusted— ExperimentalwritesEnabled— Experimental
Source
schema/msp/experimental/msp.schema.json#/types/SessionLimitsChoice
{ "description": "The `session/start` `limits` choice: every member is\noptional — a start names only the axes it chooses, and an omitted axis\nreads the daemon default: the daemon's own posture on the sandbox axes,\nand on trust untrusted unless the daemon serves trusted by default\n(ADR 59770 D4a). On a daemon whose default sandbox is off, turning the\nsandbox on takes both `sandboxEnabled: true` and `sandboxNetwork`;\nnaming `sandboxEnabled: true` without `sandboxNetwork`, or a network\nrestriction (`restricted` or `proxy-only`) without naming\n`sandboxEnabled`, is refused `-32602` (`data.reason:\n\"tighterSandboxUnserved\"`) until settles how a session turns the\nsandbox on there; a network restriction beside an explicit\n`sandboxEnabled: false`, which never turns it on, is refused the same way\nwhile is open, so drop the restriction. Where the ceiling allows\nthe sandbox off over a sandbox-on default, a network restriction beside\n`sandboxEnabled: false` is admitted and restricts nothing: with the\nsandbox off the network is not sandboxed, so the session runs and\nreports `sandboxNetwork: \"enabled\"`.\nReports use `SessionLimits`, whose members are always present. A\n`session/resume` names only `workspaceTrusted` here (ADR 73001 D6).", "properties": { "sandboxEnabled": { "description": "Shell filesystem/network sandboxing (`--disable-sandbox` absent).", "type": "boolean" }, "sandboxNetwork": { "$ref": "#/$defs/LimitsNetworkMode", "description": "Sandbox network policy (`--sandbox-network` grammar)." }, "shellEnabled": { "description": "Workspace shell execution (`--disable-shell` absent).", "type": "boolean" }, "workspaceTrusted": { "description": "Loading the workspace's skills and rules (`--trust-workspace`).", "type": "boolean" }, "writesEnabled": { "description": "Non-shell workspace filesystem writes (`--disable-write` absent).", "type": "boolean" } }, "type": "object", "x-msp-descriptor": "session/start.limits", "x-msp-stability": "experimental"}