{"record":{"id":"06f0e0fca2eb5a3c","repo":"deepseek-ai/deepseek-harness","slug":"unsupported-schema-06f0e0","errorCode":"UNSUPPORTED_SCHEMA","errorMessage":"agent() schema is outside the supported subset — ${error.message}","messagePattern":"agent\\(\\) schema is outside the supported subset — (.+?)","errorType":"exception","errorClass":"WorkflowError","httpStatus":null,"severity":"error","filePath":"packages/workflow/workflow-worker-thread/src/runtime.ts","lineNumber":388,"sourceCode":"      if (DEFERRED_AGENT_OPTIONS.has(key)) {\n        throw new WorkflowError(`agent() option \"${key}\" is deferred and not supported by this engine (supported: label, phase, schema, provider, model)`, 'UNSUPPORTED_OPTION')\n      }\n      throw new WorkflowError(`agent() option \"${key}\" is not recognized (supported: label, phase, schema, provider, model)`, 'UNSUPPORTED_OPTION')\n    }\n    for (const key of ['label', 'phase', 'provider', 'model'] as const) {\n      if (record[key] !== undefined && typeof record[key] !== 'string') {\n        throw new WorkflowError(`agent() option \"${key}\" must be a string`, 'INVALID_ARGUMENT')\n      }\n    }\n    let schema: ObjectJsonSchema | undefined\n    if (record.schema !== undefined) {\n      try {\n        assertObjectJsonSchema(record.schema)\n        schema = record.schema\n      } catch (error: unknown) {\n        /* v8 ignore next -- defensive rethrow arm: assertObjectJsonSchema only throws JsonSchemaError */\n        if (!(error instanceof JsonSchemaError)) throw error\n        throw new WorkflowError(`agent() schema is outside the supported subset — ${error.message}`, 'UNSUPPORTED_SCHEMA', { cause: error })\n      }\n    }\n    return {\n      ...record.label !== undefined ? { label: record.label as string } : {},\n      ...record.phase !== undefined ? { phase: record.phase as string } : {},\n      ...record.provider !== undefined ? { provider: record.provider as string } : {},\n      ...record.model !== undefined ? { model: record.model as string } : {},\n      ...schema !== undefined ? { schema } : {},\n    }\n  }\n\n  /** The `parallel(thunks)` hook: each thunk caught → `null`; fatal errors propagate. */\n  private async parallel(rawThunks: unknown): Promise<unknown[]> {\n    this.throwIfCancelled()\n    if (!Array.isArray(rawThunks)) {\n      throw new WorkflowError('parallel() requires an array of zero-argument functions', 'INVALID_ARGUMENT')\n    }\n    this.assertItemCap(rawThunks.length, 'parallel()')","sourceCodeStart":370,"sourceCodeEnd":406,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/workflow/workflow-worker-thread/src/runtime.ts#L370-L406","documentation":"Error \"agent() schema is outside the supported subset — ${error.message}\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/workflow/workflow-worker-thread/src/runtime.ts:388 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Simplify the agent() schema to the supported JSON-schema subset per the inner error message."],"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"}