@ludecker/aaac 1.0.0 → 1.1.0
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 +192 -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 +165 -0
- package/src/run-engine/lib.mjs +136 -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/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 +30 -5
- package/templates/cursor/aaac/enforcement.json +22 -0
- package/templates/cursor/aaac/fitness-functions.yaml +8 -0
- package/templates/cursor/aaac/governance/gates.json +3 -1
- package/templates/cursor/aaac/graph.project.yaml +237 -5
- package/templates/cursor/aaac/layers.md +3 -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 +60 -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 +9 -0
- package/templates/cursor/aaac/scripts/generate-runtime-registry.mjs +115 -0
- package/templates/cursor/aaac/scripts/run-engine/advance-phase.mjs +192 -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 +165 -0
- package/templates/cursor/aaac/scripts/run-engine/lib.mjs +136 -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/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/reporting/SKILL.md +2 -1
- package/templates/cursor/skills/shared/root-cause/SKILL.md +14 -3
- package/templates/cursor/skills/shared/testing/SKILL.md +26 -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 +2 -0
|
@@ -2,10 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
Agents running any AAAC command **must** follow this sequence.
|
|
4
4
|
|
|
5
|
+
**Enforcement (runtime):** Cursor hooks in [.cursor/hooks.json](../hooks.json) create Runs and **block code edits** until the `execute` phase. See [.cursor/rules/aaac-enforcement.mdc](../rules/aaac-enforcement.mdc). Applies to **all** AAAC slash commands.
|
|
6
|
+
|
|
5
7
|
**Path convention:** In [graph.yaml](graph.yaml), paths under `agents/`, `policies/`, `skills/`, and `domains/` are relative to **`.cursor/`**.
|
|
6
8
|
|
|
7
9
|
**Primary execution object:** Every command runs inside a **Run** — see [run/RUN.md](run/RUN.md) and [run/schema.json](run/schema.json).
|
|
8
10
|
|
|
11
|
+
## 0. Hook-initiated Run (automatic)
|
|
12
|
+
|
|
13
|
+
On submit, hooks call [scripts/run-engine/init-run.mjs](../scripts/run-engine/init-run.mjs). Follow `run.json` phases. `preToolUse` denies Write/StrReplace/Delete outside allowed phases.
|
|
14
|
+
|
|
15
|
+
Advance after swarm + artifacts:
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
node .cursor/aaac/scripts/run-engine/advance-phase.mjs <run_id> <completed_phase>
|
|
19
|
+
```
|
|
20
|
+
|
|
9
21
|
## 1. Parse input
|
|
10
22
|
|
|
11
23
|
From `$ARGUMENTS` and the user message:
|
|
@@ -21,6 +33,8 @@ If intent contains `Sync inventory only` (case-insensitive), orchestrator runs *
|
|
|
21
33
|
|
|
22
34
|
**Resume:** If user references `run_{id}`, load `state/runs/{run_id}/run.json` and continue from `phase`.
|
|
23
35
|
|
|
36
|
+
**Workflow exceptions:** Commands like `write-article` use `command_workflows.<command>` in graph (not `verb_runtime`). `fix-module` and `fix-bug` also have explicit workflows matching the fix verb runtime. No governance gate stack unless orchestrator specifies one.
|
|
37
|
+
|
|
24
38
|
**Aliases:** `commands.<name>.alias` → resolve canonical command (e.g. `update-api` → `update-integration`) and continue.
|
|
25
39
|
|
|
26
40
|
Legacy names (`module-update`, `architecture`, `swarm-check`, …) are aliases in [graph.yaml](graph.yaml).
|
|
@@ -39,7 +53,8 @@ Read [graph.yaml](graph.yaml) and [ontology.json](ontology.json).
|
|
|
39
53
|
- **Maturity:** read `object_maturity.<object>` and apply `maturity_rules.<level>` (may require extra gate phases)
|
|
40
54
|
- **Capabilities:** resolve `object_capabilities.<object>` via [capabilities/registry.json](capabilities/registry.json) — record all providers (skill + mcp) on Run
|
|
41
55
|
- **Dependencies:** [dependencies.yaml](dependencies.yaml)
|
|
42
|
-
- **Fitness:** [fitness-functions.yaml](fitness-functions.yaml)
|
|
56
|
+
- **Fitness:** [fitness-functions.yaml](fitness-functions.yaml) — includes `minimal_complexity` for create/update/fix
|
|
57
|
+
- **Complexity:** [complexity.yaml](complexity.yaml) + [minimal-complexity.md](../policies/minimal-complexity.md) for create/update/fix
|
|
43
58
|
- **Contracts:** validate against [contracts/commands/](contracts/commands/) and [contracts/skills/](contracts/skills/)
|
|
44
59
|
|
|
45
60
|
## 2.5 Create or resume Run
|
|
@@ -47,7 +62,7 @@ Read [graph.yaml](graph.yaml) and [ontology.json](ontology.json).
|
|
|
47
62
|
Before loading orchestrator:
|
|
48
63
|
|
|
49
64
|
1. **Create** `state/runs/{run_id}/run.json` per [run/schema.json](run/schema.json)
|
|
50
|
-
2. Set `pending` from `
|
|
65
|
+
2. Set `pending` from `command_workflows.<command>` when present, else `verb_runtime.<verb>`
|
|
51
66
|
3. Set `status: running`, first `phase`, `phase_kind: work`
|
|
52
67
|
4. Record resolved orchestrator, object, domain, intent on Run
|
|
53
68
|
|
|
@@ -63,6 +78,7 @@ All state and observability live on the Run — **no** standalone execution-stat
|
|
|
63
78
|
- [master-rules.md](../policies/master-rules.md)
|
|
64
79
|
- [implementation.md](../policies/implementation.md)
|
|
65
80
|
- [mcp-and-deploy.md](../policies/mcp-and-deploy.md)
|
|
81
|
+
- [minimal-complexity.md](../policies/minimal-complexity.md) — **create / update / fix only**
|
|
66
82
|
- Read [verbs/_dispatch-utils.md](../skills/shared/verbs/_dispatch-utils.md) for inventory + investigation rules
|
|
67
83
|
- Read [run/SKILL.md](../skills/shared/run/SKILL.md) for Run update protocol
|
|
68
84
|
|
|
@@ -89,10 +105,10 @@ Gates run after `plan`, before `execute` (or before `report` when verb has no ex
|
|
|
89
105
|
|
|
90
106
|
| Gate | Skill |
|
|
91
107
|
|------|-------|
|
|
92
|
-
| **validate** | [validation/SKILL.md](../skills/shared/validation/SKILL.md) |
|
|
108
|
+
| **validate** | [validation/SKILL.md](../skills/shared/validation/SKILL.md) — confidence + **complexity plan** |
|
|
93
109
|
| **impact_analysis** | [impact-analysis/SKILL.md](../skills/shared/impact-analysis/SKILL.md) |
|
|
94
110
|
| **dependency_graph** | [dependency-graph/SKILL.md](../skills/shared/dependency-graph/SKILL.md) |
|
|
95
|
-
| **fitness_functions** | [fitness-functions/SKILL.md](../skills/shared/fitness-functions/SKILL.md) |
|
|
111
|
+
| **fitness_functions** | [fitness-functions/SKILL.md](../skills/shared/fitness-functions/SKILL.md) — **`minimal_complexity` blocks on fail** |
|
|
96
112
|
| **rollback** | [rollback/SKILL.md](../skills/shared/rollback/SKILL.md) when maturity or blast radius requires |
|
|
97
113
|
|
|
98
114
|
### Human approval at gate boundaries
|
|
@@ -121,7 +137,16 @@ Do **not** proceed until user approves in chat. On approval: log decision, set `
|
|
|
121
137
|
|------|----------------|
|
|
122
138
|
| create | [investigation-lite](../skills/shared/investigation-lite/SKILL.md) |
|
|
123
139
|
| update | [investigation-lite](../skills/shared/investigation-lite/SKILL.md) |
|
|
124
|
-
| fix | [investigation](../skills/shared/investigation/SKILL.md) → [root-cause](../skills/shared/root-cause/SKILL.md) |
|
|
140
|
+
| fix | [investigation](../skills/shared/investigation/SKILL.md) Mode A (7-agent swarm) → [root-cause](../skills/shared/root-cause/SKILL.md) |
|
|
141
|
+
|
|
142
|
+
### Fix swarm (mandatory on fix verb / fix_mode)
|
|
143
|
+
|
|
144
|
+
1. **discover** — 4–6 parallel Task agents per [discovery/SKILL.md](../skills/shared/discovery/SKILL.md)
|
|
145
|
+
2. **investigate_swarm** — 7 parallel Task agents per investigation Mode A — **one message**
|
|
146
|
+
3. **root_cause** — artifact required; confidence ≥ 0.7 before plan
|
|
147
|
+
4. **verify** — fix verify swarm (3 parallel) per [testing/SKILL.md](../skills/shared/testing/SKILL.md); fail if `repro_status: not_fixed`
|
|
148
|
+
|
|
149
|
+
Skipping swarms because the issue "looks simple" is a **contract violation** for `fix-module` / `fix-bug` / `fix_mode`.
|
|
125
150
|
|
|
126
151
|
## 5. Report
|
|
127
152
|
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 1,
|
|
3
|
+
"description": "AAAC runtime enforcement — SSOT for hooks and run engine",
|
|
4
|
+
"edit_phases": ["execute", "sync_inventory", "persist", "write"],
|
|
5
|
+
"artifact_write_phases": ["plan", "report"],
|
|
6
|
+
"swarm_min_agents": {
|
|
7
|
+
"discover": 4,
|
|
8
|
+
"investigate_swarm": 7,
|
|
9
|
+
"research_swarm": 6,
|
|
10
|
+
"verify_fix": 3
|
|
11
|
+
},
|
|
12
|
+
"phase_artifacts": {
|
|
13
|
+
"investigate_swarm": ["artifacts/investigation.md"],
|
|
14
|
+
"root_cause": ["artifacts/root_cause.yaml"],
|
|
15
|
+
"plan": ["artifacts/plan.yaml"],
|
|
16
|
+
"report": ["artifacts/report.md"]
|
|
17
|
+
},
|
|
18
|
+
"allowed_path_prefixes": {
|
|
19
|
+
"run_artifacts": [".cursor/aaac/state/runs/", "aaac/state/runs/"]
|
|
20
|
+
},
|
|
21
|
+
"fix_commands": ["fix-module", "fix-bug", "module-fix", "bug-fix"]
|
|
22
|
+
}
|
|
@@ -28,6 +28,14 @@ functions:
|
|
|
28
28
|
skill: architecture
|
|
29
29
|
applies_to: [module, component, feature, app]
|
|
30
30
|
|
|
31
|
+
minimal_complexity:
|
|
32
|
+
description: Reuse-first plan, complexity score within verb threshold, YAGNI — no speculative architecture
|
|
33
|
+
policy: minimal-complexity
|
|
34
|
+
config: aaac/complexity.yaml
|
|
35
|
+
applies_to: [function, component, module, schema, model, migration, feature, workflow, integration, app, domain, architecture]
|
|
36
|
+
applies_to_verbs: [create, update, fix]
|
|
37
|
+
blocking: true
|
|
38
|
+
|
|
31
39
|
scoring:
|
|
32
40
|
pass: meets criteria
|
|
33
41
|
warning: minor gap — document in report, may proceed if user intent clear
|
|
@@ -24,7 +24,9 @@
|
|
|
24
24
|
"human_approval": {
|
|
25
25
|
"trigger_when": [
|
|
26
26
|
"confidence below threshold",
|
|
27
|
-
"fitness fail on security or layer_boundaries",
|
|
27
|
+
"fitness fail on security or layer_boundaries or minimal_complexity",
|
|
28
|
+
"complexity score above verb threshold",
|
|
29
|
+
"plan missing requirement_map or unjustified create",
|
|
28
30
|
"impact proceed false",
|
|
29
31
|
"rollback unverified",
|
|
30
32
|
"user intent contains requires approval"
|
|
@@ -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
|
|
@@ -56,6 +57,7 @@ Contracts Layer (cross-cutting)
|
|
|
56
57
|
| Graph | Control | Execution routing |
|
|
57
58
|
| Lifecycle | Lifecycle | **Work** phase configuration |
|
|
58
59
|
| Gate stacks | Governance | **Approval** checkpoints |
|
|
60
|
+
| Complexity | Governance | Reuse-first, score limits (create/update/fix) |
|
|
59
61
|
| Run | Run | Primary execution object; state + observability |
|
|
60
62
|
| Domain orchestrators | Execution | Domain coordination |
|
|
61
63
|
| Shared pipeline skills | Execution | Phase execution |
|
|
@@ -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,60 @@
|
|
|
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
|
+
- skill_loaded
|
|
25
|
+
- doc_loaded
|
|
26
|
+
- agent_spawned
|
|
27
|
+
- execute_start
|
|
28
|
+
- execute_complete
|
|
29
|
+
- run_completed
|
|
30
|
+
- run_failed
|
|
31
|
+
|
|
32
|
+
run_fields:
|
|
33
|
+
decisions: routing, capability, gate outcomes, user approvals
|
|
34
|
+
log: phase and skill events (see schema log_entry)
|
|
35
|
+
checkpoints: resume points with artifact refs
|
|
36
|
+
artifacts: plan, investigation, impact, fitness, rollback, report
|
|
37
|
+
gates.results: per-gate pass/fail
|
|
38
|
+
|
|
39
|
+
required_log_fields:
|
|
40
|
+
- at
|
|
41
|
+
- run_id
|
|
42
|
+
- phase
|
|
43
|
+
- phase_kind
|
|
44
|
+
- event
|
|
45
|
+
- detail
|
|
46
|
+
|
|
47
|
+
required_decision_fields:
|
|
48
|
+
- at
|
|
49
|
+
- phase
|
|
50
|
+
- decision
|
|
51
|
+
- reason
|
|
52
|
+
- evidence
|
|
53
|
+
|
|
54
|
+
questions_answered:
|
|
55
|
+
- Why did it do this?
|
|
56
|
+
- Which skill ran?
|
|
57
|
+
- Which docs were loaded?
|
|
58
|
+
- Why was a route chosen?
|
|
59
|
+
- Which capabilities resolved to which providers?
|
|
60
|
+
- Why is the run blocked?
|