nexus-agents - v2.80.0
    Preparing search index...

    Function executeDelegatePipeline

    • Compiles and executes a V2 pipeline for the given TaskContract. Evaluates policy before execution — block mode halts the pipeline. Returns metrics for observability — never throws.

      Parameters

      • task: {
            id: string;
            description: string;
            status:
                | "failed"
                | "planning"
                | "executing"
                | "approved"
                | "done"
                | "intake"
                | "clarifying"
                | "validating";
            analysis: { complexity: string; taskType: string; ambiguityScore: number };
            constraints: { time?: string; quality?: string; scope: string[] };
            requiredCapabilities: { tools: string[]; experts: string[] };
            capabilityGaps: {
                available: { tools: string[]; experts: string[] };
                gaps: unknown[];
                allSatisfied: boolean;
            };
            parentId?: string;
            artifacts: {
                id: string;
                type: | "code"
                | "plan"
                | "analysis"
                | "review"
                | "test"
                | "spec"
                | "report"
                | "vote";
            }[];
            metadata: Record<string, unknown>;
            createdAt: number;
            updatedAt: number;
            completedAt?: number;
            error?: string;
        }

      Returns Promise<PipelineMetrics>