-- 016_ai_instructions.sql — optional custom system instructions per user -- (Settings → AI, mirroring the BYOK "instructions" field). Additive and -- idempotent; schema.sql carries the identical column, so db-converge lands -- the same shape on both paths. -- -- Applied ONLY to the in-app assistant chat prompt. The server-owned -- automation compiler and page-extraction prompts deliberately never -- include user instructions: those are contracts (ValidateSpec, untrusted -- fetched content), not personas. ALTER TABLE "UserAiConfig" ADD COLUMN IF NOT EXISTS instructions text NOT NULL DEFAULT '';