@christianmaf80/agentic-workflow 1.2.0-beta.1

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.
Files changed (67) hide show
  1. package/LICENSE +15 -0
  2. package/README.es.md +88 -0
  3. package/README.md +88 -0
  4. package/bin/cli.js +44 -0
  5. package/dist/artifacts/index.md +28 -0
  6. package/dist/cli/commands/create.js +178 -0
  7. package/dist/cli/commands/init.js +212 -0
  8. package/dist/cli/commands/mcp-register.js +33 -0
  9. package/dist/cli/commands/restore.js +67 -0
  10. package/dist/cli/index.js +2 -0
  11. package/dist/core/context/manager.js +136 -0
  12. package/dist/core/index.js +1 -0
  13. package/dist/core/mapping/resolver.js +72 -0
  14. package/dist/core/migration/backup.js +14 -0
  15. package/dist/core/migration/detector.js +32 -0
  16. package/dist/core/migration/transformer.js +11 -0
  17. package/dist/core/utils/backup.js +41 -0
  18. package/dist/mcp/server.js +160 -0
  19. package/dist/rules/constitution/GEMINI.location.md +29 -0
  20. package/dist/rules/constitution/agent-system.md +77 -0
  21. package/dist/rules/constitution/agents-behavior.md +188 -0
  22. package/dist/rules/constitution/clean-code.md +153 -0
  23. package/dist/rules/constitution/index.md +29 -0
  24. package/dist/rules/constitution/project-architecture.md +57 -0
  25. package/dist/rules/index.md +26 -0
  26. package/dist/rules/roles/architect.md +40 -0
  27. package/dist/rules/roles/index.md +45 -0
  28. package/dist/rules/roles/neo.md +32 -0
  29. package/dist/rules/roles/qa.md +22 -0
  30. package/dist/rules/roles/researcher.md +22 -0
  31. package/dist/rules/roles/tooling.md +22 -0
  32. package/dist/templates/acceptance.md +64 -0
  33. package/dist/templates/agent-scores.md +25 -0
  34. package/dist/templates/agent-task.md +106 -0
  35. package/dist/templates/analysis.md +161 -0
  36. package/dist/templates/brief.md +96 -0
  37. package/dist/templates/changelog.md +30 -0
  38. package/dist/templates/closure.md +87 -0
  39. package/dist/templates/index.md +45 -0
  40. package/dist/templates/init.md +26 -0
  41. package/dist/templates/planning.md +157 -0
  42. package/dist/templates/research.md +89 -0
  43. package/dist/templates/results-acceptance.md +177 -0
  44. package/dist/templates/review.md +110 -0
  45. package/dist/templates/subtask-implementation.md +67 -0
  46. package/dist/templates/supplemental-report.md +30 -0
  47. package/dist/templates/task-metrics.md +39 -0
  48. package/dist/templates/task.md +151 -0
  49. package/dist/templates/todo-item.md +49 -0
  50. package/dist/templates/verification.md +77 -0
  51. package/dist/workflows/index.md +44 -0
  52. package/dist/workflows/init.md +61 -0
  53. package/dist/workflows/tasklifecycle-long/index.md +176 -0
  54. package/dist/workflows/tasklifecycle-long/phase-0-acceptance-criteria.md +161 -0
  55. package/dist/workflows/tasklifecycle-long/phase-1-research.md +151 -0
  56. package/dist/workflows/tasklifecycle-long/phase-2-analysis.md +136 -0
  57. package/dist/workflows/tasklifecycle-long/phase-3-planning.md +121 -0
  58. package/dist/workflows/tasklifecycle-long/phase-4-implementation.md +104 -0
  59. package/dist/workflows/tasklifecycle-long/phase-5-verification.md +82 -0
  60. package/dist/workflows/tasklifecycle-long/phase-6-results-acceptance.md +79 -0
  61. package/dist/workflows/tasklifecycle-long/phase-7-evaluation.md +85 -0
  62. package/dist/workflows/tasklifecycle-long/phase-8-commit-push.md +80 -0
  63. package/dist/workflows/tasklifecycle-short/index.md +67 -0
  64. package/dist/workflows/tasklifecycle-short/short-phase-1-brief.md +66 -0
  65. package/dist/workflows/tasklifecycle-short/short-phase-2-implementation.md +72 -0
  66. package/dist/workflows/tasklifecycle-short/short-phase-3-closure.md +67 -0
  67. package/package.json +53 -0
@@ -0,0 +1,22 @@
1
+ ---
2
+ id: role.researcher-agent
3
+ type: rule
4
+ owner: architect-agent
5
+ version: 1.1.0
6
+ severity: PERMANENT
7
+ scope: global
8
+ ---
9
+
10
+ # ROLE: researcher-agent (Workflow Research)
11
+
12
+ ## Identidad
13
+ Eres el **researcher-agent** del sistema de orquestación.
14
+
15
+ ## Reglas de ejecución (PERMANENT)
16
+ 1. **Identificación Obligatoria**: DEBES iniciar TODAS tus respuestas con el prefijo: `🔬 **researcher-agent**:`.
17
+ 2. Investigar alternativas y APIs relevantes.
18
+ 3. No implementar código ni proponer soluciones analíticas (solo documentar).
19
+
20
+ ## Disciplina Agéntica (PERMANENT)
21
+ 1. **Evidencia ante todo**: Cita siempre fuentes oficiales (MDN, etc.).
22
+ 2. **Neutralidad**: Documenta sin sesgo de implementación.
@@ -0,0 +1,22 @@
1
+ ---
2
+ id: role.tooling-agent
3
+ type: rule
4
+ owner: architect-agent
5
+ version: 1.1.0
6
+ severity: PERMANENT
7
+ scope: global
8
+ ---
9
+
10
+ # ROLE: tooling-agent (Workflow Tooling)
11
+
12
+ ## Identidad
13
+ Eres el **tooling-agent** del sistema de orquestación.
14
+
15
+ ## Reglas de ejecución (PERMANENT)
16
+ 1. **Identificación Obligatoria**: DEBES iniciar TODAS tus respuestas con el prefijo: `⚙️ **tooling-agent**:`.
17
+ 2. Gestionar automatizaciones, scripts y entornos de desarrollo.
18
+ 3. Asegurar que las herramientas funcionen según el plan.
19
+
20
+ ## Disciplina Agéntica (PERMANENT)
21
+ 1. **Eficiencia**: Automatiza procesos repetitivos sin romper la arquitectura.
22
+ 2. **Orden**: Mantén los scripts y herramientas documentados.
@@ -0,0 +1,64 @@
1
+ # Acceptance Criteria — {{task.id}}-{{task.title}}
2
+
3
+ ## Agent Identification (MANDATORY)
4
+ First line of the document:
5
+ `<icon> **<agent-name>**: <message>`
6
+
7
+ ## 1. Consolidated Definition
8
+ {{consolidated_definition}}
9
+
10
+ ## 2. Answers to Clarification Questions
11
+ > This section documents the developer's answers to the 5 questions formulated by the architect-agent.
12
+
13
+ | # | Question (formulated by architect) | Answer (from developer) |
14
+ |---|-----------------------------------|-------------------------|
15
+ | 1 | {{question.1}} | {{answer.1}} |
16
+ | 2 | {{question.2}} | {{answer.2}} |
17
+ | 3 | {{question.3}} | {{answer.3}} |
18
+ | 4 | {{question.4}} | {{answer.4}} |
19
+ | 5 | {{question.5}} | {{answer.5}} |
20
+
21
+ ---
22
+
23
+ ## 3. Verifiable Acceptance Criteria
24
+ > List of criteria derived from the previous answers that must be verified in Phase 5.
25
+
26
+ 1. Scope:
27
+ - {{acceptance.scope}}
28
+
29
+ 2. Inputs / Data:
30
+ - {{acceptance.inputs}}
31
+
32
+ 3. Outputs / Expected Result:
33
+ - {{acceptance.outputs}}
34
+
35
+ 4. Constraints:
36
+ - {{acceptance.constraints}}
37
+
38
+ 5. Acceptance Criteria (Done):
39
+ - {{acceptance.done}}
40
+
41
+ ---
42
+
43
+ ## Approval (Gate 0)
44
+ This document constitutes the task contract. Its approval is blocking for moving to Phase 1.
45
+
46
+ ```yaml
47
+ approval:
48
+ developer:
49
+ decision: null # YES | NO
50
+ date: null
51
+ comments: null
52
+ ```
53
+
54
+ ---
55
+
56
+ ## Validation History (Phase 0)
57
+ ```yaml
58
+ history:
59
+ - phase: "phase-0-acceptance-criteria"
60
+ action: "completed"
61
+ validated_by: "architect-agent"
62
+ timestamp: "{{timestamp}}"
63
+ notes: "Acceptance criteria defined"
64
+ ```
@@ -0,0 +1,25 @@
1
+ ---
2
+ artifact: agent_scores
3
+ owner: architect-agent
4
+ status: ongoing
5
+ ---
6
+
7
+ # Agent Scores — <taskId>-<taskTitle>
8
+
9
+ ## Agent Identification (MANDATORY)
10
+ First line of the document:
11
+ `<icon> **<agent-name>**: <message>`
12
+
13
+ ## 1. Summary per Agent
14
+ - **Agent A**
15
+ - scores: [taskId-score, ...]
16
+ - average: value
17
+ - **Agent B**
18
+ - scores: [taskId-score, ...]
19
+ - average: value
20
+
21
+ ---
22
+
23
+ ## 2. Global Summary
24
+ - Overall Task Average: value
25
+ - Last Update: <ISO-8601>
@@ -0,0 +1,106 @@
1
+ ---
2
+ artifact: agent_task
3
+ phase: phase-4-implementation
4
+ owner: {{agent}}
5
+ assigned_to: {{agent}}
6
+ status: blocked | pending_reasoning_approval | in-progress | completed | failed
7
+ related_task: {{taskId}}-{{taskTitle}}
8
+ task_id: "{{taskId}}-{{N}}"
9
+ ---
10
+
11
+ ################################################################################
12
+ # 🛑 SECURITY BLOCK: TASK NOT ACTIVATED #
13
+ ################################################################################
14
+ # Agent {{agent}} has been assigned to this task. #
15
+ # #
16
+ # FORBIDDEN TO USE WRITING OR EXECUTION TOOLS (run, write, create). #
17
+ # Required action: Developer must respond with "YES" to activate. #
18
+ ################################################################################
19
+
20
+ # Agent Task — {{taskId}}-{{N}} ({{taskName}})
21
+
22
+ ## 1. Input (REQUIRED)
23
+ - **Objective**: {{objective}}
24
+ - **Scope**: {{scope}}
25
+ - **Dependencies**: {{dependencies}}
26
+
27
+ ---
28
+
29
+ ## 2. Reasoning (AWAITING ACTIVATION)
30
+
31
+ > [!IMPORTANT]
32
+ > The agent **MUST** complete this section AFTER being activated (Gate A) and BEFORE executing (Gate B).
33
+
34
+ ### Objective Analysis
35
+ - (What exactly is being requested?)
36
+
37
+ ### Options Considered
38
+ - **Option A**: (description)
39
+ - **Option B**: (description)
40
+
41
+ ### Decision Made
42
+ - **Chosen Option**: (A/B)
43
+ - **Justification**: (why)
44
+
45
+ ---
46
+
47
+ ## 3. Output (REQUIRED)
48
+ - **Deliverables**:
49
+ - {{deliverables}}
50
+ - **Required Evidence**:
51
+ - {{evidence}}
52
+
53
+ ---
54
+
55
+ ## 4. Implementation Report
56
+
57
+ > This section is completed by the assigned agent during execution.
58
+
59
+ ### Changes Made
60
+ - (Modified files, added functions, etc.)
61
+
62
+ ### Technical Decisions
63
+ - (Key decisions and justification)
64
+
65
+ ### Evidence
66
+ - (Logs, screenshots, executed tests)
67
+
68
+ ---
69
+
70
+ ## Gate A: Agent Activation (Handover)
71
+
72
+ The developer **MUST** activate the agent before they can present their reasoning or use tools.
73
+
74
+ ```yaml
75
+ activation:
76
+ agent: {{agent}}
77
+ assigned_by: architect-agent
78
+ decision: null # YES | NO
79
+ ```
80
+
81
+ ## Gate B: Reasoning Approval (Action Plan)
82
+
83
+ The developer **MUST** approve the reasoning before the agent proceeds with the implementation.
84
+
85
+ ```yaml
86
+ reasoning_approval:
87
+ agent: {{agent}}
88
+ decision: null # YES | NO
89
+ ```
90
+
91
+ ## Gate C: Results Approval (Closure)
92
+
93
+ ```yaml
94
+ completion:
95
+ agent: {{agent}}
96
+ decision: null # YES | NO
97
+ ```
98
+
99
+ ---
100
+
101
+ ## Contractual Rules (AHRP)
102
+
103
+ 1. **Synchronous Gate A**: Forbidden to use tools without `YES` activation.
104
+ 2. **Synchronous Gate B**: Forbidden to modify code without `YES` Reasoning approval.
105
+ 3. **Metrics**: Failure of any Gate results in an immediate **Score of 0**.
106
+ 4. The assigned agent **CANNOT modify** the Input or Output defined by the architect.
@@ -0,0 +1,161 @@
1
+ ---
2
+ artifact: analysis
3
+ phase: phase-2-analysis
4
+ owner: architect-agent
5
+ status: draft | approved
6
+ related_task: <taskId>-<taskTitle>
7
+ ---
8
+
9
+ # Analysis — <taskId>-<taskTitle>
10
+
11
+ ## Agent Identification (MANDATORY)
12
+ First line of the document:
13
+ `<icon> **<agent-name>**: <message>`
14
+
15
+ ## 1. Executive Summary
16
+ **Problem**
17
+ - Briefly describe the problem the task solves.
18
+
19
+ **Objective**
20
+ - Main objective of the task (from `task.md`).
21
+
22
+ **Success Criteria**
23
+ - What conditions must be met for this analysis to be considered valid
24
+ (direct reference to acceptance criteria).
25
+
26
+ ---
27
+
28
+ ## 2. Project State (As-Is)
29
+ Describe the actual state of the project **before implementing anything**.
30
+
31
+ - **Relevant Structure**
32
+ - Affected folders, modules, drivers, or areas.
33
+ - **Existing Drivers**
34
+ - Current state, responsibilities, and limitations.
35
+ - **Core / Engine / Surfaces**
36
+ - Which parts of the core are involved (if applicable).
37
+ - **Artifacts / Previous Tasks**
38
+ - Existing tasks that influence or condition this one.
39
+ - **Detected Limitations**
40
+ - Technical, structural, or organizational limitations.
41
+
42
+ ---
43
+
44
+ ## 3. Acceptance Criteria Coverage
45
+ For **each acceptance criteria** defined in `task.md`:
46
+
47
+ ### AC-X
48
+ - **Interpretation**
49
+ - how this criterion is understood in the current context.
50
+ - **Verification**
51
+ - how it will be verified that it is met.
52
+ - **Risks / Ambiguities**
53
+ - what can fail or what might not be clear.
54
+
55
+ (Repeat for all ACs)
56
+
57
+ ---
58
+
59
+ ## 4. Technical Research
60
+ Analysis of possible alternatives and approaches.
61
+
62
+ - **Alternative A**
63
+ - Description
64
+ - Pros
65
+ - Cons
66
+ - **Alternative B**
67
+ - Description
68
+ - Pros
69
+ - Cons
70
+
71
+ **Recommended Decision (if applicable)**
72
+ - Preferred approach and justification.
73
+ - If not yet decided, explain why.
74
+
75
+ ---
76
+
77
+ ## 5. Participating Agents
78
+ Explicit list of agents required to execute the task.
79
+
80
+ - **Agent A**
81
+ - Responsibilities
82
+ - Assigned sub-areas
83
+ - **Agent B**
84
+ - Responsibilities
85
+ - Assigned sub-areas
86
+
87
+ **Handoffs**
88
+ - How information or results are transferred between agents.
89
+
90
+ **Required Components**
91
+ - Indicate if creating, modifying, or deleting components (drivers, modules, etc.) is required.
92
+ - Reference the impact and dependency with the implementation plan.
93
+
94
+ **Demo (if applicable)**
95
+ - Indicate if a demo needs to be created.
96
+ - Justify the need and alignment with `constitution.project_architecture`.
97
+
98
+ ---
99
+
100
+ ## 6. Task Impact
101
+ Evaluation of the expected impact if the task is implemented.
102
+
103
+ - **Architecture**
104
+ - Expected structural changes.
105
+ - **APIs / Contracts**
106
+ - Changes to public interfaces (if applicable).
107
+ - **Compatibility**
108
+ - Risks of breaking changes.
109
+ - **Testing / Verification**
110
+ - What kind of tests will be necessary.
111
+
112
+ ---
113
+
114
+ ## 7. Risks and Mitigations
115
+ - **Risk 1**
116
+ - Impact
117
+ - Mitigation
118
+ - **Risk 2**
119
+ - Impact
120
+ - Mitigation
121
+
122
+ ---
123
+
124
+ ## 8. Open Questions
125
+ (Only if any exist; ideally empty after Phase 0)
126
+
127
+ - Question 1
128
+ - Question 2
129
+
130
+ ---
131
+
132
+ ## 9. TODO Backlog (Mandatory Consultation)
133
+
134
+ > [!IMPORTANT]
135
+ > The architect-agent **MUST** consult `.agent/todo/` before completing the analysis.
136
+
137
+ **Reference**: `.agent/todo/`
138
+
139
+ **Current Status**: (empty | N pending items)
140
+
141
+ **Items Relevant to this Task**:
142
+ - (List backlog items that impact the current task)
143
+ - (If no relevant items, state "None")
144
+
145
+ **Impact on Analysis**:
146
+ - (Describe how backlog items affect the proposed alternatives)
147
+
148
+ ---
149
+
150
+ ## 10. Approval
151
+ This analysis **requires explicit developer approval**.
152
+
153
+ ```yaml
154
+ approval:
155
+ developer:
156
+ decision: YES | NO
157
+ date: <ISO-8601>
158
+ comments: <optional>
159
+ ```
160
+
161
+ > Without approval, this phase **CANNOT be considered complete** or move to Phase 3.
@@ -0,0 +1,96 @@
1
+ ---
2
+ artifact: brief
3
+ phase: short-phase-1-brief
4
+ owner: architect-agent
5
+ status: draft | approved
6
+ related_task: <taskId>-<taskTitle>
7
+ ---
8
+
9
+ # Brief — <taskId>-<taskTitle>
10
+
11
+ ## Agent Identification (MANDATORY)
12
+ First line of the document:
13
+ `<icon> **<agent-name>**: <message>`
14
+
15
+ ## 1. Task Identification
16
+
17
+ **Title**: <task title>
18
+ **Objective**: <main objective>
19
+ **Strategy**: Short
20
+
21
+ ---
22
+
23
+ ## 2. The 5 Mandatory Questions
24
+
25
+ | # | Question (formulated by architect) | Answer (from developer) |
26
+ |---|-----------------------------------|-------------------------|
27
+ | 1 | | |
28
+ | 2 | | |
29
+ | 3 | | |
30
+ | 4 | | |
31
+ | 5 | | |
32
+
33
+ ---
34
+
35
+ ## 3. Acceptance Criteria
36
+
37
+ Derived from the previous answers:
38
+
39
+ 1. **Scope**:
40
+ 2. **Inputs/Data**:
41
+ 3. **Expected Outputs**:
42
+ 4. **Constraints**:
43
+ 5. **Done Criteria**:
44
+
45
+ ---
46
+
47
+ ## 4. Simplified Analysis
48
+
49
+ ### Current State (As-Is)
50
+ - Affected structure:
51
+ - Known limitations:
52
+
53
+ ### Complexity Evaluation
54
+
55
+ | Indicator | Status | Comment |
56
+ |-----------|--------|---------|
57
+ | Affects more than 3 packages | ☐ Yes ☐ No | |
58
+ | Requires API research | ☐ Yes ☐ No | |
59
+ | Breaking changes | ☐ Yes ☐ No | |
60
+ | Complex E2E tests | ☐ Yes ☐ No | |
61
+
62
+ **Complexity Result**: ☐ LOW (continue Short) ☐ HIGH (recommend aborting to Long)
63
+
64
+ ---
65
+
66
+ ## 5. Implementation Plan
67
+
68
+ ### Ordered Steps
69
+
70
+ 1. **Step 1**
71
+ - Description:
72
+ - Deliverables:
73
+
74
+ 2. **Step 2**
75
+ - Description:
76
+ - Deliverables:
77
+
78
+ (Add more steps as needed)
79
+
80
+ ### Planned Verification
81
+ - Test types:
82
+ - Success criteria:
83
+
84
+ ---
85
+
86
+ ## 6. Developer Approval (MANDATORY)
87
+
88
+ ```yaml
89
+ approval:
90
+ developer:
91
+ decision: YES | NO
92
+ date: <ISO-8601>
93
+ comments: <optional>
94
+ ```
95
+
96
+ > Without approval, this phase CANNOT move to Implementation.
@@ -0,0 +1,30 @@
1
+ ---
2
+ artifact: changelog
3
+ phase: phase-8-commit-push
4
+ owner: architect-agent
5
+ status: draft | approved
6
+ related_task: <taskId>-<taskTitle>
7
+ target_branch: <branch-name>
8
+ ---
9
+
10
+ # Changelog — <taskId>-<taskTitle>
11
+
12
+ ## Agent Identification (MANDATORY)
13
+ First line of the document:
14
+ `<icon> **<agent-name>**: <message>`
15
+
16
+ ## 1. General Summary
17
+ Short and clear description of the changes introduced by this task.
18
+
19
+ - **Task Objective**:
20
+ - **Main Impact**:
21
+ - **Affected Areas** (modules, drivers, workflows, etc.):
22
+
23
+ ---
24
+
25
+ ## 2. Included Commits
26
+ Full and ordered list of commits performed.
27
+
28
+ ### Commit 1
29
+ - **Hash**: `<commit-hash>`
30
+ - **Message (Conventional Commit)**:
@@ -0,0 +1,87 @@
1
+ ---
2
+ artifact: closure
3
+ phase: short-phase-3-closure
4
+ owner: architect-agent
5
+ status: draft | approved
6
+ related_task: <taskId>-<taskTitle>
7
+ ---
8
+
9
+ # Closure — <taskId>-<taskTitle>
10
+
11
+ ## Agent Identification (MANDATORY)
12
+ First line of the document:
13
+ `<icon> **<agent-name>**: <message>`
14
+
15
+ ## 1. Task Summary
16
+
17
+ **Title**: <title>
18
+ **Strategy**: Short
19
+ **Final Status**: ☐ Completed ☐ Aborted
20
+
21
+ ---
22
+
23
+ ## 2. Verification
24
+
25
+ ### Executed Tests
26
+
27
+ | Type | Command/Method | Result |
28
+ |------|----------------|--------|
29
+ | Unit | | ☐ Pass ☐ Fail ☐ N/A |
30
+ | Integration | | ☐ Pass ☐ Fail ☐ N/A |
31
+ | E2E | | ☐ Pass ☐ Fail ☐ N/A |
32
+
33
+ ### Justification (if no tests)
34
+ <Explain why tests do not apply>
35
+
36
+ ---
37
+
38
+ ## 3. Acceptance Criteria Status
39
+
40
+ | AC | Description | Status |
41
+ |----|-------------|--------|
42
+ | 1 | | ☐ ✅ ☐ ❌ |
43
+ | 2 | | ☐ ✅ ☐ ❌ |
44
+ | 3 | | ☐ ✅ ☐ ❌ |
45
+ | 4 | | ☐ ✅ ☐ ❌ |
46
+ | 5 | | ☐ ✅ ☐ ❌ |
47
+
48
+ ---
49
+
50
+ ## 4. Changes Made
51
+
52
+ ### Modified/Created Files
53
+
54
+ | File | Action | Description |
55
+ |------|--------|-------------|
56
+ | | Created/Modified/Deleted | |
57
+
58
+ ### Commits (if applicable)
59
+
60
+ ```
61
+ <type>(<scope>): <description>
62
+ ```
63
+
64
+ ---
65
+
66
+ ## 5. Developer's Final Acceptance (MANDATORY)
67
+
68
+ ```yaml
69
+ approval:
70
+ developer:
71
+ decision: YES | NO
72
+ date: <ISO-8601>
73
+ comments: <optional>
74
+ ```
75
+
76
+ > Without acceptance, the task CANNOT be marked as completed.
77
+
78
+ ---
79
+
80
+ ## 6. Final Push (if applicable)
81
+
82
+ ```yaml
83
+ push:
84
+ approved: YES | NO
85
+ branch: <target branch>
86
+ date: <ISO-8601>
87
+ ```
@@ -0,0 +1,45 @@
1
+ ---
2
+ id: templates.index
3
+ owner: architect-agent
4
+ version: 1.0.0
5
+ severity: PERMANENT
6
+ ---
7
+
8
+ # INDEX — Templates
9
+
10
+ ## Agent Identification (MANDATORY)
11
+ First line of the document:
12
+ `<icon> **<agent-name>**: <message>`
13
+ (Agentic System)
14
+
15
+ ## Objective
16
+ Enumerate the contractual templates of the agentic system.
17
+ Must be referenced via aliases.
18
+
19
+ ## Aliases (YAML)
20
+ ```yaml
21
+ templates:
22
+ task: .agent/templates/task.md
23
+ acceptance: .agent/templates/acceptance.md
24
+ init: .agent/templates/init.md
25
+ analysis: .agent/templates/analysis.md
26
+ planning: .agent/templates/planning.md
27
+ subtask_implementation: .agent/templates/subtask-implementation.md
28
+ review: .agent/templates/review.md
29
+ verification: .agent/templates/verification.md
30
+ results_acceptance: .agent/templates/results-acceptance.md
31
+ task_metrics: .agent/templates/task-metrics.md
32
+ agent_scores: .agent/templates/agent-scores.md
33
+ research: .agent/templates/research.md
34
+ agent_task: .agent/templates/agent-task.md
35
+ todo_item: .agent/templates/todo-item.md
36
+ changelog: .agent/templates/changelog.md
37
+ supplemental_report: .agent/templates/supplemental-report.md
38
+
39
+ # Short Cycle
40
+ brief: .agent/templates/brief.md
41
+ closure: .agent/templates/closure.md
42
+ ```
43
+
44
+ ## Rules
45
+ - Any new template **MUST** be added here.
@@ -0,0 +1,26 @@
1
+ # init bootstrap
2
+
3
+ ## Agent Identification (MANDATORY)
4
+ First line of the document:
5
+ `<icon> **<agent-name>**: <message>`
6
+
7
+ - command: {{command}}
8
+ - role.architect: {{architectAgentId}}
9
+ - constitution.loaded.in_context: true
10
+
11
+ ## Constitution (load order)
12
+ 1. {{constitutionPaths[0]}}
13
+ 2. {{constitutionPaths[1]}}
14
+ 3. {{constitutionPaths[2]}}
15
+
16
+ ```yaml
17
+ bootstrap:
18
+ done: true
19
+ roles:
20
+ architect: {{architectAgentId}}
21
+ constitution:
22
+ loaded:
23
+ - {{constitutionPaths[0]}}
24
+ - {{constitutionPaths[1]}}
25
+ - {{constitutionPaths[2]}}
26
+ ```