-- depends_on:agent_conversation
ALTER TABLE agent_session
    ADD COLUMN IF NOT EXISTS source TEXT NOT NULL DEFAULT 'api',
    ADD COLUMN IF NOT EXISTS parent_session_id UUID REFERENCES agent_session(id),
    ADD COLUMN IF NOT EXISTS toolset_json TEXT,
    ADD COLUMN IF NOT EXISTS memory_provider TEXT,
    ADD COLUMN IF NOT EXISTS memory_provider_config TEXT,
    ADD COLUMN IF NOT EXISTS iteration_budget INTEGER NOT NULL DEFAULT 90;
