import { z } from "zod/v3"; export declare const MCP_RUN_ROUTING_MAX = 100; export declare const mcpRunPlanTextSchema: z.ZodString; export declare const mcpRunIdSchema: z.ZodString; export declare const mcpRequestIdSchema: z.ZodString; export declare const mcpTaskFeaturesSchema: z.ZodObject<{ contextTokens: z.ZodNumber; expectedOutputTokens: z.ZodNumber; requiredInput: z.ZodArray, "many">; risk: z.ZodEnum<["low", "medium", "high"]>; workKind: z.ZodEnum<["feature", "bug-fix", "refactor", "migration", "test-only", "documentation", "configuration", "release", "unknown"]>; fileCount: z.ZodNumber; languages: z.ZodArray; riskSignals: z.ZodArray; failureSignals: z.ZodArray; }, "strict", z.ZodTypeAny, { workKind: "unknown" | "feature" | "bug-fix" | "refactor" | "migration" | "test-only" | "documentation" | "configuration" | "release"; requiredInput: ("text" | "image")[]; risk: "low" | "medium" | "high"; languages: string[]; fileCount: number; contextTokens: number; expectedOutputTokens: number; riskSignals: string[]; failureSignals: string[]; }, { workKind: "unknown" | "feature" | "bug-fix" | "refactor" | "migration" | "test-only" | "documentation" | "configuration" | "release"; requiredInput: ("text" | "image")[]; risk: "low" | "medium" | "high"; languages: string[]; fileCount: number; contextTokens: number; expectedOutputTokens: number; riskSignals: string[]; failureSignals: string[]; }>; export declare const mcpRunStartInputSchema: z.ZodObject<{ requestId: z.ZodString; task: z.ZodString; repoContext: z.ZodOptional; coderIdentity: z.ZodString; taskFeatures: z.ZodOptional, "many">; risk: z.ZodEnum<["low", "medium", "high"]>; workKind: z.ZodEnum<["feature", "bug-fix", "refactor", "migration", "test-only", "documentation", "configuration", "release", "unknown"]>; fileCount: z.ZodNumber; languages: z.ZodArray; riskSignals: z.ZodArray; failureSignals: z.ZodArray; }, "strict", z.ZodTypeAny, { workKind: "unknown" | "feature" | "bug-fix" | "refactor" | "migration" | "test-only" | "documentation" | "configuration" | "release"; requiredInput: ("text" | "image")[]; risk: "low" | "medium" | "high"; languages: string[]; fileCount: number; contextTokens: number; expectedOutputTokens: number; riskSignals: string[]; failureSignals: string[]; }, { workKind: "unknown" | "feature" | "bug-fix" | "refactor" | "migration" | "test-only" | "documentation" | "configuration" | "release"; requiredInput: ("text" | "image")[]; risk: "low" | "medium" | "high"; languages: string[]; fileCount: number; contextTokens: number; expectedOutputTokens: number; riskSignals: string[]; failureSignals: string[]; }>>; }, "strict", z.ZodTypeAny, { task: string; coderIdentity: string; requestId: string; repoContext?: string | undefined; taskFeatures?: { workKind: "unknown" | "feature" | "bug-fix" | "refactor" | "migration" | "test-only" | "documentation" | "configuration" | "release"; requiredInput: ("text" | "image")[]; risk: "low" | "medium" | "high"; languages: string[]; fileCount: number; contextTokens: number; expectedOutputTokens: number; riskSignals: string[]; failureSignals: string[]; } | undefined; }, { task: string; coderIdentity: string; requestId: string; repoContext?: string | undefined; taskFeatures?: { workKind: "unknown" | "feature" | "bug-fix" | "refactor" | "migration" | "test-only" | "documentation" | "configuration" | "release"; requiredInput: ("text" | "image")[]; risk: "low" | "medium" | "high"; languages: string[]; fileCount: number; contextTokens: number; expectedOutputTokens: number; riskSignals: string[]; failureSignals: string[]; } | undefined; }>; export declare const mcpRunGetInputSchema: z.ZodObject<{ runId: z.ZodString; }, "strict", z.ZodTypeAny, { runId: string; }, { runId: string; }>; export declare const mcpRunClientEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"plan_approved">; }, "strict", z.ZodTypeAny, { type: "plan_approved"; }, { type: "plan_approved"; }>, z.ZodObject<{ type: z.ZodLiteral<"plan_revision_requested">; feedback: z.ZodString; }, "strict", z.ZodTypeAny, { feedback: string; type: "plan_revision_requested"; }, { feedback: string; type: "plan_revision_requested"; }>, z.ZodObject<{ type: z.ZodLiteral<"code_result_submitted">; diff: z.ZodString; testOutput: z.ZodOptional; }, "strict", z.ZodTypeAny, { type: "code_result_submitted"; diff: string; testOutput?: string | undefined; }, { type: "code_result_submitted"; diff: string; testOutput?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"cancelled">; reason: z.ZodOptional; }, "strict", z.ZodTypeAny, { type: "cancelled"; reason?: string | undefined; }, { type: "cancelled"; reason?: string | undefined; }>]>; export declare const mcpRunAdvanceInputSchema: z.ZodObject<{ requestId: z.ZodString; runId: z.ZodString; expectedRevision: z.ZodNumber; event: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"plan_approved">; }, "strict", z.ZodTypeAny, { type: "plan_approved"; }, { type: "plan_approved"; }>, z.ZodObject<{ type: z.ZodLiteral<"plan_revision_requested">; feedback: z.ZodString; }, "strict", z.ZodTypeAny, { feedback: string; type: "plan_revision_requested"; }, { feedback: string; type: "plan_revision_requested"; }>, z.ZodObject<{ type: z.ZodLiteral<"code_result_submitted">; diff: z.ZodString; testOutput: z.ZodOptional; }, "strict", z.ZodTypeAny, { type: "code_result_submitted"; diff: string; testOutput?: string | undefined; }, { type: "code_result_submitted"; diff: string; testOutput?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"cancelled">; reason: z.ZodOptional; }, "strict", z.ZodTypeAny, { type: "cancelled"; reason?: string | undefined; }, { type: "cancelled"; reason?: string | undefined; }>]>; }, "strict", z.ZodTypeAny, { event: { type: "plan_approved"; } | { feedback: string; type: "plan_revision_requested"; } | { type: "code_result_submitted"; diff: string; testOutput?: string | undefined; } | { type: "cancelled"; reason?: string | undefined; }; runId: string; requestId: string; expectedRevision: number; }, { event: { type: "plan_approved"; } | { feedback: string; type: "plan_revision_requested"; } | { type: "code_result_submitted"; diff: string; testOutput?: string | undefined; } | { type: "cancelled"; reason?: string | undefined; }; runId: string; requestId: string; expectedRevision: number; }>; export declare const mcpRunCancelInputSchema: z.ZodObject<{ requestId: z.ZodString; runId: z.ZodString; expectedRevision: z.ZodNumber; reason: z.ZodOptional; }, "strict", z.ZodTypeAny, { runId: string; requestId: string; expectedRevision: number; reason?: string | undefined; }, { runId: string; requestId: string; expectedRevision: number; reason?: string | undefined; }>; export declare const mcpRunRecoverInputSchema: z.ZodObject<{ requestId: z.ZodString; runId: z.ZodString; expectedRevision: z.ZodNumber; }, "strict", z.ZodTypeAny, { runId: string; requestId: string; expectedRevision: number; }, { runId: string; requestId: string; expectedRevision: number; }>; export declare const mcpRunRoutingDecisionSchema: z.ZodObject<{ decisionId: z.ZodString; stage: z.ZodEnum<["plan", "fast-judge"]>; selectedIndex: z.ZodNumber; selectedIdentity: z.ZodObject<{ provider: z.ZodString; model: z.ZodString; family: z.ZodOptional; }, "strict", z.ZodTypeAny, { provider: string; model: string; family?: string | undefined; }, { provider: string; model: string; family?: string | undefined; }>; thinking: z.ZodEnum<["off", "minimal", "low", "medium", "high", "xhigh", "max"]>; policyVersion: z.ZodString; policyDigest: z.ZodString; configDigest: z.ZodString; candidatesDigest: z.ZodString; fallbackHistory: z.ZodArray; }, "strict", z.ZodTypeAny, { identity: string; failureCode: "truncated" | "http_error" | "invalid_json" | "provider_response_failed" | "schema_validation_failed" | "provider_unconfigured" | "missing_api_key" | "unsupported_api" | "empty_response" | "response_too_large"; }, { identity: string; failureCode: "truncated" | "http_error" | "invalid_json" | "provider_response_failed" | "schema_validation_failed" | "provider_unconfigured" | "missing_api_key" | "unsupported_api" | "empty_response" | "response_too_large"; }>, "many">; }, "strict", z.ZodTypeAny, { stage: "plan" | "fast-judge"; thinking: "low" | "medium" | "high" | "off" | "minimal" | "xhigh" | "max"; decisionId: string; policyVersion: string; fallbackHistory: { identity: string; failureCode: "truncated" | "http_error" | "invalid_json" | "provider_response_failed" | "schema_validation_failed" | "provider_unconfigured" | "missing_api_key" | "unsupported_api" | "empty_response" | "response_too_large"; }[]; selectedIndex: number; selectedIdentity: { provider: string; model: string; family?: string | undefined; }; policyDigest: string; configDigest: string; candidatesDigest: string; }, { stage: "plan" | "fast-judge"; thinking: "low" | "medium" | "high" | "off" | "minimal" | "xhigh" | "max"; decisionId: string; policyVersion: string; fallbackHistory: { identity: string; failureCode: "truncated" | "http_error" | "invalid_json" | "provider_response_failed" | "schema_validation_failed" | "provider_unconfigured" | "missing_api_key" | "unsupported_api" | "empty_response" | "response_too_large"; }[]; selectedIndex: number; selectedIdentity: { provider: string; model: string; family?: string | undefined; }; policyDigest: string; configDigest: string; candidatesDigest: string; }>; export declare const mcpRunPlanRoutingDecisionSchema: z.ZodObject<{ decisionId: z.ZodString; selectedIndex: z.ZodNumber; selectedIdentity: z.ZodObject<{ provider: z.ZodString; model: z.ZodString; family: z.ZodOptional; }, "strict", z.ZodTypeAny, { provider: string; model: string; family?: string | undefined; }, { provider: string; model: string; family?: string | undefined; }>; thinking: z.ZodEnum<["off", "minimal", "low", "medium", "high", "xhigh", "max"]>; policyVersion: z.ZodString; policyDigest: z.ZodString; configDigest: z.ZodString; candidatesDigest: z.ZodString; fallbackHistory: z.ZodArray; }, "strict", z.ZodTypeAny, { identity: string; failureCode: "truncated" | "http_error" | "invalid_json" | "provider_response_failed" | "schema_validation_failed" | "provider_unconfigured" | "missing_api_key" | "unsupported_api" | "empty_response" | "response_too_large"; }, { identity: string; failureCode: "truncated" | "http_error" | "invalid_json" | "provider_response_failed" | "schema_validation_failed" | "provider_unconfigured" | "missing_api_key" | "unsupported_api" | "empty_response" | "response_too_large"; }>, "many">; } & { stage: z.ZodLiteral<"plan">; }, "strict", z.ZodTypeAny, { stage: "plan"; thinking: "low" | "medium" | "high" | "off" | "minimal" | "xhigh" | "max"; decisionId: string; policyVersion: string; fallbackHistory: { identity: string; failureCode: "truncated" | "http_error" | "invalid_json" | "provider_response_failed" | "schema_validation_failed" | "provider_unconfigured" | "missing_api_key" | "unsupported_api" | "empty_response" | "response_too_large"; }[]; selectedIndex: number; selectedIdentity: { provider: string; model: string; family?: string | undefined; }; policyDigest: string; configDigest: string; candidatesDigest: string; }, { stage: "plan"; thinking: "low" | "medium" | "high" | "off" | "minimal" | "xhigh" | "max"; decisionId: string; policyVersion: string; fallbackHistory: { identity: string; failureCode: "truncated" | "http_error" | "invalid_json" | "provider_response_failed" | "schema_validation_failed" | "provider_unconfigured" | "missing_api_key" | "unsupported_api" | "empty_response" | "response_too_large"; }[]; selectedIndex: number; selectedIdentity: { provider: string; model: string; family?: string | undefined; }; policyDigest: string; configDigest: string; candidatesDigest: string; }>; export declare const mcpRunJudgeRoutingDecisionSchema: z.ZodObject<{ decisionId: z.ZodString; selectedIndex: z.ZodNumber; selectedIdentity: z.ZodObject<{ provider: z.ZodString; model: z.ZodString; family: z.ZodOptional; }, "strict", z.ZodTypeAny, { provider: string; model: string; family?: string | undefined; }, { provider: string; model: string; family?: string | undefined; }>; thinking: z.ZodEnum<["off", "minimal", "low", "medium", "high", "xhigh", "max"]>; policyVersion: z.ZodString; policyDigest: z.ZodString; configDigest: z.ZodString; candidatesDigest: z.ZodString; fallbackHistory: z.ZodArray; }, "strict", z.ZodTypeAny, { identity: string; failureCode: "truncated" | "http_error" | "invalid_json" | "provider_response_failed" | "schema_validation_failed" | "provider_unconfigured" | "missing_api_key" | "unsupported_api" | "empty_response" | "response_too_large"; }, { identity: string; failureCode: "truncated" | "http_error" | "invalid_json" | "provider_response_failed" | "schema_validation_failed" | "provider_unconfigured" | "missing_api_key" | "unsupported_api" | "empty_response" | "response_too_large"; }>, "many">; } & { stage: z.ZodLiteral<"fast-judge">; }, "strict", z.ZodTypeAny, { stage: "fast-judge"; thinking: "low" | "medium" | "high" | "off" | "minimal" | "xhigh" | "max"; decisionId: string; policyVersion: string; fallbackHistory: { identity: string; failureCode: "truncated" | "http_error" | "invalid_json" | "provider_response_failed" | "schema_validation_failed" | "provider_unconfigured" | "missing_api_key" | "unsupported_api" | "empty_response" | "response_too_large"; }[]; selectedIndex: number; selectedIdentity: { provider: string; model: string; family?: string | undefined; }; policyDigest: string; configDigest: string; candidatesDigest: string; }, { stage: "fast-judge"; thinking: "low" | "medium" | "high" | "off" | "minimal" | "xhigh" | "max"; decisionId: string; policyVersion: string; fallbackHistory: { identity: string; failureCode: "truncated" | "http_error" | "invalid_json" | "provider_response_failed" | "schema_validation_failed" | "provider_unconfigured" | "missing_api_key" | "unsupported_api" | "empty_response" | "response_too_large"; }[]; selectedIndex: number; selectedIdentity: { provider: string; model: string; family?: string | undefined; }; policyDigest: string; configDigest: string; candidatesDigest: string; }>; export declare const mcpRunApproveVerdictSchema: z.ZodObject<{ verdict: z.ZodLiteral<"approve">; reasons: z.ZodString; }, "strict", z.ZodTypeAny, { verdict: "approve"; reasons: string; }, { verdict: "approve"; reasons: string; }>; export declare const mcpRunRejectVerdictSchema: z.ZodObject<{ verdict: z.ZodLiteral<"reject">; reasons: z.ZodString; requiredFixes: z.ZodString; }, "strict", z.ZodTypeAny, { verdict: "reject"; requiredFixes: string; reasons: string; }, { verdict: "reject"; requiredFixes: string; reasons: string; }>; export declare const mcpRunVerdictSchema: z.ZodDiscriminatedUnion<"verdict", [z.ZodObject<{ verdict: z.ZodLiteral<"approve">; reasons: z.ZodString; }, "strict", z.ZodTypeAny, { verdict: "approve"; reasons: string; }, { verdict: "approve"; reasons: string; }>, z.ZodObject<{ verdict: z.ZodLiteral<"reject">; reasons: z.ZodString; requiredFixes: z.ZodString; }, "strict", z.ZodTypeAny, { verdict: "reject"; requiredFixes: string; reasons: string; }, { verdict: "reject"; requiredFixes: string; reasons: string; }>]>; export declare const mcpRunResponseSchema: z.ZodObject<{ outcome: z.ZodEnum<["started", "current", "advanced", "cancelled", "conflict"]>; runId: z.ZodString; revision: z.ZodNumber; status: z.ZodEnum<["active", "done", "failed", "cancelled", "blocked"]>; currentNode: z.ZodEnum<["idle", "planning", "awaiting_approval", "coding", "judging", "replanning", "done", "failed"]>; requiredAction: z.ZodEnum<["approve_or_revise_plan", "implement_and_submit_code", "inspect_run", "none"]>; permittedEvents: z.ZodArray, "many">; plan: z.ZodOptional; lastVerdict: z.ZodOptional; reasons: z.ZodString; }, "strict", z.ZodTypeAny, { verdict: "approve"; reasons: string; }, { verdict: "approve"; reasons: string; }>, z.ZodObject<{ verdict: z.ZodLiteral<"reject">; reasons: z.ZodString; requiredFixes: z.ZodString; }, "strict", z.ZodTypeAny, { verdict: "reject"; requiredFixes: string; reasons: string; }, { verdict: "reject"; requiredFixes: string; reasons: string; }>]>>; routing: z.ZodArray; selectedIndex: z.ZodNumber; selectedIdentity: z.ZodObject<{ provider: z.ZodString; model: z.ZodString; family: z.ZodOptional; }, "strict", z.ZodTypeAny, { provider: string; model: string; family?: string | undefined; }, { provider: string; model: string; family?: string | undefined; }>; thinking: z.ZodEnum<["off", "minimal", "low", "medium", "high", "xhigh", "max"]>; policyVersion: z.ZodString; policyDigest: z.ZodString; configDigest: z.ZodString; candidatesDigest: z.ZodString; fallbackHistory: z.ZodArray; }, "strict", z.ZodTypeAny, { identity: string; failureCode: "truncated" | "http_error" | "invalid_json" | "provider_response_failed" | "schema_validation_failed" | "provider_unconfigured" | "missing_api_key" | "unsupported_api" | "empty_response" | "response_too_large"; }, { identity: string; failureCode: "truncated" | "http_error" | "invalid_json" | "provider_response_failed" | "schema_validation_failed" | "provider_unconfigured" | "missing_api_key" | "unsupported_api" | "empty_response" | "response_too_large"; }>, "many">; }, "strict", z.ZodTypeAny, { stage: "plan" | "fast-judge"; thinking: "low" | "medium" | "high" | "off" | "minimal" | "xhigh" | "max"; decisionId: string; policyVersion: string; fallbackHistory: { identity: string; failureCode: "truncated" | "http_error" | "invalid_json" | "provider_response_failed" | "schema_validation_failed" | "provider_unconfigured" | "missing_api_key" | "unsupported_api" | "empty_response" | "response_too_large"; }[]; selectedIndex: number; selectedIdentity: { provider: string; model: string; family?: string | undefined; }; policyDigest: string; configDigest: string; candidatesDigest: string; }, { stage: "plan" | "fast-judge"; thinking: "low" | "medium" | "high" | "off" | "minimal" | "xhigh" | "max"; decisionId: string; policyVersion: string; fallbackHistory: { identity: string; failureCode: "truncated" | "http_error" | "invalid_json" | "provider_response_failed" | "schema_validation_failed" | "provider_unconfigured" | "missing_api_key" | "unsupported_api" | "empty_response" | "response_too_large"; }[]; selectedIndex: number; selectedIdentity: { provider: string; model: string; family?: string | undefined; }; policyDigest: string; configDigest: string; candidatesDigest: string; }>, "many">; progress: z.ZodObject<{ coderIterations: z.ZodNumber; consecutiveRejections: z.ZodNumber; planVersion: z.ZodNumber; }, "strict", z.ZodTypeAny, { planVersion: number; coderIterations: number; consecutiveRejections: number; }, { planVersion: number; coderIterations: number; consecutiveRejections: number; }>; limits: z.ZodRecord>; remaining: z.ZodRecord>; recovery: z.ZodOptional; action: z.ZodOptional>; reason: z.ZodOptional>; sourcePlanVersion: z.ZodNumber; targetPlanVersion: z.ZodOptional; remaining: z.ZodObject<{ retry: z.ZodNumber; repair: z.ZodNumber; replan: z.ZodNumber; }, "strict", z.ZodTypeAny, { retry: number; repair: number; replan: number; }, { retry: number; repair: number; replan: number; }>; executionStatus: z.ZodOptional>; directive: z.ZodOptional; confidence: z.ZodEnum<["low", "medium", "high"]>; repairScope: z.ZodArray; validationRequirements: z.ZodArray; topologyAssessment: z.ZodEnum<["preserve", "structural"]>; }, "strict", z.ZodTypeAny, { confidence: "low" | "medium" | "high"; rootCauseCategory: "unknown" | "configuration" | "budget" | "transient-provider" | "transient-tool" | "timeout" | "output-contract" | "implementation-defect" | "missing-dependency" | "invalid-topology" | "wrong-decomposition" | "authorization" | "policy" | "side-effect"; repairScope: string[]; validationRequirements: string[]; topologyAssessment: "preserve" | "structural"; }, { confidence: "low" | "medium" | "high"; rootCauseCategory: "unknown" | "configuration" | "budget" | "transient-provider" | "transient-tool" | "timeout" | "output-contract" | "implementation-defect" | "missing-dependency" | "invalid-topology" | "wrong-decomposition" | "authorization" | "policy" | "side-effect"; repairScope: string[]; validationRequirements: string[]; topologyAssessment: "preserve" | "structural"; }>>; }, "strict", z.ZodTypeAny, { status: "failed" | "active" | "waiting-diagnosis" | "waiting-configuration" | "waiting-authorization" | "waiting-policy" | "waiting-side-effect-review" | "waiting-successor-artifact" | "waiting-successor-approval" | "ready-successor-activation" | "released"; failureFingerprint: string; sourcePlanVersion: number; remaining: { retry: number; repair: number; replan: number; }; reason?: "transient-failure" | "local-defect" | "structural-defect" | "diagnosis-required" | "unknown-after-diagnosis" | "configuration-change-required" | "human-authorization-required" | "policy-change-required" | "side-effect-review-required" | "global-budget-exhausted" | "retry-exhausted" | "repair-exhausted" | "replan-exhausted" | "recovery-level-consumed" | "recovery-level-skipped" | undefined; action?: "retry" | "repair" | "replan" | "pause" | "fail" | undefined; targetPlanVersion?: number | undefined; directive?: { confidence: "low" | "medium" | "high"; rootCauseCategory: "unknown" | "configuration" | "budget" | "transient-provider" | "transient-tool" | "timeout" | "output-contract" | "implementation-defect" | "missing-dependency" | "invalid-topology" | "wrong-decomposition" | "authorization" | "policy" | "side-effect"; repairScope: string[]; validationRequirements: string[]; topologyAssessment: "preserve" | "structural"; } | undefined; executionStatus?: "completed" | "awaiting-client" | "executing-provider" | undefined; }, { status: "failed" | "active" | "waiting-diagnosis" | "waiting-configuration" | "waiting-authorization" | "waiting-policy" | "waiting-side-effect-review" | "waiting-successor-artifact" | "waiting-successor-approval" | "ready-successor-activation" | "released"; failureFingerprint: string; sourcePlanVersion: number; remaining: { retry: number; repair: number; replan: number; }; reason?: "transient-failure" | "local-defect" | "structural-defect" | "diagnosis-required" | "unknown-after-diagnosis" | "configuration-change-required" | "human-authorization-required" | "policy-change-required" | "side-effect-review-required" | "global-budget-exhausted" | "retry-exhausted" | "repair-exhausted" | "replan-exhausted" | "recovery-level-consumed" | "recovery-level-skipped" | undefined; action?: "retry" | "repair" | "replan" | "pause" | "fail" | undefined; targetPlanVersion?: number | undefined; directive?: { confidence: "low" | "medium" | "high"; rootCauseCategory: "unknown" | "configuration" | "budget" | "transient-provider" | "transient-tool" | "timeout" | "output-contract" | "implementation-defect" | "missing-dependency" | "invalid-topology" | "wrong-decomposition" | "authorization" | "policy" | "side-effect"; repairScope: string[]; validationRequirements: string[]; topologyAssessment: "preserve" | "structural"; } | undefined; executionStatus?: "completed" | "awaiting-client" | "executing-provider" | undefined; }>>; conflict: z.ZodOptional>; message: z.ZodOptional; }, "strict", z.ZodTypeAny, { progress: { planVersion: number; coderIterations: number; consecutiveRejections: number; }; runId: string; revision: number; status: "blocked" | "failed" | "cancelled" | "active" | "done"; outcome: "cancelled" | "current" | "started" | "advanced" | "conflict"; limits: Record; routing: { stage: "plan" | "fast-judge"; thinking: "low" | "medium" | "high" | "off" | "minimal" | "xhigh" | "max"; decisionId: string; policyVersion: string; fallbackHistory: { identity: string; failureCode: "truncated" | "http_error" | "invalid_json" | "provider_response_failed" | "schema_validation_failed" | "provider_unconfigured" | "missing_api_key" | "unsupported_api" | "empty_response" | "response_too_large"; }[]; selectedIndex: number; selectedIdentity: { provider: string; model: string; family?: string | undefined; }; policyDigest: string; configDigest: string; candidatesDigest: string; }[]; remaining: Record; currentNode: "coding" | "failed" | "idle" | "planning" | "awaiting_approval" | "judging" | "replanning" | "done"; requiredAction: "none" | "approve_or_revise_plan" | "implement_and_submit_code" | "inspect_run"; permittedEvents: ("cancelled" | "plan_approved" | "plan_revision_requested" | "code_result_submitted")[]; plan?: string | undefined; recovery?: { status: "failed" | "active" | "waiting-diagnosis" | "waiting-configuration" | "waiting-authorization" | "waiting-policy" | "waiting-side-effect-review" | "waiting-successor-artifact" | "waiting-successor-approval" | "ready-successor-activation" | "released"; failureFingerprint: string; sourcePlanVersion: number; remaining: { retry: number; repair: number; replan: number; }; reason?: "transient-failure" | "local-defect" | "structural-defect" | "diagnosis-required" | "unknown-after-diagnosis" | "configuration-change-required" | "human-authorization-required" | "policy-change-required" | "side-effect-review-required" | "global-budget-exhausted" | "retry-exhausted" | "repair-exhausted" | "replan-exhausted" | "recovery-level-consumed" | "recovery-level-skipped" | undefined; action?: "retry" | "repair" | "replan" | "pause" | "fail" | undefined; targetPlanVersion?: number | undefined; directive?: { confidence: "low" | "medium" | "high"; rootCauseCategory: "unknown" | "configuration" | "budget" | "transient-provider" | "transient-tool" | "timeout" | "output-contract" | "implementation-defect" | "missing-dependency" | "invalid-topology" | "wrong-decomposition" | "authorization" | "policy" | "side-effect"; repairScope: string[]; validationRequirements: string[]; topologyAssessment: "preserve" | "structural"; } | undefined; executionStatus?: "completed" | "awaiting-client" | "executing-provider" | undefined; } | undefined; message?: string | undefined; lastVerdict?: { verdict: "approve"; reasons: string; } | { verdict: "reject"; requiredFixes: string; reasons: string; } | undefined; conflict?: { expectedRevision: number; currentRevision: number; } | undefined; }, { progress: { planVersion: number; coderIterations: number; consecutiveRejections: number; }; runId: string; revision: number; status: "blocked" | "failed" | "cancelled" | "active" | "done"; outcome: "cancelled" | "current" | "started" | "advanced" | "conflict"; limits: Record; routing: { stage: "plan" | "fast-judge"; thinking: "low" | "medium" | "high" | "off" | "minimal" | "xhigh" | "max"; decisionId: string; policyVersion: string; fallbackHistory: { identity: string; failureCode: "truncated" | "http_error" | "invalid_json" | "provider_response_failed" | "schema_validation_failed" | "provider_unconfigured" | "missing_api_key" | "unsupported_api" | "empty_response" | "response_too_large"; }[]; selectedIndex: number; selectedIdentity: { provider: string; model: string; family?: string | undefined; }; policyDigest: string; configDigest: string; candidatesDigest: string; }[]; remaining: Record; currentNode: "coding" | "failed" | "idle" | "planning" | "awaiting_approval" | "judging" | "replanning" | "done"; requiredAction: "none" | "approve_or_revise_plan" | "implement_and_submit_code" | "inspect_run"; permittedEvents: ("cancelled" | "plan_approved" | "plan_revision_requested" | "code_result_submitted")[]; plan?: string | undefined; recovery?: { status: "failed" | "active" | "waiting-diagnosis" | "waiting-configuration" | "waiting-authorization" | "waiting-policy" | "waiting-side-effect-review" | "waiting-successor-artifact" | "waiting-successor-approval" | "ready-successor-activation" | "released"; failureFingerprint: string; sourcePlanVersion: number; remaining: { retry: number; repair: number; replan: number; }; reason?: "transient-failure" | "local-defect" | "structural-defect" | "diagnosis-required" | "unknown-after-diagnosis" | "configuration-change-required" | "human-authorization-required" | "policy-change-required" | "side-effect-review-required" | "global-budget-exhausted" | "retry-exhausted" | "repair-exhausted" | "replan-exhausted" | "recovery-level-consumed" | "recovery-level-skipped" | undefined; action?: "retry" | "repair" | "replan" | "pause" | "fail" | undefined; targetPlanVersion?: number | undefined; directive?: { confidence: "low" | "medium" | "high"; rootCauseCategory: "unknown" | "configuration" | "budget" | "transient-provider" | "transient-tool" | "timeout" | "output-contract" | "implementation-defect" | "missing-dependency" | "invalid-topology" | "wrong-decomposition" | "authorization" | "policy" | "side-effect"; repairScope: string[]; validationRequirements: string[]; topologyAssessment: "preserve" | "structural"; } | undefined; executionStatus?: "completed" | "awaiting-client" | "executing-provider" | undefined; } | undefined; message?: string | undefined; lastVerdict?: { verdict: "approve"; reasons: string; } | { verdict: "reject"; requiredFixes: string; reasons: string; } | undefined; conflict?: { expectedRevision: number; currentRevision: number; } | undefined; }>; export type McpRunStartInput = z.infer; export type McpRunGetInput = z.infer; export type McpRunAdvanceInput = z.infer; export type McpRunCancelInput = z.infer; export type McpRunRecoverInput = z.infer; export type McpRunClientEvent = z.infer; export type McpRunResponse = z.infer; export interface McpRunAdapter { start(input: McpRunStartInput, signal?: AbortSignal): Promise; get(input: McpRunGetInput, signal?: AbortSignal): Promise; advance(input: McpRunAdvanceInput, signal?: AbortSignal): Promise; cancel(input: McpRunCancelInput, signal?: AbortSignal): Promise; recover?(input: McpRunRecoverInput, signal?: AbortSignal): Promise; } export declare function mcpRunToolResult(response: McpRunResponse): { structuredContent: McpRunResponse; content: [{ type: "text"; text: string; }]; }; export declare const unavailableMcpRunAdapter: McpRunAdapter;