deepseek-ai/deepseek-harness · error · AggregateError
sandbox-local windows-acl workspace grant failed and its cle
Error message
sandbox-local windows-acl workspace grant failed and its cleanup also failed
What it means
Error "sandbox-local windows-acl workspace grant failed and its cleanup also failed" thrown in deepseek-ai/deepseek-harness.
Source
Thrown at packages/sandbox/sandbox-local/src/index.ts:406
* @param sessionId - the policy's calling-session identity.
* @param workspaceRoot - the resolved policy root.
* @returns the pair's private temp directory and write capability.
*/
private materializeAclGrant(sessionId: SessionId, workspaceRoot: string): AclTempCapability {
assertTempRootOutsideWorkspace(workspaceRoot, tmpdir())
const writeSid = workspaceWriteSid(workspaceRoot)
if (!this.workspaceGrants.has(workspaceRoot)) {
const grant = AclWriteGrant.create(writeSid)
try {
grant.add(workspaceRoot, true)
} catch (error) {
// Free the SID; a standing ACE (if the apply succeeded before a
// post-apply throw) is the intended end state, not an error
// artifact — nothing to revoke.
try {
grant.dispose()
} catch (cleanupError) {
throw new AggregateError([error, cleanupError], 'sandbox-local windows-acl workspace grant failed and its cleanup also failed')
}
throw error
}
this.workspaceGrants.set(workspaceRoot, grant)
}
const key = JSON.stringify([String(sessionId), workspaceRoot])
const existing = this.tempCapabilities.get(key)
if (existing !== undefined) return existing
const tempDir = mkdtempSync(join(tmpdir(), 'dsh-'))
const tempSid = tempWriteSid(tempDir)
let grant: AclWriteGrant | undefined
try {
grant = AclWriteGrant.create(tempSid)
grant.add(tempDir)
} catch (error) {
const cleanupFailures: unknown[] = []
if (grant !== undefined) {
try {View on GitHub (pinned to b150a551b8)
Solutions
- Inspect the Windows ACL state manually, remove stale workspace grants, and retry.
When it happens
Trigger: Thrown at packages/sandbox/sandbox-local/src/index.ts:406 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/18f4fd232f20815c.
Report an issue: GitHub.