{"record":{"id":"16ea4cfd93c0c532","repo":"deepseek-ai/deepseek-harness","slug":"prompt-section-section-name-order-must-be-a-f","errorCode":null,"errorMessage":"prompt section \"${section.name}\" order must be a finite number","messagePattern":"prompt section \"(.+?)\" order must be a finite number","errorType":"exception","errorClass":"TypeError","httpStatus":null,"severity":"error","filePath":"packages/core/system-prompt/src/index.ts","lineNumber":383,"sourceCode":"      name: PERSONA_SECTION,\n      order: PERSONA_ORDER,\n      // The fallback narrows the optional input type; the schema already defaults it.\n      text: config.persona ?? '',\n    })\n    if (!(config.includeRuntimeContext ?? true)) this.suppressRuntimeContext()\n  }\n\n  /**\n   * Register an ordered prompt section in the calling context's scope. A scoped\n   * section shadows a global section with the same name; duplicates within one\n   * layer and non-finite orders throw. Registration and disposal emit\n   * `system-prompt/change`.\n   * @param section - the section to register.\n   * @returns the exact Cordis effect disposer.\n   */\n  section(section: PromptSection): () => void {\n    if (!Number.isFinite(section.order)) {\n      throw new TypeError(`prompt section \"${section.name}\" order must be a finite number`)\n    }\n    return this.layers.effect(\n      this.ctx,\n      layer => layer.sections.insert(section.name, section),\n      { label: 'systemPrompt.section()' },\n    )\n  }\n\n  /**\n   * Register ordered dynamic context in the calling context's scope. Scoped\n   * entries shadow global entries with the same name.\n   * @param context - the context contribution to register.\n   * @returns the exact Cordis effect disposer.\n   */\n  context(context: PromptContext): () => void {\n    if (!Number.isFinite(context.order)) {\n      throw new TypeError(`prompt context \"${context.name}\" order must be a finite number`)\n    }","sourceCodeStart":365,"sourceCodeEnd":401,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/core/system-prompt/src/index.ts#L365-L401","documentation":"Error \"prompt section \"${section.name}\" order must be a finite number\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/core/system-prompt/src/index.ts:383 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"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"}