-- Add cooperative steering/cancel interaction types for Agentic Workspace task runs.

ALTER TABLE platform.agentic_workspace_interactions
    DROP CONSTRAINT IF EXISTS chk_agentic_workspace_interactions_type;

ALTER TABLE platform.agentic_workspace_interactions
    ADD CONSTRAINT chk_agentic_workspace_interactions_type CHECK (
        interaction_type IN (
            'clarification',
            'confirmation',
            'choice',
            'repair_decision',
            'steer',
            'cancel'
        )
    );

COMMENT ON CONSTRAINT chk_agentic_workspace_interactions_type
    ON platform.agentic_workspace_interactions
    IS 'Allowed human-interaction records, including cooperative steer/cancel for active Agentic Workspace task runs.';
