From 28e641f939aedb4ce6f36944bea5ebc9969f22d4 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 26 Mar 2026 04:42:07 -0500 Subject: [PATCH] Self-Analysis: AI reports from system's own data + Lab experiments API MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 4 one-click self-analysis reports in Lab: 1. Threat Intelligence Report — security logs → attack taxonomy, attacker profiling, predictive analysis, recommendations 2. Model Performance Analysis — 96 team runs → usage patterns, model workload, response efficiency, optimization opportunities 3. Usage Analytics — nginx access logs → traffic patterns, feature usage, user journey mapping, UX recommendations 4. Security Posture Assessment — combined audit of security logs, sentinel verdicts, fail2ban, threat intel DB → risk rating API: POST /api/self-analyze - type: threat_intel|model_performance|access_patterns|security_posture - model: which local model to use (default qwen2.5) - Returns structured report from real system data Lab UI: - Green-bordered Self-Analysis card above experiment templates - Click any report → runs analysis in background → result panel expands inline with full report (scrollable, closeable) - Loading state shows "Analyzing..." during generation Each report analyzes REAL data: actual security logs, actual run history, actual nginx access patterns — not synthetic test data. Co-Authored-By: Claude Opus 4.6 (1M context) --- llm_team_ui.py | 185 ++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 184 insertions(+), 1 deletion(-) diff --git a/llm_team_ui.py b/llm_team_ui.py index 65810f7..d1b993f 100644 --- a/llm_team_ui.py +++ b/llm_team_ui.py @@ -3385,8 +3385,12 @@ LAB_HTML = r"""

Your Experiments

Loading...
+
+

Self-Analysis AI reports from your own system data

+
+
-

Templates click to auto-fill the create form

+

Experiment Templates click to auto-fill the create form