export interface RejectionContext { taskId: string; workspaceId: string; agentId: string; attemptCount: number; failures: FailureSummary[]; originalTask: string; startedAt: Date; rejectedAt: Date; } export interface FailureSummary { gateName: string; failureType: string; message: string; attempts: number; } export interface RejectionResult { handled: boolean; escalated: boolean; notificationsSent: string[]; taskState: "blocked" | "reassigned" | "cancelled"; manualReviewRequired: boolean; }