Archive: System v4 - Estado al 2024-12-24
This commit is contained in:
257
v4-archive/system-plan/ARCHITECTURE.md
Normal file
257
v4-archive/system-plan/ARCHITECTURE.md
Normal file
@@ -0,0 +1,257 @@
|
||||
# TZZR - Estado Real del Ecosistema
|
||||
|
||||
**Fecha de auditoria:** 2025-12-24
|
||||
**Ultima actualizacion:** 2025-12-24 (post FASE 0, 1, 3)
|
||||
**Auditor:** Orchestrator (Architect Agent)
|
||||
|
||||
---
|
||||
|
||||
## 1. INVENTARIO DE REPOS (23 repos)
|
||||
|
||||
### Estado por Categoria
|
||||
|
||||
| Estado | Cantidad | Repos |
|
||||
|--------|----------|-------|
|
||||
| **IMPLEMENTADO** | 7 | clara, margaret, hst, packet, orchestrator, context, system-plan |
|
||||
| **PARCIAL** | 4 | grace, penny, the-factory, deck |
|
||||
| **SOLO DOCS** | 12 | alfred, architect, contratos-comunes, corp, credentials, feldman, jared, locker, mason, sentinel, system, vision-builder |
|
||||
| **ARCHIVADO** | 1 | mind-link |
|
||||
|
||||
---
|
||||
|
||||
## 2. ESTADO DETALLADO POR REPO
|
||||
|
||||
### IMPLEMENTADOS (codigo funcional y desplegado)
|
||||
|
||||
| Repo | Lenguaje | Descripcion Real | Desplegado |
|
||||
|------|----------|------------------|------------|
|
||||
| **clara** | Python/Flask | API de ingesta para DECK. Recibe contenedores de PACKET, sube a R2, registra en PostgreSQL | SI (72.62.1.113:5051) |
|
||||
| **margaret** | Python/Flask | API de ingesta para CORP. Variante de CLARA para servidor empresarial | SI (92.112.181.188:5051) |
|
||||
| **hst** | Python/Flask | Image server para tags semanticos. Sirve imagenes por subdominios .tzrtech.org | SI (72.62.2.84) |
|
||||
| **packet** | Flutter/Dart | App movil completa. Captura multimedia, etiqueta con HST, envia a backends | NO (codigo listo) |
|
||||
| **orchestrator** | Python | Framework multi-agente LLM. Soporta Claude, GPT-4, Gemini | Local only |
|
||||
| **context** | SQL/Docs | Sistema de bloques de contexto para agentes. 35 bloques en PostgreSQL | SI (architect DB) |
|
||||
| **system-plan** | Docs | Plan de implementacion y arquitectura del ecosistema | SI (Gitea) |
|
||||
|
||||
### PARCIALMENTE IMPLEMENTADOS
|
||||
|
||||
| Repo | Contenido Real | Falta |
|
||||
|------|----------------|-------|
|
||||
| **grace** | Handler RunPod con 6 modulos (ASR, OCR, TTS, Face, Embeddings, Avatar) | Desplegar en RunPod |
|
||||
| **penny** | Estructura RunPod para generacion de texto (config, engine, server) | Completar engine, desplegar |
|
||||
| **the-factory** | Handler RunPod para generacion iterativa | Implementar Director/Evaluator |
|
||||
| **deck** | Configuracion de servidor (docker, scripts, nginx) + CLARA desplegado | Integrar alfred |
|
||||
|
||||
### ARCHIVADOS
|
||||
|
||||
| Repo | Razon |
|
||||
|------|-------|
|
||||
| **mind-link** | Pausado hasta completar pipeline principal (FASE 4) |
|
||||
|
||||
### SOLO DOCUMENTACION (pendientes de implementar)
|
||||
|
||||
| Repo | Proposito Documentado | Dependencia |
|
||||
|------|----------------------|-------------|
|
||||
| **mason** | Espacio de enriquecimiento | GRACE (RunPod) |
|
||||
| **feldman** | Consolidacion en bloques | MASON |
|
||||
| **alfred** | Flujos predefinidos DECK | CLARA (completado) |
|
||||
| **jared** | Flujos predefinidos CORP | MARGARET (completado) |
|
||||
| **sentinel** | Auditoria del sistema | Todo el pipeline |
|
||||
| **vision-builder** | Diseno de visiones | THE FACTORY |
|
||||
| **locker** | Gateway almacenamiento | R2 (listo) |
|
||||
|
||||
---
|
||||
|
||||
## 3. MAPA DE DEPENDENCIAS
|
||||
|
||||
### Flujo de Datos Principal
|
||||
|
||||
```
|
||||
+-------------------+
|
||||
| PACKET |
|
||||
| (App movil) |
|
||||
+--------+----------+
|
||||
|
|
||||
+--------------------+--------------------+
|
||||
v v v
|
||||
+--------------+ +--------------+ +--------------+
|
||||
| CLARA | | MARGARET | |ALFRED/JARED |
|
||||
| (DECK log) | | (CORP log) | | (flujos) |
|
||||
| IMPLEMENTADO | | IMPLEMENTADO | | SOLO DOC |
|
||||
+------+-------+ +------+-------+ +------+-------+
|
||||
| | |
|
||||
+--------------------+--------------------+
|
||||
v
|
||||
+--------------+
|
||||
| GRACE |
|
||||
| (RunPod) |
|
||||
| PARCIAL |
|
||||
+------+-------+
|
||||
v
|
||||
+--------------+
|
||||
| MASON |
|
||||
| SOLO DOC |
|
||||
+------+-------+
|
||||
v
|
||||
+--------------+
|
||||
| FELDMAN |
|
||||
| SOLO DOC |
|
||||
+--------------+
|
||||
```
|
||||
|
||||
### Matriz de Dependencias
|
||||
|
||||
| Componente | Depende de | Es dependido por | Estado |
|
||||
|------------|------------|------------------|--------|
|
||||
| PACKET | HST, CLARA/MARGARET | Ninguno | LISTO |
|
||||
| CLARA | PostgreSQL, R2, HST | MASON, FELDMAN | IMPLEMENTADO |
|
||||
| MARGARET | PostgreSQL, R2, HST | MASON, FELDMAN | IMPLEMENTADO |
|
||||
| MASON | CLARA/MARGARET, GRACE | FELDMAN | BLOQUEADO (GRACE) |
|
||||
| FELDMAN | MASON | SENTINEL | BLOQUEADO (MASON) |
|
||||
| HST | PostgreSQL | PACKET, CLARA, MARGARET | IMPLEMENTADO |
|
||||
| GRACE | RunPod GPU | PENNY, FACTORY, MASON | PARCIAL |
|
||||
| LOCKER | Cloudflare R2 | CLARA, MARGARET, FACTORY | LISTO |
|
||||
|
||||
---
|
||||
|
||||
## 4. INFRAESTRUCTURA ACTUAL
|
||||
|
||||
### Servidores
|
||||
|
||||
| Servidor | IP | Servicios Activos | Estado |
|
||||
|----------|-----|-------------------|--------|
|
||||
| ARCHITECT | 69.62.126.110 | Gitea, Directus, PostgreSQL, Infisical | OK |
|
||||
| DECK | 72.62.1.113 | Directus, PostgreSQL, Mailcow, CLARA | OK |
|
||||
| CORP | 92.112.181.188 | Directus, Nextcloud, Odoo, MARGARET, ntfy | OK |
|
||||
| HST | 72.62.2.84 | Nginx (imagenes), Directus, PostgreSQL | OK |
|
||||
|
||||
### Bases de Datos
|
||||
|
||||
| Servidor | DB | Tablas de Pipeline |
|
||||
|----------|-----|-------------------|
|
||||
| ARCHITECT | architect | context_blocks, agent_context_index |
|
||||
| DECK | tzzr | clara_log |
|
||||
| CORP | corp | margaret_log |
|
||||
| HST | hst_images | 5 tablas de tags (973 registros) |
|
||||
|
||||
### Cloudflare R2
|
||||
|
||||
| Bucket | Estado | Uso |
|
||||
|--------|--------|-----|
|
||||
| architect | Configurado | Backups |
|
||||
| deck | Activo | Archivos CLARA |
|
||||
| corp | Activo | Archivos MARGARET |
|
||||
| hst | Configurado | Imagenes |
|
||||
| locker | Configurado | Almacenamiento general |
|
||||
|
||||
---
|
||||
|
||||
## 5. INCONSISTENCIAS RESUELTAS
|
||||
|
||||
### Resueltas en FASE 0-3
|
||||
|
||||
| ID | Descripcion | Resolucion |
|
||||
|----|-------------|------------|
|
||||
| I01 | CLARA no desplegada en DECK | RESUELTO - Docker en 72.62.1.113:5051 |
|
||||
| I02 | MARGARET solo documentada | RESUELTO - Docker en 92.112.181.188:5051 |
|
||||
| I03 | PostgreSQL sin tablas de flujo | RESUELTO - clara_log, margaret_log creadas |
|
||||
| I10 | architect tiene carpetas obsoletas | RESUELTO - Eliminadas app-v2, orchestrator-v3 |
|
||||
| I11 | mind-link tiene src/ vacio | RESUELTO - Repo archivado |
|
||||
| I12 | NocoDB referenciado | RESUELTO - Actualizado a Directus |
|
||||
|
||||
### Pendientes
|
||||
|
||||
| ID | Descripcion | Bloqueador |
|
||||
|----|-------------|------------|
|
||||
| I04 | GRACE no desplegado en RunPod | Requiere cuenta RunPod |
|
||||
| I05 | R2 buckets sin uso intensivo | Pendiente flujo completo |
|
||||
| I09 | PACKET no publicada | Pendiente priorizar |
|
||||
|
||||
---
|
||||
|
||||
## 6. SERVICIOS REALES vs DOCUMENTADOS
|
||||
|
||||
### DECK (72.62.1.113)
|
||||
|
||||
| Servicio | Documentado | Real | Puerto |
|
||||
|----------|-------------|------|--------|
|
||||
| PostgreSQL | SI | SI | 5432 |
|
||||
| Directus | SI | SI | 8055 |
|
||||
| Mailcow | SI | SI | 443 |
|
||||
| CLARA | SI | SI | 5051 |
|
||||
| ALFRED | SI | NO | - |
|
||||
|
||||
### CORP (92.112.181.188)
|
||||
|
||||
| Servicio | Documentado | Real | Puerto |
|
||||
|----------|-------------|------|--------|
|
||||
| PostgreSQL | SI | SI | 5432 |
|
||||
| Directus | SI | SI | 8055 |
|
||||
| Nextcloud | SI | SI | 8080 |
|
||||
| Odoo | SI | SI | 8069 |
|
||||
| MARGARET | SI | SI | 5051 |
|
||||
| ntfy | SI | SI | 8880 |
|
||||
| JARED | SI | NO | - |
|
||||
|
||||
### HST (72.62.2.84)
|
||||
|
||||
| Servicio | Documentado | Real | Puerto |
|
||||
|----------|-------------|------|--------|
|
||||
| Nginx (imagenes) | SI | SI | 80/443 |
|
||||
| Directus | SI | SI | 8055 |
|
||||
| PostgreSQL | SI | SI | 5432 |
|
||||
| API /biblioteca | SI | SI | - |
|
||||
|
||||
---
|
||||
|
||||
## 7. RESUMEN EJECUTIVO
|
||||
|
||||
### Lo que FUNCIONA
|
||||
|
||||
1. **HST** - Sistema de tags semanticos operativo
|
||||
2. **CLARA** - Ingesta DECK funcionando (72.62.1.113:5051)
|
||||
3. **MARGARET** - Ingesta CORP funcionando (92.112.181.188:5051)
|
||||
4. **Gitea** - Control de versiones funcional
|
||||
5. **Directus** - CMS en todos los servidores
|
||||
6. **PostgreSQL** - Bases de datos con tablas de pipeline
|
||||
7. **R2** - Buckets activos para CLARA y MARGARET
|
||||
8. **context** - Sistema de contexto para agentes
|
||||
|
||||
### Lo que esta LISTO pero NO DESPLEGADO
|
||||
|
||||
1. **PACKET** - App Flutter completa (falta publicar)
|
||||
2. **GRACE** - Handler RunPod con 6 modulos (falta cuenta RunPod)
|
||||
|
||||
### Lo que es SOLO DOCUMENTACION
|
||||
|
||||
1. **MASON/FELDMAN** - Bloqueados por GRACE
|
||||
2. **ALFRED/JARED** - Pueden implementarse ahora
|
||||
3. **SENTINEL** - Fase final
|
||||
4. **VISION BUILDER** - Depende de THE FACTORY
|
||||
|
||||
### Porcentaje de Implementacion Real
|
||||
|
||||
| Area | Antes | Ahora | Cambio |
|
||||
|------|-------|-------|--------|
|
||||
| Infraestructura base | 80% | 90% | +10% |
|
||||
| Servicios de soporte | 60% | 70% | +10% |
|
||||
| Pipeline de datos | 10% | 40% | +30% |
|
||||
| Procesamiento IA | 0% | 0% | - |
|
||||
| Apps de usuario | 0% | 0% | - |
|
||||
|
||||
### Siguiente Paso Critico
|
||||
|
||||
**GRACE en RunPod** - Desbloquea MASON, FELDMAN y todo el procesamiento IA.
|
||||
|
||||
---
|
||||
|
||||
## 8. CREDENCIALES DE INSTANCIA
|
||||
|
||||
| Servidor | h_instancia | Servicio |
|
||||
|----------|-------------|----------|
|
||||
| DECK | f25e44ac3c075f57b9a198c880cb1fc05cf3af56f6466828b405d8c062374179 | CLARA |
|
||||
| CORP | ea9e99d5f95bcc23749d5f25b71a5b520ae7917438912fc6e29564534484a514 | MARGARET |
|
||||
|
||||
---
|
||||
|
||||
*Documento actualizado automaticamente - 2025-12-24*
|
||||
243
v4-archive/system-plan/IMPLEMENTATION_PLAN.md
Normal file
243
v4-archive/system-plan/IMPLEMENTATION_PLAN.md
Normal file
@@ -0,0 +1,243 @@
|
||||
# TZZR - Plan de Implementacion
|
||||
|
||||
**Fecha:** 2025-12-24
|
||||
**Ultima actualizacion:** 2025-12-24
|
||||
**Objetivo:** Llevar el ecosistema de 10% a 80% de funcionalidad
|
||||
|
||||
---
|
||||
|
||||
## RESUMEN DE FASES
|
||||
|
||||
| Fase | Objetivo | Estado | Repos Afectados |
|
||||
|------|----------|--------|-----------------|
|
||||
| 0 | Limpieza y consolidacion | COMPLETADA | architect, system, mind-link |
|
||||
| 1 | Pipeline minimo viable | COMPLETADA | clara, deck |
|
||||
| 2 | Procesamiento IA | BLOQUEADA | grace, penny, the-factory |
|
||||
| 3 | Flujo empresarial | COMPLETADA | margaret, corp |
|
||||
| 4 | Pipeline completo | PENDIENTE | mason, feldman, alfred, jared |
|
||||
| 5 | Apps de usuario | PENDIENTE | packet, vision-builder |
|
||||
| 6 | Observabilidad | PENDIENTE | sentinel |
|
||||
|
||||
---
|
||||
|
||||
## FASE 0: LIMPIEZA Y CONSOLIDACION - COMPLETADA
|
||||
|
||||
**Ejecutada:** 2025-12-24
|
||||
|
||||
### Acciones Completadas
|
||||
|
||||
| # | Accion | Estado |
|
||||
|---|--------|--------|
|
||||
| 0.1 | Eliminar carpetas obsoletas de architect | OK |
|
||||
| 0.2 | Actualizar referencias a NocoDB -> Directus | OK |
|
||||
| 0.3 | Anadir badges de estado a todos los repos | OK |
|
||||
| 0.4 | Archivar mind-link | OK |
|
||||
|
||||
### Verificacion
|
||||
|
||||
- [x] No existen carpetas app-v2, orchestrator-* en architect
|
||||
- [x] No hay referencias a NocoDB en documentacion activa
|
||||
- [x] Todos los READMEs tienen badge de estado
|
||||
- [x] mind-link archivado con README explicativo
|
||||
|
||||
---
|
||||
|
||||
## FASE 1: PIPELINE MINIMO VIABLE - COMPLETADA
|
||||
|
||||
**Ejecutada:** 2025-12-24
|
||||
|
||||
### Acciones Completadas
|
||||
|
||||
| # | Accion | Estado | Detalle |
|
||||
|---|--------|--------|---------|
|
||||
| 1.1 | Crear tabla clara_log en DECK | OK | PostgreSQL Docker |
|
||||
| 1.2 | Generar h_instancia | OK | f25e44ac... |
|
||||
| 1.3 | Desplegar CLARA Docker | OK | Puerto 5051 |
|
||||
| 1.4 | Configurar red Docker | OK | tzzr-network |
|
||||
| 1.5 | Probar ingesta | OK | Auth + duplicados |
|
||||
|
||||
### Configuracion Final
|
||||
|
||||
```
|
||||
Servidor: DECK (72.62.1.113)
|
||||
Puerto: 5051
|
||||
DB: tzzr (PostgreSQL Docker)
|
||||
Tabla: clara_log
|
||||
R2 Bucket: deck
|
||||
h_instancia: f25e44ac3c075f57b9a198c880cb1fc05cf3af56f6466828b405d8c062374179
|
||||
```
|
||||
|
||||
### Verificacion
|
||||
|
||||
- [x] `curl http://72.62.1.113:5051/health` responde OK
|
||||
- [x] Sin auth responde 401
|
||||
- [x] Con auth valida responde 200
|
||||
- [x] Duplicados responden 409
|
||||
- [x] Registro aparece en clara_log
|
||||
|
||||
---
|
||||
|
||||
## FASE 2: PROCESAMIENTO IA - BLOQUEADA
|
||||
|
||||
**Bloqueador:** Requiere cuenta RunPod configurada
|
||||
|
||||
### Acciones Pendientes
|
||||
|
||||
| # | Accion | Estado |
|
||||
|---|--------|--------|
|
||||
| 2.1 | Crear template en RunPod | PENDIENTE |
|
||||
| 2.2 | Configurar endpoint serverless | PENDIENTE |
|
||||
| 2.3 | Probar modulo ASR_ENGINE | PENDIENTE |
|
||||
| 2.4 | Probar modulo OCR_CORE | PENDIENTE |
|
||||
| 2.5 | Documentar endpoint ID | PENDIENTE |
|
||||
|
||||
### Codigo Disponible
|
||||
|
||||
El repo `grace` contiene:
|
||||
- handler.py con 6 modulos
|
||||
- Dockerfile para RunPod
|
||||
- requirements.txt
|
||||
|
||||
### Para Desbloquear
|
||||
|
||||
1. Crear cuenta RunPod
|
||||
2. Subir template desde grace/runpod/
|
||||
3. Crear endpoint serverless
|
||||
4. Documentar ENDPOINT_ID en credentials
|
||||
|
||||
---
|
||||
|
||||
## FASE 3: FLUJO EMPRESARIAL - COMPLETADA
|
||||
|
||||
**Ejecutada:** 2025-12-24
|
||||
|
||||
### Acciones Completadas
|
||||
|
||||
| # | Accion | Estado | Detalle |
|
||||
|---|--------|--------|---------|
|
||||
| 3.1 | Verificar PostgreSQL en CORP | OK | Host PostgreSQL |
|
||||
| 3.2 | Crear tabla margaret_log | OK | DB: corp |
|
||||
| 3.3 | Generar h_instancia | OK | ea9e99d5... |
|
||||
| 3.4 | Desplegar MARGARET Docker | OK | Puerto 5051 |
|
||||
| 3.5 | Probar ingesta | OK | Auth + duplicados |
|
||||
|
||||
### Configuracion Final
|
||||
|
||||
```
|
||||
Servidor: CORP (92.112.181.188)
|
||||
Puerto: 5051
|
||||
DB: corp (PostgreSQL Host)
|
||||
Tabla: margaret_log
|
||||
R2 Bucket: corp
|
||||
h_instancia: ea9e99d5f95bcc23749d5f25b71a5b520ae7917438912fc6e29564534484a514
|
||||
```
|
||||
|
||||
### Verificacion
|
||||
|
||||
- [x] `curl http://92.112.181.188:5051/health` responde OK
|
||||
- [x] Sin auth responde 401
|
||||
- [x] Con auth valida responde 200
|
||||
- [x] Duplicados responden 409
|
||||
- [x] Registro aparece en margaret_log
|
||||
|
||||
---
|
||||
|
||||
## FASE 4: PIPELINE COMPLETO - PENDIENTE
|
||||
|
||||
**Dependencia:** GRACE (FASE 2) para procesamiento IA
|
||||
|
||||
### ALFRED (Flujos Predefinidos DECK)
|
||||
|
||||
| # | Accion | Estado |
|
||||
|---|--------|--------|
|
||||
| 4.1 | Crear schema SQL flujos | PENDIENTE |
|
||||
| 4.2 | Implementar API Flask | PENDIENTE |
|
||||
| 4.3 | Integrar con CLARA | PENDIENTE |
|
||||
|
||||
**Nota:** ALFRED puede implementarse sin GRACE para flujos que no requieran IA.
|
||||
|
||||
### JARED (Flujos Predefinidos CORP)
|
||||
|
||||
| # | Accion | Estado |
|
||||
|---|--------|--------|
|
||||
| 4.4 | Fork de ALFRED | PENDIENTE |
|
||||
| 4.5 | Adaptar para CORP | PENDIENTE |
|
||||
| 4.6 | Integrar con MARGARET | PENDIENTE |
|
||||
|
||||
### MASON (Enriquecimiento)
|
||||
|
||||
| # | Accion | Estado |
|
||||
|---|--------|--------|
|
||||
| 4.7 | Crear schema SQL | BLOQUEADO (GRACE) |
|
||||
| 4.8 | Implementar API Flask | BLOQUEADO (GRACE) |
|
||||
| 4.9 | Integrar con GRACE | BLOQUEADO (GRACE) |
|
||||
|
||||
### FELDMAN (Consolidacion)
|
||||
|
||||
| # | Accion | Estado |
|
||||
|---|--------|--------|
|
||||
| 4.10 | Crear schema SQL | BLOQUEADO (MASON) |
|
||||
| 4.11 | Implementar API Flask | BLOQUEADO (MASON) |
|
||||
| 4.12 | Generar bloques 24h | BLOQUEADO (MASON) |
|
||||
|
||||
---
|
||||
|
||||
## FASE 5: APPS DE USUARIO - PENDIENTE
|
||||
|
||||
### PACKET
|
||||
|
||||
| # | Accion | Estado |
|
||||
|---|--------|--------|
|
||||
| 5.1 | Configurar firma Android | PENDIENTE |
|
||||
| 5.2 | Build APK release | PENDIENTE |
|
||||
| 5.3 | Publicar en Gitea releases | PENDIENTE |
|
||||
|
||||
### VISION BUILDER
|
||||
|
||||
| # | Accion | Estado |
|
||||
|---|--------|--------|
|
||||
| 5.4 | Implementar schema SQL | BLOQUEADO (FACTORY) |
|
||||
| 5.5 | Crear API Flask | BLOQUEADO (FACTORY) |
|
||||
| 5.6 | Integrar con THE FACTORY | BLOQUEADO (FACTORY) |
|
||||
|
||||
---
|
||||
|
||||
## FASE 6: OBSERVABILIDAD - PENDIENTE
|
||||
|
||||
### SENTINEL
|
||||
|
||||
| # | Accion | Estado |
|
||||
|---|--------|--------|
|
||||
| 6.1 | Crear schema SQL | PENDIENTE |
|
||||
| 6.2 | Implementar hooks | PENDIENTE |
|
||||
| 6.3 | Dashboard Grafana | PENDIENTE |
|
||||
| 6.4 | Alertas ntfy | PENDIENTE |
|
||||
|
||||
---
|
||||
|
||||
## PROXIMO PASO RECOMENDADO
|
||||
|
||||
### Opcion A: Desbloquear GRACE (alto impacto)
|
||||
1. Configurar cuenta RunPod
|
||||
2. Desplegar GRACE
|
||||
3. Habilita MASON, FELDMAN, THE FACTORY
|
||||
|
||||
### Opcion B: Implementar ALFRED/JARED (sin bloqueo)
|
||||
1. Flujos predefinidos sin IA
|
||||
2. Integrar con CLARA/MARGARET
|
||||
3. Puede hacerse en paralelo
|
||||
|
||||
### Opcion C: Publicar PACKET (usuario final)
|
||||
1. Build APK
|
||||
2. Publicar en Gitea
|
||||
3. Permite pruebas end-to-end
|
||||
|
||||
---
|
||||
|
||||
## SCRIPTS DE IMPLEMENTACION
|
||||
|
||||
Ver carpeta `/PHASES/` para scripts detallados.
|
||||
|
||||
---
|
||||
|
||||
*Plan actualizado automaticamente - 2025-12-24*
|
||||
78
v4-archive/system-plan/README.md
Normal file
78
v4-archive/system-plan/README.md
Normal file
@@ -0,0 +1,78 @@
|
||||
# TZZR System Plan
|
||||
|
||||
**Estado real y plan de implementacion del ecosistema TZZR**
|
||||
|
||||
Ultima actualizacion: 2025-12-24
|
||||
|
||||
---
|
||||
|
||||
## Documentos
|
||||
|
||||
| Documento | Descripcion |
|
||||
|-----------|-------------|
|
||||
| [STATUS.md](STATUS.md) | Estado rapido del sistema |
|
||||
| [ARCHITECTURE.md](ARCHITECTURE.md) | Estado detallado, inventario de repos |
|
||||
| [IMPLEMENTATION_PLAN.md](IMPLEMENTATION_PLAN.md) | Plan de implementacion por fases |
|
||||
| [PHASES/](PHASES/) | Scripts detallados para cada fase |
|
||||
|
||||
---
|
||||
|
||||
## Estado Actual
|
||||
|
||||
```
|
||||
COMPLETADO: Fases 0, 1, 3
|
||||
BLOQUEADO: Fase 2 (requiere RunPod)
|
||||
PENDIENTE: Fases 4, 5, 6
|
||||
```
|
||||
|
||||
### Servicios Activos
|
||||
|
||||
| Servicio | URL | Estado |
|
||||
|----------|-----|--------|
|
||||
| CLARA | http://72.62.1.113:5051 | OK |
|
||||
| MARGARET | http://92.112.181.188:5051 | OK |
|
||||
| HST | http://72.62.2.84 | OK |
|
||||
| Gitea | http://69.62.126.110:3000 | OK |
|
||||
|
||||
### Progreso por Area
|
||||
|
||||
| Area | Progreso |
|
||||
|------|----------|
|
||||
| Pipeline datos | 40% |
|
||||
| Procesamiento IA | 0% (bloqueado) |
|
||||
| Apps usuario | 0% |
|
||||
|
||||
---
|
||||
|
||||
## Fases de Implementacion
|
||||
|
||||
| Fase | Objetivo | Estado |
|
||||
|------|----------|--------|
|
||||
| 0 | Limpieza y consolidacion | COMPLETADA |
|
||||
| 1 | Pipeline minimo (CLARA) | COMPLETADA |
|
||||
| 2 | Procesamiento IA (GRACE) | BLOQUEADA |
|
||||
| 3 | Flujo empresarial (MARGARET) | COMPLETADA |
|
||||
| 4 | Pipeline completo | PENDIENTE |
|
||||
| 5 | Apps de usuario | PENDIENTE |
|
||||
| 6 | Observabilidad | PENDIENTE |
|
||||
|
||||
---
|
||||
|
||||
## Bloqueador Principal
|
||||
|
||||
**GRACE en RunPod** - Requiere configurar cuenta RunPod para desbloquear:
|
||||
- MASON (enriquecimiento)
|
||||
- FELDMAN (consolidacion)
|
||||
- THE FACTORY (generacion)
|
||||
|
||||
---
|
||||
|
||||
## Proximos Pasos Sin Bloqueo
|
||||
|
||||
1. **ALFRED** - Flujos predefinidos para DECK
|
||||
2. **JARED** - Flujos predefinidos para CORP
|
||||
3. **PACKET** - Publicar APK de la app movil
|
||||
|
||||
---
|
||||
|
||||
*Documento de trabajo del ecosistema TZZR*
|
||||
146
v4-archive/system-plan/STATUS.md
Normal file
146
v4-archive/system-plan/STATUS.md
Normal file
@@ -0,0 +1,146 @@
|
||||
# TZZR - Estado del Sistema
|
||||
|
||||
**Ultima actualizacion:** 2025-12-24 10:45 UTC
|
||||
|
||||
---
|
||||
|
||||
## Estado Rapido
|
||||
|
||||
```
|
||||
Pipeline de Ingesta: [########--] 80%
|
||||
Procesamiento IA: [#---------] 10% (GRACE pendiente)
|
||||
Apps Usuario: [----------] 0%
|
||||
Observabilidad: [----------] 0%
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Servicios Activos
|
||||
|
||||
### DECK (72.62.1.113)
|
||||
| Servicio | Puerto | Funcion | Estado |
|
||||
|----------|--------|---------|--------|
|
||||
| CLARA | 5051 | Ingesta de datos | OK |
|
||||
| ALFRED | 5052 | Flujos predefinidos | OK |
|
||||
|
||||
### CORP (92.112.181.188)
|
||||
| Servicio | Puerto | Funcion | Estado |
|
||||
|----------|--------|---------|--------|
|
||||
| MARGARET | 5051 | Almacenamiento archivos | OK |
|
||||
| JARED | 5052 | Flujos predefinidos | OK |
|
||||
| MASON | 5053 | Espacio de edicion | OK |
|
||||
| FELDMAN | 5054 | Registro completados | OK |
|
||||
|
||||
### RunPod (Serverless)
|
||||
| Servicio | Endpoint ID | Funcion | Estado |
|
||||
|----------|-------------|---------|--------|
|
||||
| GRACE | r00x4g3rrwkbyh | GPU Processing | Pendiente Docker image |
|
||||
|
||||
### Infraestructura
|
||||
| Servicio | Servidor | Puerto | Estado |
|
||||
|----------|----------|--------|--------|
|
||||
| Gitea | ARCHITECT | 3000 | OK |
|
||||
| Directus | Todos | 8055 | OK |
|
||||
| HST | HST | 80 | OK |
|
||||
|
||||
---
|
||||
|
||||
## Fases Completadas
|
||||
|
||||
| Fase | Descripcion | Fecha |
|
||||
|------|-------------|-------|
|
||||
| 0 | Limpieza y consolidacion | 2025-12-24 |
|
||||
| 1 | Pipeline minimo (CLARA) | 2025-12-24 |
|
||||
| 3 | Flujo empresarial (MARGARET) | 2025-12-24 |
|
||||
| 4 | ALFRED, JARED, MASON, FELDMAN | 2025-12-24 |
|
||||
|
||||
---
|
||||
|
||||
## Flujo de Datos
|
||||
|
||||
```
|
||||
┌─────────────────────────────────────┐
|
||||
│ ENTRADA DE DATOS │
|
||||
└─────────────────────────────────────┘
|
||||
│
|
||||
┌─────────────────┴─────────────────┐
|
||||
v v
|
||||
┌──────────┐ ┌──────────┐
|
||||
│ CLARA │ │ MARGARET │
|
||||
│ (DECK) │ │ (CORP) │
|
||||
│ :5051 │ │ :5051 │
|
||||
└────┬─────┘ └────┬─────┘
|
||||
│ │
|
||||
v v
|
||||
┌──────────┐ ┌──────────┐
|
||||
│ ALFRED │ │ JARED │
|
||||
│ (DECK) │ │ (CORP) │
|
||||
│ :5052 │ │ :5052 │
|
||||
└────┬─────┘ └────┬─────┘
|
||||
│ │
|
||||
└─────────────┬────────────────────┘
|
||||
│
|
||||
┌────────────┴────────────┐
|
||||
│ incidencia? │
|
||||
└────────────┬────────────┘
|
||||
│ │
|
||||
OK │ │ incidencia
|
||||
v v
|
||||
┌──────────┐ ┌──────────┐
|
||||
│ FELDMAN │ │ MASON │
|
||||
│ :5054 │ │ :5053 │
|
||||
└──────────┘ └────┬─────┘
|
||||
^ │
|
||||
│ editar │
|
||||
└────────────┘
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Bloqueadores
|
||||
|
||||
| Componente | Bloqueador | Impacto |
|
||||
|------------|------------|---------|
|
||||
| GRACE | Docker image en RunPod | Procesamiento IA |
|
||||
|
||||
---
|
||||
|
||||
## Proximos Pasos
|
||||
|
||||
### Inmediato
|
||||
1. **GRACE** - Construir Docker image y desplegar en RunPod
|
||||
2. **PACKET** - Publicar APK
|
||||
|
||||
### Posterior
|
||||
1. SENTINEL - Observabilidad
|
||||
2. THE-FACTORY - Generacion contenido
|
||||
3. PENNY - Procesamiento voz
|
||||
|
||||
---
|
||||
|
||||
## Endpoints de Prueba
|
||||
|
||||
```bash
|
||||
# DECK
|
||||
curl http://72.62.1.113:5051/health # CLARA
|
||||
curl http://72.62.1.113:5052/health # ALFRED
|
||||
|
||||
# CORP
|
||||
curl http://92.112.181.188:5051/health # MARGARET
|
||||
curl http://92.112.181.188:5052/health # JARED
|
||||
curl http://92.112.181.188:5053/health # MASON
|
||||
curl http://92.112.181.188:5054/health # FELDMAN
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## h_instancia (Auth Keys)
|
||||
|
||||
| Servidor | Hash |
|
||||
|----------|------|
|
||||
| DECK | `f25e44ac3c075f57b9a198c880cb1fc05cf3af56f6466828b405d8c062374179` |
|
||||
| CORP | `ea9e99d5f95bcc23749d5f25b71a5b520ae7917438912fc6e29564534484a514` |
|
||||
|
||||
---
|
||||
|
||||
*Ver ARCHITECTURE.md y IMPLEMENTATION_PLAN.md para detalles completos*
|
||||
Reference in New Issue
Block a user