-- Migration 058: Add generation_strategy column to canonical_controls
-- Tracks whether a control was generated with document-grouped or ungrouped batching

ALTER TABLE canonical_controls
    ADD COLUMN IF NOT EXISTS generation_strategy TEXT NOT NULL DEFAULT 'ungrouped';

COMMENT ON COLUMN canonical_controls.generation_strategy IS
    'How chunks were batched during generation: ungrouped (random), document_grouped (by regulation+article)';
