Reference implementation for the Phoenix Architecture. Work in progress. aicoding.leaflet.pub/
ai coding crazy
at main 26 lines 537 B view raw
1/** 2 * Diagnostic model — every status item in phoenix status. 3 */ 4 5export type DiagnosticSeverity = 'error' | 'warning' | 'info'; 6 7export type DiagnosticCategory = 8 | 'dependency_violation' 9 | 'side_channel_violation' 10 | 'drift' 11 | 'boundary' 12 | 'd-rate' 13 | 'canon' 14 | 'evidence' 15 | 'regen'; 16 17export interface Diagnostic { 18 severity: DiagnosticSeverity; 19 category: DiagnosticCategory; 20 subject: string; 21 message: string; 22 iu_id?: string; 23 source_file?: string; 24 source_line?: number; 25 recommended_actions: string[]; 26}