-- Add retry_count column to agent_task for retry tracking
ALTER TABLE agent_task ADD COLUMN IF NOT EXISTS retry_count INTEGER DEFAULT 0;

CREATE INDEX IF NOT EXISTS idx_agent_task_retry_count ON agent_task (retry_count);
