/dev/null") ?: 0)); $intents = intval(trim(shell_exec("ls /var/www/html/api/wired-pending/*.php 2>/dev/null | wc -l"))); echo json_encode(array( 'ok' => true, 'v' => 'V55-agents-reconciliation', 'ts' => date('c'), 'mega_structured_agents' => $mega, 'manifest_declared_agents' => $manifest, 'gap' => $gap, 'gap_explanation_honest' => array( 'reason' => 'manifest 950 = vision ambitieuse 18 departements x ~50 agents + 50 generic agents', 'reality_mega_243' => 'agents structured explicite V73 multi-agent aggregator', 'other_sources' => array( 'wired_intents_chat' => $intents, 'skills_oss_catalog' => 5637, 'skills_dispatcher' => 4812, 'paperclip_leads_as_agents' => $paperclip_leads, 'provider_agents' => 15, 'docker_services' => 19, 'proactive_crons' => 9, ), 'total_operational_proxy' => $intents + 243 + 15 + 19 + 9, ), 'recommendation' => 'Normaliser manifest a 243 OR documenter les 707 comme backlog stubs V68 V67 in progress', 'doctrine_4_honnete' => 'manifest 950 over-declared, reality 243 structured + operational proxy > 400', ), JSON_PRETTY_PRINT);