@ludecker/aaac 1.0.0 → 1.1.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.
- package/README.md +4 -3
- package/package.json +13 -1
- package/src/cli.mjs +39 -5
- package/src/generators/generate-commands.mjs +120 -3
- package/src/generators/generate-graph.mjs +17 -0
- package/src/lib/install.mjs +1 -0
- package/src/lib/run-engine-paths.mjs +33 -0
- package/src/run-engine/advance-phase.mjs +343 -0
- package/src/run-engine/capability-evidence.mjs +460 -0
- package/src/run-engine/debug-run.mjs +38 -0
- package/src/run-engine/gate-write.mjs +95 -0
- package/src/run-engine/init-run.mjs +215 -0
- package/src/run-engine/lib.mjs +141 -0
- package/src/run-engine/log-dump.mjs +76 -0
- package/src/run-engine/log-trace.mjs +18 -0
- package/src/run-engine/log.mjs +343 -0
- package/src/run-engine/record-task.mjs +56 -0
- package/src/run-engine/stop-check.mjs +55 -0
- package/src/run-engine/verify-website-build.mjs +148 -0
- package/templates/cursor/aaac/capabilities/promotion-rules.json +64 -0
- package/templates/cursor/aaac/capabilities/registry.json +17 -15
- package/templates/cursor/aaac/complexity.yaml +98 -0
- package/templates/cursor/aaac/contracts/commands/fix-bug.yaml +10 -3
- package/templates/cursor/aaac/contracts/commands/fix-module.yaml +41 -0
- package/templates/cursor/aaac/contracts/skills/investigation.yaml +22 -1
- package/templates/cursor/aaac/contracts/skills/planning.yaml +17 -0
- package/templates/cursor/aaac/contracts/skills/validation.yaml +9 -1
- package/templates/cursor/aaac/dispatch.md +31 -6
- package/templates/cursor/aaac/enforcement.json +25 -0
- package/templates/cursor/aaac/fitness-functions.yaml +8 -0
- package/templates/cursor/aaac/governance/gates.json +6 -2
- package/templates/cursor/aaac/graph.project.yaml +237 -5
- package/templates/cursor/aaac/layers.md +6 -1
- package/templates/cursor/aaac/lifecycle/lifecycle.json +41 -1
- package/templates/cursor/aaac/lifecycle/phases.json +1 -0
- package/templates/cursor/aaac/observability/telemetry.yaml +63 -0
- package/templates/cursor/aaac/observability/verb-debug.yaml +170 -0
- package/templates/cursor/aaac/ontology.json +10 -1
- package/templates/cursor/aaac/run/RUN.md +2 -0
- package/templates/cursor/aaac/run/schema.json +11 -0
- package/templates/cursor/aaac/scripts/generate-runtime-registry.mjs +115 -0
- package/templates/cursor/aaac/scripts/run-engine/advance-phase.mjs +343 -0
- package/templates/cursor/aaac/scripts/run-engine/capability-evidence.mjs +460 -0
- package/templates/cursor/aaac/scripts/run-engine/debug-run.mjs +38 -0
- package/templates/cursor/aaac/scripts/run-engine/gate-write.mjs +95 -0
- package/templates/cursor/aaac/scripts/run-engine/init-run.mjs +215 -0
- package/templates/cursor/aaac/scripts/run-engine/lib.mjs +141 -0
- package/templates/cursor/aaac/scripts/run-engine/log-dump.mjs +76 -0
- package/templates/cursor/aaac/scripts/run-engine/log-trace.mjs +18 -0
- package/templates/cursor/aaac/scripts/run-engine/log.mjs +343 -0
- package/templates/cursor/aaac/scripts/run-engine/record-task.mjs +56 -0
- package/templates/cursor/aaac/scripts/run-engine/stop-check.mjs +55 -0
- package/templates/cursor/aaac/scripts/run-engine/verify-website-build.mjs +148 -0
- package/templates/cursor/aaac/state/capability-stats.json +5 -0
- package/templates/cursor/agents/aaac-log-debug.md +72 -0
- package/templates/cursor/agents/fix-code-path.md +27 -0
- package/templates/cursor/agents/fix-hypothesis-validate.md +26 -0
- package/templates/cursor/agents/fix-inventory-confirm.md +22 -0
- package/templates/cursor/agents/fix-recent-changes.md +22 -0
- package/templates/cursor/agents/fix-regression-scope.md +27 -0
- package/templates/cursor/agents/fix-repro-verify.md +21 -0
- package/templates/cursor/agents/fix-repro.md +29 -0
- package/templates/cursor/agents/fix-runtime-evidence.md +22 -0
- package/templates/cursor/agents/fix-test-failures.md +23 -0
- package/templates/cursor/agents/playwright-check-run.md +44 -0
- package/templates/cursor/hooks/aaac-before-submit.sh +3 -0
- package/templates/cursor/hooks/aaac-pre-tool.sh +4 -0
- package/templates/cursor/hooks/aaac-stop.sh +3 -0
- package/templates/cursor/hooks/aaac-subagent-start.sh +3 -0
- package/templates/cursor/hooks.json +30 -0
- package/templates/cursor/policies/minimal-complexity.md +101 -0
- package/templates/cursor/rules/aaac-enforcement.mdc +42 -0
- package/templates/cursor/skills/shared/execution/SKILL.md +1 -1
- package/templates/cursor/skills/shared/fitness-functions/SKILL.md +23 -7
- package/templates/cursor/skills/shared/investigation/SKILL.md +91 -18
- package/templates/cursor/skills/shared/investigation/orchestrator/SKILL.md +12 -4
- package/templates/cursor/skills/shared/planning/SKILL.md +74 -8
- package/templates/cursor/skills/shared/platform-release/SKILL.md +22 -19
- package/templates/cursor/skills/shared/platform-release/orchestrator/contract.yaml +27 -7
- package/templates/cursor/skills/shared/reporting/SKILL.md +2 -1
- package/templates/cursor/skills/shared/root-cause/SKILL.md +14 -3
- package/templates/cursor/skills/shared/testing/SKILL.md +31 -5
- package/templates/cursor/skills/shared/validation/SKILL.md +48 -13
- package/templates/cursor/skills/shared/verbs/_dispatch-utils.md +20 -1
- package/templates/cursor/skills/shared/verbs/_lifecycle.md +3 -2
- package/templates/cursor/skills/shared/verbs/check/orchestrator/SKILL.md +4 -1
- package/templates/cursor/skills/shared/verbs/create/orchestrator/SKILL.md +2 -2
- package/templates/cursor/skills/shared/verbs/fix/orchestrator/SKILL.md +21 -11
- package/templates/cursor/skills/shared/verbs/fix/orchestrator/contract.yaml +19 -4
- package/templates/cursor/skills/shared/verbs/update/orchestrator/SKILL.md +2 -2
- package/templates/cursor/skills/shared/verification/SKILL.md +3 -0
- package/templates/docs/agentic_architecture.md +236 -53
|
@@ -1,4 +1,127 @@
|
|
|
1
|
+
resolvers:
|
|
2
|
+
update-module-by-slug:
|
|
3
|
+
map:
|
|
4
|
+
cms: cms-update
|
|
5
|
+
ui: ui-update
|
|
6
|
+
database: database-update
|
|
7
|
+
aaac: aaac-update
|
|
8
|
+
update-component-by-scope:
|
|
9
|
+
map:
|
|
10
|
+
cms: cms-design-update
|
|
11
|
+
ui: ui-design-update
|
|
12
|
+
create-feature-by-slug:
|
|
13
|
+
map:
|
|
14
|
+
cms: cms-create-feature
|
|
15
|
+
aaac: aaac-create-feature
|
|
16
|
+
fix-bug-by-slug:
|
|
17
|
+
map:
|
|
18
|
+
cms: cms-fix-bug
|
|
19
|
+
ui: ui-fix-bug
|
|
20
|
+
database: database-fix-bug
|
|
21
|
+
aaac: aaac-fix-bug
|
|
22
|
+
default: verb-fix
|
|
23
|
+
default_object: feature
|
|
24
|
+
fix-domain-by-slug:
|
|
25
|
+
map:
|
|
26
|
+
cms: cms-fix-bug
|
|
27
|
+
ui: ui-fix-bug
|
|
28
|
+
database: database-fix-bug
|
|
29
|
+
aaac: aaac-fix-bug
|
|
30
|
+
default: verb-fix
|
|
31
|
+
default_object: module
|
|
32
|
+
fix-component-by-scope:
|
|
33
|
+
map:
|
|
34
|
+
cms: cms-fix-bug
|
|
35
|
+
ui: ui-fix-bug
|
|
36
|
+
default: verb-fix
|
|
37
|
+
default_object: component
|
|
38
|
+
fix-data-by-slug:
|
|
39
|
+
map:
|
|
40
|
+
database: database-fix-bug
|
|
41
|
+
default: database-fix-bug
|
|
42
|
+
default_object: schema
|
|
43
|
+
fix-integration-by-slug:
|
|
44
|
+
map:
|
|
45
|
+
cms: cms-fix-bug
|
|
46
|
+
ui: ui-fix-bug
|
|
47
|
+
database: database-fix-bug
|
|
48
|
+
aaac: aaac-fix-bug
|
|
49
|
+
default: verb-fix
|
|
50
|
+
default_object: integration
|
|
51
|
+
test-module-by-slug:
|
|
52
|
+
map:
|
|
53
|
+
cms: cms-test-module
|
|
54
|
+
ui: ui-test-module
|
|
55
|
+
database: database-test-module
|
|
56
|
+
aaac: aaac-test-module
|
|
57
|
+
|
|
1
58
|
orchestrators:
|
|
59
|
+
cms-update:
|
|
60
|
+
domain: cms
|
|
61
|
+
path: domains/cms/update/orchestrator
|
|
62
|
+
inventory: domains/cms/update/inventory
|
|
63
|
+
requires: [discovery, investigation-lite, planning, validation, impact-analysis, dependency-graph, fitness-functions, rollback, execution, testing, verification, reporting]
|
|
64
|
+
phases: [load_inventory, discover, investigate_lite, plan, validate, impact_analysis, dependency_graph, fitness_functions, rollback, execute, verify, sync_inventory, report]
|
|
65
|
+
|
|
66
|
+
ui-update:
|
|
67
|
+
domain: ui
|
|
68
|
+
path: domains/ui/update/orchestrator
|
|
69
|
+
inventory: domains/ui/update/inventory
|
|
70
|
+
requires: [discovery, investigation-lite, planning, validation, impact-analysis, dependency-graph, fitness-functions, rollback, execution, testing, verification, reporting]
|
|
71
|
+
phases: [load_inventory, discover, investigate_lite, plan, validate, impact_analysis, dependency_graph, fitness_functions, rollback, execute, verify, sync_inventory, report]
|
|
72
|
+
|
|
73
|
+
database-update:
|
|
74
|
+
domain: database
|
|
75
|
+
path: domains/database/update/orchestrator
|
|
76
|
+
inventory: domains/database/update/inventory
|
|
77
|
+
requires: [discovery, investigation-lite, planning, validation, impact-analysis, dependency-graph, fitness-functions, rollback, execution, testing, verification, reporting]
|
|
78
|
+
phases: [load_inventory, discover, investigate_lite, plan, validate, impact_analysis, dependency_graph, fitness_functions, rollback, execute, verify, sync_inventory, report]
|
|
79
|
+
|
|
80
|
+
cms-design-update:
|
|
81
|
+
domain: cms
|
|
82
|
+
path: domains/cms/update/orchestrator
|
|
83
|
+
inventory: domains/cms/update/inventory
|
|
84
|
+
requires: [discovery, investigation-lite, planning, validation, impact-analysis, dependency-graph, fitness-functions, rollback, execution, testing, verification, reporting]
|
|
85
|
+
design_mode: true
|
|
86
|
+
|
|
87
|
+
ui-design-update:
|
|
88
|
+
domain: ui
|
|
89
|
+
path: domains/ui/update/orchestrator
|
|
90
|
+
inventory: domains/ui/update/inventory
|
|
91
|
+
requires: [discovery, investigation-lite, planning, validation, impact-analysis, dependency-graph, fitness-functions, rollback, execution, testing, verification, reporting]
|
|
92
|
+
design_mode: true
|
|
93
|
+
|
|
94
|
+
cms-create-feature:
|
|
95
|
+
domain: cms
|
|
96
|
+
path: domains/cms/update/orchestrator
|
|
97
|
+
inventory: domains/cms/update/inventory
|
|
98
|
+
requires: [discovery, investigation-lite, planning, validation, impact-analysis, dependency-graph, fitness-functions, rollback, execution, testing, verification, reporting, module-authoring]
|
|
99
|
+
create_mode: true
|
|
100
|
+
|
|
101
|
+
cms-fix-bug:
|
|
102
|
+
domain: cms
|
|
103
|
+
path: domains/cms/update/orchestrator
|
|
104
|
+
inventory: domains/cms/update/inventory
|
|
105
|
+
requires: [discovery, investigation, root-cause, planning, validation, impact-analysis, dependency-graph, fitness-functions, rollback, execution, testing, verification, reporting]
|
|
106
|
+
fix_mode: true
|
|
107
|
+
phases: [load_inventory, discover, investigate_swarm, root_cause, plan, validate, impact_analysis, dependency_graph, fitness_functions, rollback, execute, verify, sync_inventory, report]
|
|
108
|
+
|
|
109
|
+
ui-fix-bug:
|
|
110
|
+
domain: ui
|
|
111
|
+
path: domains/ui/update/orchestrator
|
|
112
|
+
inventory: domains/ui/update/inventory
|
|
113
|
+
requires: [discovery, investigation, root-cause, planning, validation, impact-analysis, dependency-graph, fitness-functions, rollback, execution, testing, verification, reporting]
|
|
114
|
+
fix_mode: true
|
|
115
|
+
phases: [load_inventory, discover, investigate_swarm, root_cause, plan, validate, impact_analysis, dependency_graph, fitness_functions, rollback, execute, verify, sync_inventory, report]
|
|
116
|
+
|
|
117
|
+
database-fix-bug:
|
|
118
|
+
domain: database
|
|
119
|
+
path: domains/database/update/orchestrator
|
|
120
|
+
inventory: domains/database/update/inventory
|
|
121
|
+
requires: [discovery, investigation, root-cause, planning, validation, impact-analysis, dependency-graph, fitness-functions, rollback, execution, testing, verification, reporting]
|
|
122
|
+
fix_mode: true
|
|
123
|
+
phases: [load_inventory, discover, investigate_swarm, root_cause, plan, validate, impact_analysis, dependency_graph, fitness_functions, rollback, execute, verify, sync_inventory, report]
|
|
124
|
+
|
|
2
125
|
update-doc:
|
|
3
126
|
path: skills/shared/documentation/orchestrator
|
|
4
127
|
requires: [discovery, documentation, reporting]
|
|
@@ -7,7 +130,7 @@ orchestrators:
|
|
|
7
130
|
review-incident:
|
|
8
131
|
path: skills/shared/investigation/orchestrator
|
|
9
132
|
requires: [discovery, investigation, reporting]
|
|
10
|
-
optional: [execution]
|
|
133
|
+
optional: [execution, ludecker-infrastructure]
|
|
11
134
|
|
|
12
135
|
review-module:
|
|
13
136
|
path: skills/shared/architecture/orchestrator
|
|
@@ -23,9 +146,73 @@ orchestrators:
|
|
|
23
146
|
path: skills/shared/testing/orchestrator
|
|
24
147
|
requires: [discovery, testing, verification, reporting]
|
|
25
148
|
|
|
149
|
+
cms-test-module:
|
|
150
|
+
domain: cms
|
|
151
|
+
path: domains/cms/update/orchestrator
|
|
152
|
+
inventory: domains/cms/update/inventory
|
|
153
|
+
requires: [testing, verification, reporting]
|
|
154
|
+
test_only: true
|
|
155
|
+
|
|
156
|
+
ui-test-module:
|
|
157
|
+
domain: ui
|
|
158
|
+
path: domains/ui/update/orchestrator
|
|
159
|
+
inventory: domains/ui/update/inventory
|
|
160
|
+
requires: [testing, verification, reporting]
|
|
161
|
+
test_only: true
|
|
162
|
+
|
|
163
|
+
database-test-module:
|
|
164
|
+
domain: database
|
|
165
|
+
path: domains/database/update/orchestrator
|
|
166
|
+
inventory: domains/database/update/inventory
|
|
167
|
+
requires: [testing, verification, reporting]
|
|
168
|
+
test_only: true
|
|
169
|
+
|
|
170
|
+
aaac-update:
|
|
171
|
+
domain: aaac
|
|
172
|
+
path: domains/aaac/update/orchestrator
|
|
173
|
+
inventory: domains/aaac/update/inventory
|
|
174
|
+
requires: [discovery, investigation-lite, planning, validation, impact-analysis, dependency-graph, fitness-functions, rollback, execution, testing, verification, reporting, integration]
|
|
175
|
+
phases: [load_inventory, discover, investigate_lite, plan, validate, impact_analysis, dependency_graph, fitness_functions, rollback, execute, verify, sync_inventory, report]
|
|
176
|
+
|
|
177
|
+
aaac-create-feature:
|
|
178
|
+
domain: aaac
|
|
179
|
+
path: domains/aaac/update/orchestrator
|
|
180
|
+
inventory: domains/aaac/update/inventory
|
|
181
|
+
requires: [discovery, investigation-lite, planning, validation, impact-analysis, dependency-graph, fitness-functions, rollback, execution, testing, verification, reporting, module-authoring, integration]
|
|
182
|
+
create_mode: true
|
|
183
|
+
|
|
184
|
+
aaac-fix-bug:
|
|
185
|
+
domain: aaac
|
|
186
|
+
path: domains/aaac/update/orchestrator
|
|
187
|
+
inventory: domains/aaac/update/inventory
|
|
188
|
+
requires: [discovery, investigation, root-cause, planning, validation, impact-analysis, dependency-graph, fitness-functions, rollback, execution, testing, verification, reporting, integration]
|
|
189
|
+
fix_mode: true
|
|
190
|
+
phases: [load_inventory, discover, investigate_swarm, root_cause, plan, validate, impact_analysis, dependency_graph, fitness_functions, rollback, execute, verify, sync_inventory, report]
|
|
191
|
+
|
|
192
|
+
aaac-test-module:
|
|
193
|
+
domain: aaac
|
|
194
|
+
path: domains/aaac/update/orchestrator
|
|
195
|
+
inventory: domains/aaac/update/inventory
|
|
196
|
+
requires: [testing, verification, reporting, integration]
|
|
197
|
+
test_only: true
|
|
198
|
+
|
|
199
|
+
aaac-publish:
|
|
200
|
+
domain: aaac
|
|
201
|
+
path: domains/aaac/update/orchestrator
|
|
202
|
+
inventory: domains/aaac/update/inventory
|
|
203
|
+
requires: [testing, verification, execution, reporting, integration]
|
|
204
|
+
publish_mode: true
|
|
205
|
+
|
|
206
|
+
write-article:
|
|
207
|
+
domain: content
|
|
208
|
+
path: domains/content/write/orchestrator
|
|
209
|
+
requires: [run, reporting]
|
|
210
|
+
workflow: write-article
|
|
211
|
+
phases: [parse, research_swarm, write, review, persist, report]
|
|
212
|
+
|
|
26
213
|
release-app:
|
|
27
214
|
path: skills/shared/platform-release/orchestrator
|
|
28
|
-
requires: [testing, verification, execution, reporting]
|
|
215
|
+
requires: [testing, verification, execution, reporting, ludecker-infrastructure]
|
|
29
216
|
|
|
30
217
|
verb-create:
|
|
31
218
|
path: skills/shared/verbs/create/orchestrator
|
|
@@ -38,6 +225,7 @@ orchestrators:
|
|
|
38
225
|
verb-fix:
|
|
39
226
|
path: skills/shared/verbs/fix/orchestrator
|
|
40
227
|
requires: [discovery, investigation, root-cause, planning, validation, impact-analysis, dependency-graph, fitness-functions, rollback, execution, testing, verification, reporting]
|
|
228
|
+
phases: [load_inventory, discover, investigate_swarm, root_cause, plan, validate, impact_analysis, dependency_graph, fitness_functions, rollback, execute, verify, sync_inventory, report]
|
|
41
229
|
|
|
42
230
|
verb-review:
|
|
43
231
|
path: skills/shared/verbs/review/orchestrator
|
|
@@ -70,7 +258,7 @@ skills:
|
|
|
70
258
|
depends: [governance/implementation]
|
|
71
259
|
testing:
|
|
72
260
|
path: skills/shared/testing
|
|
73
|
-
agents: [unit-test-run, fallow-check-changed]
|
|
261
|
+
agents: [unit-test-run, fallow-check-changed, fix-repro-verify]
|
|
74
262
|
verification:
|
|
75
263
|
path: skills/shared/verification
|
|
76
264
|
reporting:
|
|
@@ -82,10 +270,19 @@ skills:
|
|
|
82
270
|
path: skills/shared/documentation
|
|
83
271
|
investigation:
|
|
84
272
|
path: skills/shared/investigation
|
|
85
|
-
|
|
86
|
-
|
|
273
|
+
agents:
|
|
274
|
+
- fix-repro
|
|
275
|
+
- fix-code-path
|
|
276
|
+
- fix-recent-changes
|
|
277
|
+
- fix-test-failures
|
|
278
|
+
- fix-regression-scope
|
|
279
|
+
- fix-runtime-evidence
|
|
280
|
+
- fix-inventory-confirm
|
|
87
281
|
root-cause:
|
|
88
282
|
path: skills/shared/root-cause
|
|
283
|
+
agents: [fix-hypothesis-validate]
|
|
284
|
+
investigation-lite:
|
|
285
|
+
path: skills/shared/investigation-lite
|
|
89
286
|
validation:
|
|
90
287
|
path: skills/shared/validation
|
|
91
288
|
impact-analysis:
|
|
@@ -125,6 +322,18 @@ skills:
|
|
|
125
322
|
path: skills/shared/platform-release
|
|
126
323
|
governance/implementation:
|
|
127
324
|
path: skills/shared/governance/implementation
|
|
325
|
+
ludecker-design-system:
|
|
326
|
+
path: skills/ludecker/design-system
|
|
327
|
+
ludecker-database-schema:
|
|
328
|
+
path: skills/ludecker/database-schema
|
|
329
|
+
ludecker-api-first:
|
|
330
|
+
path: skills/ludecker/api-first
|
|
331
|
+
ludecker-security:
|
|
332
|
+
path: skills/ludecker/security
|
|
333
|
+
ludecker-user-experience:
|
|
334
|
+
path: skills/ludecker/user-experience
|
|
335
|
+
ludecker-infrastructure:
|
|
336
|
+
path: skills/ludecker/infrastructure
|
|
128
337
|
|
|
129
338
|
agents:
|
|
130
339
|
discovery-inventory:
|
|
@@ -151,11 +360,34 @@ agents:
|
|
|
151
360
|
path: agents/check-capability-trace.md
|
|
152
361
|
impact-analysis:
|
|
153
362
|
path: agents/impact-analysis.md
|
|
363
|
+
fix-repro:
|
|
364
|
+
path: agents/fix-repro.md
|
|
365
|
+
fix-code-path:
|
|
366
|
+
path: agents/fix-code-path.md
|
|
367
|
+
fix-recent-changes:
|
|
368
|
+
path: agents/fix-recent-changes.md
|
|
369
|
+
fix-test-failures:
|
|
370
|
+
path: agents/fix-test-failures.md
|
|
371
|
+
fix-regression-scope:
|
|
372
|
+
path: agents/fix-regression-scope.md
|
|
373
|
+
fix-runtime-evidence:
|
|
374
|
+
path: agents/fix-runtime-evidence.md
|
|
375
|
+
fix-inventory-confirm:
|
|
376
|
+
path: agents/fix-inventory-confirm.md
|
|
377
|
+
fix-repro-verify:
|
|
378
|
+
path: agents/fix-repro-verify.md
|
|
379
|
+
fix-hypothesis-validate:
|
|
380
|
+
path: agents/fix-hypothesis-validate.md
|
|
154
381
|
release-git:
|
|
155
382
|
path: agents/release-git.md
|
|
156
383
|
wave: 1
|
|
157
384
|
blocking: true
|
|
385
|
+
release-render:
|
|
386
|
+
path: agents/release-render.md
|
|
387
|
+
wave: 2
|
|
388
|
+
requires: [release-git]
|
|
158
389
|
|
|
159
390
|
policies:
|
|
160
391
|
- policies/master-rules.md
|
|
161
392
|
- policies/implementation.md
|
|
393
|
+
- policies/mcp-and-deploy.md
|
|
@@ -19,7 +19,8 @@ Lifecycle Layer (work)
|
|
|
19
19
|
|
|
20
20
|
Governance Layer (gates + rules)
|
|
21
21
|
├─ Gate stacks .cursor/aaac/governance/gates.json
|
|
22
|
-
├─
|
|
22
|
+
├─ Complexity SSOT .cursor/aaac/complexity.yaml
|
|
23
|
+
├─ Policies .cursor/policies/ (incl. minimal-complexity.md)
|
|
23
24
|
├─ Rules .cursor/rules/
|
|
24
25
|
├─ Dependencies .cursor/aaac/dependencies.yaml
|
|
25
26
|
├─ Fitness functions .cursor/aaac/fitness-functions.yaml
|
|
@@ -35,6 +36,8 @@ Execution Layer
|
|
|
35
36
|
├─ Verb orchestrators .cursor/skills/shared/verbs/*/orchestrator/
|
|
36
37
|
├─ Shared pipeline skills .cursor/skills/shared/
|
|
37
38
|
├─ Capability registry .cursor/aaac/capabilities/registry.json
|
|
39
|
+
├─ Capability promotion rules .cursor/aaac/capabilities/promotion-rules.json
|
|
40
|
+
├─ Capability stats (derived) .cursor/aaac/state/capability-stats.json
|
|
38
41
|
├─ Agent specs .cursor/agents/
|
|
39
42
|
|
|
40
43
|
Knowledge Layer
|
|
@@ -56,6 +59,7 @@ Contracts Layer (cross-cutting)
|
|
|
56
59
|
| Graph | Control | Execution routing |
|
|
57
60
|
| Lifecycle | Lifecycle | **Work** phase configuration |
|
|
58
61
|
| Gate stacks | Governance | **Approval** checkpoints |
|
|
62
|
+
| Complexity | Governance | Reuse-first, score limits (create/update/fix) |
|
|
59
63
|
| Run | Run | Primary execution object; state + observability |
|
|
60
64
|
| Domain orchestrators | Execution | Domain coordination |
|
|
61
65
|
| Shared pipeline skills | Execution | Phase execution |
|
|
@@ -85,6 +89,7 @@ Policies → Ontology → Graph → Create Run
|
|
|
85
89
|
→ Lifecycle (work) + Gates (composed into Run.pending)
|
|
86
90
|
→ Orchestrator → Capabilities resolved (recorded on Run)
|
|
87
91
|
→ Execute phases → Update Run → Report
|
|
92
|
+
→ Run completes → capability-evidence.mjs → update capability-stats.json + evaluate promotion
|
|
88
93
|
```
|
|
89
94
|
|
|
90
95
|
## Deprecated
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"fix": {
|
|
28
28
|
"work_phases": [
|
|
29
29
|
"discover",
|
|
30
|
-
"
|
|
30
|
+
"investigate_swarm",
|
|
31
31
|
"root_cause",
|
|
32
32
|
"plan",
|
|
33
33
|
"execute",
|
|
@@ -74,5 +74,45 @@
|
|
|
74
74
|
"escalation": {
|
|
75
75
|
"on_gate_fail": "STOP_REQUEST_CLARIFICATION",
|
|
76
76
|
"on_human_approval_required": "blocked"
|
|
77
|
+
},
|
|
78
|
+
"workflows": {
|
|
79
|
+
"write-article": {
|
|
80
|
+
"description": "CMS content swarm — exception command, not verb×object matrix",
|
|
81
|
+
"work_phases": [
|
|
82
|
+
"parse",
|
|
83
|
+
"research_swarm",
|
|
84
|
+
"write",
|
|
85
|
+
"review",
|
|
86
|
+
"persist",
|
|
87
|
+
"report"
|
|
88
|
+
],
|
|
89
|
+
"gate_stack": null
|
|
90
|
+
},
|
|
91
|
+
"fix-module": {
|
|
92
|
+
"description": "Domain module repair — resolver + full fix swarm",
|
|
93
|
+
"work_phases": [
|
|
94
|
+
"discover",
|
|
95
|
+
"investigate_swarm",
|
|
96
|
+
"root_cause",
|
|
97
|
+
"plan",
|
|
98
|
+
"execute",
|
|
99
|
+
"verify",
|
|
100
|
+
"report"
|
|
101
|
+
],
|
|
102
|
+
"gate_stack": "pre_execute"
|
|
103
|
+
},
|
|
104
|
+
"fix-bug": {
|
|
105
|
+
"description": "Alias workflow for defect repair — same as fix-module",
|
|
106
|
+
"work_phases": [
|
|
107
|
+
"discover",
|
|
108
|
+
"investigate_swarm",
|
|
109
|
+
"root_cause",
|
|
110
|
+
"plan",
|
|
111
|
+
"execute",
|
|
112
|
+
"verify",
|
|
113
|
+
"report"
|
|
114
|
+
],
|
|
115
|
+
"gate_stack": "pre_execute"
|
|
116
|
+
}
|
|
77
117
|
}
|
|
78
118
|
}
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
"discover": { "skill": "discovery", "readonly": true },
|
|
6
6
|
"investigate_lite": { "skill": "investigation-lite", "readonly": true },
|
|
7
7
|
"investigate": { "skill": "investigation", "readonly": true },
|
|
8
|
+
"investigate_swarm": { "skill": "investigation", "readonly": true },
|
|
8
9
|
"root_cause": { "skill": "root-cause", "readonly": true },
|
|
9
10
|
"plan": { "skill": "planning" },
|
|
10
11
|
"validate": { "skill": "validation", "gate": true },
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# AAAC telemetry — observability on Run
|
|
2
|
+
|
|
3
|
+
version: 2
|
|
4
|
+
|
|
5
|
+
description: >-
|
|
6
|
+
All observability attaches to the Run manifest (run/schema.json).
|
|
7
|
+
No standalone markdown logs.
|
|
8
|
+
|
|
9
|
+
run_manifest: aaac/state/runs/{run_id}/run.json
|
|
10
|
+
|
|
11
|
+
log_on:
|
|
12
|
+
- command_parsed
|
|
13
|
+
- run_created
|
|
14
|
+
- run_resumed
|
|
15
|
+
- graph_resolved
|
|
16
|
+
- phase_start
|
|
17
|
+
- phase_complete
|
|
18
|
+
- gate_pass
|
|
19
|
+
- gate_fail
|
|
20
|
+
- gate_blocked
|
|
21
|
+
- human_approval_required
|
|
22
|
+
- human_approval_received
|
|
23
|
+
- capability_resolved
|
|
24
|
+
- evidence_aggregated
|
|
25
|
+
- capability_promoted
|
|
26
|
+
- evidence_aggregation_failed
|
|
27
|
+
- skill_loaded
|
|
28
|
+
- doc_loaded
|
|
29
|
+
- agent_spawned
|
|
30
|
+
- execute_start
|
|
31
|
+
- execute_complete
|
|
32
|
+
- run_completed
|
|
33
|
+
- run_failed
|
|
34
|
+
|
|
35
|
+
run_fields:
|
|
36
|
+
decisions: routing, capability, gate outcomes, user approvals
|
|
37
|
+
log: phase and skill events (see schema log_entry)
|
|
38
|
+
checkpoints: resume points with artifact refs
|
|
39
|
+
artifacts: plan, investigation, impact, fitness, rollback, report
|
|
40
|
+
gates.results: per-gate pass/fail
|
|
41
|
+
|
|
42
|
+
required_log_fields:
|
|
43
|
+
- at
|
|
44
|
+
- run_id
|
|
45
|
+
- phase
|
|
46
|
+
- phase_kind
|
|
47
|
+
- event
|
|
48
|
+
- detail
|
|
49
|
+
|
|
50
|
+
required_decision_fields:
|
|
51
|
+
- at
|
|
52
|
+
- phase
|
|
53
|
+
- decision
|
|
54
|
+
- reason
|
|
55
|
+
- evidence
|
|
56
|
+
|
|
57
|
+
questions_answered:
|
|
58
|
+
- Why did it do this?
|
|
59
|
+
- Which skill ran?
|
|
60
|
+
- Which docs were loaded?
|
|
61
|
+
- Why was a route chosen?
|
|
62
|
+
- Which capabilities resolved to which providers?
|
|
63
|
+
- Why is the run blocked?
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
# AAAC verb-specific debug profiles — expected phases and log events
|
|
2
|
+
|
|
3
|
+
version: 1
|
|
4
|
+
|
|
5
|
+
create:
|
|
6
|
+
description: Create verbs — discover → investigate_lite → plan → gates → execute → verify → report.
|
|
7
|
+
phases:
|
|
8
|
+
- discover
|
|
9
|
+
- investigate_lite
|
|
10
|
+
- plan
|
|
11
|
+
- validate
|
|
12
|
+
- impact_analysis
|
|
13
|
+
- dependency_graph
|
|
14
|
+
- fitness_functions
|
|
15
|
+
- rollback
|
|
16
|
+
- execute
|
|
17
|
+
- verify
|
|
18
|
+
- report
|
|
19
|
+
swarm_minimums:
|
|
20
|
+
discover: 4
|
|
21
|
+
expected_events:
|
|
22
|
+
discover:
|
|
23
|
+
- command_parsed
|
|
24
|
+
- run_created
|
|
25
|
+
- graph_resolved
|
|
26
|
+
- phase_start
|
|
27
|
+
- agent_spawned
|
|
28
|
+
- phase_complete
|
|
29
|
+
investigate_lite:
|
|
30
|
+
- phase_start
|
|
31
|
+
- skill_loaded
|
|
32
|
+
- phase_complete
|
|
33
|
+
plan:
|
|
34
|
+
- phase_start
|
|
35
|
+
- skill_loaded
|
|
36
|
+
- phase_complete
|
|
37
|
+
validate:
|
|
38
|
+
- phase_start
|
|
39
|
+
- gate_pass
|
|
40
|
+
- phase_complete
|
|
41
|
+
execute:
|
|
42
|
+
- phase_start
|
|
43
|
+
- execute_start
|
|
44
|
+
- edit_allowed
|
|
45
|
+
- execute_complete
|
|
46
|
+
- phase_complete
|
|
47
|
+
|
|
48
|
+
update:
|
|
49
|
+
description: Update verbs mirror create — discover → investigate_lite → plan → gates → execute.
|
|
50
|
+
phases:
|
|
51
|
+
- discover
|
|
52
|
+
- investigate_lite
|
|
53
|
+
- plan
|
|
54
|
+
- validate
|
|
55
|
+
- impact_analysis
|
|
56
|
+
- dependency_graph
|
|
57
|
+
- fitness_functions
|
|
58
|
+
- rollback
|
|
59
|
+
- execute
|
|
60
|
+
- verify
|
|
61
|
+
- report
|
|
62
|
+
swarm_minimums:
|
|
63
|
+
discover: 4
|
|
64
|
+
expected_events:
|
|
65
|
+
discover:
|
|
66
|
+
- command_parsed
|
|
67
|
+
- run_created
|
|
68
|
+
- graph_resolved
|
|
69
|
+
- phase_start
|
|
70
|
+
- agent_spawned
|
|
71
|
+
- phase_complete
|
|
72
|
+
investigate_lite:
|
|
73
|
+
- phase_start
|
|
74
|
+
- skill_loaded
|
|
75
|
+
- phase_complete
|
|
76
|
+
plan:
|
|
77
|
+
- phase_start
|
|
78
|
+
- skill_loaded
|
|
79
|
+
- phase_complete
|
|
80
|
+
validate:
|
|
81
|
+
- phase_start
|
|
82
|
+
- gate_pass
|
|
83
|
+
- phase_complete
|
|
84
|
+
execute:
|
|
85
|
+
- phase_start
|
|
86
|
+
- execute_start
|
|
87
|
+
- edit_allowed
|
|
88
|
+
- execute_complete
|
|
89
|
+
- phase_complete
|
|
90
|
+
|
|
91
|
+
fix:
|
|
92
|
+
description: Fix verbs — investigate_swarm → root_cause → plan → gates → execute → verify_fix swarm.
|
|
93
|
+
phases:
|
|
94
|
+
- discover
|
|
95
|
+
- investigate_swarm
|
|
96
|
+
- root_cause
|
|
97
|
+
- plan
|
|
98
|
+
- validate
|
|
99
|
+
- impact_analysis
|
|
100
|
+
- dependency_graph
|
|
101
|
+
- fitness_functions
|
|
102
|
+
- rollback
|
|
103
|
+
- execute
|
|
104
|
+
- verify
|
|
105
|
+
- report
|
|
106
|
+
swarm_minimums:
|
|
107
|
+
discover: 4
|
|
108
|
+
investigate_swarm: 7
|
|
109
|
+
verify: 3
|
|
110
|
+
expected_events:
|
|
111
|
+
discover:
|
|
112
|
+
- command_parsed
|
|
113
|
+
- run_created
|
|
114
|
+
- graph_resolved
|
|
115
|
+
- phase_start
|
|
116
|
+
- agent_spawned
|
|
117
|
+
- phase_complete
|
|
118
|
+
investigate_swarm:
|
|
119
|
+
- phase_start
|
|
120
|
+
- agent_spawned
|
|
121
|
+
- skill_loaded
|
|
122
|
+
- phase_complete
|
|
123
|
+
root_cause:
|
|
124
|
+
- phase_start
|
|
125
|
+
- skill_loaded
|
|
126
|
+
- phase_complete
|
|
127
|
+
verify:
|
|
128
|
+
- phase_start
|
|
129
|
+
- agent_spawned
|
|
130
|
+
- phase_complete
|
|
131
|
+
execute:
|
|
132
|
+
- phase_start
|
|
133
|
+
- execute_start
|
|
134
|
+
- edit_allowed
|
|
135
|
+
- edit_denied
|
|
136
|
+
- execute_complete
|
|
137
|
+
- phase_complete
|
|
138
|
+
|
|
139
|
+
check:
|
|
140
|
+
description: Check verbs — readonly discover → gates → report (no execute).
|
|
141
|
+
phases:
|
|
142
|
+
- discover
|
|
143
|
+
- validate
|
|
144
|
+
- impact_analysis
|
|
145
|
+
- dependency_graph
|
|
146
|
+
- fitness_functions
|
|
147
|
+
- report
|
|
148
|
+
swarm_minimums:
|
|
149
|
+
discover: 4
|
|
150
|
+
check_swarm: 3
|
|
151
|
+
expected_events:
|
|
152
|
+
discover:
|
|
153
|
+
- command_parsed
|
|
154
|
+
- run_created
|
|
155
|
+
- graph_resolved
|
|
156
|
+
- phase_start
|
|
157
|
+
- agent_spawned
|
|
158
|
+
- phase_complete
|
|
159
|
+
validate:
|
|
160
|
+
- phase_start
|
|
161
|
+
- gate_pass
|
|
162
|
+
- phase_complete
|
|
163
|
+
report:
|
|
164
|
+
- phase_start
|
|
165
|
+
- skill_loaded
|
|
166
|
+
- phase_complete
|
|
167
|
+
readonly: true
|
|
168
|
+
notes: >-
|
|
169
|
+
Orchestrator runs check_swarm (3 explore agents) during discover.
|
|
170
|
+
Edits always denied — no execute phase.
|
|
@@ -122,6 +122,13 @@
|
|
|
122
122
|
"requirements": 0.8,
|
|
123
123
|
"scope": 0.8
|
|
124
124
|
},
|
|
125
|
+
"complexity_ref": "aaac/complexity.yaml",
|
|
126
|
+
"complexity_strategy": {
|
|
127
|
+
"optimization": "capability_per_complexity",
|
|
128
|
+
"default_verb_when_ambiguous": "update",
|
|
129
|
+
"mutating_verbs": ["create", "update", "fix"],
|
|
130
|
+
"priority": ["reuse", "extend", "modify", "create"]
|
|
131
|
+
},
|
|
125
132
|
"object_maturity": {
|
|
126
133
|
"function": "evolving",
|
|
127
134
|
"component": "evolving",
|
|
@@ -214,6 +221,8 @@
|
|
|
214
221
|
"create-form": "create-component",
|
|
215
222
|
"update-page": "update-component",
|
|
216
223
|
"review-flow": "review-workflow",
|
|
217
|
-
"update-flow": "update-workflow"
|
|
224
|
+
"update-flow": "update-workflow",
|
|
225
|
+
"module-fix": "fix-module",
|
|
226
|
+
"bug-fix": "fix-bug"
|
|
218
227
|
}
|
|
219
228
|
}
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
**Every AAAC command executes within a Run.** There is no standalone lifecycle execution or standalone logging.
|
|
4
4
|
|
|
5
|
+
**Hook enforcement:** [.cursor/hooks.json](../../hooks.json) + [enforcement.json](../enforcement.json) block code edits until `execute`. Registry: [runtime-registry.json](../runtime-registry.json).
|
|
6
|
+
|
|
5
7
|
Schema: [schema.json](schema.json)
|
|
6
8
|
|
|
7
9
|
## Create Run (dispatch step 2.5 — after graph resolve, before orchestrator)
|
|
@@ -22,6 +22,8 @@
|
|
|
22
22
|
"checkpoints": [],
|
|
23
23
|
"log": [],
|
|
24
24
|
"capabilities_resolved": {},
|
|
25
|
+
"capability_evidence_processed": false,
|
|
26
|
+
"capability_evidence_outcomes": [],
|
|
25
27
|
"confidence": {
|
|
26
28
|
"architecture": null,
|
|
27
29
|
"requirements": null,
|
|
@@ -71,6 +73,15 @@
|
|
|
71
73
|
"rollback",
|
|
72
74
|
"report"
|
|
73
75
|
],
|
|
76
|
+
"plan_complexity_fields": [
|
|
77
|
+
"requirement_map",
|
|
78
|
+
"complexity_score",
|
|
79
|
+
"complexity_breakdown",
|
|
80
|
+
"reuse",
|
|
81
|
+
"modify",
|
|
82
|
+
"create",
|
|
83
|
+
"rejected_alternatives"
|
|
84
|
+
],
|
|
74
85
|
"resume": {
|
|
75
86
|
"read_manifest": "state/runs/{run_id}/run.json",
|
|
76
87
|
"continue_from": "phase field when status running or blocked with user approval"
|