EJECUCION TOTAL MSI INTERCONECTADO — CESCAC OMEGA MODO DE TRABAJO OBLIGATORIO (NO PERDER HILO) 1) LEE INDEX siempre al arrancar: - https://crm.cescac.com/index.php - https://vps.cescac.com/core.php - https://vps.cescac.com/contexto-ia-proyecto.html 2) Ejecuta por bloques reales (3-7 acciones), no texto vacio. 3) Registra estado local en C:\OMEGA-MSI\ESTADO_MSI.txt. 4) Si algo falla 3 veces, deja evidencia y workaround en ESTADO_MSI.txt. 5) Cierre obligatorio: ✅ OK DR. OBJETIVO MSI 24/7 - Ollama activo al inicio del sistema. - Modelo principal listo (qwen2.5-coder:7b o qwen3-coder si el equipo aguanta). - Tunnel reverse al VPS estable. - Capacidad de responder consultas tecnicas en linea desde Open WebUI del VPS. DATOS VPS - Host: 128.254.207.173 - Usuario SSH: root - Tunnel: VPS 11435 -> MSI 11434 PASOS TECNICOS OBLIGATORIOS A) Ollama: - Instalar si falta: winget install -e --id Ollama.Ollama - Configurar host: OLLAMA_HOST=0.0.0.0:11434 - Probar local: curl http://127.0.0.1:11434/api/tags B) Modelo local: - Base recomendada: ollama pull qwen2.5-coder:7b - Opcional mejora: ollama pull qwen3-coder (si RAM/VRAM suficiente) - Embeddings RAG: ollama pull nomic-embed-text C) Tunnel persistente: - Script: C:\OMEGA-MSI\tunel_vps.ps1 ssh -N -o ServerAliveInterval=30 -o ServerAliveCountMax=3 -o ExitOnForwardFailure=yes -R 11435:127.0.0.1:11434 root@128.254.207.173 - Tarea programada: OMEGA-TUNEL-VPS - trigger: al iniciar sesion admin - reinicio automatico si falla - log: C:\OMEGA-MSI\logs\tunel.log D) Verificacion remota: - Desde MSI: ssh root@128.254.207.173 "curl -sS http://127.0.0.1:11435/api/tags" E) Reporte obligatorio MSI: Actualizar C:\OMEGA-MSI\ESTADO_MSI.txt con: - fecha/hora - version ollama - modelos instalados - estado tarea OMEGA-TUNEL-VPS - resultado de curl local/remoto - pasos de recuperacion (3 lineas) F) Reporte directo al VPS (sin login): - Endpoint: https://vps.cescac.com/msi-report.php - Enviar POST JSON al terminar cada bloque: Invoke-RestMethod -Method Post -Uri "https://vps.cescac.com/msi-report.php" -ContentType "application/json" -Body (@{agent_id="MSI-AGENT";host=$env:COMPUTERNAME;status="OK";task="BLOQUE";message="avance y estado real"} | ConvertTo-Json) - Ver reportes en: https://vps.cescac.com/msi-report.php INTEGRACION APIS (PRIORIDAD COSTO/CALIDAD) 1) Vision/OCR: Gemini 2.5 Flash (Google AI Studio) 2) STT local: Whisper (costo cero) 3) STT cloud opcional: AssemblyAI (si se requiere diarizacion avanzada) 4) Codificacion remota rapida: Groq (Llama 3.3 70B) para picos 5) Razonamiento barato: DeepSeek (V3/R1 segun tarea) 6) Enrutador unico opcional: OpenRouter para fallback multi-modelo G) Resiliencia post-reinicio (obligatorio tras primer arranque estable): - Reinicio completo del PC, esperar 2-3 min. - Verificar: curl http://127.0.0.1:11434/api/tags - Verificar tunel: ssh -o BatchMode=yes root@128.254.207.173 "curl -sS http://127.0.0.1:11435/api/tags" - Actualizar ESTADO_MSI.txt y reportar task="REBOOT_RESILIENCE_OK" o "..._BLOCKED" a msi-report.php H) Panel de mando usuario (orden central): - https://vps.cescac.com/omega-panel-mando.html REGLA FINAL Si hay duda tecnica, consultar enlaces canonicos del proyecto y mantener continuidad de contexto. Responder solo con estado operativo real, no con teoria.