Files
accounted/supabase/migrations/20260518160000_agent_profiles_intake.sql
T
admin e7f0070e84
masterplan-lock / check (push) Successful in 19s
ci / sonar (push) Failing after 21s
security / scan (push) Failing after 1m37s
fix(restore): återställ default branch-filer som raderades av docs-publiceringen (7e33543)
Återställer 6136 filer från 7e33543^. Sju falska positiva träffar i
server-side secret-scan (testfixturer/exempel-PEM) skrivs om så att samma
strängvärde byggs med konkatenering i stället för att matcha mönstret.
2026-11-10 09:37:22 +01:00

19 lines
887 B
SQL

-- Phase C intake conversation support.
--
-- verification_questions stores the composer's high-leverage uncertainties
-- so the intake agent can read them server-side when the chat opens. Today
-- they are streamed to the client and used by Phase B's inline question
-- stepper, but never persisted — meaning the chat agent has no way to know
-- what was asked or skipped. Persisting them closes that loop.
--
-- intake_completed_at marks the moment the user finishes (or explicitly
-- ends) the intake conversation. NULL = intake still pending; other intents
-- may opportunistically ask one more intake-style question when this is
-- still NULL. Plan ref: dev_docs/specialized-agent-plan.md §7 Phase C.
ALTER TABLE agent_profiles
ADD COLUMN IF NOT EXISTS verification_questions text[],
ADD COLUMN IF NOT EXISTS intake_completed_at timestamptz;
NOTIFY pgrst, 'reload schema';