[FEAT] L4 AI Cross-Analysis — analisi aggregata multi-org per consulenti

- CrossAnalysisController.php: analyze/history/portfolio (k-anonymity min 2 org)
- AIService::crossOrgAnalysis(): aggregazione 9 dimensioni, zero PII nel prompt
- cross-analysis.html: chat UI purple theme, 3 tab, quick questions, portfolio stats
- index.php: routing /api/cross-analysis/{analyze,history,portfolio}
- common.js: link "AI Cross-Analysis" in sidebar sezione Gestione
- docs/AI_LEVELS_SCHEMA.md: schema architetturale L1-L5 con matrice privacy

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
DevEnv nis2-agile
2026-03-09 08:17:53 +01:00
co-authored by Claude Sonnet 4.6
parent 89fd201bc2
commit 19a9e5622d
5 changed files with 1258 additions and 1 deletions
+9 -1
View File
@@ -102,7 +102,8 @@ $controllerMap = [
'invites' => 'InviteController',
'webhooks' => 'WebhookController',
'whistleblowing'=> 'WhistleblowingController',
'normative' => 'NormativeController',
'normative' => 'NormativeController',
'cross-analysis' => 'CrossAnalysisController',
];
if (!isset($controllerMap[$controllerName])) {
@@ -361,6 +362,13 @@ $actionMap = [
'GET:stats' => 'stats',
'POST:create' => 'create',
],
// ── CrossAnalysisController (L4 AI cross-org) ──
'cross-analysis' => [
'POST:analyze' => 'analyze',
'GET:history' => 'history',
'GET:portfolio' => 'portfolio',
],
];
// ═══════════════════════════════════════════════════════════════════════════