Some checks failed
ERP Core CI / Backend Lint (push) Has been cancelled
ERP Core CI / Backend Unit Tests (push) Has been cancelled
ERP Core CI / Backend Integration Tests (push) Has been cancelled
ERP Core CI / Frontend Lint (push) Has been cancelled
ERP Core CI / Frontend Unit Tests (push) Has been cancelled
ERP Core CI / Frontend E2E Tests (push) Has been cancelled
ERP Core CI / Database DDL Validation (push) Has been cancelled
ERP Core CI / Backend Build (push) Has been cancelled
ERP Core CI / Frontend Build (push) Has been cancelled
ERP Core CI / CI Success (push) Has been cancelled
Performance Tests / Lighthouse CI (push) Has been cancelled
Performance Tests / Bundle Size Analysis (push) Has been cancelled
Performance Tests / k6 Load Tests (push) Has been cancelled
Performance Tests / Performance Summary (push) Has been cancelled
- HERENCIA-SIMCO.md actualizado con directivas v3.7 y v3.8 - Actualizaciones en modulos CRM y OpenAPI Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
9.4 KiB
9.4 KiB
FASE 6: REFINAMIENTO DEL PLAN
Plan Final Optimizado para Estandarizacion
METADATOS
| Campo | Valor |
|---|---|
| Fase | 6 - Refinamiento del Plan |
| Proyecto | ERP Core |
| Fecha | 2026-01-10 |
| Metodologia | CAPVED + SIMCO v3.8 |
| Estado | COMPLETADO |
1. OPTIMIZACIONES APLICADAS
1.1 Basadas en Validacion (F4)
| Optimizacion | Descripcion | Ahorro |
|---|---|---|
| Templates ET | Usar template base para C1-C8 | -8h |
| Paralelizacion | Ejecutar B1, B2 en paralelo | -3h |
| Batch renaming | Script para D1-D5 | -4h |
1.2 Basadas en Dependencias (F5)
| Optimizacion | Descripcion | Impacto |
|---|---|---|
| Orden ajustado | A1→A4→A5→A2→A3 obligatorio | Evita errores |
| Validacion post-step | Checklist entre bloques | Calidad |
| Scripts soporte | Automatizar busqueda refs | -2h |
2. PLAN REFINADO
2.1 Cronograma Optimizado
DIA 1: BLOQUE A (Inventarios)
├── 09:00-10:00 A1: Corregir MASTER_INVENTORY.yml
├── 10:00-12:00 A4: Actualizar DEPENDENCY_GRAPH.yml
├── 14:00-16:00 A5: Actualizar TRACEABILITY_MATRIX.yml
└── 16:00-17:00 VALIDACION: Parseo YAML correcto
DIA 2: BLOQUE A + B (Inventarios + ET existentes)
├── 09:00-11:00 A2: Completar BACKEND_INVENTORY.yml (MGN-005 a 010)
├── 11:00-13:00 A3: Completar FRONTEND_INVENTORY.yml (MGN-005 a 009)
├── PARALELO:
│ ├── 14:00-17:00 B1: Actualizar ET-auth-backend.md
│ └── 14:00-17:00 B2: Actualizar ET-FIN-backend.md
└── 17:00-17:30 VALIDACION: Servicios documentados
DIA 3: BLOQUE C (ET Verticales - Parte 1)
├── PARALELO usando TEMPLATE-ET-BACKEND.md:
│ ├── 09:00-13:00 C1: ET-SALES-backend.md (5 svc)
│ ├── 09:00-11:00 C2: ET-PURCHASES-backend.md (2 svc)
│ ├── 09:00-13:00 C3: ET-INVENTORY-backend.md (9 svc)
│ └── 09:00-12:00 C4: ET-HR-backend.md (7 svc)
└── 14:00-17:00 Crear estructura directorios modulos
DIA 4: BLOQUE C (ET Verticales - Parte 2)
├── PARALELO:
│ ├── 09:00-11:00 C5: ET-CRM-backend.md (4 svc)
│ ├── 09:00-10:30 C6: ET-PROJECTS-backend.md (3 svc)
│ ├── 09:00-10:00 C7: ET-PARTNERS-backend.md (2 svc)
│ └── 09:00-09:30 C8: ET-COMPANIES-backend.md (1 svc)
├── 11:00-13:00 Completar estructura modulos verticales
└── 14:00-17:00 VALIDACION: 18/18 modulos con ET
DIA 5: BLOQUE D (Nomenclatura)
├── 09:00-09:30 D2: Normalizar ET UPPERCASE (8 archivos)
├── 09:30-11:30 D1: Renombrar FASE-X (30 archivos - script)
├── 11:30-13:00 D3: Estandarizar DDL-SPEC (25 archivos - script)
├── 14:00-16:00 D4: Numerar directorios (script + manual)
├── 16:00-17:30 D5: Prefijos restantes (batch)
└── 17:30-18:00 VALIDACION: Nomenclatura 95%+ conforme
DIA 6: BLOQUE E + F (Estructura + Tests)
├── 09:00-10:00 E1: Mover archivos huerfanos
├── 10:00-11:00 E2: Crear _MAP.md por fase
├── 11:00-12:00 E3: Verificar estructura modulos
├── 12:00-13:00 E4: Sincronizar conteos inventarios
├── 14:00-17:00 F3: Verificar DDL vs ORM
└── 17:00-18:00 VALIDACION: Estructura completa
DIA 7: BLOQUE G (Mejoras)
├── 09:00-12:00 G1: Documentar integraciones
├── 12:00-12:30 G2: Prefijo REF-
├── 13:30-15:00 G3: Indices tematicos
├── 15:00-17:00 G4: Script validacion cruzada
├── 17:00-17:30 G5-G8: Tareas menores
└── 17:30-18:00 VALIDACION FINAL
2.2 Esfuerzo Refinado
ORIGINAL: 121-135 horas
REFINADO: 98-110 horas
AHORRO: 17-25 horas (15-20%)
POR SPRINT:
├── Sprint 1 (Dias 1-4): 55-60h (original: 62-70h)
├── Sprint 2 (Dias 5-6): 28-32h (original: 40-45h)
└── Sprint 3 (Dia 7): 15-18h (original: 19-20h)
3. TAREAS REFINADAS
3.1 Bloque A: Inventarios (Refinado)
| Tarea | Descripcion | Tiempo | Notas |
|---|---|---|---|
| A1 | Corregir YAML MASTER_INVENTORY | 1h | Prioritario |
| A4 | Actualizar DEPENDENCY_GRAPH | 1.5h | Reducido |
| A5 | Actualizar TRACEABILITY_MATRIX | 1.5h | Reducido |
| A2 | Completar BACKEND_INVENTORY | 2h | Agregar MGN-005-010 |
| A3 | Completar FRONTEND_INVENTORY | 2h | Agregar MGN-005-009 |
Total Bloque A: 8h (original: 13h)
3.2 Bloque B: ET Existentes (Refinado)
| Tarea | Descripcion | Tiempo | Notas |
|---|---|---|---|
| B1 | ET-auth-backend.md | 4h | Agregar 6 servicios |
| B2 | ET-FIN-backend.md | 5h | Agregar 8 servicios |
Total Bloque B: 9h (original: 14h) - En paralelo
3.3 Bloque C: ET Verticales (Refinado con Template)
Template Base:
# ET-{MODULO}-BACKEND
## Metadatos
## Servicios
## Entidades
## DTOs
## Endpoints
## Tests
## Dependencias
| Tarea | Modulo | Servicios | Tiempo |
|---|---|---|---|
| C1 | Sales | 5 | 3h |
| C2 | Purchases | 2 | 1.5h |
| C3 | Inventory | 9 | 5h |
| C4 | HR | 7 | 4h |
| C5 | CRM | 4 | 2.5h |
| C6 | Projects | 3 | 2h |
| C7 | Partners | 2 | 1.5h |
| C8 | Companies | 1 | 0.5h |
Total Bloque C: 20h (original: 32h) - Con templates
3.4 Bloque D: Nomenclatura (Refinado con Scripts)
| Tarea | Archivos | Tiempo | Metodo |
|---|---|---|---|
| D2 | 8 | 0.5h | Manual (pocos) |
| D1 | 30 | 1.5h | Script batch |
| D3 | 25 | 1.5h | Script batch |
| D4 | 59 | 2h | Script + validacion |
| D5 | 96 | 3h | Script batch |
Total Bloque D: 8.5h (original: 12.5h)
3.5 Bloque E-F: Estructura y Sync (Refinado)
| Tarea | Descripcion | Tiempo |
|---|---|---|
| E1 | Mover huerfanos | 1h |
| E2 | _MAP.md por fase | 1h |
| E3 | Verificar estructura | 1h |
| E4 | Sincronizar conteos | 1h |
| F3 | Verificar DDL vs ORM | 3h |
Total Bloque E-F: 7h (original: 8h + 4h) Nota: F1, F2 (tests) movidos a backlog separado
3.6 Bloque G: Mejoras (Refinado)
| Tarea | Descripcion | Tiempo |
|---|---|---|
| G1 | Integraciones | 3h |
| G2 | Prefijo REF- | 0.5h |
| G3 | Indices tematicos | 1.5h |
| G4 | Script validacion | 2h |
| G5-G8 | Tareas menores | 2h |
Total Bloque G: 9h (original: 19.5h) Nota: G5 (DTOs) movido a backlog separado
4. BACKLOG SEPARADO
4.1 Tareas Diferidas
| Tarea | Descripcion | Razon | Tiempo |
|---|---|---|---|
| F1 | Tests companies, reports, crm | Requiere desarrollo | 12h |
| F2 | Tests projects, notifications | Requiere desarrollo | 8h |
| G5 | DTOs en ET | Menor prioridad | 6h |
Total Backlog: 26h
5. ENTREGABLES REFINADOS
5.1 Por Dia
| Dia | Entregables |
|---|---|
| 1 | 3 inventarios corregidos/actualizados |
| 2 | 2 inventarios + 2 ET actualizadas |
| 3 | 4 ET nuevas + estructura modulos |
| 4 | 4 ET nuevas + validacion completa |
| 5 | 195+ archivos renombrados |
| 6 | Estructura reorganizada + sync DDL |
| 7 | Integraciones + scripts + validacion final |
5.2 Metricas Finales Esperadas
| Metrica | Actual | Meta | Incremento |
|---|---|---|---|
| Modulos con ET | 10/18 | 18/18 | +8 |
| Inventarios validos | 5/6 | 6/6 | +1 |
| Nomenclatura conforme | 77% | 95% | +18% |
| Sync Codigo-Docs | 40% | 85% | +45% |
6. VALIDACIONES POR DIA
Dia 1
# Validar YAML
python3 -c "import yaml; yaml.safe_load(open('MASTER_INVENTORY.yml'))"
python3 -c "import yaml; yaml.safe_load(open('DEPENDENCY_GRAPH.yml'))"
python3 -c "import yaml; yaml.safe_load(open('TRACEABILITY_MATRIX.yml'))"
Dia 2
# Validar modulos en inventarios
grep -c "MGN-00" BACKEND_INVENTORY.yml # Debe ser >= 10
grep -c "MGN-00" FRONTEND_INVENTORY.yml # Debe ser >= 9
Dia 3-4
# Validar ET creadas
ls docs/03-fase-vertical/MGN-01*/especificaciones/*.md | wc -l
# Debe ser 8+
Dia 5
# Validar nomenclatura
find docs -name "FASE-*.md" | wc -l # Debe ser 0
find docs -name "ET-*-backend.md" -not -name "ET-[A-Z]*" | wc -l # Debe ser 0
Dia 6
# Validar estructura
find docs -maxdepth 1 -type f -name "*.md" | wc -l # Debe ser <= 3
ls docs/0*-fase-*/_MAP.md | wc -l # Debe ser 3+
Dia 7
# Validacion final
./validate-inventories.sh # Todo OK
./validate-nomenclature.sh # 95%+ conforme
7. RIESGOS MITIGADOS
| Riesgo | Mitigacion Aplicada |
|---|---|
| Tiempo insuficiente | Templates + scripts |
| Referencias rotas | Scripts busqueda + validacion |
| Rollback necesario | Commits atomicos por tarea |
| Paralelizacion conflictos | Orden de dependencias definido |
8. RESUMEN EJECUTIVO
8.1 Comparacion Original vs Refinado
| Aspecto | Original | Refinado | Mejora |
|---|---|---|---|
| Duracion | 9 dias | 7 dias | -2 dias |
| Esfuerzo | 121-135h | 98-110h | -20% |
| Tareas | 35 | 32 | 3 al backlog |
| Paralelizacion | Parcial | Maxima | Optimizado |
8.2 Plan Final Aprobado
FASE 1 (Sprint 1): 4 dias - Correcciones Criticas
FASE 2 (Sprint 2): 2 dias - Estandarizacion
FASE 3 (Sprint 3): 1 dia - Mejoras
TOTAL: 7 dias
ESFUERZO: ~105 horas
RECURSOS: 2-3 agentes en paralelo
9. PROXIMOS PASOS
- FASE 7: Ejecutar plan refinado
- FASE 8: Validar ejecucion
10. APROBACION
| Rol | Estado | Fecha |
|---|---|---|
| Orquestador | COMPLETADO | 2026-01-10 |
| Usuario | PENDIENTE | - |
Plan refinado siguiendo CAPVED + SIMCO v3.8 Optimizado con templates, scripts y paralelizacion Proximo paso: FASE 7 - Ejecucion del Plan