{"record":{"id":"8b1d1d49fbbafcf3","repo":"deepseek-ai/deepseek-harness","slug":"harness-definetool-path-key-is-not-supported","errorCode":null,"errorMessage":"harness.defineTool ${path}.${key} is not supported by the unified schema DSL","messagePattern":"harness\\.defineTool (.+?)\\.(.+?) is not supported by the unified schema DSL","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/extensions/cordis-host-runner/src/guard.ts","lineNumber":204,"sourceCode":"      })\n    }\n  }\n  return root\n}\n\n/** Copy and realm-materialize the shared annotation vocabulary. */\nfunction copyAnnotations(value: Record<string, unknown>, output: Record<string, unknown>, path: string): void {\n  if (Object.hasOwn(value, 'description')) output.description = value.description\n  if (Object.hasOwn(value, 'title')) output.title = value.title\n  if (Object.hasOwn(value, 'default')) output.default = cloneJson(value.default, `harness.defineTool ${path}.default`)\n  if (Object.hasOwn(value, 'examples')) output.examples = cloneJson(value.examples, `harness.defineTool ${path}.examples`)\n}\n\n/** Reject sandbox schema keys that the unified DSL would otherwise ignore. */\nfunction assertSchemaKeys(value: Record<string, unknown>, path: string, allowed: readonly string[]): void {\n  assertSchemaContainerKeys(value, path)\n  for (const key of Object.keys(value)) {\n    if (!allowed.includes(key)) throw new Error(`harness.defineTool ${path}.${key} is not supported by the unified schema DSL`)\n  }\n}\n\n/**\n * Normalize a sandbox-provided `parameters` value into a fresh host-realm\n * ParameterSchemaSpec. A raw JSON-Schema object wrapper retains its open root\n * default, while the direct DSL is already an implicit open property map.\n */\nfunction normalizeParameterSchemaSpec(value: unknown, path = 'parameters'): {\n  spec: Record<string, unknown>\n  rootAnnotations?: Record<string, unknown>\n} {\n  if (!isPlainRecord(value)) {\n    throw new Error(`harness.defineTool ${path} must be a ParameterSchemaSpec object`)\n  }\n  if (value.type === 'object') {\n    assertSchemaKeys(value, path, ['type', 'properties', 'required', 'additionalProperties', ...ANNOTATION_KEYS])\n    if (!isPlainRecord(value.properties)) {","sourceCodeStart":186,"sourceCodeEnd":222,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/extensions/cordis-host-runner/src/guard.ts#L186-L222","documentation":"Error \"harness.defineTool ${path}.${key} is not supported by the unified schema DSL\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/extensions/cordis-host-runner/src/guard.ts:204 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"}