@christianmaf80/agentic-workflow 1.25.3-beta.3 → 1.25.3-beta.5

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.
@@ -1,9 +1,10 @@
1
1
  ---
2
- kind: template
3
- name: init
4
- source: agentic-system-structure
2
+ id: task.init
3
+ title: Initialization
4
+ owner: {{architectAgentId}}
5
+ phase:
6
+ current: init
5
7
  ---
6
-
7
8
  # init bootstrap
8
9
 
9
10
  - command: {{command}}
@@ -1,15 +1,14 @@
1
1
  ---
2
2
  id: workflow.init
3
- description: "Workflow obligatorio de setup: carga constitutions base y define el idioma de conversación y la estrategia Long/Short."
4
3
  owner: architect-agent
5
4
  version: 4.0.0
6
5
  severity: PERMANENT
6
+ description: "Workflow obligatorio de setup: carga constitutions base y define el idioma de conversación y la estrategia Long/Short."
7
7
  trigger:
8
8
  commands: ["init", "/init", "/agentic-init"]
9
9
  blocking: true
10
10
  ---
11
11
 
12
-
13
12
  # WORKFLOW: init
14
13
 
15
14
  ## Input (REQUIRED)
@@ -43,10 +42,14 @@ El agente **DEBE** adherirse a estas meta-reglas de comportamiento durante TODA
43
42
  - Si el usuario pide saltarse pasos, el agente **DEBE** recordar las reglas de constitución y rechazar amablemente el atajo.
44
43
 
45
44
  ## Pasos obligatorios
46
- 0. **Verificar Trazabilidad (OBLIGATORIO)**:
47
- - Activar y seguir el procedimiento de `skill.runtime-governance` para confirmar la disponibilidad de herramientas MCP.
48
- - El agente **DEBE** confirmar que la herramienta respondió correctamente antes de proceder.
49
- - Si el skill o las herramientas no están disponibles → FAIL.
45
+ 0. **Verificar Trazabilidad e Iniciar Runtime (OBLIGATORIO)**:
46
+ - Antes de cualquier acción, verificar conectividad MCP mediante `runtime_chat`.
47
+ - **Inmediatamente después**, llamar a `runtime.run` con:
48
+ - `taskPath`: Ruta al artefacto init que se creará (`.agent/artifacts/candidate/init.md`)
49
+ - `agent`: `architect-agent`
50
+ - El agente **DEBE** confirmar que ambas herramientas respondieron correctamente (`status: ok`).
51
+ - **PROHIBICIÓN ESTRICTA**: No se permite consolidar este paso con la creación de artefactos en una misma respuesta. El agente debe esperar la confirmación del sistema antes de proceder al paso 1.
52
+ - Si las herramientas MCP no están disponibles → ir a **Paso 9 (FAIL)**, a menos que el desarrollador autorice explícitamente el fallback.
50
53
 
51
54
  1. Activar `architect-agent` como rol arquitecto.
52
55
  - Mostrar un mensaje único de estado (ej: "Cargando init...") y **no** listar lecturas de ficheros individuales.
@@ -82,12 +85,19 @@ El agente **DEBE** adherirse a estas meta-reglas de comportamiento durante TODA
82
85
  - `templates.init`
83
86
  - Todos los campos obligatorios del template **DEBEN** completarse.
84
87
  - Incluir el campo `strategy: long | short`.
88
+ - **REQUISITO DE TRAZABILIDAD**: Incluir una confirmación explícita de que el Paso 0 (MCP) fue ejecutado correctamente.
85
89
  - No se permite modificar, omitir ni reinterpretar la estructura del template.
86
90
 
87
91
  7. Escribir el fichero en:
88
92
  - `artifacts.candidate.init`
89
93
 
90
- 8. Evaluar Gate.
94
+ 8. **Validar Gate con Runtime (OBLIGATORIO)**:
95
+ - **ANTES** de evaluar el Gate, el agente **DEBE** llamar a `runtime.validate_gate` con:
96
+ - `taskPath`: `.agent/artifacts/candidate/init.md`
97
+ - `agent`: `architect-agent`
98
+ - `expectedPhase`: `init`
99
+ - **Opcionalmente**, usar `debug_read_logs` para auditar que los pasos previos fueron registrados.
100
+ - Evaluar Gate según los requisitos definidos.
91
101
  - Si Gate FAIL → ir a **Paso 9 (FAIL)**.
92
102
  - Si Gate PASS → continuar.
93
103
 
@@ -117,10 +127,15 @@ Requisitos (todos obligatorios):
117
127
  - `language.value` no vacío
118
128
  - `language.confirmed == true`
119
129
  - `strategy` es "long" o "short"
120
- - **`traceability.verified == true`** (Confirma cumplimiento del protocolo de `skill.runtime-governance`)
130
+ - **`traceability.verified == true`** (Confirma cumplimiento del Paso 0)
131
+ - **`runtime.started == true`** (Confirma que `runtime.run` fue llamado)
121
132
  3) El artefacto cumple el template oficial.
122
133
  4) Idioma definido y confirmado.
123
134
  5) Estrategia seleccionada.
124
- 6) **Trazabilidad confirmada**: El agente ha verificado la disponibilidad de herramientas MCP siguiendo las instrucciones del Skill de Gobernanza.
135
+ 6) **Trazabilidad completa**:
136
+ - El agente ha verificado conectividad MCP (`runtime_chat`).
137
+ - El agente ha llamado `runtime.run` para iniciar el workflow.
138
+ - El agente ha llamado `runtime.validate_gate` antes de evaluar el Gate.
125
139
  7) No se cargaron índices fuera del set permitido (solo `.agent/index.md`, `agent.domains.rules.index`, `rules.constitution.index`).
126
140
  8) El Root Index `.agent/index.md` fue cargado antes de cualquier otro índice.
141
+ 9) **Auditoría de logs**: Los pasos del workflow deben estar registrados en el buffer de logs del runtime.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@christianmaf80/agentic-workflow",
3
- "version": "1.25.3-beta.3",
3
+ "version": "1.25.3-beta.5",
4
4
  "description": "Portable agentic workflow orchestration system with strict identity and gate discipline",
5
5
  "type": "module",
6
6
  "displayName": "Agentic Workflow",
@@ -83,7 +83,7 @@
83
83
  "author": "Christian Marino Alvarez",
84
84
  "license": "ISC",
85
85
  "dependencies": {
86
- "@christianmaf80/agentic-workflow": "1.24.0-beta.3",
86
+ "@christianmaf80/agentic-workflow": "1.25.3-beta.4",
87
87
  "@clack/prompts": "^0.7.0",
88
88
  "commander": "^11.1.0",
89
89
  "gray-matter": "^4.0.3",
@@ -104,4 +104,4 @@
104
104
  "overrides": {
105
105
  "diff": "8.0.3"
106
106
  }
107
- }
107
+ }