# Interface CompiledPipeline

Compiled pipeline ready for execution.

interface CompiledPipeline {
graph: CompiledGraph;
plan: {
taskId: string;
stages: {
id: string;
type: "analyze" | "validate" | "aggregate" | "execute" | "gate" | "route";
pluginId: string;
inputArtifacts: string[];
outputArtifacts: string[];
dependencies: string[];
config: Record<string, unknown>;
preferredCli?: string;
maxRetries?: number;
timeoutMs?: number;
}[];
policyGates: {
id: string;
afterStage: string;
beforeStage: string;
rules: string[];
onFail: "warn"
| "block"
| "escalate";
}[];
estimatedCost: {
totalTokensIn: number;
totalTokensOut: number;
estimatedCostUsd: number;
modelCalls: number;
};
approvalRequired: boolean;
maxIterations: number;
timeoutMs: number;
};
}

- Defined in packages/nexus-agents/src/pipeline/pipeline-runner.ts:35

##### Index

### Properties

graph
plan

## Properties

### `Readonly` graph

graph: CompiledGraph

- Defined in packages/nexus-agents/src/pipeline/pipeline-runner.ts:36

### `Readonly` plan

plan: {
taskId: string;
stages: {
id: string;
type: "analyze" | "validate" | "aggregate" | "execute" | "gate" | "route";
pluginId: string;
inputArtifacts: string[];
outputArtifacts: string[];
dependencies: string[];
config: Record<string, unknown>;
preferredCli?: string;
maxRetries?: number;
timeoutMs?: number;
}[];
policyGates: {
id: string;
afterStage: string;
beforeStage: string;
rules: string[];
onFail: "warn"
| "block"
| "escalate";
}[];
estimatedCost: {
totalTokensIn: number;
totalTokensOut: number;
estimatedCostUsd: number;
modelCalls: number;
};
approvalRequired: boolean;
maxIterations: number;
timeoutMs: number;
}

- Defined in packages/nexus-agents/src/pipeline/pipeline-runner.ts:37