[TASK-2026-01-24-ESTANDAR-ORCHESTRATION] docs: Add BOOTLOADER.md and PROJECT-PROFILE.yml

- Add standardized BOOTLOADER for CONSUMER project
- Add PROJECT-PROFILE.yml with stack and epicas info
- Compliance with SIMCO-ESTANDAR-ORCHESTRATION

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Adrian Flores Cortes 2026-01-24 09:38:24 -06:00
parent f8252d471e
commit 0b666e155b
2 changed files with 367 additions and 0 deletions

157
orchestration/BOOTLOADER.md Normal file
View File

@ -0,0 +1,157 @@
# BOOTLOADER - Trading Platform
**Sistema:** NEXUS v4.0 - Protocolo de Arranque Local
**Proyecto:** Trading Platform
**Tipo:** CONSUMER (Integrates de template-saas)
**Version:** 1.0.0
**Fecha:** 2026-01-24
---
## 1. Propósito
Este BOOTLOADER define la secuencia de arranque específica para Trading Platform.
Plataforma de trading con señales ML que integra selectivamente de template-saas.
---
## 2. Cadena de Herencia
```
workspace-v2 (L0)
template-saas (PROVIDER)
trading-platform (CONSUMER) ◄── ESTE PROYECTO
```
---
## 3. Secuencia de Arranque (5 Pasos)
```
┌─────────────────────────────────────────────────────────────────────────┐
│ BOOTLOADER TRADING-PLATFORM - 5 PASOS │
├─────────────────────────────────────────────────────────────────────────┤
│ │
│ PASO 1: Cargar L0 (Sistema - Workspace) │
│ ════════════════════════════════════════ │
│ ├── Leer workspace-v2/CLAUDE.md │
│ └── Tokens: ~4000 │
│ │ │
│ ▼ │
│ PASO 2: Cargar L1 (Proyecto) │
│ ════════════════════════════════════════ │
│ ├── Leer orchestration/CONTEXT-MAP.yml │
│ ├── Leer orchestration/_inheritance.yml │
│ └── Tokens: ~2000 │
│ │ │
│ ▼ │
│ PASO 3: Determinar Dominio │
│ ════════════════════════════════════════ │
│ ├── Clasificar tarea (MCP Services, ML, Frontend, Database) │
│ ├── Cargar SIMCO del dominio │
│ └── Cargar inventario del dominio │
│ │ │
│ ▼ │
│ PASO 4: Verificar Estado y Sincronización │
│ ════════════════════════════════════════ │
│ ├── git fetch origin && git status │
│ ├── Verificar cambios heredados de template-saas │
│ └── Aplicar propagaciones pendientes │
│ │ │
│ ▼ │
│ PASO 5: Iniciar Tarea │
│ ════════════════════════════════════════ │
│ ├── Crear carpeta de tarea si no existe │
│ └── Ejecutar FASE C de CAPVED │
│ │
└─────────────────────────────────────────────────────────────────────────┘
```
---
## 4. Rol CONSUMER (Integrates)
Trading Platform integra selectivamente de template-saas:
```yaml
hereda_de:
- workspace-v2/orchestration/
- projects/template-saas/ (selectivo)
exporta_a: []
modulos_integrados:
- auth # JWT + MFA
- plans # Free, Pro, VIP
- feature-flags
- billing # Stripe
- notifications
- webhooks
modulos_propios:
- fundamentos-auth # MCP Services auth
- trading-charts # lightweight-charts
- senales-ml # ML predictions
- cuentas-inversion # Investment accounts
- mt4-gateway # MetaAPI
```
---
## 5. Variables Pre-Resueltas
```yaml
PROJECT_ROOT: projects/trading-platform
BACKEND_ROOT: projects/trading-platform/apps/backend
FRONTEND_ROOT: projects/trading-platform/apps/frontend
DATABASE_ROOT: projects/trading-platform/apps/database
ML_ROOT: projects/trading-platform/apps/ml
SCHEMAS:
- core
- trading
- ml
- portfolio
SERVICIOS_MCP:
mcp-auth: 3095
mcp-wallet: 3090
mcp-products: 3091
mcp-vip: 3092
mcp-investment: 3093
mcp-predictions: 3094
SERVICIOS_PYTHON:
ml-engine: 8000
data-service: 8001
mt4-gateway: 8002
```
---
## 6. Checklist de Arranque
- [ ] PASO 1: workspace-v2/CLAUDE.md leído
- [ ] PASO 2: CONTEXT-MAP.yml cargado
- [ ] PASO 2: _inheritance.yml verificado
- [ ] PASO 3: Dominio identificado (MCP/ML/Frontend/Database)
- [ ] PASO 4: git fetch ejecutado
- [ ] PASO 4: Cambios de template-saas verificados
- [ ] PASO 5: Tarea iniciada
---
## 7. Referencias
- **BOOTLOADER Global:** `workspace-v2/orchestration/directivas/simco/SIMCO-BOOTLOADER.md`
- **Template SaaS:** `../template-saas/orchestration/BOOTLOADER.md`
- **CONTEXT-MAP:** `orchestration/CONTEXT-MAP.yml`
---
*BOOTLOADER Trading Platform v1.0.0 - Sistema NEXUS v4.0*
*Tipo: CONSUMER - Integra de template-saas*

View File

@ -0,0 +1,210 @@
# ═══════════════════════════════════════════════════════════════════════════════
# PROJECT-PROFILE.yml - Trading Platform
# ═══════════════════════════════════════════════════════════════════════════════
#
# Sistema: SIMCO v4.3.0 + NEXUS v4.0
# Propósito: Perfil y metadata del proyecto
# Fecha: 2026-01-24
#
# ═══════════════════════════════════════════════════════════════════════════════
proyecto:
nombre: "Trading Platform"
codigo: "trading-platform"
tipo: "CONSUMER"
subtipo: "INTEGRATES"
nivel: "2A"
version: "1.0.0"
descripcion: |
Plataforma de trading con señales ML para mercados financieros.
Incluye:
- Señales de trading basadas en Machine Learning
- Charts interactivos con lightweight-charts
- Planes VIP con acceso a funciones avanzadas
- Integración con MetaTrader vía MetaAPI
- Agente LLM para estrategias
# ─────────────────────────────────────────────────────────────────────────────
# STACK TECNOLÓGICO
# ─────────────────────────────────────────────────────────────────────────────
stack:
backend_ts:
framework: "Express.js"
lenguaje: "TypeScript"
servicios: "MCP Microservices"
backend_py:
framework: "FastAPI"
version: "Python 3.11"
uso: "ML Engine, Data Service, MT4 Gateway"
frontend:
framework: "React 18"
build: "Vite"
lenguaje: "TypeScript"
charts: "lightweight-charts"
estado: "Zustand + TanStack Query"
ml:
frameworks:
- "TensorFlow"
- "scikit-learn"
- "pandas"
uso: "Predicciones y señales de trading"
database:
motor: "PostgreSQL"
version: "16+"
schemas:
- "core"
- "trading"
- "ml"
- "portfolio"
# ─────────────────────────────────────────────────────────────────────────────
# SERVICIOS
# ─────────────────────────────────────────────────────────────────────────────
servicios:
mcp_services:
- nombre: "mcp-auth"
puerto: 3095
descripcion: "Autenticación JWT + MFA"
- nombre: "mcp-wallet"
puerto: 3090
descripcion: "Gestión de wallets"
- nombre: "mcp-products"
puerto: 3091
descripcion: "Productos y planes"
- nombre: "mcp-vip"
puerto: 3092
descripcion: "Pagos y suscripciones"
- nombre: "mcp-investment"
puerto: 3093
descripcion: "Cuentas de inversión"
- nombre: "mcp-predictions"
puerto: 3094
descripcion: "Señales ML"
python_services:
- nombre: "ml-engine"
puerto: 8000
descripcion: "Motor de ML"
- nombre: "data-service"
puerto: 8001
descripcion: "Datos de mercado"
- nombre: "mt4-gateway"
puerto: 8002
descripcion: "Ejecución MT4/MT5"
# ─────────────────────────────────────────────────────────────────────────────
# MÓDULOS
# ─────────────────────────────────────────────────────────────────────────────
modulos:
epicas:
- id: "OQI-001"
nombre: "fundamentos-auth"
estado: "70%"
- id: "OQI-002"
nombre: "educativo"
estado: "30%"
- id: "OQI-003"
nombre: "trading-charts"
estado: "40%"
- id: "OQI-004"
nombre: "cuentas-inversion"
estado: "35%"
- id: "OQI-005"
nombre: "pagos-stripe"
estado: "50%"
- id: "OQI-006"
nombre: "senales-ml"
estado: "60%"
- id: "OQI-007"
nombre: "llm-strategy-agent"
estado: "25%"
- id: "OQI-008"
nombre: "portfolio-manager"
estado: "20%"
- id: "OQI-009"
nombre: "mt4-gateway"
estado: "15%"
# ─────────────────────────────────────────────────────────────────────────────
# INTEGRACIONES EXTERNAS
# ─────────────────────────────────────────────────────────────────────────────
integraciones:
- nombre: "Stripe"
tipo: "payment_provider"
uso: "Suscripciones y pagos"
- nombre: "Polygon.io"
tipo: "market_data"
uso: "Datos de mercado en tiempo real"
- nombre: "MetaAPI"
tipo: "trading_gateway"
uso: "Ejecución de trades MT4/MT5"
# ─────────────────────────────────────────────────────────────────────────────
# ESTADO
# ─────────────────────────────────────────────────────────────────────────────
estado:
general: "desarrollo"
madurez: "alpha"
completitud: "~40%"
en_produccion: false
# ─────────────────────────────────────────────────────────────────────────────
# RUTAS
# ─────────────────────────────────────────────────────────────────────────────
rutas:
proyecto: "projects/trading-platform"
backend: "projects/trading-platform/apps/backend"
frontend: "projects/trading-platform/apps/frontend"
database: "projects/trading-platform/apps/database"
ml: "projects/trading-platform/apps/ml"
docs: "projects/trading-platform/docs"
orchestration: "projects/trading-platform/orchestration"
# ─────────────────────────────────────────────────────────────────────────────
# EQUIPO
# ─────────────────────────────────────────────────────────────────────────────
equipo:
owner: "ISEM Development"
agentes_principales:
- "Claude Code"
- "Trae"
- "Windsurf"
# ─────────────────────────────────────────────────────────────────────────────
# NOTAS
# ─────────────────────────────────────────────────────────────────────────────
notas:
- "Proyecto CONSUMER que integra selectivamente de template-saas"
- "Stack híbrido TypeScript + Python para ML"
- "9 épicas principales con diferentes niveles de avance"
- "Requiere datos de mercado externos (Polygon.io)"