Task 011 implement evidence matrix and claim gate

This commit is contained in:
2026-05-21 22:52:41 +03:00
parent 7d4a79acb5
commit 7e1b05067c
23 changed files with 2090 additions and 17 deletions
+5 -2
View File
@@ -186,9 +186,11 @@ POSTGRES_SCHEMA_STATEMENTS: tuple[str, ...] = (
summary TEXT NOT NULL,
supports_claims JSONB NOT NULL DEFAULT '[]'::jsonb,
artifact_manifest_id UUID,
retrieved_at TIMESTAMPTZ NOT NULL DEFAULT now()
retrieved_at TIMESTAMPTZ NOT NULL DEFAULT now(),
review_status TEXT NOT NULL DEFAULT 'PENDING'
)
""",
"ALTER TABLE evidence_items ADD COLUMN IF NOT EXISTS review_status TEXT NOT NULL DEFAULT 'PENDING'",
f"""
CREATE TABLE IF NOT EXISTS claims (
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
@@ -495,7 +497,8 @@ SQLITE_SCHEMA_STATEMENTS: tuple[str, ...] = (
summary TEXT NOT NULL,
supports_claims TEXT NOT NULL DEFAULT '[]',
artifact_manifest_id TEXT,
retrieved_at TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP
retrieved_at TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP,
review_status TEXT NOT NULL DEFAULT 'PENDING'
)
""",
"""