ALTER TABLE agents ADD COLUMN runtime_status TEXT NOT NULL DEFAULT 'available';
ALTER TABLE agents ADD COLUMN exhausted_until TEXT;
ALTER TABLE agents ADD COLUMN runtime_error TEXT;

UPDATE agents
SET runtime_status = 'available'
WHERE runtime_status IS NULL OR trim(runtime_status) = '';
