deepseek-ai/deepseek-harness · error · AggregateError

AclWriteGrant dispose completed with ${failures.length} clea

Error message

AclWriteGrant dispose completed with ${failures.length} cleanup failure(s)

What it means

Error "AclWriteGrant dispose completed with ${failures.length} cleanup failure(s)" thrown in deepseek-ai/deepseek-harness.

Source

Thrown at packages/sandbox/sandbox-windows-acl/src/grant.ts:101

  /** Revoke every revocable grant (standing ACEs stay) and free the SID; reports every cleanup failure. */
  dispose(): void {
    const failures: unknown[] = []
    for (const path of this.revocablePaths) {
      try {
        revokeWrite(this.api, path, this.sidPtr)
      } catch (error) {
        failures.push(error)
      }
    }
    try {
      const freed = this.api.localFree(this.sidPtr)
      if (!isNullPtr(freed)) throwLastError(this.api, 'LocalFree', 'write SID')
    } catch (error) {
      failures.push(error)
    }
    if (failures.length > 0) {
      throw new AggregateError(failures, `AclWriteGrant dispose completed with ${failures.length} cleanup failure(s)`)
    }
  }
}

View on GitHub (pinned to b150a551b8)

Solutions

  1. Inspect the per-cleanup failure causes attached to the error and remove the ACL entries manually.
  2. Ensure no process still holds handles into the granted directories before disposing the grant.

When it happens

Trigger: Thrown at packages/sandbox/sandbox-windows-acl/src/grant.ts:101 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/8270e6691de32d3a. Report an issue: GitHub.