deepseek-ai/deepseek-harness · error · AuthorizationError

NOT_COMMITTED

NOT_COMMITTED

Error message

authorization flow for "${flow.key}" resolved without committing a credential record in this attempt

What it means

AuthorizationError with code NOT_COMMITTED: the flow's runner resolved as authorized but no credential record was committed to the store during this attempt. The outcome is only trusted when the committed record is actually observable, so a flow that forgets to write its record fails here.

Solutions

  1. Fix the flow runner to commit its credential record before resolving
  2. Verify the flow writes to the credential store keyed as declared
  3. Retry the authorization after fixing the flow
Defensive patterns

Strategy: retry

When it happens

Trigger: Thrown at packages/credentials/authorization/src/index.ts:423 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/d096a9e46e32be30. Report an issue: GitHub.

Appendix: source

Thrown at packages/credentials/authorization/src/index.ts:423

      try {
        if (await Promise.race([running.then(() => 'ran' as const), withdrawn]) === 'withdrawn') {
          // Nothing awaits the orphan any more, so its eventual failure has to be
          // marked handled or it would take down the process.
          void running.catch(() => { this.ctx.logger.debug('authorization: withdrawn flow failed after the fact') })
          return { status: 'cancelled' }
        }
      } catch (error) {
        // A withdrawn attempt and a declined prompt are outcomes, not
        // failures: the human said no, or closed the page. Anything else is
        // the flow failing and belongs to the caller, cause chain intact.
        if (signal.aborted || observed.declined) return { status: 'cancelled' }
        throw error
      }
    } finally {
      unwatch()
    }
    if (!observed.committed) {
      throw new AuthorizationError(
        `authorization flow for "${flow.key}" resolved without committing a credential record in this attempt`,
        'NOT_COMMITTED')
    }
    const stored = await this.ctx.credentials.describeRecord(flow.key)
    if (!stored.configured) {
      throw new AuthorizationError(
        `authorization flow for "${flow.key}" deleted its credential record instead of committing one`,
        'NOT_COMMITTED')
    }
    return { status: 'authorized' }
  }
}

export default AuthorizationService

View on GitHub (pinned to b150a551b8)