-- Extends research_topics.outcome_kind to include 'integrations' — a new -- deliverable shape for "audit this repo, survey the literature, produce -- a prioritized menu of concrete integrations we can implement" runs. -- The artifact is a list of INT-XX items, each self-contained (what, -- how, where in the architecture, prereqs, effort, risk, acceptance -- criteria) so a downstream loop can consume them one-per-iteration. -- -- The existing check constraint is dropped and re-added with the new -- value; existing rows aren't affected. Postgres requires the drop -- because you can't ALTER a constraint's expression in place. ALTER TABLE research_topics DROP CONSTRAINT research_topics_outcome_kind_check; ALTER TABLE research_topics ADD CONSTRAINT research_topics_outcome_kind_check CHECK (outcome_kind IN ('spec', 'prod_plan', 'roadmap', 'paper', 'integrations'));