export class AgentGuardBudgetCapError extends Error { constructor(message: string, public context: { workflow_id: string; total_spend_usd: number }) { super(message); this.name = 'AgentGuardBudgetCapError'; } } export class AgentGuardDurationCapError extends Error { constructor(message: string, public context: { workflow_id: string; elapsed_ms: number }) { super(message); this.name = 'AgentGuardDurationCapError'; } } export class AgentGuardChainCorruptError extends Error { constructor(message: string, public context: { workflow_id?: string; broken_at?: number; reason?: string } = {}) { super(message); this.name = 'AgentGuardChainCorruptError'; } } export class AgentGuardWorkflowStateError extends Error { constructor(message: string, public context: { workflow_id: string; state: string }) { super(message); this.name = 'AgentGuardWorkflowStateError'; } }