# Interface TaskAnalysis

Result of task analysis.

interface TaskAnalysis {
taskId: string;
complexity: number;
taskType: string;
requirements: string[];
risks: string[];
needsDecomposition: boolean;
approach: string;
estimatedEffort: number;
commitment?: TaskCommitment;
}

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

##### Index

### Properties

taskId
complexity
taskType
requirements
risks
needsDecomposition
approach
estimatedEffort
commitment?

## Properties

### taskId

taskId: string

Task ID being analyzed

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

### complexity

complexity: number

Overall complexity score (1-10)

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

### taskType

taskType: string

Type of task (code, architecture, documentation, etc.)

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

### requirements

requirements: string[]

Key requirements extracted from the task

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

### risks

risks: string[]

Identified risks or challenges

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

### needsDecomposition

needsDecomposition: boolean

Whether task needs decomposition

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

### approach

approach: string

Recommended approach

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

### estimatedEffort

estimatedEffort: number

Estimated total effort in relative units

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

### `Optional` commitment

commitment?: TaskCommitment

Commit-before-generate block (#1827). Forces the orchestrator to commit to a direction before dispatching workers, countering LLM mode-collapse toward safe defaults. Optional for backward compatibility with older analysis outputs.

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