MorphGuard / database_init /04_add_forensic_columns.sql
juanquy's picture
Initial clean commit of modular MorphGuard
2978bba
Raw
History Blame Contribute Delete
678 Bytes
-- Add columns for DeepForensic Engine (CTM) metrics
ALTER TABLE detection_metrics ADD COLUMN IF NOT EXISTS forensic_ticks INTEGER DEFAULT 0;
ALTER TABLE detection_metrics ADD COLUMN IF NOT EXISTS reasoning_path TEXT;
ALTER TABLE detection_metrics ADD COLUMN IF NOT EXISTS detection_tier TEXT DEFAULT 'Tier1_Fast';
-- Add comment explaining the new columns
COMMENT ON COLUMN detection_metrics.forensic_ticks IS 'Number of thinking steps taken by the CTM agent';
COMMENT ON COLUMN detection_metrics.reasoning_path IS 'JSON string containing the sequence of thoughts';
COMMENT ON COLUMN detection_metrics.detection_tier IS 'Tier of detection used: Tier1_Fast or Tier2_Forensic';