/** * THE HIVE PROTOCOL * The standard format for "Immune Signals" shared between Rigstate Instances. */ export interface ImmuneSignal { id: string; // UUID type: 'SECURITY_PATCH' | 'PERFORMANCE_FIX' | 'ARCH_VIOLATION'; // Abstracted vector (e.g. "Next.js Server Action") vector: string; // The rule itself (Sanitized via Scrubber) ruleContent: string; // Metrics proving why this is good confidenceScore: number; // 0-100 (Based on local tests passed) schemaVersion: '1.0'; timestamp: string; } export interface HiveSyncConfig { enabled: boolean; endpoint: string; mode: 'CONSUME_ONLY' | 'CONTRIBUTE' | 'FULL_DUPLEX'; minConfidenceThreshold: number; // Only import rules with score > 80 }