@uluops/setup 0.2.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 +178 -0
- package/assets/agents/api-contract-validator-agent.md +960 -0
- package/assets/agents/aristotle-analyst-agent.md +705 -0
- package/assets/agents/aristotle-explorer-agent.md +152 -0
- package/assets/agents/aristotle-forecaster-agent.md +666 -0
- package/assets/agents/aristotle-validator-agent.md +667 -0
- package/assets/agents/assumption-excavator-agent.md +1354 -0
- package/assets/agents/code-auditor-agent.md +1061 -0
- package/assets/agents/code-optimizer-agent.md +876 -0
- package/assets/agents/code-validator-agent.md +846 -0
- package/assets/agents/docs-validator-agent.md +490 -0
- package/assets/agents/frontend-validator-agent.md +844 -0
- package/assets/agents/mcp-validator-agent.md +827 -0
- package/assets/agents/pre-implementation-architect-agent.md +1036 -0
- package/assets/agents/prompt-engineer-agent.md +1158 -0
- package/assets/agents/prompt-pattern-analyzer-agent.md +907 -0
- package/assets/agents/prompt-quality-validator-agent.md +1018 -0
- package/assets/agents/public-interface-validator-agent.md +951 -0
- package/assets/agents/release-readiness-agent.md +482 -0
- package/assets/agents/security-analyst-agent.md +1093 -0
- package/assets/agents/test-architect-agent.md +861 -0
- package/assets/agents/type-safety-validator-agent.md +932 -0
- package/assets/agents/workflow-synthesis-agent.md +836 -0
- package/assets/commands/agents/api-contract.md +135 -0
- package/assets/commands/agents/architect.md +135 -0
- package/assets/commands/agents/aristotle-analyst.md +115 -0
- package/assets/commands/agents/aristotle-explorer.md +92 -0
- package/assets/commands/agents/aristotle-forecaster.md +114 -0
- package/assets/commands/agents/aristotle-validator.md +114 -0
- package/assets/commands/agents/assumption-excavator.md +114 -0
- package/assets/commands/agents/audit.md +136 -0
- package/assets/commands/agents/docs-validate.md +133 -0
- package/assets/commands/agents/frontend.md +135 -0
- package/assets/commands/agents/mcp-validate.md +136 -0
- package/assets/commands/agents/optimize.md +133 -0
- package/assets/commands/agents/pattern-analyzer.md +126 -0
- package/assets/commands/agents/prompt-quality.md +134 -0
- package/assets/commands/agents/prompt-validate.md +135 -0
- package/assets/commands/agents/public-interface.md +134 -0
- package/assets/commands/agents/release.md +135 -0
- package/assets/commands/agents/security.md +137 -0
- package/assets/commands/agents/test-review.md +136 -0
- package/assets/commands/agents/type-safety.md +135 -0
- package/assets/commands/agents/validate.md +134 -0
- package/assets/commands/agents/workflow-synthesis.md +101 -0
- package/assets/commands/workflows/aristotle.md +543 -0
- package/assets/commands/workflows/post-implementation.md +577 -0
- package/assets/commands/workflows/pre-implementation.md +670 -0
- package/assets/commands/workflows/prompt-audit.md +754 -0
- package/assets/commands/workflows/ship.md +721 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +436 -0
- package/dist/lib/config-merger.d.ts +26 -0
- package/dist/lib/config-merger.js +63 -0
- package/dist/lib/file-ops.d.ts +23 -0
- package/dist/lib/file-ops.js +86 -0
- package/dist/lib/hash.d.ts +1 -0
- package/dist/lib/hash.js +4 -0
- package/dist/lib/manifest.d.ts +16 -0
- package/dist/lib/manifest.js +34 -0
- package/dist/lib/paths.d.ts +14 -0
- package/dist/lib/paths.js +49 -0
- package/dist/lib/settings-merger.d.ts +43 -0
- package/dist/lib/settings-merger.js +91 -0
- package/dist/steps/agents.d.ts +8 -0
- package/dist/steps/agents.js +14 -0
- package/dist/steps/auth.d.ts +12 -0
- package/dist/steps/auth.js +80 -0
- package/dist/steps/commands.d.ts +9 -0
- package/dist/steps/commands.js +69 -0
- package/dist/steps/detect.d.ts +9 -0
- package/dist/steps/detect.js +30 -0
- package/dist/steps/mcp.d.ts +6 -0
- package/dist/steps/mcp.js +40 -0
- package/dist/steps/metrics.d.ts +22 -0
- package/dist/steps/metrics.js +176 -0
- package/dist/steps/shell.d.ts +2 -0
- package/dist/steps/shell.js +48 -0
- package/dist/steps/signup.d.ts +13 -0
- package/dist/steps/signup.js +92 -0
- package/dist/steps/verify.d.ts +10 -0
- package/dist/steps/verify.js +184 -0
- package/dist/test/auth.test.d.ts +1 -0
- package/dist/test/auth.test.js +43 -0
- package/dist/test/config-io.test.d.ts +1 -0
- package/dist/test/config-io.test.js +56 -0
- package/dist/test/config-merger.test.d.ts +1 -0
- package/dist/test/config-merger.test.js +94 -0
- package/dist/test/detect.test.d.ts +1 -0
- package/dist/test/detect.test.js +25 -0
- package/dist/test/file-ops.test.d.ts +1 -0
- package/dist/test/file-ops.test.js +100 -0
- package/dist/test/hash.test.d.ts +1 -0
- package/dist/test/hash.test.js +14 -0
- package/dist/test/manifest.test.d.ts +1 -0
- package/dist/test/manifest.test.js +78 -0
- package/dist/test/paths.test.d.ts +1 -0
- package/dist/test/paths.test.js +30 -0
- package/dist/test/settings-merger.test.d.ts +1 -0
- package/dist/test/settings-merger.test.js +167 -0
- package/dist/test/shell-profile.test.d.ts +1 -0
- package/dist/test/shell-profile.test.js +40 -0
- package/dist/test/shell.test.d.ts +1 -0
- package/dist/test/shell.test.js +71 -0
- package/dist/test/signup.test.d.ts +1 -0
- package/dist/test/signup.test.js +83 -0
- package/package.json +36 -0
|
@@ -0,0 +1,543 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: aristotle
|
|
3
|
+
description: Sequential four-phase Aristotelian analysis pipeline. Explorer maps the categorical landscape, Analyst decomposes four causes, Validator checks teleological alignment, Forecaster projects actualization trajectory. Each phase builds on the previous for progressively deeper ontological understanding.
|
|
4
|
+
tools: Read, Grep, Glob, Bash
|
|
5
|
+
model: opus
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Aristotle Pipeline
|
|
9
|
+
|
|
10
|
+
Sequential four-phase Aristotelian analysis pipeline. Explorer maps the categorical landscape, Analyst decomposes four causes, Validator checks teleological alignment, Forecaster projects actualization trajectory. Each phase builds on the previous for progressively deeper ontological understanding.
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
**Philosophy**: Understanding requires progressive deepening — discover WHAT kinds exist (Explorer), WHY through four causes (Analyst), WHETHER means serve ends (Validator), WHERE the trajectory leads (Forecaster). Each phase builds on its predecessor.
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## Workflow Overview
|
|
18
|
+
|
|
19
|
+
```
|
|
20
|
+
┌──────────────────────────────────────────────────────────────────┐
|
|
21
|
+
│ ARISTOTLE PIPELINE │
|
|
22
|
+
│ Explorer → Analyst → Validator → Forecaster │
|
|
23
|
+
├──────────────────────────────────────────────────────────────────┤
|
|
24
|
+
│ │
|
|
25
|
+
│ Phase 1: Categorical Mapping [OPUS] │
|
|
26
|
+
│ ┌──────────────────────────────────────────────────────────┐ │
|
|
27
|
+
│ │ aristotle-explorer │ │
|
|
28
|
+
│ │ Genus/differentia, taxonomic inventory, kind-mapping │ │
|
|
29
|
+
│ │ ESSENTIAL / CATEGORIZED / UNCATEGORIZED │ │
|
|
30
|
+
│ └─────────────────────────┬────────────────────────────────┘ │
|
|
31
|
+
│ │ taxonomic map │
|
|
32
|
+
│ ▼ │
|
|
33
|
+
│ Phase 2: Four-Cause Decomposition [OPUS] │
|
|
34
|
+
│ ┌──────────────────────────────────────────────────────────┐ │
|
|
35
|
+
│ │ aristotle-analyst │ │
|
|
36
|
+
│ │ Material, formal, efficient, final cause + telos │ │
|
|
37
|
+
│ │ TELEOLOGICAL / ATELEOLOGICAL │ │
|
|
38
|
+
│ └─────────────────────────┬────────────────────────────────┘ │
|
|
39
|
+
│ │ four-cause decomposition │
|
|
40
|
+
│ ▼ │
|
|
41
|
+
│ Phase 3: Teleological Validation [OPUS] │
|
|
42
|
+
│ ┌──────────────────────────────────────────────────────────┐ │
|
|
43
|
+
│ │ aristotle-validator │ │
|
|
44
|
+
│ │ Alignment audit, means-to-ends, category errors │ │
|
|
45
|
+
│ │ ALIGNED / MISALIGNED │ │
|
|
46
|
+
│ └─────────────────────────┬────────────────────────────────┘ │
|
|
47
|
+
│ │ alignment audit │
|
|
48
|
+
│ ▼ │
|
|
49
|
+
│ Phase 4: Actualization Forecasting [OPUS] │
|
|
50
|
+
│ ┌──────────────────────────────────────────────────────────┐ │
|
|
51
|
+
│ │ aristotle-forecaster │ │
|
|
52
|
+
│ │ Potentiality→actuality, impediments, trajectory │ │
|
|
53
|
+
│ │ HIGH_CONFIDENCE / MODERATE_CONFIDENCE / LOW_CONFIDENCE │ │
|
|
54
|
+
│ └─────────────────────────┬────────────────────────────────┘ │
|
|
55
|
+
│ │ │
|
|
56
|
+
│ ▼ │
|
|
57
|
+
│ ┌──────────────────────────────────────────────────────────┐ │
|
|
58
|
+
│ │ Save to Tracker (cognitive-lens) │ │
|
|
59
|
+
│ └──────────────────────────────────────────────────────────┘ │
|
|
60
|
+
│ │
|
|
61
|
+
└──────────────────────────────────────────────────────────────────┘
|
|
62
|
+
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
[OPUS] = All phases run on Opus for deep philosophical reasoning
|
|
66
|
+
[SEQUENTIAL] = Each phase depends on the previous
|
|
67
|
+
[PIPELINE] = Discovery → Analysis → Validation → Forecasting
|
|
68
|
+
|
|
69
|
+
Duration: 15-30 minutes (4 Opus agents in sequence)
|
|
70
|
+
Each phase inherits context from its predecessor
|
|
71
|
+
Explorer establishes the categorical vocabulary that later phases use
|
|
72
|
+
Analyst builds on Explorer's categories to identify causes and telos
|
|
73
|
+
Validator checks whether Analyst's telos assessment holds under scrutiny
|
|
74
|
+
Forecaster projects forward from the validated categorical-teleological picture
|
|
75
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
## Agent Handoff Formats
|
|
79
|
+
|
|
80
|
+
Each agent passes structured data to the next in the pipeline:
|
|
81
|
+
|
|
82
|
+
| From | To | Passes | Expects |
|
|
83
|
+
|------|-----|--------|---------|
|
|
84
|
+
| Aristotle Explorer | Aristotle Analyst | Taxonomic map, categorical inventory, genus/differentia classifications, essential definitions | Use categorical vocabulary to ground four-cause decomposition — identify causes for the categories discovered |
|
|
85
|
+
| Aristotle Analyst | Aristotle Validator | Four-cause decomposition, telos assessment, essential/accidental property distinctions | Validate whether the identified telos is coherent and means are properly ordered toward it |
|
|
86
|
+
| Aristotle Validator | Aristotle Forecaster | Alignment audit, validated categories, confirmed or disputed telos, category error inventory | Project actualization trajectory from the validated teleological picture — what impediments remain? |
|
|
87
|
+
|
|
88
|
+
**Handoff Contract:**
|
|
89
|
+
- Each phase builds on its predecessor — this is NOT parallel analysis
|
|
90
|
+
- Explorer establishes categorical vocabulary used by all subsequent phases
|
|
91
|
+
- Analyst decomposes causes using Explorer's categories as raw material
|
|
92
|
+
- Validator checks Analyst's telos assessment against Explorer's categorical landscape
|
|
93
|
+
- Forecaster projects from Validator's confirmed picture, noting where disputed elements create uncertainty
|
|
94
|
+
- If an early phase scores low, later phases should note the weaker foundation
|
|
95
|
+
|
|
96
|
+
---
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
---
|
|
100
|
+
|
|
101
|
+
## Arguments
|
|
102
|
+
|
|
103
|
+
### Positional Arguments
|
|
104
|
+
|
|
105
|
+
| Argument | Required | Description |
|
|
106
|
+
|----------|----------|-------------|
|
|
107
|
+
| target | Yes | Target directory, file, or artifact to analyze |
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
### Usage Examples
|
|
111
|
+
|
|
112
|
+
| Command | Behavior |
|
|
113
|
+
|---------|----------|
|
|
114
|
+
| `/workflows:aristotle-pipeline uluops-registry-api/` | Full four-phase Aristotelian analysis of the registry API codebase |
|
|
115
|
+
| `/workflows:aristotle-pipeline udl/adl/v3/code-validator.agent.yaml` | Progressive ontological deepening on an agent definition |
|
|
116
|
+
| `/workflows:aristotle-pipeline docs/specs/cognitive-lens-library-spec.md` | Categorical mapping through actualization forecasting of a specification |
|
|
117
|
+
|
|
118
|
+
---
|
|
119
|
+
|
|
120
|
+
## Execution Mode Selection
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
| Mode | Description | Best For |
|
|
124
|
+
|------|-------------|----------|
|
|
125
|
+
| Sequential | Each phase builds on the previous phase's output | Always — progressive deepening requires ordered execution |
|
|
126
|
+
|
|
127
|
+
**Parallel execution groups (when parallel mode selected):**
|
|
128
|
+
|
|
129
|
+
```
|
|
130
|
+
Group 1 (sequential): explore
|
|
131
|
+
│
|
|
132
|
+
▼
|
|
133
|
+
Group 2 (sequential): analyze
|
|
134
|
+
│
|
|
135
|
+
▼
|
|
136
|
+
Group 3 (sequential): validate
|
|
137
|
+
│
|
|
138
|
+
▼
|
|
139
|
+
Group 4 (sequential): forecast
|
|
140
|
+
│
|
|
141
|
+
▼
|
|
142
|
+
Group 5 (always): persist
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
**Note:** Conditional validators only run in their groups if detected in pre-flight.
|
|
146
|
+
|
|
147
|
+
Each phase inherits context from its predecessor
|
|
148
|
+
Explorer establishes the categorical vocabulary that later phases use
|
|
149
|
+
Analyst builds on Explorer's categories to identify causes and telos
|
|
150
|
+
Validator checks whether Analyst's telos assessment holds under scrutiny
|
|
151
|
+
Forecaster projects forward from the validated categorical-teleological picture
|
|
152
|
+
|
|
153
|
+
---
|
|
154
|
+
|
|
155
|
+
## Execution
|
|
156
|
+
|
|
157
|
+
Run each agent in sequence (or parallel groups if selected). Stop and fix if any agent fails. **Collect all recommendations for tracker persistence.**
|
|
158
|
+
|
|
159
|
+
### Phase 1: Categorical Mapping
|
|
160
|
+
**Commands**: aristotle-explorer@1.0.0
|
|
161
|
+
|
|
162
|
+
**Invoke via Task tool:**
|
|
163
|
+
```
|
|
164
|
+
Task(
|
|
165
|
+
subagent_type: "aristotle-explorer",
|
|
166
|
+
prompt: "[validator:aristotle-explorer] Validate {TARGET_DIRECTORY}. Return structured JSON OUTPUT.",
|
|
167
|
+
description: "Aristotle Explorer"
|
|
168
|
+
)
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
**Gate**: threshold >= 70, on fail: warn
|
|
172
|
+
|
|
173
|
+
**Why this threshold?** Categorical mapping requires identifying meaningful kinds. Score >=70 indicates the taxonomic landscape is sufficiently mapped for downstream analysis.
|
|
174
|
+
|
|
175
|
+
**Focus**:
|
|
176
|
+
- What KIND of thing is each element? (genus/differentia)
|
|
177
|
+
- Categorical inventory of the artifact's domain
|
|
178
|
+
- Necessary vs accidental properties of each category
|
|
179
|
+
- Taxonomic relationships between categories
|
|
180
|
+
- Essential definitions grounding the analysis
|
|
181
|
+
|
|
182
|
+
**Capture for tracker**: Taxonomic map, categorical inventory, genus/differentia classifications, essential definitions.
|
|
183
|
+
|
|
184
|
+
**If failing**: Document categorical gaps. This is advisory — pipeline continues to capture all perspectives.
|
|
185
|
+
|
|
186
|
+
**Decision criteria**:
|
|
187
|
+
- ESSENTIAL: Score >=70 AND categories clearly identified with genus/differentia
|
|
188
|
+
- CATEGORIZED: Score >=50 AND some categories identified but incomplete
|
|
189
|
+
- UNCATEGORIZED: Score <50 OR categories unclear
|
|
190
|
+
|
|
191
|
+
---
|
|
192
|
+
|
|
193
|
+
### Phase 2: Four-Cause Decomposition
|
|
194
|
+
**Commands**: aristotle-analyst@1.0.0
|
|
195
|
+
|
|
196
|
+
**Invoke via Task tool:**
|
|
197
|
+
```
|
|
198
|
+
Task(
|
|
199
|
+
subagent_type: "aristotle-analyst",
|
|
200
|
+
prompt: "[validator:aristotle-analyst] Validate {TARGET_DIRECTORY}. Return structured JSON OUTPUT.",
|
|
201
|
+
description: "Aristotle Analyst"
|
|
202
|
+
)
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
**Gate**: threshold >= 70, on fail: warn
|
|
206
|
+
|
|
207
|
+
**Why this threshold?** Four-cause analysis requires identifying at least material, formal, and final cause. Score >=70 indicates meaningful causal decomposition.
|
|
208
|
+
|
|
209
|
+
**Focus**:
|
|
210
|
+
- Material cause (what is the artifact made of?)
|
|
211
|
+
- Formal cause (what structure does it have?)
|
|
212
|
+
- Efficient cause (what process produced it?)
|
|
213
|
+
- Final cause / telos (what is it FOR?)
|
|
214
|
+
- Essential vs accidental properties
|
|
215
|
+
- Telos coherence (are means ordered toward ends?)
|
|
216
|
+
|
|
217
|
+
**Capture for tracker**: Four-cause decomposition, telos assessment, essential/accidental distinctions.
|
|
218
|
+
|
|
219
|
+
**If failing**: Document causal gaps. The pipeline continues — later phases may still reveal valuable insights.
|
|
220
|
+
|
|
221
|
+
**Decision criteria**:
|
|
222
|
+
- TELEOLOGICAL: Score >=70 AND telos is coherent AND means ordered toward ends
|
|
223
|
+
- ATELEOLOGICAL: Score <70 OR telos incoherent OR means disconnected from ends
|
|
224
|
+
|
|
225
|
+
**Depends on**: explore
|
|
226
|
+
|
|
227
|
+
---
|
|
228
|
+
|
|
229
|
+
### Phase 3: Teleological Alignment Validation
|
|
230
|
+
**Commands**: aristotle-validator@1.0.0
|
|
231
|
+
|
|
232
|
+
**Invoke via Task tool:**
|
|
233
|
+
```
|
|
234
|
+
Task(
|
|
235
|
+
subagent_type: "aristotle-validator",
|
|
236
|
+
prompt: "[validator:aristotle-validator] Validate {TARGET_DIRECTORY}. Return structured JSON OUTPUT.",
|
|
237
|
+
description: "Aristotle Validator"
|
|
238
|
+
)
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
**Gate**: threshold >= 70, on fail: warn
|
|
242
|
+
|
|
243
|
+
**Why this threshold?** Teleological validation requires checking alignment against identified telos. Score >=70 indicates the artifact's means serve its ends.
|
|
244
|
+
|
|
245
|
+
**Focus**:
|
|
246
|
+
- Teleological alignment (means properly ordered toward ends?)
|
|
247
|
+
- Category error detection (elements misclassified or misplaced?)
|
|
248
|
+
- Function fulfillment (does each component serve its natural function?)
|
|
249
|
+
- Means-to-ends ordering (are intermediate steps properly sequenced?)
|
|
250
|
+
- Alignment audit across the artifact's structure
|
|
251
|
+
|
|
252
|
+
**Capture for tracker**: Alignment audit, category error inventory, means-to-ends assessment, function fulfillment.
|
|
253
|
+
|
|
254
|
+
**If failing**: Document alignment concerns. Pipeline continues for complete Aristotelian picture.
|
|
255
|
+
|
|
256
|
+
**Decision criteria**:
|
|
257
|
+
- ALIGNED: Score >=70 AND means properly ordered AND no category errors
|
|
258
|
+
- MISALIGNED: Score <70 OR means disordered OR significant category errors
|
|
259
|
+
|
|
260
|
+
**Depends on**: analyze
|
|
261
|
+
|
|
262
|
+
---
|
|
263
|
+
|
|
264
|
+
### Phase 4: Actualization Trajectory Projection
|
|
265
|
+
**Commands**: aristotle-forecaster@1.0.0
|
|
266
|
+
|
|
267
|
+
**Invoke via Task tool:**
|
|
268
|
+
```
|
|
269
|
+
Task(
|
|
270
|
+
subagent_type: "aristotle-forecaster",
|
|
271
|
+
prompt: "[validator:aristotle-forecaster] Validate {TARGET_DIRECTORY}. Return structured JSON OUTPUT.",
|
|
272
|
+
description: "Aristotle Forecaster"
|
|
273
|
+
)
|
|
274
|
+
```
|
|
275
|
+
|
|
276
|
+
**Gate**: threshold >= 70, on fail: warn
|
|
277
|
+
|
|
278
|
+
**Why this threshold?** Actualization forecasting requires a validated telos to project against. Score >=70 indicates a credible trajectory.
|
|
279
|
+
|
|
280
|
+
**Focus**:
|
|
281
|
+
- Potentiality-to-actuality trajectory mapping
|
|
282
|
+
- Impediments to telos realization
|
|
283
|
+
- Current actualization state assessment
|
|
284
|
+
- Natural developmental path projection
|
|
285
|
+
- Conditions required for full actualization
|
|
286
|
+
|
|
287
|
+
**Capture for tracker**: Actualization trajectory, impediment inventory, developmental path, realization conditions.
|
|
288
|
+
|
|
289
|
+
**If failing**: Document trajectory concerns. All four perspectives are captured regardless.
|
|
290
|
+
|
|
291
|
+
**Decision criteria**:
|
|
292
|
+
- HIGH_CONFIDENCE: Score >=75 AND clear trajectory with manageable impediments
|
|
293
|
+
- MODERATE_CONFIDENCE: Score >=55 AND trajectory visible but significant impediments
|
|
294
|
+
- LOW_CONFIDENCE: Score <55 OR trajectory unclear OR blocking impediments
|
|
295
|
+
|
|
296
|
+
**Depends on**: validate
|
|
297
|
+
|
|
298
|
+
---
|
|
299
|
+
|
|
300
|
+
### Phase 5: Save Results to Tracker
|
|
301
|
+
**Commands**: workflow-synthesis@1.0.0
|
|
302
|
+
|
|
303
|
+
**Invoke via Task tool:**
|
|
304
|
+
```
|
|
305
|
+
Task(
|
|
306
|
+
subagent_type: "workflow-synthesis",
|
|
307
|
+
prompt: "[validator:workflow-synthesis] Validate {TARGET_DIRECTORY}. Return structured JSON OUTPUT.",
|
|
308
|
+
description: "Workflow Synthesis"
|
|
309
|
+
)
|
|
310
|
+
```
|
|
311
|
+
|
|
312
|
+
**Gate**: threshold >= 0, on fail: warn
|
|
313
|
+
|
|
314
|
+
**Why this threshold?** Synthesis and persistence always run regardless of phase scores.
|
|
315
|
+
|
|
316
|
+
**Focus**:
|
|
317
|
+
- Synthesize cross-phase insights from the sequential pipeline
|
|
318
|
+
- Persist all phase results to uluops-tracker
|
|
319
|
+
- Generate report artifact
|
|
320
|
+
|
|
321
|
+
**Capture for tracker**: Cross-phase synthesis and results persisted to cognitive-lens tracker.
|
|
322
|
+
|
|
323
|
+
**If failing**: Synthesis and tracker save always attempted.
|
|
324
|
+
|
|
325
|
+
---
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
---
|
|
329
|
+
|
|
330
|
+
## Summary Report
|
|
331
|
+
|
|
332
|
+
After all phases complete, summarize:
|
|
333
|
+
|
|
334
|
+
```
|
|
335
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
336
|
+
SUMMARY
|
|
337
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
338
|
+
|
|
339
|
+
Target: [path]
|
|
340
|
+
Run: [N]
|
|
341
|
+
|
|
342
|
+
┌─────────────────────┬────────┬────────────┐
|
|
343
|
+
│ Agent │ Score │ Status │
|
|
344
|
+
├─────────────────────┼────────┼────────────┤
|
|
345
|
+
│ ... │ [X]/100│ ✅/❌/⏭️ │
|
|
346
|
+
└─────────────────────┴────────┴────────────┘
|
|
347
|
+
|
|
348
|
+
```
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
### Scoring
|
|
352
|
+
|
|
353
|
+
**Method**: weighted_average
|
|
354
|
+
|
|
355
|
+
| Phase | Weight |
|
|
356
|
+
|-------|--------|
|
|
357
|
+
| explore | 15% |
|
|
358
|
+
| analyze | 35% |
|
|
359
|
+
| validate | 35% |
|
|
360
|
+
| forecast | 15% |
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
---
|
|
364
|
+
|
|
365
|
+
## Final Phase: Outputs (MANDATORY)
|
|
366
|
+
|
|
367
|
+
**This phase runs regardless of pass/fail status.** All agent recommendations must be captured.
|
|
368
|
+
|
|
369
|
+
### Artifacts
|
|
370
|
+
|
|
371
|
+
**aristotle-pipeline-report** (markdown):
|
|
372
|
+
|
|
373
|
+
Generate a timestamp for the filename:
|
|
374
|
+
|
|
375
|
+
```bash
|
|
376
|
+
TIMESTAMP=$(date +%Y-%m-%dT%H-%M-%S)
|
|
377
|
+
echo "Timestamp: $TIMESTAMP"
|
|
378
|
+
```
|
|
379
|
+
|
|
380
|
+
Write file to: `{{ target_path }}/{{ report_file }}`
|
|
381
|
+
|
|
382
|
+
#### Granularity Rules
|
|
383
|
+
|
|
384
|
+
**DO NOT consolidate multiple findings into single entries.** The tracker handles deduplication via fingerprinting. Save ALL raw findings:
|
|
385
|
+
|
|
386
|
+
| Agent Reports | You Save |
|
|
387
|
+
|---------------|----------|
|
|
388
|
+
| "N+1 pattern in 14 locations" | 14 separate recommendations, one per file:line |
|
|
389
|
+
| "Missing null checks on 8 .find() calls" | 8 separate recommendations |
|
|
390
|
+
| "6 endpoints missing from docs" | 6 separate recommendations |
|
|
391
|
+
|
|
392
|
+
**Rule:** If validator output has a file:line reference, it becomes a separate recommendation entry.
|
|
393
|
+
|
|
394
|
+
### Save to Tracker (MANDATORY — Always Save First)
|
|
395
|
+
|
|
396
|
+
**CRITICAL: Always save to the tracker. Never skip this step.**
|
|
397
|
+
|
|
398
|
+
After writing the markdown file, save results via `mcp__uluops-tracker__save_features_list`:
|
|
399
|
+
|
|
400
|
+
```
|
|
401
|
+
mcp__uluops-tracker__save_features_list({
|
|
402
|
+
project: {{ target_name }},
|
|
403
|
+
workflow_type: "cognitive-lens",
|
|
404
|
+
timestamp: {ISO8601 timestamp},
|
|
405
|
+
validators: [
|
|
406
|
+
{
|
|
407
|
+
"name": "{Agent Name}",
|
|
408
|
+
"score": {numeric},
|
|
409
|
+
"status": "{PASS|FAIL|SKIP}",
|
|
410
|
+
"model": "{haiku|sonnet|opus}"
|
|
411
|
+
}
|
|
412
|
+
// ... one entry per agent
|
|
413
|
+
],
|
|
414
|
+
recommendations: [
|
|
415
|
+
{
|
|
416
|
+
"validator": "{agent-name}",
|
|
417
|
+
"title": "{short title}",
|
|
418
|
+
"priority": "{critical|suggested|backlog}",
|
|
419
|
+
"severity": "{critical|high|medium|low|info}",
|
|
420
|
+
"description": "{details}",
|
|
421
|
+
"file_path": "{path}",
|
|
422
|
+
"line_number": {number}
|
|
423
|
+
}
|
|
424
|
+
// ... one entry per recommendation
|
|
425
|
+
]
|
|
426
|
+
})
|
|
427
|
+
```
|
|
428
|
+
|
|
429
|
+
**Priority mapping:**
|
|
430
|
+
- Blocking (fix before ship) → `"critical"`
|
|
431
|
+
- Warnings (review before ship) → `"suggested"`
|
|
432
|
+
- Post-ship/backlog items → `"backlog"`
|
|
433
|
+
|
|
434
|
+
### Post-Save Verification
|
|
435
|
+
|
|
436
|
+
After saving, verify the data was persisted correctly. **These are warnings, not blockers.**
|
|
437
|
+
|
|
438
|
+
**Query uluops-tracker and compare to recommendations.length**
|
|
439
|
+
|
|
440
|
+
- On mismatch: **warn** (do NOT block or re-attempt)
|
|
441
|
+
- Saved count differs from payload. Cross-phase deduplication is expected.
|
|
442
|
+
|
|
443
|
+
**Verification procedure:**
|
|
444
|
+
|
|
445
|
+
1. Query the tracker for the saved run
|
|
446
|
+
2. Compare saved recommendation count against your payload count
|
|
447
|
+
3. If counts differ, log the discrepancy as a note — cross-phase deduplication is expected when multiple validators flag the same issue
|
|
448
|
+
4. **Proceed regardless** — the save already succeeded
|
|
449
|
+
|
|
450
|
+
|
|
451
|
+
---
|
|
452
|
+
|
|
453
|
+
|
|
454
|
+
---
|
|
455
|
+
|
|
456
|
+
## Iteration Pattern
|
|
457
|
+
|
|
458
|
+
```
|
|
459
|
+
┌─────────────────────────────────────────────────────────────────────────┐
|
|
460
|
+
│ ARISTOTLE PIPELINE ANALYSIS FLOW │
|
|
461
|
+
└─────────────────────────────────────────────────────────────────────────┘
|
|
462
|
+
│
|
|
463
|
+
▼
|
|
464
|
+
┌─────────────────┐
|
|
465
|
+
│ Run Pipeline │ /workflows:aristotle-pipeline <target>
|
|
466
|
+
└────────┬────────┘
|
|
467
|
+
│
|
|
468
|
+
▼
|
|
469
|
+
┌─────────────────┐ ┌─────────────────┐
|
|
470
|
+
│ Review Report │────▶│ Address │
|
|
471
|
+
│ + Trajectory │ │ Findings │
|
|
472
|
+
└────────┬────────┘ └────────┬────────┘
|
|
473
|
+
│ │
|
|
474
|
+
Done │
|
|
475
|
+
◀───────────────┘
|
|
476
|
+
(Re-run to track actualization progress)
|
|
477
|
+
|
|
478
|
+
```
|
|
479
|
+
|
|
480
|
+
**Typical iterations**:
|
|
481
|
+
- Initial ontological audit: 1 run
|
|
482
|
+
- After addressing category errors or alignment issues: 1-2 runs to measure teleological improvement
|
|
483
|
+
- Tracking actualization over time: Periodic runs to track trajectory changes
|
|
484
|
+
|
|
485
|
+
**Report behavior across iterations**:
|
|
486
|
+
- Each run creates a timestamped report file
|
|
487
|
+
- Previous reports are preserved for comparison
|
|
488
|
+
- Run periodically to track actualization trajectory changes
|
|
489
|
+
- Compare reports to measure ontological maturity over time
|
|
490
|
+
|
|
491
|
+
---
|
|
492
|
+
|
|
493
|
+
## Quick Reference
|
|
494
|
+
|
|
495
|
+
| Agent | Threshold | Group |
|
|
496
|
+
|-------|-----------|-------|
|
|
497
|
+
| Categorical Mapping | threshold >= 70, on fail: warn | 1 |
|
|
498
|
+
| Four-Cause Decomposition | threshold >= 70, on fail: warn | 2 |
|
|
499
|
+
| Teleological Alignment Validation | threshold >= 70, on fail: warn | 3 |
|
|
500
|
+
| Actualization Trajectory Projection | threshold >= 70, on fail: warn | 4 |
|
|
501
|
+
| Save Results to Tracker | threshold >= 0, on fail: warn | 5 |
|
|
502
|
+
|
|
503
|
+
|
|
504
|
+
---
|
|
505
|
+
|
|
506
|
+
## Troubleshooting
|
|
507
|
+
|
|
508
|
+
### Why run sequentially instead of in parallel like foundations?
|
|
509
|
+
|
|
510
|
+
The four Aristotle agents form a deepening pipeline, not independent lenses.
|
|
511
|
+
Explorer discovers categories that Analyst uses for decomposition.
|
|
512
|
+
Analyst identifies telos that Validator checks for alignment.
|
|
513
|
+
Validator confirms the picture that Forecaster projects forward from.
|
|
514
|
+
Running in parallel would mean each agent works without its predecessor's
|
|
515
|
+
insights — defeating the purpose of progressive deepening.
|
|
516
|
+
|
|
517
|
+
|
|
518
|
+
### An early phase scored low — should I trust later phases?
|
|
519
|
+
|
|
520
|
+
Later phases note when they're building on a weaker foundation.
|
|
521
|
+
A low Explorer score means the categorical vocabulary is incomplete —
|
|
522
|
+
Analyst may decompose causes for the wrong categories.
|
|
523
|
+
A low Analyst score means the telos may be misidentified —
|
|
524
|
+
Validator checks alignment against a potentially wrong target.
|
|
525
|
+
The pipeline continues regardless (on_failure: continue) because
|
|
526
|
+
even partial insights are valuable, but weight the findings accordingly.
|
|
527
|
+
|
|
528
|
+
|
|
529
|
+
### How is this different from running aristotle-analyst alone?
|
|
530
|
+
|
|
531
|
+
aristotle-analyst gives you four-cause decomposition as a standalone analysis.
|
|
532
|
+
The pipeline surrounds it with categorical discovery (Explorer), alignment
|
|
533
|
+
validation (Validator), and trajectory projection (Forecaster). You get
|
|
534
|
+
not just "what are the causes" but "what categories exist → what causes
|
|
535
|
+
them → are they aligned → where are they heading."
|
|
536
|
+
|
|
537
|
+
|
|
538
|
+
### Why Opus for all four phases?
|
|
539
|
+
|
|
540
|
+
Each phase requires deep philosophical reasoning — categorical classification,
|
|
541
|
+
causal decomposition, teleological validation, and actualization projection
|
|
542
|
+
are reasoning-heavy tasks where Opus produces substantially better results
|
|
543
|
+
than Sonnet. The sequential design means only one Opus agent runs at a time.
|