{"record":{"id":"196a4b9cf9884f0f","repo":"deepseek-ai/deepseek-harness","slug":"prompt-context-context-name-order-must-be-a-f","errorCode":null,"errorMessage":"prompt context \"${context.name}\" order must be a finite number","messagePattern":"prompt context \"(.+?)\" order must be a finite number","errorType":"exception","errorClass":"TypeError","httpStatus":null,"severity":"error","filePath":"packages/core/system-prompt/src/index.ts","lineNumber":400,"sourceCode":"    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    }\n    return this.layers.effect(\n      this.ctx,\n      layer => layer.contexts.insert(context.name, context),\n      { label: 'systemPrompt.context()' },\n    )\n  }\n\n  /**\n   * Suppress every dynamic runtime-context contribution in the calling\n   * context's scope without changing the services that own or enforce those\n   * facts. Multiple suppressors remain independently disposable.\n   * @returns the exact Cordis effect disposer.\n   */\n  suppressRuntimeContext(): () => void {\n    return this.layers.effect(\n      this.ctx,\n      layer => layer.runtimeContextSuppressors.append(true),","sourceCodeStart":382,"sourceCodeEnd":418,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/core/system-prompt/src/index.ts#L382-L418","documentation":"Error \"prompt context \"${context.name}\" order must be a finite number\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/core/system-prompt/src/index.ts:400 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"}