deepseek-ai/deepseek-harness · error · Error
sandbox_permissions is not available in this composition (no
Error message
sandbox_permissions is not available in this composition (no sandboxing filesystem to escalate)
What it means
Error "sandbox_permissions is not available in this composition (no sandboxing filesystem to escalate)" thrown in deepseek-ai/deepseek-harness.
Source
Thrown at packages/fs/tool-fs/src/sandbox.ts:94
* The policy to stamp onto this mutation: an approved escalation grant (a
* strictly wider retry resolved through `ctx.approval` before anything
* executes), else the session's standing mode. The calling session's cwd is
* always carried as the workspace root. Validates the escalation argument
* pairing first.
* @param toolName - the mutating tool's name, for the approval audit trail.
* @param args - the call's escalation arguments.
* @param exec - the tool-execution context (agent, callId, signal).
* @returns the policy to pass to the mutation, or undefined for an
* unsandboxed backend.
*/
async resolvePolicy(toolName: string, args: FsEscalationArgs, exec: ToolExecution): Promise<SandboxExecutionPolicy | undefined> {
validateEscalationArgs(args.sandbox_permissions, args.justification)
const standingPolicy = this.policy?.resolve({ ...exec.agent ? { session: exec.agent.session } : {} })
if (args.sandbox_permissions === undefined || args.justification === undefined) {
return standingPolicy
}
if (this.escalationModes.length === 0) {
throw new Error('sandbox_permissions is not available in this composition (no sandboxing filesystem to escalate)')
}
const policy = standingPolicy as SandboxExecutionPolicy
const approvedMode = await approveEscalation(
{ requestedMode: args.sandbox_permissions, justification: args.justification, effectiveMode: policy.mode, subject: 'operation' },
{
approver: this.ctx.get('approval'),
agent: exec.agent,
callId: exec.callId,
toolName,
signal: exec.signal,
},
)
return { ...policy, mode: approvedMode }
}
/**
* Map a thrown provider error for the model: a `FS_SANDBOX_DENIED` becomes a
* `FsError` whose text is the shared `[sandbox: …]` denial marker plus theView on GitHub (pinned to b150a551b8)
When it happens
Trigger: Thrown at packages/fs/tool-fs/src/sandbox.ts:94 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of deepseek-ai/deepseek-harness@b150a551b8 (2026-08-24).
Data as JSON: /api/errors/f995087acfd49603.
Report an issue: GitHub.