{"record":{"id":"5f5e385c383cf8ef","repo":"deepseek-ai/deepseek-harness","slug":"invalid-description-expected-a-non-empty-string","errorCode":null,"errorMessage":"invalid description: expected a non-empty string","messagePattern":"invalid description: expected a non-empty string","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/core/tools/src/code-mode.ts","lineNumber":332,"sourceCode":"    },\n    output: {\n      schema: {\n        type: 'object',\n        additionalProperties: false,\n        properties: {\n          logs: { type: 'array', required: true, items: { type: 'string' } },\n          result: { type: 'json' },\n        },\n      },\n      render: (_args, value) => {\n        const rendered = value.result === undefined ? '' : renderValue(value.result)\n        const parts = [value.logs.join('\\n'), rendered].filter(part => part.length > 0)\n        return [{ type: 'text', text: parts.length > 0 ? parts.join('\\n') : '(run_code completed with no output)' }]\n      },\n    },\n    async execute(args, exec): Promise<RunCodeOutput> {\n      if (args.description.trim().length === 0) {\n        throw new Error('invalid description: expected a non-empty string')\n      }\n      const runtime = requireRuntime()\n\n      // The run-scoped abort: follows the outer signal in, and fires when the\n      // run settles for ANY reason, so an in-flight sub-dispatch is aborted\n      // (its executor kills on this signal) instead of orphaned, and\n      // queued-unstarted dispatches are abandoned.\n      const runController = new AbortController()\n      const onOuterAbort = (): void => { runController.abort(exec.signal.reason) }\n      exec.signal.addEventListener('abort', onOuterAbort, { once: true })\n\n      let dispatches = 0\n      // The per-run scheduler uses the registry's staged interface and follows\n      // the same concurrency rules as the native loop. It also follows the\n      // native loop's SEQUENCING: every ordered stage (the dispatch-start\n      // append, prepare = pre-execute/guards, finalize/finish = post-execute,\n      // context deferral, the settle append) runs inside ONE driver lane, so\n      // ordered policy stages never overlap each other and only the","sourceCodeStart":314,"sourceCodeEnd":350,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/core/tools/src/code-mode.ts#L314-L350","documentation":"Error \"invalid description: expected a non-empty string\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/core/tools/src/code-mode.ts:332 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"}