From 8407ab176347305119ad8af7109ebdd328751175 Mon Sep 17 00:00:00 2001 From: Adrian Flores Cortes Date: Sat, 24 Jan 2026 14:38:01 -0600 Subject: [PATCH] [ESTANDAR-ORCHESTRATION] refactor: Consolidate to standard structure - Move 6 non-standard folders to _archive/ - Maintain directivas/ (has local content) - Update _MAP.md with standardized structure Standard: SIMCO-ESTANDAR-ORCHESTRATION v1.0.0 Level: SUB-CONSUMER Co-Authored-By: Claude Opus 4.5 --- backend | 2 +- database | 2 +- frontend | 2 +- orchestration/_MAP.md | 127 +++++++++++++++--- .../{ => _archive}/_definitions/_INDEX.yml | 0 .../checklists/CHECKLIST-GOBERNANZA-TAREA.md | 0 .../checklists/CHECKLIST-POST-TASK.md | 0 .../checklists/CHECKLIST-PRE-CREATE.md | 0 .../checklists/CHECKLIST-PRE-MODIFY.md | 0 .../_definitions/protocols/CAPVED-CYCLE.md | 0 .../_definitions/protocols/CCA-PROTOCOL.md | 0 .../validations/VALIDATION-BACKEND.md | 0 .../validations/VALIDATION-DDL.md | 0 .../validations/VALIDATION-FRONTEND.md | 0 .../{ => _archive}/_refs/WS-REFERENCES.yml | 0 .../perfiles/PERFIL-DDL-DENTAL-AGENT.yml | 0 .../perfiles/PERFIL-ODONTOLOGO-AGENT.yml | 0 .../{ => _archive}/agents/perfiles/_INDEX.yml | 0 .../environment/ENVIRONMENT-INVENTORY.yml | 0 .../referencias/DEPENDENCIAS-ERP-CORE.yml | 0 .../TASK-TEMPLATE-UNIFIED/LESSONS-LEARNED.yml | 0 .../TASK-TEMPLATE-UNIFIED/METADATA.yml | 0 .../TASK-TEMPLATE-UNIFIED/README.md | 0 .../TASK-TEMPLATE-UNIFIED/SUBTASKS.yml | 0 24 files changed, 108 insertions(+), 25 deletions(-) rename orchestration/{ => _archive}/_definitions/_INDEX.yml (100%) rename orchestration/{ => _archive}/_definitions/checklists/CHECKLIST-GOBERNANZA-TAREA.md (100%) rename orchestration/{ => _archive}/_definitions/checklists/CHECKLIST-POST-TASK.md (100%) rename orchestration/{ => _archive}/_definitions/checklists/CHECKLIST-PRE-CREATE.md (100%) rename orchestration/{ => _archive}/_definitions/checklists/CHECKLIST-PRE-MODIFY.md (100%) rename orchestration/{ => _archive}/_definitions/protocols/CAPVED-CYCLE.md (100%) rename orchestration/{ => _archive}/_definitions/protocols/CCA-PROTOCOL.md (100%) rename orchestration/{ => _archive}/_definitions/validations/VALIDATION-BACKEND.md (100%) rename orchestration/{ => _archive}/_definitions/validations/VALIDATION-DDL.md (100%) rename orchestration/{ => _archive}/_definitions/validations/VALIDATION-FRONTEND.md (100%) rename orchestration/{ => _archive}/_refs/WS-REFERENCES.yml (100%) rename orchestration/{ => _archive}/agents/perfiles/PERFIL-DDL-DENTAL-AGENT.yml (100%) rename orchestration/{ => _archive}/agents/perfiles/PERFIL-ODONTOLOGO-AGENT.yml (100%) rename orchestration/{ => _archive}/agents/perfiles/_INDEX.yml (100%) rename orchestration/{ => _archive}/environment/ENVIRONMENT-INVENTORY.yml (100%) rename orchestration/{ => _archive}/referencias/DEPENDENCIAS-ERP-CORE.yml (100%) rename orchestration/{ => _archive}/tareas/_templates/TASK-TEMPLATE-UNIFIED/LESSONS-LEARNED.yml (100%) rename orchestration/{ => _archive}/tareas/_templates/TASK-TEMPLATE-UNIFIED/METADATA.yml (100%) rename orchestration/{ => _archive}/tareas/_templates/TASK-TEMPLATE-UNIFIED/README.md (100%) rename orchestration/{ => _archive}/tareas/_templates/TASK-TEMPLATE-UNIFIED/SUBTASKS.yml (100%) diff --git a/backend b/backend index eb23d86..5169565 160000 --- a/backend +++ b/backend @@ -1 +1 @@ -Subproject commit eb23d86519632ca955563393dcbee0446fe5b537 +Subproject commit 5169565752ff93989b76bf56e52a856cb7b6738e diff --git a/database b/database index 0330700..3fb40d5 160000 --- a/database +++ b/database @@ -1 +1 @@ -Subproject commit 0330700dd9ebee0204f14fe713887d6bb3a6642b +Subproject commit 3fb40d599cc59cc265033d2e13fcb1b2d5847bbd diff --git a/frontend b/frontend index df812e8..9c27ad9 160000 --- a/frontend +++ b/frontend @@ -1 +1 @@ -Subproject commit df812e8bbcc298393f4d9f7c95c7e4e0f5de24c4 +Subproject commit 9c27ad9c2e6ca97a55e7336105d0656bd4dd9c1f diff --git a/orchestration/_MAP.md b/orchestration/_MAP.md index 5c1e506..b8ab31f 100644 --- a/orchestration/_MAP.md +++ b/orchestration/_MAP.md @@ -1,48 +1,131 @@ # MAPA DE ORQUESTACION: clinica-dental **Proyecto:** clinica-dental -**Nivel:** NIVEL_2B.2 +**Nivel:** SUB-CONSUMER (hereda de erp-clinicas) **Sistema:** NEXUS v4.0 + SIMCO + SAAD -**Ultima actualizacion:** 2026-01-10 +**Estandar:** SIMCO-ESTANDAR-ORCHESTRATION v1.0.0 +**Ultima actualizacion:** 2026-01-24 --- -## Estructura +## Estructura Estandarizada ``` orchestration/ -├── 00-guidelines/ -│ └── CONTEXTO-PROYECTO.md -├── environment/ -├── inventarios/ -├── trazas/ -├── CONTEXT-MAP.yml -├── PROJECT-STATUS.md -├── PROXIMA-ACCION.md -└── _MAP.md +├── _MAP.md # [OBLIGATORIO] Mapa de navegacion +├── _inheritance.yml # [OBLIGATORIO] Herencia de erp-clinicas +├── BOOTLOADER.md # [OBLIGATORIO] Protocolo de arranque +├── CONTEXT-MAP.yml # [OBLIGATORIO] Mapa de contexto NEXUS +├── PROJECT-PROFILE.yml # [OBLIGATORIO] Perfil del proyecto +├── PROJECT-STATUS.md # [OBLIGATORIO] Estado actual +├── PROXIMA-ACCION.md # [OBLIGATORIO] Checkpoint de sesion +├── DEPENDENCY-GRAPH.yml # [OBLIGATORIO] Grafo de dependencias +├── TRACEABILITY.yml # [OBLIGATORIO] Trazabilidad +├── MAPA-DOCUMENTACION.yml # [OBLIGATORIO] Mapa de documentacion +│ +├── 00-guidelines/ # [OBLIGATORIO] Guias y contexto +│ ├── CONTEXTO-PROYECTO.md +│ ├── HERENCIA-ERP-CLINICAS.md +│ ├── HERENCIA-ERP-CORE.md +│ └── HERENCIA-SIMCO.md +│ +├── inventarios/ # [OBLIGATORIO] Inventarios +│ ├── MASTER_INVENTORY.yml +│ ├── DATABASE_INVENTORY.yml +│ ├── BACKEND_INVENTORY.yml +│ └── FRONTEND_INVENTORY.yml +│ +├── trazas/ # [OBLIGATORIO] Trazas de operaciones +│ ├── REPORTE-EJECUCION-*.md +│ └── TRAZA-TAREAS-DATABASE.md +│ +├── directivas/ # [OPCIONAL] Directivas especificas locales +│ ├── checklists/ +│ ├── principios/ +│ ├── simco/ +│ └── triggers/ +│ +└── _archive/ # Carpetas archivadas (no estandar) + ├── _definitions/ + ├── _refs/ + ├── agents/ + ├── environment/ + ├── referencias/ + └── tareas/ ``` --- +## Archivos Obligatorios (10/10) + +| Archivo | Proposito | Estado | +|---------|-----------|--------| +| _MAP.md | Mapa de navegacion | OK | +| _inheritance.yml | Herencia de erp-clinicas | OK | +| BOOTLOADER.md | Protocolo de arranque NEXUS | OK | +| CONTEXT-MAP.yml | Configuracion de contexto | OK | +| PROJECT-PROFILE.yml | Perfil y metadata | OK | +| PROJECT-STATUS.md | Estado actual del proyecto | OK | +| PROXIMA-ACCION.md | Checkpoint de sesion | OK | +| DEPENDENCY-GRAPH.yml | Grafo de dependencias | OK | +| TRACEABILITY.yml | Trazabilidad del proyecto | OK | +| MAPA-DOCUMENTACION.yml | Mapa de documentacion | OK | + +--- + +## Carpetas Obligatorias (3/3) + +| Carpeta | Contenido Minimo | Estado | +|---------|------------------|--------| +| 00-guidelines/ | CONTEXTO-PROYECTO.md | OK | +| inventarios/ | MASTER_INVENTORY.yml | OK | +| trazas/ | Trazas por capa | OK | + +--- + ## Navegacion | Destino | Enlace | |---------|--------| -| Documentacion | [../docs/_MAP.md](../docs/_MAP.md) | +| Documentacion Proyecto | [../docs/_MAP.md](../docs/_MAP.md) | | Orchestration Central | [../../orchestration/_MAP.md](../../orchestration/_MAP.md) | -| Directivas SIMCO | [../../orchestration/directivas/simco/_INDEX.md](../../orchestration/directivas/simco/_INDEX.md) | +| Directivas SIMCO | [../../orchestration/directivas/simco/](../../orchestration/directivas/simco/) | +| erp-clinicas (padre) | [../erp-clinicas/orchestration/_MAP.md](../erp-clinicas/orchestration/_MAP.md) | +| erp-core (abuelo) | [../erp-core/orchestration/_MAP.md](../erp-core/orchestration/_MAP.md) | --- -## Archivos Principales +## Cadena de Herencia -| Archivo | Proposito | -|---------|-----------| -| CONTEXT-MAP.yml | Configuracion contexto | -| CONTEXTO-PROYECTO.md | Descripcion proyecto | -| PROJECT-STATUS.md | Estado actual | -| PROXIMA-ACCION.md | Siguiente tarea | +``` +workspace-v2/orchestration/ (LEVEL 0 - Workspace Root) + ↓ +template-saas/orchestration/ (LEVEL 1A - Provider) + ↓ +erp-core/orchestration/ (LEVEL 1B - Intermediate) + ↓ +erp-clinicas/orchestration/ (LEVEL 2 - Consumer) + ↓ +clinica-dental/orchestration/ (SUB-CONSUMER) ← ESTE +``` --- -**Actualizado:** 2026-01-10 +## Nota sobre _archive/ + +Las siguientes carpetas fueron movidas a `_archive/` por no ser parte del estandar +SIMCO-ESTANDAR-ORCHESTRATION v1.0.0 para nivel SUB-CONSUMER: + +- `_definitions/` - Usar workspace central +- `_refs/` - Usar workspace central +- `agents/` - Hereda de workspace (opcional para CONSUMER) +- `environment/` - Consolidar con inventarios +- `referencias/` - Usar workspace central +- `tareas/` - Hereda de workspace (opcional para CONSUMER) + +El contenido puede ser recuperado si se requiere. + +--- + +**Actualizado:** 2026-01-24 +**Estandar aplicado:** SIMCO-ESTANDAR-ORCHESTRATION v1.0.0 diff --git a/orchestration/_definitions/_INDEX.yml b/orchestration/_archive/_definitions/_INDEX.yml similarity index 100% rename from orchestration/_definitions/_INDEX.yml rename to orchestration/_archive/_definitions/_INDEX.yml diff --git a/orchestration/_definitions/checklists/CHECKLIST-GOBERNANZA-TAREA.md b/orchestration/_archive/_definitions/checklists/CHECKLIST-GOBERNANZA-TAREA.md similarity index 100% rename from orchestration/_definitions/checklists/CHECKLIST-GOBERNANZA-TAREA.md rename to orchestration/_archive/_definitions/checklists/CHECKLIST-GOBERNANZA-TAREA.md diff --git a/orchestration/_definitions/checklists/CHECKLIST-POST-TASK.md b/orchestration/_archive/_definitions/checklists/CHECKLIST-POST-TASK.md similarity index 100% rename from orchestration/_definitions/checklists/CHECKLIST-POST-TASK.md rename to orchestration/_archive/_definitions/checklists/CHECKLIST-POST-TASK.md diff --git a/orchestration/_definitions/checklists/CHECKLIST-PRE-CREATE.md b/orchestration/_archive/_definitions/checklists/CHECKLIST-PRE-CREATE.md similarity index 100% rename from orchestration/_definitions/checklists/CHECKLIST-PRE-CREATE.md rename to orchestration/_archive/_definitions/checklists/CHECKLIST-PRE-CREATE.md diff --git a/orchestration/_definitions/checklists/CHECKLIST-PRE-MODIFY.md b/orchestration/_archive/_definitions/checklists/CHECKLIST-PRE-MODIFY.md similarity index 100% rename from orchestration/_definitions/checklists/CHECKLIST-PRE-MODIFY.md rename to orchestration/_archive/_definitions/checklists/CHECKLIST-PRE-MODIFY.md diff --git a/orchestration/_definitions/protocols/CAPVED-CYCLE.md b/orchestration/_archive/_definitions/protocols/CAPVED-CYCLE.md similarity index 100% rename from orchestration/_definitions/protocols/CAPVED-CYCLE.md rename to orchestration/_archive/_definitions/protocols/CAPVED-CYCLE.md diff --git a/orchestration/_definitions/protocols/CCA-PROTOCOL.md b/orchestration/_archive/_definitions/protocols/CCA-PROTOCOL.md similarity index 100% rename from orchestration/_definitions/protocols/CCA-PROTOCOL.md rename to orchestration/_archive/_definitions/protocols/CCA-PROTOCOL.md diff --git a/orchestration/_definitions/validations/VALIDATION-BACKEND.md b/orchestration/_archive/_definitions/validations/VALIDATION-BACKEND.md similarity index 100% rename from orchestration/_definitions/validations/VALIDATION-BACKEND.md rename to orchestration/_archive/_definitions/validations/VALIDATION-BACKEND.md diff --git a/orchestration/_definitions/validations/VALIDATION-DDL.md b/orchestration/_archive/_definitions/validations/VALIDATION-DDL.md similarity index 100% rename from orchestration/_definitions/validations/VALIDATION-DDL.md rename to orchestration/_archive/_definitions/validations/VALIDATION-DDL.md diff --git a/orchestration/_definitions/validations/VALIDATION-FRONTEND.md b/orchestration/_archive/_definitions/validations/VALIDATION-FRONTEND.md similarity index 100% rename from orchestration/_definitions/validations/VALIDATION-FRONTEND.md rename to orchestration/_archive/_definitions/validations/VALIDATION-FRONTEND.md diff --git a/orchestration/_refs/WS-REFERENCES.yml b/orchestration/_archive/_refs/WS-REFERENCES.yml similarity index 100% rename from orchestration/_refs/WS-REFERENCES.yml rename to orchestration/_archive/_refs/WS-REFERENCES.yml diff --git a/orchestration/agents/perfiles/PERFIL-DDL-DENTAL-AGENT.yml b/orchestration/_archive/agents/perfiles/PERFIL-DDL-DENTAL-AGENT.yml similarity index 100% rename from orchestration/agents/perfiles/PERFIL-DDL-DENTAL-AGENT.yml rename to orchestration/_archive/agents/perfiles/PERFIL-DDL-DENTAL-AGENT.yml diff --git a/orchestration/agents/perfiles/PERFIL-ODONTOLOGO-AGENT.yml b/orchestration/_archive/agents/perfiles/PERFIL-ODONTOLOGO-AGENT.yml similarity index 100% rename from orchestration/agents/perfiles/PERFIL-ODONTOLOGO-AGENT.yml rename to orchestration/_archive/agents/perfiles/PERFIL-ODONTOLOGO-AGENT.yml diff --git a/orchestration/agents/perfiles/_INDEX.yml b/orchestration/_archive/agents/perfiles/_INDEX.yml similarity index 100% rename from orchestration/agents/perfiles/_INDEX.yml rename to orchestration/_archive/agents/perfiles/_INDEX.yml diff --git a/orchestration/environment/ENVIRONMENT-INVENTORY.yml b/orchestration/_archive/environment/ENVIRONMENT-INVENTORY.yml similarity index 100% rename from orchestration/environment/ENVIRONMENT-INVENTORY.yml rename to orchestration/_archive/environment/ENVIRONMENT-INVENTORY.yml diff --git a/orchestration/referencias/DEPENDENCIAS-ERP-CORE.yml b/orchestration/_archive/referencias/DEPENDENCIAS-ERP-CORE.yml similarity index 100% rename from orchestration/referencias/DEPENDENCIAS-ERP-CORE.yml rename to orchestration/_archive/referencias/DEPENDENCIAS-ERP-CORE.yml diff --git a/orchestration/tareas/_templates/TASK-TEMPLATE-UNIFIED/LESSONS-LEARNED.yml b/orchestration/_archive/tareas/_templates/TASK-TEMPLATE-UNIFIED/LESSONS-LEARNED.yml similarity index 100% rename from orchestration/tareas/_templates/TASK-TEMPLATE-UNIFIED/LESSONS-LEARNED.yml rename to orchestration/_archive/tareas/_templates/TASK-TEMPLATE-UNIFIED/LESSONS-LEARNED.yml diff --git a/orchestration/tareas/_templates/TASK-TEMPLATE-UNIFIED/METADATA.yml b/orchestration/_archive/tareas/_templates/TASK-TEMPLATE-UNIFIED/METADATA.yml similarity index 100% rename from orchestration/tareas/_templates/TASK-TEMPLATE-UNIFIED/METADATA.yml rename to orchestration/_archive/tareas/_templates/TASK-TEMPLATE-UNIFIED/METADATA.yml diff --git a/orchestration/tareas/_templates/TASK-TEMPLATE-UNIFIED/README.md b/orchestration/_archive/tareas/_templates/TASK-TEMPLATE-UNIFIED/README.md similarity index 100% rename from orchestration/tareas/_templates/TASK-TEMPLATE-UNIFIED/README.md rename to orchestration/_archive/tareas/_templates/TASK-TEMPLATE-UNIFIED/README.md diff --git a/orchestration/tareas/_templates/TASK-TEMPLATE-UNIFIED/SUBTASKS.yml b/orchestration/_archive/tareas/_templates/TASK-TEMPLATE-UNIFIED/SUBTASKS.yml similarity index 100% rename from orchestration/tareas/_templates/TASK-TEMPLATE-UNIFIED/SUBTASKS.yml rename to orchestration/_archive/tareas/_templates/TASK-TEMPLATE-UNIFIED/SUBTASKS.yml