{"record":{"id":"7bd29c9e12962cba","repo":"deepseek-ai/deepseek-harness","slug":"settings-conflict","errorCode":"settings-conflict","errorMessage":"error.message","messagePattern":"error\\.message","errorType":"error_code","errorClass":"SettingsConflictError","httpStatus":null,"severity":"error","filePath":"packages/host/apiproxy/src/api-proxy.ts","lineNumber":1902,"sourceCode":"   * Run one settings write (merge or wholesale replace) and acknowledge with\n   * the namespace's new redacted view. Every seam refusal — unknown or invalid\n   * namespace, read-only provider, schema validation, storage — becomes one\n   * `settings-rejected` carrying the seam's own message.\n   */\n  async function settingsWrite(\n    request: RpcRequest<unknown>,\n    ns: string,\n    mode: 'update' | 'replace' | 'mutate',\n    section: object,\n    expectedRevision?: number,\n  ): Promise<RpcResponse<SettingsNamespaceView>> {\n    const settings = ctx.get('settings')\n    if (settings === undefined) return err(request, settingsAbsent())\n    const rejected = (error: unknown): RpcResponse<SettingsNamespaceView> => {\n      // A stale writer is its own outcome, not a malformed request: the client\n      // must re-read and re-apply rather than treat the write as invalid.\n      if (error instanceof SettingsConflictError) {\n        return err(request, {\n          code: 'settings-conflict',\n          message: error.message,\n          details: { ns, expected: error.expected, actual: error.actual },\n        })\n      }\n      return err(request, {\n        code: 'settings-rejected',\n        message: error instanceof Error ? error.message : String(error),\n        details: { ns },\n      })\n    }\n    let branded: SettingsNamespace\n    try {\n      branded = settingsNamespace(ns)\n    } catch (error: unknown) {\n      // A malformed name can address no registration, so it fails exactly as\n      // an unregistered one does.\n      return rejected(error)","sourceCodeStart":1884,"sourceCodeEnd":1920,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/host/apiproxy/src/api-proxy.ts#L1884-L1920","documentation":"Error \"error.message\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/host/apiproxy/src/api-proxy.ts:1902 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Read the forwarded error message in the response or logs and fix the underlying failure it names."],"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"}