{"record":{"id":"a8ee632cb9b8afdd","repo":"deepseek-ai/deepseek-harness","slug":"aclsandbox-dispose-completed-with-failures-lengt","errorCode":null,"errorMessage":"AclSandbox dispose completed with ${failures.length} cleanup failure(s)","messagePattern":"AclSandbox dispose completed with (.+?) cleanup failure\\(s\\)","errorType":"exception","errorClass":"AggregateError","httpStatus":null,"severity":"error","filePath":"packages/sandbox/sandbox-windows-acl/src/index.ts","lineNumber":431,"sourceCode":"    /* v8 ignore next -- init assigns this.api only after this.token, so an initialized instance always\n       has its token; the guard mirrors the write-SID guard. */\n    if (token !== undefined) {\n      try {\n        if (api.closeHandle(token) === 0) throwLastError(api, 'CloseHandle', 'restricted token')\n      } catch (error) {\n        failures.push(error)\n      }\n    }\n    for (const sidPtr of this.sidAllocations.splice(0)) {\n      freeSidBestEffort(api, sidPtr, 'init SID allocation', failures)\n    }\n    this.api = undefined\n    this.token = undefined\n    this.writeSidPtr = undefined\n    this.tempWriteSidPtr = undefined\n    this.grantedPaths = []\n    if (failures.length > 0) {\n      throw new AggregateError(failures, `AclSandbox dispose completed with ${failures.length} cleanup failure(s)`)\n    }\n  }\n}\n","sourceCodeStart":413,"sourceCodeEnd":435,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/sandbox/sandbox-windows-acl/src/index.ts#L413-L435","documentation":"Error \"AclSandbox dispose completed with ${failures.length} cleanup failure(s)\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/sandbox/sandbox-windows-acl/src/index.ts:431 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the attached cleanup failure causes and remove the leftover ACL entries manually.","Close any processes still running in the sandbox before disposing it."],"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"}