# Variable TaskAnalysisSchema`Const`

TaskAnalysisSchema: ZodObject<
{
taskId: ZodString;
complexity: ZodPipe<
ZodUnion<readonly [ZodNumber, ZodString]>,
ZodTransform<number, string | number>,
>;
taskType: ZodString;
requirements: ZodArray<ZodString>;
risks: ZodArray<ZodString>;
needsDecomposition: ZodPipe<
ZodUnion<readonly [ZodBoolean, ZodString]>,
ZodTransform<boolean, string | boolean>,
>;
approach: ZodString;
estimatedEffort: ZodPipe<
ZodUnion<readonly [ZodNumber, ZodString]>,
ZodTransform<number, string | number>,
>;
commitment: ZodOptional<
ZodObject<
{
purpose: ZodString;
approach: ZodString;
differentiation: ZodString;
constraints: ZodArray<ZodString>;
},
$strip,
>,
>;
},
$strip,
> = ...

Zod schema for TaskAnalysis. Uses coercion and transforms for numeric fields because LLMs may return numbers as strings or descriptive words (Issue #663).

- Defined in packages/nexus-agents/src/agents/tech-lead-types.ts:244