{"record":{"id":"95e7007b539a4d4b","repo":"mastra-ai/mastra","slug":"target-type-targettype-not-yet-supported","errorCode":null,"errorMessage":"Target type '${targetType}' not yet supported.","messagePattern":"Target type '(.+?)' not yet supported\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/core/src/datasets/experiment/executor.ts","lineNumber":165,"sourceCode":"          target as Agent,\n          item,\n          signal,\n          options?.requestContext,\n          options?.experimentId,\n          options?.versions,\n          options?.toolMocks,\n          options?.unmockedToolPolicy,\n        );\n        break;\n      case 'workflow':\n        executionPromise = executeWorkflow(target as Workflow, item, options?.requestContext);\n        break;\n      case 'scorer':\n        executionPromise = executeScorer(target as MastraScorer<any, any, any, any>, item);\n        break;\n      case 'processor':\n        // Processor targets dropped from roadmap - not a core use case\n        throw new Error(`Target type '${targetType}' not yet supported.`);\n      default:\n        throw new Error(`Unknown target type: ${targetType}`);\n    }\n\n    // Race execution against signal abort (ensures timeout works even if target ignores signal)\n    if (signal) {\n      return await raceWithSignal(executionPromise, signal);\n    }\n\n    return await executionPromise;\n  } catch (error) {\n    return {\n      output: null,\n      error: {\n        message: error instanceof Error ? error.message : String(error),\n        stack: error instanceof Error ? error.stack : undefined,\n      },\n      traceId: null,","sourceCodeStart":147,"sourceCodeEnd":183,"githubUrl":"https://github.com/mastra-ai/mastra/blob/75dd419e613fe9c39f846ffc500716141b74fda6/packages/core/src/datasets/experiment/executor.ts#L147-L183","documentation":"executeTarget dispatches on the experiment target's type; 'processor' targets were dropped from the roadmap and are explicitly rejected. The error is thrown synchronously before any execution happens, so no experiment items are run.","triggerScenarios":"Configuring an experiment with targetType 'processor' (e.g. runExperiment({ targetType: 'processor', targetId: ... }) or a stored target referencing a processor).","commonSituations":"Copying an experiment config from an older codebase/docs where processor targets were supported; migrating experiments after the roadmap change and leaving the old target type in place.","solutions":["Change the target type to a supported one ('agent', 'tool', 'workflow', or 'scorer')","Wrap the processor logic in a tool or scorer and target that instead","Remove the processor experiment config and re-create it against a supported target"],"exampleFix":"// before\nrunExperiment({ targetType: 'processor', targetId: 'redact-pii' });\n// after\nrunExperiment({ targetType: 'tool', targetId: 'redact-pii-tool' });","handlingStrategy":"validation","validationCode":"const SUPPORTED = ['agent', 'tool', 'workflow', 'scorer'] as const;\nif (!SUPPORTED.includes(targetType)) {\n  throw new Error(`Unsupported targetType for experiments: ${targetType}`);\n}","typeGuard":"type SupportedTargetType = 'agent' | 'tool' | 'workflow' | 'scorer';\nfunction isSupportedTargetType(t: string): t is SupportedTargetType {\n  return ['agent', 'tool', 'workflow', 'scorer'].includes(t);\n}","tryCatchPattern":"try {\n  await runExperiment(config);\n} catch (err) {\n  if (err instanceof Error && err.message.includes(\"not yet supported\")) {\n    // replace processor target with a tool/scorer equivalent\n  } else throw err;\n}","preventionTips":["Type configs as SupportedTargetType instead of string","Grep configs for 'processor' targets when upgrading @mastra/core","Wrap processor logic in a tool or scorer if you need that behavior","Check the changelog for dropped target types before upgrading"],"tags":["configuration","experiment","unsupported-feature"],"backgroundTag":"unsupported-target-type","analyzedSha":"75dd419e613fe9c39f846ffc500716141b74fda6","analyzedAt":"2026-08-30T00:15:31.844Z","schemaVersion":2},"datasetVersion":"2026-08-30T03:17:51.788Z"}