-- 048: Expand processing_path CHECK constraint for new pipeline paths -- New values: prefilter_skip, no_control, store_failed, error ALTER TABLE canonical_processed_chunks DROP CONSTRAINT IF EXISTS canonical_processed_chunks_processing_path_check; ALTER TABLE canonical_processed_chunks ADD CONSTRAINT canonical_processed_chunks_processing_path_check CHECK (processing_path IN ( 'structured', -- Rule 1/2: structured from original text 'llm_reform', -- Rule 3: LLM reformulated 'skipped', -- Legacy: skipped for other reasons 'prefilter_skip', -- Local LLM determined chunk has no requirement 'no_control', -- Processing ran but no control could be derived 'store_failed', -- Control generated but DB store failed 'error' -- Processing error occurred ));