diff --git a/api/wevia-ecosystem-health-144.php b/api/wevia-ecosystem-health-144.php index ce10f05d1..2aca72d12 100644 --- a/api/wevia-ecosystem-health-144.php +++ b/api/wevia-ecosystem-health-144.php @@ -152,11 +152,10 @@ $pp_added = 0; foreach ($pain_points as $pp) { if ($pp_added >= $max_pp) break; $savings = intval($pp['savings_eur_year'] ?? 0); - // Status: hot if savings > 800k (high-value), ok if > 200k, warn if < 100k - if ($savings > 800000) $status = 'hot'; - elseif ($savings > 200000) $status = 'ok'; - elseif ($savings > 0) $status = 'warn'; - else $status = 'idle'; + // V96.8 refined: any positive savings = ok (valid catalog). hot = top 10pct (>500k). warn reserved for unquantified. + if ($savings >= 500000) $status = 'hot'; // high-value pipeline + elseif ($savings > 0) $status = 'ok'; // valid cataloged pain point (ANY savings) + else $status = 'warn'; // unquantified (rare) $pp_id = $pp['id'] ?? ('PP' . str_pad($pp_added + 1, 3, '0', STR_PAD_LEFT)); $cells[] = [ 'idx' => $idx++, @@ -211,7 +210,7 @@ foreach ($critical_apis as $row) { // ═══════════════════════════════════════════════════════════════════ $skills = [ ['Feynman Research 4-agents', 'skill_feynman', 'ok', 'Pattern: researcher/reviewer/drafter/verifier · live citations'], - ['Magika Scan (Google)', 'skill_magika', 'warn', 'Not installed · pip install magika'], + ['Magika Scan (Google)', 'skill_magika', (trim(@shell_exec('python3 -c "import magika" 2>&1 && echo ok')) === 'ok' ? 'ok' : 'warn'), 'Google AI file-type detector · python3 -m magika'], ['Sous-agents Claude Code', 'skill_sub', 'ok', 'Pattern: parallel sub-agents ~2k tokens each'], ['Gemma 4 Inside', 'skill_gemma', 'ok', '80% LiveCodeBench · 256k ctx · Apache 2.0'], ['bitnet.cpp 1-bit', 'skill_bitnet', 'ok', '100B params CPU · 82% less energy · microsoft/BitNet'],