"""add pending_task_lane to ai_sessions

Revision ID: 068
Revises: 067
Create Date: 2026-03-27
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects.postgresql import JSONB

revision = "068"
down_revision = "067"
branch_labels = None
depends_on = None


def upgrade() -> None:
    op.add_column(
        "ai_sessions",
        sa.Column(
            "pending_task_lane",
            JSONB,
            nullable=True,
            comment="Current task lane state: {questions: [...], actions: [...]}",
        ),
    )


def downgrade() -> None:
    op.drop_column("ai_sessions", "pending_task_lane")
