@christianmaf80/agentic-workflow 1.22.0-beta.6 → 1.22.0-beta.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.es.md +57 -13
- package/README.md +56 -12
- package/bin/cli.js +29 -22
- package/dist/agent/index.md +3 -0
- package/dist/agent/rules/constitution/index.md +1 -0
- package/dist/agent/rules/constitution/runtime-integration.md +101 -0
- package/dist/agent/rules/roles/architect.md +2 -1
- package/dist/agent/workflows/init.md +9 -2
- package/dist/agent/workflows/tasklifecycle-long/phase-0-acceptance-criteria.md +11 -1
- package/dist/agent/workflows/tasklifecycle-long/phase-1-research.md +2 -0
- package/dist/agent/workflows/tasklifecycle-short/short-phase-1-brief.md +2 -0
- package/dist/cli/commands/create.js +29 -4
- package/dist/cli/commands/create.js.map +1 -1
- package/dist/cli/commands/mcp.js +6 -0
- package/dist/cli/commands/mcp.js.map +1 -1
- package/dist/cli/commands/register-mcp.js +116 -0
- package/dist/cli/commands/register-mcp.js.map +1 -0
- package/dist/runtime/engine/engine.js +57 -29
- package/dist/runtime/engine/engine.js.map +1 -1
- package/dist/runtime/engine/logger.js +74 -0
- package/dist/runtime/engine/logger.js.map +1 -0
- package/dist/runtime/engine/service.js +38 -1
- package/dist/runtime/engine/service.js.map +1 -1
- package/dist/runtime/engine/task-loader.js +1 -1
- package/dist/runtime/engine/task-loader.js.map +1 -1
- package/dist/runtime/engine/workflow-loader.js +25 -17
- package/dist/runtime/engine/workflow-loader.js.map +1 -1
- package/dist/runtime/mcp/check-tools.js +66 -0
- package/dist/runtime/mcp/check-tools.js.map +1 -0
- package/dist/runtime/mcp/server.js +277 -38
- package/dist/runtime/mcp/server.js.map +1 -1
- package/package.json +3 -2
package/README.es.md
CHANGED
|
@@ -11,8 +11,9 @@
|
|
|
11
11
|
## ✨ Características Principales
|
|
12
12
|
|
|
13
13
|
- **Protocolo AHRP (Agentic Handover & Reasoning Protocol)**: Impone un flujo estricto de Triple-Puerta para cada tarea (Activación, Aprobación de Razonamiento y Aceptación de Resultados).
|
|
14
|
+
- **Gobernanza de Runtime y MCP**: Integración profunda con un servidor MCP para seguimiento de ciclos de vida, validación de puertas y logs a prueba de manipulaciones.
|
|
15
|
+
- **Skills Agénticos**: Capacidades modulares para los agentes, incluyendo habilidades de gobernanza localizadas (ej: `skill.runtime-governance`).
|
|
14
16
|
- **Arquitectura local**: Copia las reglas y workflows del core dentro de `.agent/` para evitar dependencias de acceso continuado a `node_modules`.
|
|
15
|
-
- **Gobernanza de Tolerancia Cero**: Penalizaciones automáticas de rendimiento por violaciones del protocolo.
|
|
16
17
|
- **Independiente y Portátil**: Funciona en cualquier proyecto, siempre que el agente del IDE pueda leer archivos Markdown.
|
|
17
18
|
|
|
18
19
|
## 📦 Instalación
|
|
@@ -40,28 +41,69 @@ Inicializa el sistema agéntico en el directorio actual.
|
|
|
40
41
|
npx agentic-workflow init
|
|
41
42
|
```
|
|
42
43
|
|
|
43
|
-
### `create <role|workflow> <name>`
|
|
44
|
-
Genera el andamiaje (scaffolding) para un nuevo componente
|
|
44
|
+
### `create <role|workflow|skill> <name>`
|
|
45
|
+
Genera el andamiaje (scaffolding) para un nuevo componente específico del proyecto.
|
|
45
46
|
- **role**: Crea un nuevo rol de agente con reglas de identificación obligatorias.
|
|
46
47
|
- **workflow**: Crea una plantilla de ciclo de trabajo personalizado.
|
|
48
|
+
- **skill**: Crea una nueva habilidad modular con su propia plantilla `SKILL.md`.
|
|
47
49
|
```bash
|
|
48
50
|
npx agentic-workflow create role neo
|
|
49
51
|
```
|
|
50
52
|
|
|
51
53
|
### `restore`
|
|
52
|
-
|
|
53
|
-
- Los backups se almacenan como `.agent.backup_<timestamp>` en la raíz del proyecto.
|
|
54
|
-
- Permite seleccionar versiones antes de un cambio destructivo.
|
|
54
|
+
Recuepra la configuración de `.agent/` desde una copia de seguridad previa.
|
|
55
55
|
```bash
|
|
56
56
|
npx agentic-workflow restore
|
|
57
57
|
```
|
|
58
58
|
|
|
59
|
+
### `clean`
|
|
60
|
+
Elimina archivos de configuración temporales o heredados (ej: configuraciones MCP obsoletas).
|
|
61
|
+
```bash
|
|
62
|
+
npx agentic-workflow clean
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
### `mcp`
|
|
66
|
+
Inicia el servidor local del Runtime MCP (modo stdio).
|
|
67
|
+
```bash
|
|
68
|
+
npx agentic-workflow mcp
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
### `register-mcp`
|
|
72
|
+
Registra automáticamente el servidor local en la configuración de Antigravity/Gemini.
|
|
73
|
+
```bash
|
|
74
|
+
npx agentic-workflow register-mcp
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
## ⚙️ Configuración Avanzada
|
|
78
|
+
|
|
79
|
+
### Integración de Runtime MCP
|
|
80
|
+
El sistema utiliza un servidor MCP para rastrear el estado del flujo. Para conectarlo con tu asistente de IDE:
|
|
81
|
+
1. Ejecuta `npx agentic-workflow register-mcp`.
|
|
82
|
+
2. Asegúrate de que `mcp_config.json` apunte al binario local del CLI.
|
|
83
|
+
3. Los logs de ejecución se guardan en `agentic-runtime.log` para auditoría y depuración.
|
|
84
|
+
|
|
59
85
|
## 🧠 Conceptos Core
|
|
60
86
|
|
|
61
87
|
### Ciclos de Vida
|
|
62
88
|
El framework soporta dos flujos principales según la complejidad de la tarea:
|
|
63
|
-
|
|
64
|
-
|
|
89
|
+
|
|
90
|
+
#### 1. Ciclo de Vida Largo (9 Fases)
|
|
91
|
+
Diseñado para funcionalidades complejas, cambios arquitectónicos o tareas con alto riesgo. Garantiza el máximo razonamiento antes de escribir una sola línea de código.
|
|
92
|
+
- **Fase 0: Criterios de Aceptación**: Elimina la ambigüedad definiendo exactamente qué significa el éxito.
|
|
93
|
+
- **Fase 1: Investigación**: Recopilación de contexto. Necesaria para entender el código existente o APIs externas.
|
|
94
|
+
- **Fase 2: Análisis**: Evaluación de impacto. Identifica riesgos y restricciones arquitectónicas.
|
|
95
|
+
- **Fase 3: Planificación**: Plan de implementación detallado. Crucial para la alineación con el desarrollador.
|
|
96
|
+
- **Fase 4: Implementación**: El proceso de codificación propiamente dicho.
|
|
97
|
+
- **Fase 5: Verificación**: Pruebas rigurosas y validación de los cambios realizados.
|
|
98
|
+
- **Fase 6: Aceptación de Resultados**: Firma final del desarrollador sobre el valor entregado.
|
|
99
|
+
- **Fase 7: Evaluación**: Retrospectiva sobre el desempeño del agente y eficiencia del proceso.
|
|
100
|
+
- **Fase 8: Commit & Push**: Persistencia segura de los cambios en el repositorio.
|
|
101
|
+
|
|
102
|
+
#### 2. Ciclo de Vida Corto (3 Fases)
|
|
103
|
+
Optimizado para correcciones rápidas, actualizaciones simples de documentación o cambios de bajo riesgo.
|
|
104
|
+
- **Fase 1: Brief**: Fusiona Aceptación, Análisis y Planificación en un solo paso para mayor agilidad.
|
|
105
|
+
- **Fase 2: Implementación**: Codificación y verificación combinadas.
|
|
106
|
+
- **Fase 3: Cierre**: Aceptación de resultados y limpieza final.
|
|
65
107
|
|
|
66
108
|
### Protocolo AHRP
|
|
67
109
|
Cada tarea de un agente sigue el **Protocolo de Traspaso y Razonamiento Agéntico**:
|
|
@@ -72,12 +114,14 @@ Cada tarea de un agente sigue el **Protocolo de Traspaso y Razonamiento Agéntic
|
|
|
72
114
|
### Arquitectura por Instalación
|
|
73
115
|
Para garantizar la estabilidad, la lógica central del framework (reglas y workflows) se instala dentro de la carpeta `.agent` del proyecto. Esto ofrece una copia local limpia que se puede extender sin tocar el paquete publicado.
|
|
74
116
|
|
|
75
|
-
|
|
117
|
+
### Sistema de Indexación por Dominios
|
|
118
|
+
El sistema utiliza una **Arquitectura de Indexación en Cascada** para una trazabilidad absoluta:
|
|
119
|
+
1. **Root Index** (`.agent/index.md`): Declara los puntos de entrada para todos los dominios del sistema (reglas, workflows, templates, skills, artefactos).
|
|
120
|
+
2. **Índices de Dominio**: Cada carpeta contiene su propio `index.md` donde se asignan **alias** a los archivos.
|
|
121
|
+
3. **Modelo de Referencia**: Los agentes nunca utilizan rutas absolutas. Resuelven las referencias a través del sistema de alias (ej: `skill.runtime-governance` → `.agent/skills/runtime-governance/SKILL.md`), lo que garantiza que la lógica se pueda mover o actualizar sin romper los flujos de trabajo.
|
|
76
122
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
2. Enviar un plan de razonamiento antes de cualquier modificación.
|
|
80
|
-
3. Obtener la aprobación explícita del desarrollador (`SI`) para cada transición.
|
|
123
|
+
### Responsabilidad en Runtime
|
|
124
|
+
Todas las transiciones de ciclo de vida se registran a través de un Runtime MCP dedicado. Las acciones realizadas sin una "Huella de Gobernanza" correspondiente (logs de MCP) se consideran inválidas y están sujetas a reversión.
|
|
81
125
|
|
|
82
126
|
## 📄 Licencia
|
|
83
127
|
|
package/README.md
CHANGED
|
@@ -11,8 +11,9 @@
|
|
|
11
11
|
## ✨ Key Features
|
|
12
12
|
|
|
13
13
|
- **AHRP (Agentic Handover & Reasoning Protocol)**: Enforces a strict Triple-Gate flow for every task (Activation, Reasoning Approval, and Results Acceptance).
|
|
14
|
+
- **Runtime Governance & MCP**: Deep integration with an MCP server for lifecycle tracking, gate validation, and tamper-proof logging.
|
|
15
|
+
- **Agentic Skills**: Modular capabilities for agents, including localized and specialized governance skills (e.g., `skill.runtime-governance`).
|
|
14
16
|
- **Local Core Snapshot**: Copies core rules and workflows into `.agent/` so runtime no longer depends on `node_modules` access.
|
|
15
|
-
- **Zero-Tolerance Governance**: Automatic performance penalties for protocol violations.
|
|
16
17
|
- **Standalone & Portable**: Works in any project provided the IDE agent can read Markdown files.
|
|
17
18
|
|
|
18
19
|
## 📦 Installation
|
|
@@ -40,28 +41,69 @@ Initializes the agentic system in the current directory.
|
|
|
40
41
|
npx agentic-workflow init
|
|
41
42
|
```
|
|
42
43
|
|
|
43
|
-
### `create <role|workflow> <name>`
|
|
44
|
-
Scaffolds a new
|
|
44
|
+
### `create <role|workflow|skill> <name>`
|
|
45
|
+
Scaffolds a new project-specific component.
|
|
45
46
|
- **role**: Creates a new agent role with mandatory identification rules.
|
|
46
47
|
- **workflow**: Creates a custom work cycle template.
|
|
48
|
+
- **skill**: Creates a new modular skill with its own `SKILL.md` template.
|
|
47
49
|
```bash
|
|
48
50
|
npx agentic-workflow create role neo
|
|
49
51
|
```
|
|
50
52
|
|
|
51
53
|
### `restore`
|
|
52
54
|
Recovers the `.agent/` configuration from a previous backup.
|
|
53
|
-
- Backups are stored as `.agent.backup_<timestamp>` in the project root.
|
|
54
|
-
- Allows selecting versions before a destructive change.
|
|
55
55
|
```bash
|
|
56
56
|
npx agentic-workflow restore
|
|
57
57
|
```
|
|
58
58
|
|
|
59
|
+
### `clean`
|
|
60
|
+
Removes legacy or temporary configuration files (e.g., outdated MCP setups).
|
|
61
|
+
```bash
|
|
62
|
+
npx agentic-workflow clean
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
### `mcp`
|
|
66
|
+
Starts the local MCP Runtime server (stdio mode).
|
|
67
|
+
```bash
|
|
68
|
+
npx agentic-workflow mcp
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
### `register-mcp`
|
|
72
|
+
Automatically registers the local server in the Antigravity/Gemini config.
|
|
73
|
+
```bash
|
|
74
|
+
npx agentic-workflow register-mcp
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
## ⚙️ Advanced Configuration
|
|
78
|
+
|
|
79
|
+
### MCP Runtime Integration
|
|
80
|
+
The system relies on an MCP server to track the workflow state. To connect it with your IDE assistant (like Antigravity):
|
|
81
|
+
1. Run `npx agentic-workflow register-mcp`.
|
|
82
|
+
2. Ensure `mcp_config.json` (or equivalent) points to the local CLI binary.
|
|
83
|
+
3. The Runtime logs are stored in `agentic-runtime.log` for debugging.
|
|
84
|
+
|
|
59
85
|
## 🧠 Core Concepts
|
|
60
86
|
|
|
61
87
|
### Lifecycles
|
|
62
88
|
The framework supports two main workflows depending on task complexity:
|
|
63
|
-
|
|
64
|
-
|
|
89
|
+
|
|
90
|
+
#### 1. Long Lifecycle (9 Phases)
|
|
91
|
+
Designed for complex features, architectural changes, or tasks with high risk. It ensures maximum reasoning before a single line of code is written.
|
|
92
|
+
- **Phase 0: Acceptance Criteria**: Eliminates ambiguity by defining exactly what success looks like.
|
|
93
|
+
- **Phase 1: Research**: Context gathering. Necessary to understand existing code or external APIs.
|
|
94
|
+
- **Phase 2: Analysis**: Impact evaluation. Identifies risks and architectural constraints.
|
|
95
|
+
- **Phase 3: Planning**: Detailed implementation plan. Crucial for developer alignment before execution.
|
|
96
|
+
- **Phase 4: Implementation**: The actual coding process.
|
|
97
|
+
- **Phase 5: Verification**: Rigorous testing and validation of the implemented changes.
|
|
98
|
+
- **Phase 6: Results Acceptance**: Final developer sign-off on the delivered value.
|
|
99
|
+
- **Phase 7: Evaluation**: Retrospective on the agent's performance and process efficiency.
|
|
100
|
+
- **Phase 8: Commit & Push**: Safely persisting the changes to the repository.
|
|
101
|
+
|
|
102
|
+
#### 2. Short Lifecycle (3 Phases)
|
|
103
|
+
Optimized for quick fixes, simple documentation updates, or low-risk changes.
|
|
104
|
+
- **Phase 1: Brief**: Merges Acceptance, Analysis, and Planning into a single step for speed.
|
|
105
|
+
- **Phase 2: Implementation**: Combined coding and verification.
|
|
106
|
+
- **Phase 3: Closure**: Results acceptance and final cleanup.
|
|
65
107
|
|
|
66
108
|
### AHRP Protocol
|
|
67
109
|
Every agent task follows the **Agentic Handover & Reasoning Protocol**:
|
|
@@ -72,12 +114,14 @@ Every agent task follows the **Agentic Handover & Reasoning Protocol**:
|
|
|
72
114
|
### Architecture by Install
|
|
73
115
|
To ensure stability, the framework's core logic (rules and workflows) is installed into your project's `.agent` folder. This provides a clean, local copy that can be extended without touching the published package.
|
|
74
116
|
|
|
75
|
-
|
|
117
|
+
### Domain Indexing System
|
|
118
|
+
The system uses a **Cascading Indexing Architecture** for absolute traceability:
|
|
119
|
+
1. **Root Index** (`.agent/index.md`): Declares the entry points for all system domains (rules, workflows, templates, skills, artifacts).
|
|
120
|
+
2. **Domain Indexes**: Each folder contains its own `index.md` where files are assigned **aliases**.
|
|
121
|
+
3. **Reference Model**: Agents never use absolute paths. They resolve references through the alias system (e.g., `skill.runtime-governance` → `.agent/skills/runtime-governance/SKILL.md`), ensuring that logic can be moved or updated without breaking workflows.
|
|
76
122
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
2. Submit a reasoning plan before any modification.
|
|
80
|
-
3. Obtain explicit developer approval (`YES`) for every transition.
|
|
123
|
+
### Runtime Accountability
|
|
124
|
+
All lifecycle transitions are recorded through a dedicated MCP Runtime. Actions performed without a corresponding "Governance Trace" (MCP logs) are considered invalid and subject to reversal.
|
|
81
125
|
|
|
82
126
|
## 📄 License
|
|
83
127
|
|
package/bin/cli.js
CHANGED
|
@@ -5,41 +5,48 @@ import { createCommand } from '../dist/cli/commands/create.js';
|
|
|
5
5
|
import { restoreCommand } from '../dist/cli/commands/restore.js';
|
|
6
6
|
import { cleanCommand } from '../dist/cli/commands/clean.js';
|
|
7
7
|
import { mcpCommand } from '../dist/cli/commands/mcp.js';
|
|
8
|
+
import { registerMcpCommand } from '../dist/cli/commands/register-mcp.js';
|
|
8
9
|
|
|
9
10
|
const program = new Command();
|
|
10
11
|
|
|
11
12
|
program
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
.name('agentic-workflow')
|
|
14
|
+
.description('Portable agentic orchestration system')
|
|
15
|
+
.version('1.22.0-beta.7');
|
|
15
16
|
|
|
16
17
|
program
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
.command('init')
|
|
19
|
+
.description('Initialize the agentic system in the current directory')
|
|
20
|
+
.option('--non-interactive', 'Run without prompts (assume YES)')
|
|
21
|
+
.option('--start-mcp', 'Start MCP server after initialization (foreground)')
|
|
22
|
+
.action((options) => initCommand(options));
|
|
22
23
|
|
|
23
24
|
program
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
.command('create')
|
|
26
|
+
.argument('<type>', 'The type of element to create (role, workflow, skill)')
|
|
27
|
+
.argument('<name>', 'The name for the new element')
|
|
28
|
+
.description('Scaffold a new project-specific element')
|
|
29
|
+
.action(createCommand);
|
|
29
30
|
|
|
30
31
|
program
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
.command('restore')
|
|
33
|
+
.description('Restore the agentic system from a backup')
|
|
34
|
+
.action(restoreCommand);
|
|
34
35
|
|
|
35
36
|
program
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
.command('clean')
|
|
38
|
+
.description('Remove legacy configuration files (e.g. MCP)')
|
|
39
|
+
.action(cleanCommand);
|
|
39
40
|
|
|
40
41
|
program
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
.command('mcp')
|
|
43
|
+
.description('Start MCP runtime server (stdio)')
|
|
44
|
+
.action(() => mcpCommand());
|
|
45
|
+
|
|
46
|
+
program
|
|
47
|
+
.command('register-mcp')
|
|
48
|
+
.description('Register MCP server in Gemini CLI (Antigravity) and/or Codex CLI')
|
|
49
|
+
.action(() => registerMcpCommand());
|
|
44
50
|
|
|
45
51
|
program.parse();
|
|
52
|
+
|
package/dist/agent/index.md
CHANGED
|
@@ -18,6 +18,7 @@ por alias en lugar de rutas directas.
|
|
|
18
18
|
constitution:
|
|
19
19
|
clean_code: .agent/rules/constitution/clean-code.md
|
|
20
20
|
agents_behavior: .agent/rules/constitution/agents-behavior.md
|
|
21
|
+
runtime_integration: .agent/rules/constitution/runtime-integration.md
|
|
21
22
|
```
|
|
22
23
|
|
|
23
24
|
## Reglas
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: constitution.runtime_integration
|
|
3
|
+
owner: architect-agent
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
severity: PERMANENT
|
|
6
|
+
scope: global
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# RUNTIME INTEGRATION CONSTITUTION
|
|
10
|
+
|
|
11
|
+
Este documento define las reglas obligatorias para la integración del runtime MCP en la ejecución de workflows.
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## 1. REGLA DE INTEGRACIÓN RUNTIME (PERMANENT - CRITICAL)
|
|
16
|
+
|
|
17
|
+
Cuando cualquier agente ejecute un workflow del sistema (`init`, `tasklifecycle-short`, `tasklifecycle-long`), **DEBE** utilizar las herramientas del runtime MCP para garantizar trazabilidad y persistencia de estado.
|
|
18
|
+
|
|
19
|
+
### 1.1 Herramientas Obligatorias
|
|
20
|
+
|
|
21
|
+
| Evento | Herramienta MCP | Cuándo usar |
|
|
22
|
+
|--------|-----------------|-------------|
|
|
23
|
+
| Inicio de tarea | `runtime.run` | Al crear una nueva tarea |
|
|
24
|
+
| Avance de fase | `runtime.advance_phase` | Al completar cada fase del ciclo |
|
|
25
|
+
| Obtener estado | `runtime.get_state` | Para consultar el estado actual |
|
|
26
|
+
| Validar gate | `runtime.validate_gate` | Antes de solicitar aprobación |
|
|
27
|
+
| Evento importante | `runtime.emit_event` | Para eventos de chat, errores, etc. |
|
|
28
|
+
|
|
29
|
+
### 1.2 Flujo Obligatorio
|
|
30
|
+
|
|
31
|
+
```
|
|
32
|
+
1. Al iniciar workflow:
|
|
33
|
+
→ Llamar `runtime.run` con taskPath y agent
|
|
34
|
+
|
|
35
|
+
2. Al completar cada fase:
|
|
36
|
+
→ Llamar `runtime.validate_gate` para verificar precondiciones
|
|
37
|
+
→ Solicitar aprobación al desarrollador (notify_user)
|
|
38
|
+
→ Llamar `runtime.advance_phase` tras aprobación
|
|
39
|
+
|
|
40
|
+
3. Durante la ejecución:
|
|
41
|
+
→ Usar `runtime.emit_event` para eventos significativos
|
|
42
|
+
→ Usar `runtime.get_state` para consultar estado si es necesario
|
|
43
|
+
|
|
44
|
+
### 1.3 Regla de Nulidad (Bypass Detection)
|
|
45
|
+
Cualquier acción técnica de cambio de estado (creación de artefactos, avance de fase) realizada sin una llamada correspondiente registrada en el Runtime MCP será considerada **nula e inválida**.
|
|
46
|
+
- La "Huella Digital de Gobernanza" (logs de `validate_gate` y `advance_phase`) generada mediante el **Skill de Gobernanza** es el único comprobante legal de cumplimiento de proceso.
|
|
47
|
+
|
|
48
|
+
### 1.4 Skill de Gobernanza (Mejor Práctica)
|
|
49
|
+
El uso del `skill.runtime-governance` es la **mejor práctica y el método obligatorio** para el `architect-agent`.
|
|
50
|
+
- **Por qué**: Centraliza la complejidad técnica de las herramientas MCP y permite auditorías reactivas consistentes sin sobrecargar los archivos de workflow.
|
|
51
|
+
- **Invocación**: Los workflows deben simplemente invocar la acción de control, y el Arquitecto debe proveer el "Cómo" mediante este Skill exclusivo.
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
## 2. REQUISITOS PREVIOS (PERMANENT)
|
|
57
|
+
|
|
58
|
+
Para que esta constitución sea aplicable:
|
|
59
|
+
|
|
60
|
+
1. El servidor MCP debe estar registrado en el cliente (Antigravity/Codex).
|
|
61
|
+
- Si no está registrado, ejecutar: `agentic-workflow register-mcp`
|
|
62
|
+
|
|
63
|
+
2. El servidor MCP debe estar corriendo en background o ser invocable.
|
|
64
|
+
|
|
65
|
+
### 2.1 Verificación de Registro
|
|
66
|
+
|
|
67
|
+
Al iniciar cualquier workflow, el agente **DEBE** verificar que las herramientas del runtime están disponibles. Si no lo están:
|
|
68
|
+
- Informar al desarrollador.
|
|
69
|
+
- Sugerir ejecutar `agentic-workflow register-mcp`.
|
|
70
|
+
- Continuar con ejecución fallback (sin runtime) si el desarrollador lo autoriza.
|
|
71
|
+
|
|
72
|
+
---
|
|
73
|
+
|
|
74
|
+
## 3. LOGS Y TRAZABILIDAD (PERMANENT)
|
|
75
|
+
|
|
76
|
+
Todas las llamadas al runtime generan logs en stderr. Estos logs son la **fuente de verdad** para auditar la ejecución de workflows.
|
|
77
|
+
|
|
78
|
+
### 3.1 Formato de Logs
|
|
79
|
+
```
|
|
80
|
+
[LEVEL] [SOURCE] Message {context}
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
### 3.2 Herramienta de Debug
|
|
84
|
+
- `debug_read_logs`: Permite leer los logs almacenados en el buffer del runtime.
|
|
85
|
+
|
|
86
|
+
---
|
|
87
|
+
|
|
88
|
+
## 4. EXCEPCIONES (PERMANENT)
|
|
89
|
+
|
|
90
|
+
Esta constitución **NO aplica** cuando:
|
|
91
|
+
- El desarrollador solicita explícitamente ejecución sin runtime.
|
|
92
|
+
- Las herramientas MCP no están disponibles y el desarrollador autoriza fallback.
|
|
93
|
+
- Se trata de operaciones de solo lectura (consultas, investigación).
|
|
94
|
+
|
|
95
|
+
---
|
|
96
|
+
|
|
97
|
+
## Authority
|
|
98
|
+
|
|
99
|
+
Esta constitución es **binding** cuando referenciada como `INJECTED` o `PERMANENT`.
|
|
100
|
+
Creada por: architect-agent
|
|
101
|
+
Fecha: 2026-02-02
|
|
@@ -11,7 +11,7 @@ severity: PERMANENT
|
|
|
11
11
|
scope: global
|
|
12
12
|
|
|
13
13
|
capabilities:
|
|
14
|
-
skills: []
|
|
14
|
+
skills: ["skill.runtime-governance"]
|
|
15
15
|
tools:
|
|
16
16
|
git: supported
|
|
17
17
|
---
|
|
@@ -97,3 +97,4 @@ Eres el maximo responsable de la integridad del ciclo de vida:
|
|
|
97
97
|
2. **Validacion fisica**: Nunca procedas a una fase si el artefacto de la fase anterior no contiene la marca fisica de aprobacion del usuario.
|
|
98
98
|
3. **Cero decision propia en gates**: No tienes autoridad para decidir que un gate es innecesario.
|
|
99
99
|
4. **Espejo del proceso**: Si el usuario pide saltarse un paso, tu rol es recordarle la constitucion y los riesgos.
|
|
100
|
+
5. **Gobernanza por Skill**: DEBES utilizar obligatoriamente el procedimiento de `skill.runtime-governance` para cada gate y cambio de fase. No tienes autoridad para prescindir de la trazabilidad MCP.
|
|
@@ -45,6 +45,11 @@ El agente **DEBE** adherirse a estas meta-reglas de comportamiento durante TODA
|
|
|
45
45
|
- Si el usuario pide saltarse pasos, el agente **DEBE** recordar las reglas de constitución y rechazar amablemente el atajo.
|
|
46
46
|
|
|
47
47
|
## Pasos obligatorios
|
|
48
|
+
0. **Verificar Trazabilidad (OBLIGATORIO)**:
|
|
49
|
+
- Activar y seguir el procedimiento de `skill.runtime-governance` para confirmar la disponibilidad de herramientas MCP.
|
|
50
|
+
- El agente **DEBE** confirmar que la herramienta respondió correctamente antes de proceder.
|
|
51
|
+
- Si el skill o las herramientas no están disponibles → FAIL.
|
|
52
|
+
|
|
48
53
|
1. Activar `architect-agent` como rol arquitecto.
|
|
49
54
|
- Mostrar un mensaje único de estado (ej: "Cargando init...") y **no** listar lecturas de ficheros individuales.
|
|
50
55
|
- En ese mismo mensaje, presentar al architect-agent y dar contexto al desarrollador: rol, objetivo del init y qué información se le pedirá a continuación.
|
|
@@ -114,8 +119,10 @@ Requisitos (todos obligatorios):
|
|
|
114
119
|
- `language.value` no vacío
|
|
115
120
|
- `language.confirmed == true`
|
|
116
121
|
- `strategy` es "long" o "short"
|
|
122
|
+
- **`traceability.verified == true`** (Confirma cumplimiento del protocolo de `skill.runtime-governance`)
|
|
117
123
|
3) El artefacto cumple el template oficial.
|
|
118
124
|
4) Idioma definido y confirmado.
|
|
119
125
|
5) Estrategia seleccionada.
|
|
120
|
-
6)
|
|
121
|
-
7)
|
|
126
|
+
6) **Trazabilidad confirmada**: El agente ha verificado la disponibilidad de herramientas MCP siguiendo las instrucciones del Skill de Gobernanza.
|
|
127
|
+
7) No se cargaron índices fuera del set permitido (solo `.agent/index.md`, `agent.domains.rules.index`, `rules.constitution.index`).
|
|
128
|
+
8) El Root Index `.agent/index.md` fue cargado antes de cualquier otro índice.
|
|
@@ -22,6 +22,7 @@ blocking: true
|
|
|
22
22
|
> **Constitución activa (OBLIGATORIO)**:
|
|
23
23
|
> - Cargar `constitution.clean_code` antes de iniciar
|
|
24
24
|
> - Cargar `constitution.agents_behavior` (sección 7: Gates, sección 8: Constitución)
|
|
25
|
+
> - **Activar `skill.runtime-governance`** (Uso exclusivo del Architect para validación y trazabilidad)
|
|
25
26
|
|
|
26
27
|
## Output (REQUIRED)
|
|
27
28
|
- Current task (definitiva) con acceptance criteria completos:
|
|
@@ -39,7 +40,11 @@ blocking: true
|
|
|
39
40
|
- Registrar los acceptance criteria dentro del fichero de current task.
|
|
40
41
|
|
|
41
42
|
## Pasos obligatorios
|
|
42
|
-
0.
|
|
43
|
+
0. **Verificar Gobernanza (OBLIGATORIO)**:
|
|
44
|
+
- Activar `skill.runtime-governance`.
|
|
45
|
+
- Ejecutar el procedimiento de trazabilidad inicial (Paso 0 del Skill).
|
|
46
|
+
- El agente **DEBE** confirmar que el sistema de logs está activo antes de proceder.
|
|
47
|
+
- Usar prefijo obligatorio en cada mensaje.
|
|
43
48
|
1. Cargar y leer el task candidate:
|
|
44
49
|
- `artifacts.candidate.task`
|
|
45
50
|
- Extraer:
|
|
@@ -121,6 +126,10 @@ blocking: true
|
|
|
121
126
|
|
|
122
127
|
9. PASS
|
|
123
128
|
- Informar que la Fase 0 está completada correctamente.
|
|
129
|
+
- Seguimiento del protocolo de cierre en `skill.runtime-governance`:
|
|
130
|
+
- Llamar `runtime.validate_gate` para verificar integridad.
|
|
131
|
+
- Solicitar aprobación final al usuario.
|
|
132
|
+
- Llamar `runtime.advance_phase` tras el "SI".
|
|
124
133
|
- El `architect-agent` **DEBE realizar explícitamente** las siguientes acciones:
|
|
125
134
|
- Marcar la Fase 0 como completada en el `task.md`.
|
|
126
135
|
- Establecer `task.lifecycle.phases.phase-0-acceptance-criteria.validated_at = <ISO-8601>`.
|
|
@@ -168,6 +177,7 @@ Requisitos (todos obligatorios):
|
|
|
168
177
|
- `task.lifecycle.phases.phase-0-acceptance-criteria.validated_at` no nulo
|
|
169
178
|
- `task.phase.updated_at` no nulo
|
|
170
179
|
10. Las 5 preguntas obligatorias fueron realizadas y respondidas por el desarrollador.
|
|
180
|
+
11. **Gobernanza verificada**: El historial de logs muestra la secuencia de herramientas MCP definida en `skill.runtime-governance`.
|
|
171
181
|
|
|
172
182
|
Si Gate FAIL:
|
|
173
183
|
- Ejecutar **FAIL**.
|
|
@@ -25,6 +25,7 @@ blocking: true
|
|
|
25
25
|
> **Constitución activa (OBLIGATORIO)**:
|
|
26
26
|
> - Cargar `constitution.clean_code` antes de iniciar
|
|
27
27
|
> - Cargar `constitution.agents_behavior` (sección 7: Gates, sección 8: Constitución)
|
|
28
|
+
> - **Activar `skill.runtime-governance`** (Para validación de gate y trazabilidad)
|
|
28
29
|
|
|
29
30
|
## Output (REQUIRED)
|
|
30
31
|
- Research report (obligatorio, generado por researcher-agent):
|
|
@@ -149,6 +150,7 @@ Requisitos (todos obligatorios):
|
|
|
149
150
|
- `task.lifecycle.phases.phase-1-research.completed == true`
|
|
150
151
|
- `task.lifecycle.phases.phase-1-research.validated_at` no nulo
|
|
151
152
|
- `task.phase.updated_at` no nulo
|
|
153
|
+
6. **Gobernanza verificada**: El historial de logs muestra la secuencia de herramientas MCP definida en `skill.runtime-governance`.
|
|
152
154
|
|
|
153
155
|
Si Gate FAIL:
|
|
154
156
|
- Ejecutar **Paso 8 (FAIL)**.
|
|
@@ -19,6 +19,7 @@ blocking: true
|
|
|
19
19
|
> **Constitución activa (OBLIGATORIO)**:
|
|
20
20
|
> - Cargar `constitution.clean_code` antes de iniciar
|
|
21
21
|
> - Cargar `constitution.agents_behavior` (sección 7: Gates, sección 8: Constitución)
|
|
22
|
+
> - **Activar `skill.runtime-governance`** (Para validación de gate y trazabilidad por el Architect)
|
|
22
23
|
|
|
23
24
|
## Output (REQUIRED)
|
|
24
25
|
- Artefacto: `.agent/artifacts/<taskId>-<taskTitle>/brief.md`
|
|
@@ -102,6 +103,7 @@ Requisitos (todos obligatorios):
|
|
|
102
103
|
- `task.lifecycle.phases.short-phase-1-brief.completed == true`
|
|
103
104
|
- `task.lifecycle.phases.short-phase-1-brief.validated_at` no nulo
|
|
104
105
|
- `task.phase.updated_at` no nulo
|
|
106
|
+
8. **Gobernanza verificada**: El historial de logs muestra la secuencia de herramientas MCP definida en `skill.runtime-governance`.
|
|
105
107
|
|
|
106
108
|
Si Gate FAIL:
|
|
107
109
|
- Indicar qué requisito falta.
|
|
@@ -9,13 +9,19 @@ import { resolveCorePath, resolveInstalledCorePath } from '../../infrastructure/
|
|
|
9
9
|
export async function performCreate(type, name, force = false) {
|
|
10
10
|
const cwd = process.cwd();
|
|
11
11
|
const agentDir = path.join(cwd, '.agent');
|
|
12
|
-
const typeFolder = type === 'role' ? 'rules/roles' :
|
|
12
|
+
const typeFolder = type === 'role' ? 'rules/roles' :
|
|
13
|
+
type === 'workflow' ? 'workflows' :
|
|
14
|
+
type === 'skill' ? `skills/${name}` :
|
|
15
|
+
'tools';
|
|
13
16
|
const targetDir = path.join(agentDir, typeFolder);
|
|
14
|
-
const targetPath = path.join(targetDir, `${name}.md`);
|
|
17
|
+
const targetPath = type === 'skill' ? path.join(targetDir, 'SKILL.md') : path.join(targetDir, `${name}.md`);
|
|
15
18
|
try {
|
|
16
19
|
const corePath = (await resolveInstalledCorePath(cwd)) ?? await resolveCorePath();
|
|
17
|
-
const coreTypeFolder = type === 'role' ? 'rules/roles' :
|
|
18
|
-
|
|
20
|
+
const coreTypeFolder = type === 'role' ? 'rules/roles' :
|
|
21
|
+
type === 'workflow' ? 'workflows' :
|
|
22
|
+
type === 'skill' ? 'skills' :
|
|
23
|
+
'templates';
|
|
24
|
+
const reservedPath = type === 'skill' ? path.join(corePath, coreTypeFolder, name) : path.join(corePath, coreTypeFolder, `${name}.md`);
|
|
19
25
|
// 1. Reserved Namespace Check
|
|
20
26
|
try {
|
|
21
27
|
await fs.access(reservedPath);
|
|
@@ -80,6 +86,25 @@ severity: RECOMMENDED
|
|
|
80
86
|
|
|
81
87
|
## Output (REQUIRED)
|
|
82
88
|
- Expected result
|
|
89
|
+
`;
|
|
90
|
+
}
|
|
91
|
+
else if (type === 'skill') {
|
|
92
|
+
content = `# SKILL: ${name}
|
|
93
|
+
|
|
94
|
+
> [!NOTE]
|
|
95
|
+
> Define the identity and rules for this system skill.
|
|
96
|
+
|
|
97
|
+
## Objective
|
|
98
|
+
Explain what this skill enables the agent to do.
|
|
99
|
+
|
|
100
|
+
## 1. Capabilities
|
|
101
|
+
- (List technical capabilities here)
|
|
102
|
+
|
|
103
|
+
## 2. Execution Rules
|
|
104
|
+
1. (Add mandatory rules for using this skill)
|
|
105
|
+
|
|
106
|
+
## 3. Best Practices
|
|
107
|
+
- (Add usage recommendations)
|
|
83
108
|
`;
|
|
84
109
|
}
|
|
85
110
|
await fs.writeFile(targetPath, content);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../src/cli/commands/create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAC7D,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAClC,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EACL,eAAe,EACf,wBAAwB,EACzB,MAAM,0CAA0C,CAAC;AAElD;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,aAAa,CAAC,IAAY,EAAE,IAAY,EAAE,QAAiB,KAAK;
|
|
1
|
+
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../src/cli/commands/create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAC7D,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAClC,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EACL,eAAe,EACf,wBAAwB,EACzB,MAAM,0CAA0C,CAAC;AAElD;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,aAAa,CAAC,IAAY,EAAE,IAAY,EAAE,QAAiB,KAAK;IACpF,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,E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@
|
|
|
1
1
|
import { startRuntimeMcpServer } from '../../runtime/mcp/server.js';
|
|
2
|
+
import { checkMcpRegistration } from './register-mcp.js';
|
|
3
|
+
import { Logger } from '../../runtime/engine/logger.js';
|
|
2
4
|
export async function mcpCommand() {
|
|
5
|
+
const registration = await checkMcpRegistration();
|
|
6
|
+
if (!registration.antigravity && !registration.codex) {
|
|
7
|
+
Logger.warn('MCP', 'Server not registered in any MCP client. Run: agentic-workflow register-mcp');
|
|
8
|
+
}
|
|
3
9
|
await startRuntimeMcpServer();
|
|
4
10
|
}
|
|
5
11
|
//# sourceMappingURL=mcp.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp.js","sourceRoot":"","sources":["../../../src/cli/commands/mcp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"mcp.js","sourceRoot":"","sources":["../../../src/cli/commands/mcp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAExD,MAAM,CAAC,KAAK,UAAU,UAAU;IAC9B,MAAM,YAAY,GAAG,MAAM,oBAAoB,EAAE,CAAC;IAElD,IAAI,CAAC,YAAY,CAAC,WAAW,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,CAAC;QACrD,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,6EAA6E,CAAC,CAAC;IACpG,CAAC;IAED,MAAM,qBAAqB,EAAE,CAAC;AAChC,CAAC"}
|