{"record":{"id":"c7deb0281446824c","repo":"deepseek-ai/deepseek-harness","slug":"sandbox-local-windows-acl-temp-grant-materializati","errorCode":null,"errorMessage":"sandbox-local windows-acl temp grant materialization failed and its cleanup also failed","messagePattern":"sandbox-local windows-acl temp grant materialization failed and its cleanup also failed","errorType":"exception","errorClass":"AggregateError","httpStatus":null,"severity":"error","filePath":"packages/sandbox/sandbox-local/src/index.ts","lineNumber":436,"sourceCode":"    try {\n      grant = AclWriteGrant.create(tempSid)\n      grant.add(tempDir)\n    } catch (error) {\n      const cleanupFailures: unknown[] = []\n      if (grant !== undefined) {\n        try {\n          grant.dispose()\n        } catch (cleanupError) {\n          cleanupFailures.push(cleanupError)\n        }\n      }\n      try {\n        this.removeTempDir(tempDir)\n      } catch (cleanupError) {\n        cleanupFailures.push(cleanupError)\n      }\n      if (cleanupFailures.length > 0) {\n        throw new AggregateError([error, ...cleanupFailures], 'sandbox-local windows-acl temp grant materialization failed and its cleanup also failed')\n      }\n      throw error\n    }\n    const capability = { dir: tempDir, writeSid: tempSid, grant }\n    this.tempCapabilities.set(key, capability)\n    return capability\n  }\n\n  /**\n   * Dispose every write grant (provider dispose): the revocable temp ACEs\n   * are revoked, the private temp directories this provider created are\n   * removed, and every SID allocation is freed; the standing workspace ACEs\n   * stay (the reuse cache). Cleanup failures are reported, not thrown:\n   * cordis teardown must not be aborted by grant cleanup. A crash skips all\n   * of it, but a new provider never reuses the residue's random path or SID;\n   * OS temp hygiene (or manual removal) eventually reclaims it.\n   */\n  private revokeAclGrants(): void {","sourceCodeStart":418,"sourceCodeEnd":454,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/sandbox/sandbox-local/src/index.ts#L418-L454","documentation":"Error \"sandbox-local windows-acl temp grant materialization failed and its cleanup also failed\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/sandbox/sandbox-local/src/index.ts:436 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the Windows ACL state manually, remove stale temp grants, and retry."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b150a551b8d465e31e418e1b2eaf5e79bbb7d28e","analyzedAt":"2026-08-24T18:12:29.105Z","schemaVersion":2},"datasetVersion":"2026-08-24T22:17:12.610Z"}