import type { QualityGateResult } from "../interfaces";

/**
 * DTO for orchestration results
 */
export interface OrchestrationResultDto {
  /** Task ID */
  taskId: string;

  /** Whether the completion was accepted */
  accepted: boolean;

  /** Verdict from validation */
  verdict: "accepted" | "rejected" | "needs-continuation";

  /** All gates passed */
  allGatesPassed: boolean;

  /** Required gates that failed */
  requiredGatesFailed: string[];

  /** Results from each gate */
  gateResults: QualityGateResult[];

  /** Feedback for the agent */
  feedback?: string;

  /** Suggested actions to fix issues */
  suggestedActions?: string[];

  /** Continuation prompt if needed */
  continuationPrompt?: string;
}
