@ludecker/aaac 1.0.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 +60 -0
- package/package.json +38 -0
- package/src/cli.mjs +138 -0
- package/src/generators/generate-commands.mjs +165 -0
- package/src/generators/generate-graph-commands.mjs +63 -0
- package/src/generators/generate-graph.mjs +242 -0
- package/src/lib/copy.mjs +36 -0
- package/src/lib/install.mjs +76 -0
- package/src/lib/paths.mjs +54 -0
- package/templates/cursor/aaac/capabilities/registry.json +106 -0
- package/templates/cursor/aaac/contract-schema.md +66 -0
- package/templates/cursor/aaac/contracts/commands/create-module.yaml +28 -0
- package/templates/cursor/aaac/contracts/commands/fix-bug.yaml +32 -0
- package/templates/cursor/aaac/contracts/commands/update-module.yaml +28 -0
- package/templates/cursor/aaac/contracts/skills/impact-analysis.yaml +17 -0
- package/templates/cursor/aaac/contracts/skills/investigation-lite.yaml +17 -0
- package/templates/cursor/aaac/contracts/skills/investigation.yaml +17 -0
- package/templates/cursor/aaac/contracts/skills/validation.yaml +14 -0
- package/templates/cursor/aaac/dependencies.yaml +14 -0
- package/templates/cursor/aaac/dispatch.md +135 -0
- package/templates/cursor/aaac/fitness-functions.yaml +34 -0
- package/templates/cursor/aaac/governance/gates.json +39 -0
- package/templates/cursor/aaac/graph.project.yaml +161 -0
- package/templates/cursor/aaac/layers.md +93 -0
- package/templates/cursor/aaac/lifecycle/lifecycle.json +78 -0
- package/templates/cursor/aaac/lifecycle/phases.json +19 -0
- package/templates/cursor/aaac/ontology.json +219 -0
- package/templates/cursor/aaac/ontology.md +90 -0
- package/templates/cursor/aaac/project.config.json +3 -0
- package/templates/cursor/aaac/run/RUN.md +72 -0
- package/templates/cursor/aaac/run/schema.json +83 -0
- package/templates/cursor/aaac/state/checkpoints/README.md +20 -0
- package/templates/cursor/agents/boundary-review.md +11 -0
- package/templates/cursor/agents/check-capability-trace.md +18 -0
- package/templates/cursor/agents/dependency-analysis.md +11 -0
- package/templates/cursor/agents/discovery-boundaries.md +11 -0
- package/templates/cursor/agents/discovery-inventory.md +14 -0
- package/templates/cursor/agents/discovery-ssot.md +11 -0
- package/templates/cursor/agents/fallow-check-changed.md +9 -0
- package/templates/cursor/agents/impact-analysis.md +22 -0
- package/templates/cursor/agents/plan-layer-map.md +11 -0
- package/templates/cursor/agents/plan-state-machines.md +11 -0
- package/templates/cursor/agents/release-git.md +36 -0
- package/templates/cursor/agents/system-decomposition.md +11 -0
- package/templates/cursor/agents/unit-test-run.md +19 -0
- package/templates/cursor/policies/implementation.md +8 -0
- package/templates/cursor/policies/master-rules.md +7 -0
- package/templates/cursor/skills/shared/api/SKILL.md +26 -0
- package/templates/cursor/skills/shared/architecture/SKILL.md +25 -0
- package/templates/cursor/skills/shared/architecture/orchestrator/SKILL.md +21 -0
- package/templates/cursor/skills/shared/architecture/refactor-analysis.md +302 -0
- package/templates/cursor/skills/shared/check/SKILL.md +47 -0
- package/templates/cursor/skills/shared/component/SKILL.md +24 -0
- package/templates/cursor/skills/shared/dependency-graph/SKILL.md +38 -0
- package/templates/cursor/skills/shared/discovery/SKILL.md +29 -0
- package/templates/cursor/skills/shared/documentation/SKILL.md +21 -0
- package/templates/cursor/skills/shared/documentation/orchestrator/SKILL.md +26 -0
- package/templates/cursor/skills/shared/documentation/orchestrator/contract.yaml +20 -0
- package/templates/cursor/skills/shared/documentation/write-arch-doc.md +168 -0
- package/templates/cursor/skills/shared/domain/SKILL.md +24 -0
- package/templates/cursor/skills/shared/execution/SKILL.md +34 -0
- package/templates/cursor/skills/shared/fitness-functions/SKILL.md +42 -0
- package/templates/cursor/skills/shared/governance/implementation/SKILL.md +424 -0
- package/templates/cursor/skills/shared/impact-analysis/SKILL.md +44 -0
- package/templates/cursor/skills/shared/integration/SKILL.md +22 -0
- package/templates/cursor/skills/shared/investigation/SKILL.md +46 -0
- package/templates/cursor/skills/shared/investigation/orchestrator/SKILL.md +22 -0
- package/templates/cursor/skills/shared/investigation-lite/SKILL.md +38 -0
- package/templates/cursor/skills/shared/migration/SKILL.md +22 -0
- package/templates/cursor/skills/shared/model/SKILL.md +22 -0
- package/templates/cursor/skills/shared/module-authoring/SKILL.md +29 -0
- package/templates/cursor/skills/shared/module-authoring/authoring-template.md +9 -0
- package/templates/cursor/skills/shared/planning/SKILL.md +30 -0
- package/templates/cursor/skills/shared/platform-release/SKILL.md +46 -0
- package/templates/cursor/skills/shared/platform-release/orchestrator/SKILL.md +51 -0
- package/templates/cursor/skills/shared/platform-release/orchestrator/contract.yaml +29 -0
- package/templates/cursor/skills/shared/platform-release/ship-procedure.md +31 -0
- package/templates/cursor/skills/shared/remove/SKILL.md +28 -0
- package/templates/cursor/skills/shared/reporting/SKILL.md +43 -0
- package/templates/cursor/skills/shared/rollback/SKILL.md +46 -0
- package/templates/cursor/skills/shared/root-cause/SKILL.md +24 -0
- package/templates/cursor/skills/shared/run/SKILL.md +64 -0
- package/templates/cursor/skills/shared/schema/SKILL.md +24 -0
- package/templates/cursor/skills/shared/testing/SKILL.md +24 -0
- package/templates/cursor/skills/shared/testing/orchestrator/SKILL.md +22 -0
- package/templates/cursor/skills/shared/validation/SKILL.md +56 -0
- package/templates/cursor/skills/shared/verbs/_dispatch-utils.md +90 -0
- package/templates/cursor/skills/shared/verbs/_lifecycle.md +87 -0
- package/templates/cursor/skills/shared/verbs/_object-skills.md +60 -0
- package/templates/cursor/skills/shared/verbs/check/orchestrator/SKILL.md +22 -0
- package/templates/cursor/skills/shared/verbs/check/orchestrator/contract.yaml +24 -0
- package/templates/cursor/skills/shared/verbs/create/orchestrator/SKILL.md +39 -0
- package/templates/cursor/skills/shared/verbs/create/orchestrator/contract.yaml +34 -0
- package/templates/cursor/skills/shared/verbs/fix/orchestrator/SKILL.md +33 -0
- package/templates/cursor/skills/shared/verbs/fix/orchestrator/contract.yaml +38 -0
- package/templates/cursor/skills/shared/verbs/release/orchestrator/SKILL.md +29 -0
- package/templates/cursor/skills/shared/verbs/release/orchestrator/contract.yaml +25 -0
- package/templates/cursor/skills/shared/verbs/remove/orchestrator/SKILL.md +25 -0
- package/templates/cursor/skills/shared/verbs/remove/orchestrator/contract.yaml +32 -0
- package/templates/cursor/skills/shared/verbs/review/orchestrator/SKILL.md +24 -0
- package/templates/cursor/skills/shared/verbs/review/orchestrator/contract.yaml +25 -0
- package/templates/cursor/skills/shared/verbs/test/orchestrator/SKILL.md +24 -0
- package/templates/cursor/skills/shared/verbs/test/orchestrator/contract.yaml +25 -0
- package/templates/cursor/skills/shared/verbs/update/orchestrator/SKILL.md +34 -0
- package/templates/cursor/skills/shared/verbs/update/orchestrator/contract.yaml +34 -0
- package/templates/cursor/skills/shared/verification/SKILL.md +28 -0
- package/templates/cursor/skills/shared/workflow/SKILL.md +25 -0
- package/templates/docs/agentic_architecture.md +131 -0
- package/templates/docs/architecture.md +5 -0
- package/templates/docs/master_rules.md +5 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# Architecture fitness functions — scored before execute, re-checked in verify.
|
|
2
|
+
|
|
3
|
+
version: 1
|
|
4
|
+
|
|
5
|
+
functions:
|
|
6
|
+
api_first:
|
|
7
|
+
description: Contracts and validation at boundaries; no ad-hoc API shapes
|
|
8
|
+
skill: integration
|
|
9
|
+
applies_to: [integration, feature, workflow, module, function]
|
|
10
|
+
|
|
11
|
+
layer_boundaries:
|
|
12
|
+
description: SSOT, import direction, module size budgets
|
|
13
|
+
skill: architecture
|
|
14
|
+
applies_to: [module, component, feature, domain, app]
|
|
15
|
+
|
|
16
|
+
component_quality:
|
|
17
|
+
description: Presentational components, reusable props, accessible markup
|
|
18
|
+
skill: component
|
|
19
|
+
applies_to: [component, module]
|
|
20
|
+
|
|
21
|
+
data_contracts:
|
|
22
|
+
description: Schema and model alignment at persistence boundaries
|
|
23
|
+
skill: schema
|
|
24
|
+
applies_to: [schema, model, migration]
|
|
25
|
+
|
|
26
|
+
performance:
|
|
27
|
+
description: Deterministic builds, no unnecessary fetch in UI layers
|
|
28
|
+
skill: architecture
|
|
29
|
+
applies_to: [module, component, feature, app]
|
|
30
|
+
|
|
31
|
+
scoring:
|
|
32
|
+
pass: meets criteria
|
|
33
|
+
warning: minor gap — document in report, may proceed if user intent clear
|
|
34
|
+
fail: blocking — STOP before execute unless user explicitly accepts risk
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 1,
|
|
3
|
+
"description": "Governance gates — approval/checkpoints, not work phases. Composed into runtime after plan, before execute.",
|
|
4
|
+
"stacks": {
|
|
5
|
+
"pre_execute": [
|
|
6
|
+
"validate",
|
|
7
|
+
"impact_analysis",
|
|
8
|
+
"dependency_graph",
|
|
9
|
+
"fitness_functions",
|
|
10
|
+
"rollback"
|
|
11
|
+
],
|
|
12
|
+
"pre_execute_minimal": [
|
|
13
|
+
"validate",
|
|
14
|
+
"impact_analysis",
|
|
15
|
+
"dependency_graph",
|
|
16
|
+
"fitness_functions"
|
|
17
|
+
],
|
|
18
|
+
"release": ["validate"]
|
|
19
|
+
},
|
|
20
|
+
"gate_rules": {
|
|
21
|
+
"rollback": {
|
|
22
|
+
"required_when": ["object_maturity:protected", "impact.blast_radius:high"]
|
|
23
|
+
},
|
|
24
|
+
"human_approval": {
|
|
25
|
+
"trigger_when": [
|
|
26
|
+
"confidence below threshold",
|
|
27
|
+
"fitness fail on security or layer_boundaries",
|
|
28
|
+
"impact proceed false",
|
|
29
|
+
"rollback unverified",
|
|
30
|
+
"user intent contains requires approval"
|
|
31
|
+
],
|
|
32
|
+
"run_fields": {
|
|
33
|
+
"status": "blocked",
|
|
34
|
+
"awaiting_approval": true,
|
|
35
|
+
"blocked_reason": "string"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
orchestrators:
|
|
2
|
+
update-doc:
|
|
3
|
+
path: skills/shared/documentation/orchestrator
|
|
4
|
+
requires: [discovery, documentation, reporting]
|
|
5
|
+
readonly: true
|
|
6
|
+
|
|
7
|
+
review-incident:
|
|
8
|
+
path: skills/shared/investigation/orchestrator
|
|
9
|
+
requires: [discovery, investigation, reporting]
|
|
10
|
+
optional: [execution]
|
|
11
|
+
|
|
12
|
+
review-module:
|
|
13
|
+
path: skills/shared/architecture/orchestrator
|
|
14
|
+
requires: [discovery, architecture, reporting]
|
|
15
|
+
readonly: true
|
|
16
|
+
|
|
17
|
+
verb-check:
|
|
18
|
+
path: skills/shared/verbs/check/orchestrator
|
|
19
|
+
requires: [check, reporting]
|
|
20
|
+
readonly: true
|
|
21
|
+
|
|
22
|
+
test-function:
|
|
23
|
+
path: skills/shared/testing/orchestrator
|
|
24
|
+
requires: [discovery, testing, verification, reporting]
|
|
25
|
+
|
|
26
|
+
release-app:
|
|
27
|
+
path: skills/shared/platform-release/orchestrator
|
|
28
|
+
requires: [testing, verification, execution, reporting]
|
|
29
|
+
|
|
30
|
+
verb-create:
|
|
31
|
+
path: skills/shared/verbs/create/orchestrator
|
|
32
|
+
requires: [discovery, investigation-lite, planning, validation, impact-analysis, dependency-graph, fitness-functions, rollback, execution, testing, verification, reporting, module-authoring]
|
|
33
|
+
|
|
34
|
+
verb-update:
|
|
35
|
+
path: skills/shared/verbs/update/orchestrator
|
|
36
|
+
requires: [discovery, investigation-lite, planning, validation, impact-analysis, dependency-graph, fitness-functions, rollback, execution, testing, verification, reporting]
|
|
37
|
+
|
|
38
|
+
verb-fix:
|
|
39
|
+
path: skills/shared/verbs/fix/orchestrator
|
|
40
|
+
requires: [discovery, investigation, root-cause, planning, validation, impact-analysis, dependency-graph, fitness-functions, rollback, execution, testing, verification, reporting]
|
|
41
|
+
|
|
42
|
+
verb-review:
|
|
43
|
+
path: skills/shared/verbs/review/orchestrator
|
|
44
|
+
requires: [discovery, architecture, reporting]
|
|
45
|
+
readonly: true
|
|
46
|
+
|
|
47
|
+
verb-test:
|
|
48
|
+
path: skills/shared/verbs/test/orchestrator
|
|
49
|
+
requires: [discovery, planning, testing, verification, reporting]
|
|
50
|
+
|
|
51
|
+
verb-release:
|
|
52
|
+
path: skills/shared/verbs/release/orchestrator
|
|
53
|
+
requires: [testing, verification, execution, reporting]
|
|
54
|
+
|
|
55
|
+
verb-remove:
|
|
56
|
+
path: skills/shared/verbs/remove/orchestrator
|
|
57
|
+
requires: [discovery, remove, execution, testing, verification, reporting]
|
|
58
|
+
|
|
59
|
+
{{INJECT_OBJECT_BLOCKS}}
|
|
60
|
+
|
|
61
|
+
skills:
|
|
62
|
+
discovery:
|
|
63
|
+
path: skills/shared/discovery
|
|
64
|
+
agents: [discovery-inventory, discovery-boundaries, discovery-ssot]
|
|
65
|
+
planning:
|
|
66
|
+
path: skills/shared/planning
|
|
67
|
+
agents: [plan-layer-map, plan-state-machines]
|
|
68
|
+
execution:
|
|
69
|
+
path: skills/shared/execution
|
|
70
|
+
depends: [governance/implementation]
|
|
71
|
+
testing:
|
|
72
|
+
path: skills/shared/testing
|
|
73
|
+
agents: [unit-test-run, fallow-check-changed]
|
|
74
|
+
verification:
|
|
75
|
+
path: skills/shared/verification
|
|
76
|
+
reporting:
|
|
77
|
+
path: skills/shared/reporting
|
|
78
|
+
architecture:
|
|
79
|
+
path: skills/shared/architecture
|
|
80
|
+
agents: [boundary-review, dependency-analysis, system-decomposition]
|
|
81
|
+
documentation:
|
|
82
|
+
path: skills/shared/documentation
|
|
83
|
+
investigation:
|
|
84
|
+
path: skills/shared/investigation
|
|
85
|
+
investigation-lite:
|
|
86
|
+
path: skills/shared/investigation-lite
|
|
87
|
+
root-cause:
|
|
88
|
+
path: skills/shared/root-cause
|
|
89
|
+
validation:
|
|
90
|
+
path: skills/shared/validation
|
|
91
|
+
impact-analysis:
|
|
92
|
+
path: skills/shared/impact-analysis
|
|
93
|
+
agents: [impact-analysis]
|
|
94
|
+
dependency-graph:
|
|
95
|
+
path: skills/shared/dependency-graph
|
|
96
|
+
agents: [dependency-analysis]
|
|
97
|
+
fitness-functions:
|
|
98
|
+
path: skills/shared/fitness-functions
|
|
99
|
+
rollback:
|
|
100
|
+
path: skills/shared/rollback
|
|
101
|
+
run:
|
|
102
|
+
path: skills/shared/run
|
|
103
|
+
check:
|
|
104
|
+
path: skills/shared/check
|
|
105
|
+
agents: [discovery-inventory, discovery-ssot, check-capability-trace]
|
|
106
|
+
component:
|
|
107
|
+
path: skills/shared/component
|
|
108
|
+
model:
|
|
109
|
+
path: skills/shared/model
|
|
110
|
+
migration:
|
|
111
|
+
path: skills/shared/migration
|
|
112
|
+
domain:
|
|
113
|
+
path: skills/shared/domain
|
|
114
|
+
schema:
|
|
115
|
+
path: skills/shared/schema
|
|
116
|
+
workflow:
|
|
117
|
+
path: skills/shared/workflow
|
|
118
|
+
integration:
|
|
119
|
+
path: skills/shared/integration
|
|
120
|
+
remove:
|
|
121
|
+
path: skills/shared/remove
|
|
122
|
+
module-authoring:
|
|
123
|
+
path: skills/shared/module-authoring
|
|
124
|
+
platform-release:
|
|
125
|
+
path: skills/shared/platform-release
|
|
126
|
+
governance/implementation:
|
|
127
|
+
path: skills/shared/governance/implementation
|
|
128
|
+
|
|
129
|
+
agents:
|
|
130
|
+
discovery-inventory:
|
|
131
|
+
path: agents/discovery-inventory.md
|
|
132
|
+
discovery-boundaries:
|
|
133
|
+
path: agents/discovery-boundaries.md
|
|
134
|
+
discovery-ssot:
|
|
135
|
+
path: agents/discovery-ssot.md
|
|
136
|
+
plan-layer-map:
|
|
137
|
+
path: agents/plan-layer-map.md
|
|
138
|
+
plan-state-machines:
|
|
139
|
+
path: agents/plan-state-machines.md
|
|
140
|
+
boundary-review:
|
|
141
|
+
path: agents/boundary-review.md
|
|
142
|
+
dependency-analysis:
|
|
143
|
+
path: agents/dependency-analysis.md
|
|
144
|
+
system-decomposition:
|
|
145
|
+
path: agents/system-decomposition.md
|
|
146
|
+
unit-test-run:
|
|
147
|
+
path: agents/unit-test-run.md
|
|
148
|
+
fallow-check-changed:
|
|
149
|
+
path: agents/fallow-check-changed.md
|
|
150
|
+
check-capability-trace:
|
|
151
|
+
path: agents/check-capability-trace.md
|
|
152
|
+
impact-analysis:
|
|
153
|
+
path: agents/impact-analysis.md
|
|
154
|
+
release-git:
|
|
155
|
+
path: agents/release-git.md
|
|
156
|
+
wave: 1
|
|
157
|
+
blocking: true
|
|
158
|
+
|
|
159
|
+
policies:
|
|
160
|
+
- policies/master-rules.md
|
|
161
|
+
- policies/implementation.md
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# AAAC — responsibility layers
|
|
2
|
+
|
|
3
|
+
AAAC is organized by **responsibility**, not by file type. Paths below map logical layers to current repo locations.
|
|
4
|
+
|
|
5
|
+
## Layer model
|
|
6
|
+
|
|
7
|
+
```text
|
|
8
|
+
User Layer
|
|
9
|
+
├─ Commands .cursor/commands/
|
|
10
|
+
|
|
11
|
+
Control Layer
|
|
12
|
+
├─ Ontology .cursor/aaac/ontology.json, ontology.md
|
|
13
|
+
├─ Dispatch .cursor/aaac/dispatch.md
|
|
14
|
+
├─ Graph .cursor/aaac/graph.yaml
|
|
15
|
+
|
|
16
|
+
Lifecycle Layer (work)
|
|
17
|
+
├─ Work phase definitions .cursor/aaac/lifecycle/phases.json
|
|
18
|
+
├─ Verb work lifecycles .cursor/aaac/lifecycle/lifecycle.json
|
|
19
|
+
|
|
20
|
+
Governance Layer (gates + rules)
|
|
21
|
+
├─ Gate stacks .cursor/aaac/governance/gates.json
|
|
22
|
+
├─ Policies .cursor/policies/
|
|
23
|
+
├─ Rules .cursor/rules/
|
|
24
|
+
├─ Dependencies .cursor/aaac/dependencies.yaml
|
|
25
|
+
├─ Fitness functions .cursor/aaac/fitness-functions.yaml
|
|
26
|
+
|
|
27
|
+
Run Layer (primary execution object)
|
|
28
|
+
├─ Run schema .cursor/aaac/run/schema.json
|
|
29
|
+
├─ Run protocol .cursor/aaac/run/RUN.md
|
|
30
|
+
├─ Run storage .cursor/aaac/state/runs/{run_id}/run.json
|
|
31
|
+
├─ Observability on Run run.decisions, run.log, run.checkpoints
|
|
32
|
+
|
|
33
|
+
Execution Layer
|
|
34
|
+
├─ Domain orchestrators .cursor/domains/<slug>/update/orchestrator/
|
|
35
|
+
├─ Verb orchestrators .cursor/skills/shared/verbs/*/orchestrator/
|
|
36
|
+
├─ Shared pipeline skills .cursor/skills/shared/
|
|
37
|
+
├─ Capability registry .cursor/aaac/capabilities/registry.json
|
|
38
|
+
├─ Agent specs .cursor/agents/
|
|
39
|
+
|
|
40
|
+
Knowledge Layer
|
|
41
|
+
├─ Documentation docs/agentic_architecture.md, docs/architecture.md, …
|
|
42
|
+
|
|
43
|
+
Contracts Layer (cross-cutting)
|
|
44
|
+
├─ Schema .cursor/aaac/contract-schema.md
|
|
45
|
+
├─ Command contracts .cursor/aaac/contracts/commands/
|
|
46
|
+
├─ Skill contracts .cursor/aaac/contracts/skills/
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## Responsibilities
|
|
50
|
+
|
|
51
|
+
| Component | Layer | Responsibility |
|
|
52
|
+
|-----------|-------|----------------|
|
|
53
|
+
| Commands | User | User-facing API |
|
|
54
|
+
| Ontology | Control | Vocabulary and classification |
|
|
55
|
+
| Dispatch | Control | Command resolution and escalation |
|
|
56
|
+
| Graph | Control | Execution routing |
|
|
57
|
+
| Lifecycle | Lifecycle | **Work** phase configuration |
|
|
58
|
+
| Gate stacks | Governance | **Approval** checkpoints |
|
|
59
|
+
| Run | Run | Primary execution object; state + observability |
|
|
60
|
+
| Domain orchestrators | Execution | Domain coordination |
|
|
61
|
+
| Shared pipeline skills | Execution | Phase execution |
|
|
62
|
+
| Capability registry | Execution | object → capability → provider |
|
|
63
|
+
| Agent specs | Execution | Agent behavior |
|
|
64
|
+
| Policies | Governance | Mandatory governance |
|
|
65
|
+
| Contracts | Contracts | Input/output invariants |
|
|
66
|
+
| Documentation | Knowledge | System knowledge |
|
|
67
|
+
|
|
68
|
+
## Questions each layer answers
|
|
69
|
+
|
|
70
|
+
| Layer | Question |
|
|
71
|
+
|-------|----------|
|
|
72
|
+
| User | What does the user want? |
|
|
73
|
+
| Control | What command, object, orchestrator? |
|
|
74
|
+
| Lifecycle | What **work** happens, in what order? |
|
|
75
|
+
| Governance | What **gates** must pass? What rules apply? |
|
|
76
|
+
| Run | Where are we? Why? What was decided? |
|
|
77
|
+
| Execution | Who does the work? |
|
|
78
|
+
| Contracts | What must be true in/out? |
|
|
79
|
+
| Knowledge | What does the system mean? |
|
|
80
|
+
|
|
81
|
+
## Load order (mutating commands)
|
|
82
|
+
|
|
83
|
+
```text
|
|
84
|
+
Policies → Ontology → Graph → Create Run
|
|
85
|
+
→ Lifecycle (work) + Gates (composed into Run.pending)
|
|
86
|
+
→ Orchestrator → Capabilities resolved (recorded on Run)
|
|
87
|
+
→ Execute phases → Update Run → Report
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
## Deprecated
|
|
91
|
+
|
|
92
|
+
- `state/execution-state.yaml` — superseded by `run/schema.json`
|
|
93
|
+
- `observability/decision-log.md`, `execution-log.md` — superseded by Run fields
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 2,
|
|
3
|
+
"description": "Work lifecycle only. Gates are in governance/gates.json. Runtime = work through plan → gate stack → execute through report.",
|
|
4
|
+
"verbs": {
|
|
5
|
+
"create": {
|
|
6
|
+
"work_phases": [
|
|
7
|
+
"discover",
|
|
8
|
+
"investigate_lite",
|
|
9
|
+
"plan",
|
|
10
|
+
"execute",
|
|
11
|
+
"verify",
|
|
12
|
+
"report"
|
|
13
|
+
],
|
|
14
|
+
"gate_stack": "pre_execute"
|
|
15
|
+
},
|
|
16
|
+
"update": {
|
|
17
|
+
"work_phases": [
|
|
18
|
+
"discover",
|
|
19
|
+
"investigate_lite",
|
|
20
|
+
"plan",
|
|
21
|
+
"execute",
|
|
22
|
+
"verify",
|
|
23
|
+
"report"
|
|
24
|
+
],
|
|
25
|
+
"gate_stack": "pre_execute"
|
|
26
|
+
},
|
|
27
|
+
"fix": {
|
|
28
|
+
"work_phases": [
|
|
29
|
+
"discover",
|
|
30
|
+
"investigate",
|
|
31
|
+
"root_cause",
|
|
32
|
+
"plan",
|
|
33
|
+
"execute",
|
|
34
|
+
"verify",
|
|
35
|
+
"report"
|
|
36
|
+
],
|
|
37
|
+
"gate_stack": "pre_execute"
|
|
38
|
+
},
|
|
39
|
+
"review": {
|
|
40
|
+
"work_phases": ["discover", "plan", "report"],
|
|
41
|
+
"gate_stack": null
|
|
42
|
+
},
|
|
43
|
+
"check": {
|
|
44
|
+
"work_phases": ["discover", "report"],
|
|
45
|
+
"gate_stack": "pre_execute_minimal"
|
|
46
|
+
},
|
|
47
|
+
"test": {
|
|
48
|
+
"work_phases": ["discover", "plan", "verify", "report"],
|
|
49
|
+
"gate_stack": null
|
|
50
|
+
},
|
|
51
|
+
"release": {
|
|
52
|
+
"work_phases": ["execute", "verify", "report"],
|
|
53
|
+
"gate_stack": "release"
|
|
54
|
+
},
|
|
55
|
+
"remove": {
|
|
56
|
+
"work_phases": [
|
|
57
|
+
"discover",
|
|
58
|
+
"investigate_lite",
|
|
59
|
+
"plan",
|
|
60
|
+
"execute",
|
|
61
|
+
"verify",
|
|
62
|
+
"report"
|
|
63
|
+
],
|
|
64
|
+
"gate_stack": "pre_execute"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"investigation_depth": {
|
|
68
|
+
"create": "lite",
|
|
69
|
+
"update": "lite",
|
|
70
|
+
"fix": "deep",
|
|
71
|
+
"remove": "lite"
|
|
72
|
+
},
|
|
73
|
+
"runtime_compose": "work_phases before execute + gate_stack + work_phases from execute onward",
|
|
74
|
+
"escalation": {
|
|
75
|
+
"on_gate_fail": "STOP_REQUEST_CLARIFICATION",
|
|
76
|
+
"on_human_approval_required": "blocked"
|
|
77
|
+
}
|
|
78
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 2,
|
|
3
|
+
"description": "Phase id to skill mapping. gate:true phases are governance gates, not lifecycle work.",
|
|
4
|
+
"phases": {
|
|
5
|
+
"discover": { "skill": "discovery", "readonly": true },
|
|
6
|
+
"investigate_lite": { "skill": "investigation-lite", "readonly": true },
|
|
7
|
+
"investigate": { "skill": "investigation", "readonly": true },
|
|
8
|
+
"root_cause": { "skill": "root-cause", "readonly": true },
|
|
9
|
+
"plan": { "skill": "planning" },
|
|
10
|
+
"validate": { "skill": "validation", "gate": true },
|
|
11
|
+
"impact_analysis": { "skill": "impact-analysis", "gate": true },
|
|
12
|
+
"dependency_graph": { "skill": "dependency-graph", "gate": true },
|
|
13
|
+
"fitness_functions": { "skill": "fitness-functions", "gate": true },
|
|
14
|
+
"rollback": { "skill": "rollback", "gate": true },
|
|
15
|
+
"execute": { "skill": "execution" },
|
|
16
|
+
"verify": { "skills": ["testing", "verification"] },
|
|
17
|
+
"report": { "skill": "reporting" }
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
{
|
|
2
|
+
"verbs": {
|
|
3
|
+
"create": "create something new",
|
|
4
|
+
"update": "modify existing thing",
|
|
5
|
+
"fix": "repair something broken",
|
|
6
|
+
"review": "analyze and give feedback",
|
|
7
|
+
"check": "validate or inspect",
|
|
8
|
+
"test": "verify behavior",
|
|
9
|
+
"release": "deploy or ship",
|
|
10
|
+
"remove": "delete or retire"
|
|
11
|
+
},
|
|
12
|
+
"layers": {
|
|
13
|
+
"code": {
|
|
14
|
+
"order": 1,
|
|
15
|
+
"objects": ["function", "component", "module"],
|
|
16
|
+
"description": "Variables up through bounded code units"
|
|
17
|
+
},
|
|
18
|
+
"data": {
|
|
19
|
+
"order": 2,
|
|
20
|
+
"objects": ["schema", "model", "migration"],
|
|
21
|
+
"description": "Persistence shape and change"
|
|
22
|
+
},
|
|
23
|
+
"product": {
|
|
24
|
+
"order": 3,
|
|
25
|
+
"objects": ["feature", "workflow", "integration"],
|
|
26
|
+
"description": "User-visible capability and cross-system flow"
|
|
27
|
+
},
|
|
28
|
+
"system": {
|
|
29
|
+
"order": 4,
|
|
30
|
+
"objects": ["app", "domain", "architecture"],
|
|
31
|
+
"description": "Application, bounded context, and system structure"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"objects": {
|
|
35
|
+
"function": {
|
|
36
|
+
"layer": "code",
|
|
37
|
+
"description": "Function, method, or hook — specific behavior",
|
|
38
|
+
"maturity": "evolving"
|
|
39
|
+
},
|
|
40
|
+
"component": {
|
|
41
|
+
"layer": "code",
|
|
42
|
+
"description": "UI component, view, or composable unit",
|
|
43
|
+
"maturity": "evolving"
|
|
44
|
+
},
|
|
45
|
+
"module": {
|
|
46
|
+
"layer": "code",
|
|
47
|
+
"description": "Bounded domain package (service, library, plugin)",
|
|
48
|
+
"maturity": "critical"
|
|
49
|
+
},
|
|
50
|
+
"schema": {
|
|
51
|
+
"layer": "data",
|
|
52
|
+
"description": "Tables, RLS, database contracts",
|
|
53
|
+
"maturity": "protected"
|
|
54
|
+
},
|
|
55
|
+
"model": {
|
|
56
|
+
"layer": "data",
|
|
57
|
+
"description": "Entity, type, or shared data shape in code",
|
|
58
|
+
"maturity": "critical"
|
|
59
|
+
},
|
|
60
|
+
"migration": {
|
|
61
|
+
"layer": "data",
|
|
62
|
+
"description": "Schema migration or data change script",
|
|
63
|
+
"maturity": "protected"
|
|
64
|
+
},
|
|
65
|
+
"feature": {
|
|
66
|
+
"layer": "product",
|
|
67
|
+
"description": "User-facing capability",
|
|
68
|
+
"maturity": "stable"
|
|
69
|
+
},
|
|
70
|
+
"workflow": {
|
|
71
|
+
"layer": "product",
|
|
72
|
+
"description": "Multi-step business process or state machine",
|
|
73
|
+
"maturity": "stable"
|
|
74
|
+
},
|
|
75
|
+
"integration": {
|
|
76
|
+
"layer": "product",
|
|
77
|
+
"description": "API, endpoint, webhook, MCP, or external adapter",
|
|
78
|
+
"maturity": "critical"
|
|
79
|
+
},
|
|
80
|
+
"app": {
|
|
81
|
+
"layer": "system",
|
|
82
|
+
"description": "Whole application deployable unit",
|
|
83
|
+
"maturity": "critical"
|
|
84
|
+
},
|
|
85
|
+
"domain": {
|
|
86
|
+
"layer": "system",
|
|
87
|
+
"description": "Bounded context / product domain",
|
|
88
|
+
"maturity": "critical"
|
|
89
|
+
},
|
|
90
|
+
"architecture": {
|
|
91
|
+
"layer": "system",
|
|
92
|
+
"description": "Boundaries, capabilities, architecture docs",
|
|
93
|
+
"maturity": "protected"
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"verb_lifecycle_ref": "aaac/lifecycle/lifecycle.json",
|
|
97
|
+
"object_capabilities": {
|
|
98
|
+
"function": [],
|
|
99
|
+
"component": ["component-model", "layer-boundaries", "ui-design"],
|
|
100
|
+
"module": ["layer-boundaries"],
|
|
101
|
+
"schema": ["schema-model", "database-design", "security"],
|
|
102
|
+
"model": ["data-model", "schema-model"],
|
|
103
|
+
"migration": ["migration-model", "schema-model", "database-design", "security"],
|
|
104
|
+
"feature": ["workflow-model", "ux-design"],
|
|
105
|
+
"workflow": ["workflow-model", "ux-design"],
|
|
106
|
+
"integration": ["integration-model", "api-design"],
|
|
107
|
+
"app": ["layer-boundaries", "infrastructure"],
|
|
108
|
+
"domain": ["domain-model", "layer-boundaries"],
|
|
109
|
+
"architecture": ["layer-boundaries", "documentation"]
|
|
110
|
+
},
|
|
111
|
+
"object_capability_verbs": {
|
|
112
|
+
"module": {
|
|
113
|
+
"create": ["module-authoring"],
|
|
114
|
+
"review": ["layer-boundaries"]
|
|
115
|
+
},
|
|
116
|
+
"feature": {
|
|
117
|
+
"create": ["module-authoring"]
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
"confidence": {
|
|
121
|
+
"architecture": 0.9,
|
|
122
|
+
"requirements": 0.8,
|
|
123
|
+
"scope": 0.8
|
|
124
|
+
},
|
|
125
|
+
"object_maturity": {
|
|
126
|
+
"function": "evolving",
|
|
127
|
+
"component": "evolving",
|
|
128
|
+
"module": "critical",
|
|
129
|
+
"schema": "protected",
|
|
130
|
+
"model": "critical",
|
|
131
|
+
"migration": "protected",
|
|
132
|
+
"feature": "stable",
|
|
133
|
+
"workflow": "stable",
|
|
134
|
+
"integration": "critical",
|
|
135
|
+
"app": "critical",
|
|
136
|
+
"domain": "critical",
|
|
137
|
+
"architecture": "protected"
|
|
138
|
+
},
|
|
139
|
+
"maturity_rules": {
|
|
140
|
+
"protected": {
|
|
141
|
+
"requires_phases": ["impact_analysis", "dependency_graph", "rollback"],
|
|
142
|
+
"investigation": "lite_on_create_update_deep_on_fix"
|
|
143
|
+
},
|
|
144
|
+
"critical": {
|
|
145
|
+
"requires_phases": ["impact_analysis", "dependency_graph"],
|
|
146
|
+
"investigation": "lite_on_create_update_deep_on_fix"
|
|
147
|
+
},
|
|
148
|
+
"stable": {
|
|
149
|
+
"requires_phases": ["impact_analysis"],
|
|
150
|
+
"investigation": "lite_on_create_update_deep_on_fix"
|
|
151
|
+
},
|
|
152
|
+
"evolving": {
|
|
153
|
+
"requires_phases": [],
|
|
154
|
+
"investigation": "lite_on_create_update_deep_on_fix"
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
"invalid_pairs": [
|
|
158
|
+
["release", "function"],
|
|
159
|
+
["release", "component"],
|
|
160
|
+
["release", "module"],
|
|
161
|
+
["release", "schema"],
|
|
162
|
+
["release", "model"],
|
|
163
|
+
["release", "migration"],
|
|
164
|
+
["release", "workflow"],
|
|
165
|
+
["release", "architecture"],
|
|
166
|
+
["release", "domain"]
|
|
167
|
+
],
|
|
168
|
+
"domain_optional_suffixes": ["-function"],
|
|
169
|
+
"command_overrides": {
|
|
170
|
+
"fix-bug": { "orchestrator": "verb-fix", "object": "feature" },
|
|
171
|
+
"update-architecture": { "orchestrator": "update-doc" },
|
|
172
|
+
"review-module": { "orchestrator": "review-module" },
|
|
173
|
+
"review-incident": { "orchestrator": "review-incident" },
|
|
174
|
+
"test-function": { "orchestrator": "test-function" },
|
|
175
|
+
"release-app": { "orchestrator": "release-app" },
|
|
176
|
+
"module-update": { "alias": "update-module" },
|
|
177
|
+
"update-doc": { "alias": "update-architecture" },
|
|
178
|
+
"architecture": { "alias": "update-architecture" },
|
|
179
|
+
"swarm-check": { "alias": "review-incident" },
|
|
180
|
+
"refactor": { "alias": "review-module" }
|
|
181
|
+
},
|
|
182
|
+
"command_aliases": {
|
|
183
|
+
"update-api": "update-integration",
|
|
184
|
+
"create-api": "create-integration",
|
|
185
|
+
"fix-api": "fix-integration",
|
|
186
|
+
"check-api": "check-integration",
|
|
187
|
+
"test-api": "test-integration",
|
|
188
|
+
"review-api": "review-integration",
|
|
189
|
+
"remove-api": "remove-integration",
|
|
190
|
+
"update-spec": "update-architecture",
|
|
191
|
+
"create-spec": "create-architecture",
|
|
192
|
+
"review-spec": "review-architecture",
|
|
193
|
+
"fix-hook": "fix-function",
|
|
194
|
+
"create-hook": "create-function",
|
|
195
|
+
"review-hook": "review-function",
|
|
196
|
+
"check-hook": "check-function",
|
|
197
|
+
"create-endpoint": "create-integration",
|
|
198
|
+
"update-endpoint": "update-integration",
|
|
199
|
+
"fix-webhook": "fix-integration",
|
|
200
|
+
"fix-query": "fix-model",
|
|
201
|
+
"create-plugin": "create-module",
|
|
202
|
+
"review-service": "review-module",
|
|
203
|
+
"check-boundary": "check-architecture",
|
|
204
|
+
"review-graph": "review-architecture",
|
|
205
|
+
"check-inventory": "check-module",
|
|
206
|
+
"create-skill": "create-module",
|
|
207
|
+
"update-agent": "update-module",
|
|
208
|
+
"review-dashboard": "review-component",
|
|
209
|
+
"fix-pipeline": "fix-workflow",
|
|
210
|
+
"release-pipeline": "release-app",
|
|
211
|
+
"create-policy": "create-architecture",
|
|
212
|
+
"update-policy": "update-architecture",
|
|
213
|
+
"review-runbook": "review-architecture",
|
|
214
|
+
"create-form": "create-component",
|
|
215
|
+
"update-page": "update-component",
|
|
216
|
+
"review-flow": "review-workflow",
|
|
217
|
+
"update-flow": "update-workflow"
|
|
218
|
+
}
|
|
219
|
+
}
|