integrate evidence-grounded AI enrichment

This commit is contained in:
Marco0300
2026-09-03 19:55:48 +02:00
parent 74871b5006
commit e3257f1ce9
4 changed files with 142 additions and 53 deletions
+11
View File
@@ -281,6 +281,17 @@ CREATE TABLE IF NOT EXISTS ai_suggestions (
);
CREATE INDEX IF NOT EXISTS idx_ai_suggestions_run ON ai_suggestions(organization_id,ai_run_id,id);
-- AI provider settings contain no secrets. Remote execution remains unavailable
-- unless a separately reviewed provider abstraction is added.
CREATE TABLE IF NOT EXISTS ai_provider_configs (
id INTEGER PRIMARY KEY AUTOINCREMENT,
organization_id TEXT NOT NULL REFERENCES organizations(id) ON DELETE CASCADE,
provider TEXT NOT NULL DEFAULT 'local', enabled INTEGER NOT NULL DEFAULT 1,
reviewed INTEGER NOT NULL DEFAULT 0, policy_json TEXT NOT NULL DEFAULT '{"network_enabled":false}',
created_at TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP, updated_at TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP,
UNIQUE(organization_id)
);
-- Phase 14 outreach preparation. Provider configuration is metadata plus a
-- one-way secret fingerprint; outbound transport is intentionally disabled.
CREATE TABLE IF NOT EXISTS outreach_provider_configs (