# Interface SpecExecutionResult

Result of executing a spec end-to-end.

interface SpecExecutionResult {
dag: {
nodes: {
id: string;
description: string;
type: "code" | "test" | "refactor" | "config" | "docs";
complexity: "complex" | "simple" | "moderate" | "expert";
capabilities: string[];
dependsOn: string[];
sourceRequirement?: string;
}[];
edges: { from: string; to: string }[];
roots: string[];
totalComplexity: "complex" | "simple" | "moderate" | "expert";
specTitle: string;
};
outputs: readonly string[];
validation: {
satisfaction: number;
totalCriteria: number;
metCount: number;
criteria: { criterion: string; met: boolean; matchedResults: string[] }[];
allMet: boolean;
};
durationMs: number;
}

- Defined in packages/nexus-agents/src/orchestration/spec-executor-types.ts:36

##### Index

### Properties

dag
outputs
validation
durationMs

## Properties

### `Readonly` dag

dag: {
nodes: {
id: string;
description: string;
type: "code" | "test" | "refactor" | "config" | "docs";
complexity: "complex" | "simple" | "moderate" | "expert";
capabilities: string[];
dependsOn: string[];
sourceRequirement?: string;
}[];
edges: { from: string; to: string }[];
roots: string[];
totalComplexity: "complex" | "simple" | "moderate" | "expert";
specTitle: string;
}

The decomposed task DAG

#### Type Declaration

- ##### nodes: {
  id: string;
  description: string;
  type: "code" | "test" | "refactor" | "config" | "docs";
  complexity: "complex" | "simple" | "moderate" | "expert";
  capabilities: string[];
  dependsOn: string[];
  sourceRequirement?: string;
  }[]

  All subtask nodes

- ##### edges: { from: string; to: string }[]

  Dependency edges (from must complete before to)

- ##### roots: string[]

  Subtask IDs that can execute in parallel (no dependencies)

- ##### totalComplexity: "complex" | "simple" | "moderate" | "expert"

  Total estimated complexity across all subtasks

- ##### specTitle: string

  Source spec title for traceability

- Defined in packages/nexus-agents/src/orchestration/spec-executor-types.ts:38

### `Readonly` outputs

outputs: readonly string[]

Raw execution outputs from graph nodes

- Defined in packages/nexus-agents/src/orchestration/spec-executor-types.ts:40

### `Readonly` validation

validation: {
satisfaction: number;
totalCriteria: number;
metCount: number;
criteria: { criterion: string; met: boolean; matchedResults: string[] }[];
allMet: boolean;
}

Scenario validation against acceptance criteria

#### Type Declaration

- ##### satisfaction: number

  Satisfaction score from 0 (none met) to 1 (all met)

- ##### totalCriteria: number

  Total acceptance criteria count

- ##### metCount: number

  Number of criteria met

- ##### criteria: { criterion: string; met: boolean; matchedResults: string[] }[]

  Per-criterion results

- ##### allMet: boolean

  Whether all criteria are met

- Defined in packages/nexus-agents/src/orchestration/spec-executor-types.ts:42

### `Readonly` durationMs

durationMs: number

Total execution duration in milliseconds

- Defined in packages/nexus-agents/src/orchestration/spec-executor-types.ts:44