{"record":{"id":"8270e6691de32d3a","repo":"deepseek-ai/deepseek-harness","slug":"aclwritegrant-dispose-completed-with-failures-le","errorCode":null,"errorMessage":"AclWriteGrant dispose completed with ${failures.length} cleanup failure(s)","messagePattern":"AclWriteGrant dispose completed with (.+?) cleanup failure\\(s\\)","errorType":"exception","errorClass":"AggregateError","httpStatus":null,"severity":"error","filePath":"packages/sandbox/sandbox-windows-acl/src/grant.ts","lineNumber":101,"sourceCode":"\n  /** Revoke every revocable grant (standing ACEs stay) and free the SID; reports every cleanup failure. */\n  dispose(): void {\n    const failures: unknown[] = []\n    for (const path of this.revocablePaths) {\n      try {\n        revokeWrite(this.api, path, this.sidPtr)\n      } catch (error) {\n        failures.push(error)\n      }\n    }\n    try {\n      const freed = this.api.localFree(this.sidPtr)\n      if (!isNullPtr(freed)) throwLastError(this.api, 'LocalFree', 'write SID')\n    } catch (error) {\n      failures.push(error)\n    }\n    if (failures.length > 0) {\n      throw new AggregateError(failures, `AclWriteGrant dispose completed with ${failures.length} cleanup failure(s)`)\n    }\n  }\n}\n","sourceCodeStart":83,"sourceCodeEnd":105,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/sandbox/sandbox-windows-acl/src/grant.ts#L83-L105","documentation":"Error \"AclWriteGrant dispose completed with ${failures.length} cleanup failure(s)\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/sandbox/sandbox-windows-acl/src/grant.ts:101 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the per-cleanup failure causes attached to the error and remove the ACL entries manually.","Ensure no process still holds handles into the granted directories before disposing the grant."],"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"}