{"record":{"id":"d096a9e46e32be30","repo":"deepseek-ai/deepseek-harness","slug":"not-committed","errorCode":"NOT_COMMITTED","errorMessage":"authorization flow for \"${flow.key}\" resolved without committing a credential record in this attempt","messagePattern":"authorization flow for \"(.+?)\" resolved without committing a credential record in this attempt","errorType":"error_code","errorClass":"AuthorizationError","httpStatus":null,"severity":"error","filePath":"packages/credentials/authorization/src/index.ts","lineNumber":423,"sourceCode":"      try {\n        if (await Promise.race([running.then(() => 'ran' as const), withdrawn]) === 'withdrawn') {\n          // Nothing awaits the orphan any more, so its eventual failure has to be\n          // marked handled or it would take down the process.\n          void running.catch(() => { this.ctx.logger.debug('authorization: withdrawn flow failed after the fact') })\n          return { status: 'cancelled' }\n        }\n      } catch (error) {\n        // A withdrawn attempt and a declined prompt are outcomes, not\n        // failures: the human said no, or closed the page. Anything else is\n        // the flow failing and belongs to the caller, cause chain intact.\n        if (signal.aborted || observed.declined) return { status: 'cancelled' }\n        throw error\n      }\n    } finally {\n      unwatch()\n    }\n    if (!observed.committed) {\n      throw new AuthorizationError(\n        `authorization flow for \"${flow.key}\" resolved without committing a credential record in this attempt`,\n        'NOT_COMMITTED')\n    }\n    const stored = await this.ctx.credentials.describeRecord(flow.key)\n    if (!stored.configured) {\n      throw new AuthorizationError(\n        `authorization flow for \"${flow.key}\" deleted its credential record instead of committing one`,\n        'NOT_COMMITTED')\n    }\n    return { status: 'authorized' }\n  }\n}\n\nexport default AuthorizationService\n","sourceCodeStart":405,"sourceCodeEnd":438,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/credentials/authorization/src/index.ts#L405-L438","documentation":"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.","triggerScenarios":"Thrown at packages/credentials/authorization/src/index.ts:423 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Fix the flow runner to commit its credential record before resolving","Verify the flow writes to the credential store keyed as declared","Retry the authorization after fixing the flow"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b150a551b8d465e31e418e1b2eaf5e79bbb7d28e","analyzedAt":"2026-08-24T18:12:29.105Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}