agentic-sdlc 1.6.0 → 1.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agent/rules/agent-execution.md +55 -0
- package/.agent/rules/ai-enforcement.md +4 -3
- package/.agent/rules/artifacts.md +1 -1
- package/.agent/rules/auto-learning.md +78 -0
- package/.agent/rules/code-quality.md +40 -0
- package/.agent/rules/global.md +2 -2
- package/.agent/rules/naming-conventions.md +55 -0
- package/.agent/skills/role-ba.md +6 -2
- package/.agent/skills/role-brain.md +5 -1
- package/.agent/skills/role-cloud.md +38 -0
- package/.agent/skills/role-dev.md +22 -1
- package/.agent/skills/role-devops.md +4 -0
- package/.agent/skills/role-game.md +35 -0
- package/.agent/skills/role-mobile.md +55 -0
- package/.agent/skills/role-orchestrator.md +4 -0
- package/.agent/skills/role-pm.md +4 -0
- package/.agent/skills/role-po.md +4 -0
- package/.agent/skills/role-reporter.md +4 -0
- package/.agent/skills/role-research.md +78 -0
- package/.agent/skills/role-sa.md +4 -0
- package/.agent/skills/role-seca.md +4 -0
- package/.agent/skills/role-stakeholder.md +4 -0
- package/.agent/skills/role-tester.md +4 -0
- package/.agent/skills/role-uiux.md +4 -0
- package/.agent/templates/Specification-Template.md +38 -0
- package/.agent/templates/ab-comparison-report.md +175 -0
- package/.agent/templates/observer-report.md +131 -0
- package/.agent/templates/quality-score-report.md +197 -0
- package/.agent/templates/self-learning-digest.md +268 -0
- package/.agent/templates/system-health-report.md +330 -0
- package/.agent/workflows/ab.md +101 -0
- package/.agent/workflows/autogen.md +65 -0
- package/.agent/workflows/brain.md +48 -37
- package/.agent/workflows/commit.md +61 -0
- package/.agent/workflows/cycle.md +32 -11
- package/.agent/workflows/debug.md +123 -0
- package/.agent/workflows/deep-search.md +82 -0
- package/.agent/workflows/docs.md +144 -0
- package/.agent/workflows/emergency.md +17 -15
- package/.agent/workflows/explore.md +15 -9
- package/.agent/workflows/housekeeping.md +24 -11
- package/.agent/workflows/metrics.md +14 -12
- package/.agent/workflows/monitor.md +98 -0
- package/.agent/workflows/observe.md +84 -0
- package/.agent/workflows/onboarding.md +135 -0
- package/.agent/workflows/orchestrator.md +12 -5
- package/.agent/workflows/planning.md +126 -0
- package/.agent/workflows/refactor.md +132 -0
- package/.agent/workflows/release.md +19 -12
- package/.agent/workflows/review.md +99 -0
- package/.agent/workflows/score.md +104 -0
- package/.agent/workflows/sprint.md +16 -14
- package/.agent/workflows/validate.md +13 -11
- package/.agent/workflows/worktree.md +154 -0
- package/CHANGELOG.md +71 -0
- package/README.md +12 -4
- package/bin/cli.js +142 -16
- package/docs/.brain-health-history.json +42 -0
- package/docs/.brain-improvements.json +53 -0
- package/docs/.brain-learner-log.json +27 -0
- package/docs/.brain-scores.json +310 -0
- package/docs/architecture/system-flow.mermaid +81 -0
- package/docs/artifacts/2026-01-05-enforcement-gates-plan.md +80 -0
- package/docs/artifacts/2026-01-05-workflow-analysis.md +231 -0
- package/docs/artifacts/README.md +26 -0
- package/docs/guides/MCP-GUIDE.md +1 -0
- package/docs/reports/2026-01-05-autogen-evaluation.md +64 -0
- package/docs/reports/2026-01-05-brain-layer-analysis.md +109 -0
- package/docs/reports/2026-01-05-repository-audit.md +253 -0
- package/docs/reports/Metrics-Dashboard-2026-01-08.md +29 -0
- package/docs/reports/Metrics-Dashboard-Final.md +29 -0
- package/docs/reports/Validation-Report-2026-01-05.md +40 -0
- package/docs/reports/Validation-Report-2026-01-08.md +40 -0
- package/docs/reports/worktrunk-audit.md +94 -0
- package/docs/solutions/README.md +96 -0
- package/docs/walkthroughs/2026-01-05-audit-implementation.md +36 -0
- package/docs/walkthroughs/2026-01-05-autonomy-release.md +54 -0
- package/docs/walkthroughs/2026-01-05-enforcement-gates.md +33 -0
- package/docs/walkthroughs/2026-01-05-judge-enhancement.md +30 -0
- package/docs/walkthroughs/2026-01-05-landing-page-orchestrator.md +52 -0
- package/docs/walkthroughs/2026-01-05-validation.md +32 -0
- package/docs/walkthroughs/2026-01-05-workflow-audit.md +89 -0
- package/docs/walkthroughs/2026-01-05-workflow-refactoring.md +44 -0
- package/docs/walkthroughs/2026-01-06-worktrunk-integration.md +41 -0
- package/docs/walkthroughs/README.md +25 -0
- package/package.json +33 -19
- package/.agent/knowledge-base/AUTO-LEARNING-GUIDE.md +0 -327
- package/.agent/knowledge-base/HOW-IT-WORKS.md +0 -365
- package/.agent/knowledge-base/INDEX.md +0 -43
- package/.agent/knowledge-base/README.md +0 -242
- package/.agent/knowledge-base/architecture/.gitkeep +0 -1
- package/.agent/knowledge-base/architecture/KB-2026-01-01-003-neo4j-graph-database-skills.md +0 -1146
- package/.agent/knowledge-base/architecture/README.md +0 -98
- package/.agent/knowledge-base/bugs/.gitkeep +0 -1
- package/.agent/knowledge-base/bugs/KB-2026-01-02-yaml-special-character-escaping.md +0 -56
- package/.agent/knowledge-base/bugs/medium/KB-2026-01-01-001-example-auto-learned.md +0 -198
- package/.agent/knowledge-base/features/.gitkeep +0 -1
- package/.agent/knowledge-base/features/KB-2026-01-01-001-landing-page-design-trends-2026.md +0 -646
- package/.agent/knowledge-base/features/KB-2026-01-01-004-uiux-design-skills-2026.md +0 -945
- package/.agent/knowledge-base/features/KB-2026-01-01-005-modern-ai-landing-page-ui.md +0 -310
- package/.agent/knowledge-base/features/KB-2026-01-01-006-award-winning-landing-page-patterns.md +0 -324
- package/.agent/knowledge-base/features/KB-2026-01-02-001-cleanup-workflow.md +0 -242
- package/.agent/knowledge-base/features/KB-2026-01-02-002-landing-page-monorepo-architecture.md +0 -148
- package/.agent/knowledge-base/features/KB-2026-01-02-003-premium-glassmorphism-patterns.md +0 -58
- package/.agent/knowledge-base/features/KB-2026-01-04-ai-agent-enforcement.md +0 -46
- package/.agent/knowledge-base/features/README.md +0 -83
- package/.agent/knowledge-base/features/figma-landing-page-workflow.md +0 -311
- package/.agent/knowledge-base/features/figma-mcp-sa-guide.md +0 -673
- package/.agent/knowledge-base/features/figma-mcp-uiux-guide.md +0 -459
- package/.agent/knowledge-base/performance/.gitkeep +0 -1
- package/.agent/knowledge-base/performance/KB-2026-01-02-lazy-loading-optimization.md +0 -80
- package/.agent/knowledge-base/platform-specific/.gitkeep +0 -1
- package/.agent/knowledge-base/platform-specific/KB-2026-01-02-windows-console-encoding.md +0 -56
- package/.agent/knowledge-base/role-guides/DEV-KB-Guide.md +0 -527
- package/.agent/knowledge-base/role-guides/DEVOPS-KB-Guide.md +0 -491
- package/.agent/knowledge-base/role-guides/PM-KB-Guide.md +0 -299
- package/.agent/knowledge-base/role-guides/SECA-KB-Guide.md +0 -555
- package/.agent/knowledge-base/role-guides/TESTER-KB-Guide.md +0 -519
- package/.agent/knowledge-base/security/.gitkeep +0 -1
- package/.agent/knowledge-base/security/KB-2026-01-02-input-validation-sanitization.md +0 -74
- package/.agent/rules/AUTO-LEARNING.md +0 -418
- package/.agent/rules/KNOWLEDGE-BASE.md +0 -45
- package/.agent/workflows/compound.md +0 -51
- package/.agent/workflows/preflight.md +0 -35
- package/.agent/workflows/route.md +0 -160
- package/bin/kb +0 -34
- package/bin/kb.bat +0 -28
- package/bin/kb_cli.py +0 -226
- package/bin/lib/README.md +0 -411
- package/bin/lib/__init__.py +0 -7
- package/bin/lib/__pycache__/kb_add.cpython-313.pyc +0 -0
- package/bin/lib/__pycache__/kb_common.cpython-313.pyc +0 -0
- package/bin/lib/__pycache__/kb_compound.cpython-313.pyc +0 -0
- package/bin/lib/__pycache__/kb_index.cpython-313.pyc +0 -0
- package/bin/lib/__pycache__/kb_list.cpython-313.pyc +0 -0
- package/bin/lib/__pycache__/kb_search.cpython-313.pyc +0 -0
- package/bin/lib/__pycache__/kb_stats.cpython-313.pyc +0 -0
- package/bin/lib/kb_add.py +0 -203
- package/bin/lib/kb_common.py +0 -224
- package/bin/lib/kb_compound.py +0 -250
- package/bin/lib/kb_index.py +0 -193
- package/bin/lib/kb_list.py +0 -144
- package/bin/lib/kb_search.py +0 -121
- package/bin/lib/kb_stats.py +0 -153
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
# Self-Learning Digest
|
|
2
|
+
|
|
3
|
+
**Period:** `[START_DATE]` to `[END_DATE]`
|
|
4
|
+
**Generated:** `[TIMESTAMP]`
|
|
5
|
+
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## Executive Summary
|
|
9
|
+
|
|
10
|
+
**New Learnings:** `[COUNT]`
|
|
11
|
+
**Patterns Identified:** `[COUNT]`
|
|
12
|
+
**Rules Updated:** `[COUNT]`
|
|
13
|
+
**KB Entries Added:** `[COUNT]`
|
|
14
|
+
**Neo4j Relationships Created:** `[COUNT]`
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
## Learning Sources
|
|
19
|
+
|
|
20
|
+
### From Observer Violations
|
|
21
|
+
**Total Violations Analyzed:** `[COUNT]`
|
|
22
|
+
|
|
23
|
+
#### New Rules Proposed
|
|
24
|
+
1. **Rule:** `[Rule name]`
|
|
25
|
+
- **Reason:** Violation occurred `[X]` times
|
|
26
|
+
- **Pattern:** `[Description]`
|
|
27
|
+
- **Proposed Action:** Add to `.agent/rules/[file].md`
|
|
28
|
+
|
|
29
|
+
2. **Rule:** `[Rule name]`
|
|
30
|
+
- **Reason:** `[Description]`
|
|
31
|
+
- **Proposed Action:** `[Action]`
|
|
32
|
+
|
|
33
|
+
### From A/B Test Results
|
|
34
|
+
**Total Tests Analyzed:** `[COUNT]`
|
|
35
|
+
|
|
36
|
+
#### Winning Patterns
|
|
37
|
+
1. **Pattern:** `[Pattern name]`
|
|
38
|
+
- **Context:** `[When this works best]`
|
|
39
|
+
- **Success Rate:** `[X]%` (Alternative A chosen `[Y]` times)
|
|
40
|
+
- **Key Factors:** `[Why it wins]`
|
|
41
|
+
- **Add to KB:** Yes | No
|
|
42
|
+
|
|
43
|
+
2. **Pattern:** `[Pattern name]`
|
|
44
|
+
- **Context:** `[Description]`
|
|
45
|
+
- **Success Rate:** `[X]%`
|
|
46
|
+
|
|
47
|
+
### From Judge Scores
|
|
48
|
+
**Total Scores Analyzed:** `[COUNT]`
|
|
49
|
+
|
|
50
|
+
#### Quality Patterns (High Scores)
|
|
51
|
+
1. **Pattern:** `[What high-quality code/docs have in common]`
|
|
52
|
+
- **Average Score:** `[SCORE]` / 100
|
|
53
|
+
- **Common Traits:**
|
|
54
|
+
- `[Trait 1]`
|
|
55
|
+
- `[Trait 2]`
|
|
56
|
+
- **Recommendation:** Replicate this pattern
|
|
57
|
+
|
|
58
|
+
#### Anti-Patterns (Low Scores)
|
|
59
|
+
1. **Anti-Pattern:** `[What to avoid]`
|
|
60
|
+
- **Average Score:** `[SCORE]` / 100
|
|
61
|
+
- **Common Issues:**
|
|
62
|
+
- `[Issue 1]`
|
|
63
|
+
- `[Issue 2]`
|
|
64
|
+
- **Recommendation:** Document as anti-pattern in KB
|
|
65
|
+
|
|
66
|
+
### From Completed Tasks
|
|
67
|
+
**Total Tasks Analyzed:** `[COUNT]`
|
|
68
|
+
|
|
69
|
+
#### Reusable Solutions
|
|
70
|
+
1. **Solution:** `[Solution name]`
|
|
71
|
+
- **Task Type:** `[Type]`
|
|
72
|
+
- **Success Rate:** `[X]%`
|
|
73
|
+
- **Implementation:** `[Brief description]`
|
|
74
|
+
- **Use When:** `[Context]`
|
|
75
|
+
- **KB Entry:** `[Link or "Created"]`
|
|
76
|
+
|
|
77
|
+
2. **Solution:** `[Solution name]`
|
|
78
|
+
- **Details:** `[Description]`
|
|
79
|
+
|
|
80
|
+
### From Fixed Bugs
|
|
81
|
+
**Total Bugs Analyzed:** `[COUNT]`
|
|
82
|
+
|
|
83
|
+
#### Error Patterns
|
|
84
|
+
1. **Error:** `[Error type]`
|
|
85
|
+
- **Frequency:** Occurred `[X]` times
|
|
86
|
+
- **Root Cause:** `[Description]`
|
|
87
|
+
- **Resolution Pattern:** `[How it was fixed]`
|
|
88
|
+
- **Prevention:** `[How to avoid in future]`
|
|
89
|
+
- **Add to KB:** Yes | No
|
|
90
|
+
|
|
91
|
+
2. **Error:** `[Error type]`
|
|
92
|
+
- **Details:** `[Description]`
|
|
93
|
+
|
|
94
|
+
### From Security Issues
|
|
95
|
+
**Total Security Issues Analyzed:** `[COUNT]`
|
|
96
|
+
|
|
97
|
+
#### Security Best Practices
|
|
98
|
+
1. **Practice:** `[Practice name]`
|
|
99
|
+
- **Vulnerability Prevented:** `[Type]`
|
|
100
|
+
- **Implementation:** `[How to implement]`
|
|
101
|
+
- **Priority:** Critical | High | Medium | Low
|
|
102
|
+
- **Add to Rules:** Yes | No
|
|
103
|
+
|
|
104
|
+
---
|
|
105
|
+
|
|
106
|
+
## Identified Patterns
|
|
107
|
+
|
|
108
|
+
### Successful Patterns (Replicate These)
|
|
109
|
+
1. **Pattern Name:** `[Name]`
|
|
110
|
+
- **Category:** Architecture | Code Quality | Process | Documentation
|
|
111
|
+
- **Description:** `[What the pattern is]`
|
|
112
|
+
- **Examples:** `[Where we've seen this work]`
|
|
113
|
+
- **When to Use:** `[Context]`
|
|
114
|
+
- **Expected Benefits:** `[Benefits]`
|
|
115
|
+
|
|
116
|
+
2. **Pattern Name:** `[Name]`
|
|
117
|
+
- **Details:** `[Description]`
|
|
118
|
+
|
|
119
|
+
### Anti-Patterns (Avoid These)
|
|
120
|
+
1. **Anti-Pattern Name:** `[Name]`
|
|
121
|
+
- **Category:** Architecture | Code Quality | Process | Documentation
|
|
122
|
+
- **Description:** `[What the anti-pattern is]`
|
|
123
|
+
- **Examples:** `[Where we've seen this fail]`
|
|
124
|
+
- **Why It Fails:** `[Reason]`
|
|
125
|
+
- **Better Alternative:** `[What to do instead]`
|
|
126
|
+
|
|
127
|
+
2. **Anti-Pattern Name:** `[Name]`
|
|
128
|
+
- **Details:** `[Description]`
|
|
129
|
+
|
|
130
|
+
---
|
|
131
|
+
|
|
132
|
+
## Knowledge Base Updates
|
|
133
|
+
|
|
134
|
+
### New Entries Created
|
|
135
|
+
1. **Entry:** `[Title]`
|
|
136
|
+
- **Type:** Solution | Bug Fix | Pattern | Anti-Pattern
|
|
137
|
+
- **Location:** `docs/solutions/[filename].md`
|
|
138
|
+
- **Tags:** `[tag1, tag2, tag3]`
|
|
139
|
+
- **Synced to Neo4j:** ✅ | ⏳
|
|
140
|
+
|
|
141
|
+
2. **Entry:** `[Title]`
|
|
142
|
+
- **Details:** `[Description]`
|
|
143
|
+
|
|
144
|
+
### Entries Updated
|
|
145
|
+
1. **Entry:** `[Title]`
|
|
146
|
+
- **Change:** `[What was updated]`
|
|
147
|
+
- **Reason:** `[Why it was updated]`
|
|
148
|
+
|
|
149
|
+
---
|
|
150
|
+
|
|
151
|
+
## Neo4j Graph Updates
|
|
152
|
+
|
|
153
|
+
### New Relationships Created
|
|
154
|
+
1. **Relationship:** `(Technology)-[:WORKS_WELL_WITH]->(Technology)`
|
|
155
|
+
- **Example:** `(React)-[:WORKS_WELL_WITH]->(TypeScript)`
|
|
156
|
+
- **Confidence:** `[0-100]`
|
|
157
|
+
- **Based On:** `[X tasks]`
|
|
158
|
+
|
|
159
|
+
2. **Relationship:** `(Pattern)-[:SOLVES]->(Problem)`
|
|
160
|
+
- **Example:** `[Description]`
|
|
161
|
+
|
|
162
|
+
### Skills Graph Enrichment
|
|
163
|
+
- **New Skills Added:** `[COUNT]`
|
|
164
|
+
- **Skill Relationships Updated:** `[COUNT]`
|
|
165
|
+
- **Learning Paths Created:** `[COUNT]`
|
|
166
|
+
|
|
167
|
+
---
|
|
168
|
+
|
|
169
|
+
## Recommendations for Rules Updates
|
|
170
|
+
|
|
171
|
+
### Proposed New Rules
|
|
172
|
+
1. **File:** `.agent/rules/code-quality.md`
|
|
173
|
+
- **Rule:** `[Rule description]`
|
|
174
|
+
- **Justification:** Violation/issue occurred `[X]` times
|
|
175
|
+
- **Priority:** High | Medium | Low
|
|
176
|
+
|
|
177
|
+
2. **File:** `.agent/rules/naming-conventions.md`
|
|
178
|
+
- **Rule:** `[Rule description]`
|
|
179
|
+
- **Justification:** `[Reason]`
|
|
180
|
+
|
|
181
|
+
### Proposed Rule Modifications
|
|
182
|
+
1. **File:** `.agent/rules/global.md`
|
|
183
|
+
- **Current Rule:** `[Existing rule]`
|
|
184
|
+
- **Proposed Change:** `[New version]`
|
|
185
|
+
- **Reason:** `[Why change is needed]`
|
|
186
|
+
|
|
187
|
+
---
|
|
188
|
+
|
|
189
|
+
## Technology Insights
|
|
190
|
+
|
|
191
|
+
### Technologies Used This Period
|
|
192
|
+
| Technology | Usage Count | Success Rate | Average Quality Score |
|
|
193
|
+
|------------|-------------|--------------|----------------------|
|
|
194
|
+
| `[Tech 1]` | `[COUNT]` | `[X]%` | `[SCORE]` / 100 |
|
|
195
|
+
| `[Tech 2]` | `[COUNT]` | `[X]%` | `[SCORE]` / 100 |
|
|
196
|
+
|
|
197
|
+
### Recommended Technologies
|
|
198
|
+
- **For `[Use Case]`:** `[Technology]` - Based on `[X]` successful implementations
|
|
199
|
+
- **For `[Use Case]`:** `[Technology]` - Based on high quality scores
|
|
200
|
+
|
|
201
|
+
### Technologies to Reconsider
|
|
202
|
+
- **`[Technology]`:** Low success rate (`[X]%`) or quality score (`[SCORE]`)
|
|
203
|
+
- **Recommendation:** `[Find alternative | Improve skills | Avoid for [use case]]`
|
|
204
|
+
|
|
205
|
+
---
|
|
206
|
+
|
|
207
|
+
## Team Skill Development
|
|
208
|
+
|
|
209
|
+
### Skills Improving
|
|
210
|
+
- **`[Skill]`:** Quality score trend `[OLD]` → `[NEW]` (+`[DELTA]` points)
|
|
211
|
+
- **`[Skill]`:** Fewer violations, better patterns
|
|
212
|
+
|
|
213
|
+
### Skills Needing Focus
|
|
214
|
+
- **`[Skill]`:** Frequent violations or low quality scores
|
|
215
|
+
- **Recommended Learning Path:** `[Neo4j path link]`
|
|
216
|
+
- **Practice Tasks:** `[Suggestions]`
|
|
217
|
+
|
|
218
|
+
---
|
|
219
|
+
|
|
220
|
+
## Action Items
|
|
221
|
+
|
|
222
|
+
### Immediate Actions
|
|
223
|
+
- [ ] Update `.agent/rules/[file].md` with new rules
|
|
224
|
+
- [ ] Add `[X]` new KB entries
|
|
225
|
+
- [ ] Sync learnings to Neo4j
|
|
226
|
+
- [ ] Share anti-patterns with team
|
|
227
|
+
|
|
228
|
+
### This Week
|
|
229
|
+
- [ ] Review and apply winning patterns from A/B tests
|
|
230
|
+
- [ ] Address recurring error patterns
|
|
231
|
+
- [ ] Update skill development plan
|
|
232
|
+
|
|
233
|
+
### This Month
|
|
234
|
+
- [ ] Comprehensive rules review
|
|
235
|
+
- [ ] KB quality audit
|
|
236
|
+
- [ ] Neo4j graph optimization
|
|
237
|
+
|
|
238
|
+
---
|
|
239
|
+
|
|
240
|
+
## Learning Metrics
|
|
241
|
+
|
|
242
|
+
**Knowledge Growth:**
|
|
243
|
+
- KB Entries: `[OLD_COUNT]` → `[NEW_COUNT]` (+`[DELTA]`)
|
|
244
|
+
- Neo4j Nodes: `[OLD_COUNT]` → `[NEW_COUNT]` (+`[DELTA]`)
|
|
245
|
+
- Patterns Library: `[COUNT]` patterns documented
|
|
246
|
+
|
|
247
|
+
**Quality Improvement:**
|
|
248
|
+
- Average Code Score: `[OLD]` → `[NEW]` (+`[DELTA]`)
|
|
249
|
+
- Compliance Rate: `[OLD]%` → `[NEW]%` (+`[DELTA]%`)
|
|
250
|
+
- Bug Recurrence: `[OLD]` → `[NEW]` (-`[DELTA]`)
|
|
251
|
+
|
|
252
|
+
---
|
|
253
|
+
|
|
254
|
+
## Next Learning Cycle
|
|
255
|
+
|
|
256
|
+
**Focus Areas:**
|
|
257
|
+
1. `[Area 1]` - Based on `[Data source]`
|
|
258
|
+
2. `[Area 2]` - Based on `[Data source]`
|
|
259
|
+
|
|
260
|
+
**Expected Outcomes:**
|
|
261
|
+
- `[Outcome 1]`
|
|
262
|
+
- `[Outcome 2]`
|
|
263
|
+
|
|
264
|
+
---
|
|
265
|
+
|
|
266
|
+
**Self-Learning Agent:** v1.0.0
|
|
267
|
+
**Learning Period:** `[DAYS]` days
|
|
268
|
+
**Report Generated At:** `[TIMESTAMP]`
|
|
@@ -0,0 +1,330 @@
|
|
|
1
|
+
# System Health Report
|
|
2
|
+
|
|
3
|
+
**Report ID:** `[AUTO-GENERATED]`
|
|
4
|
+
**Generated:** `[TIMESTAMP]`
|
|
5
|
+
**System Version:** `[VERSION]`
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Executive Summary
|
|
10
|
+
|
|
11
|
+
**Overall Health Score:** `[0-100]` / 100
|
|
12
|
+
**Status:** 🟢 HEALTHY | 🟡 WARNING | 🔴 CRITICAL
|
|
13
|
+
**Issues Found:** `[COUNT]`
|
|
14
|
+
**Components Checked:** `[COUNT]`
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
## Component Health Check
|
|
19
|
+
|
|
20
|
+
| Component | Status | Score | Last Check |
|
|
21
|
+
|-----------|--------|-------|------------|
|
|
22
|
+
| Layer 1 (Core) | 🟢 / 🟡 / 🔴 | `[0-100]` | `[TIME]` |
|
|
23
|
+
| Layer 2 (Intelligence) | 🟢 / 🟡 / 🔴 | `[0-100]` | `[TIME]` |
|
|
24
|
+
| Layer 3 (Infrastructure) | 🟢 / 🟡 / 🔴 | `[0-100]` | `[TIME]` |
|
|
25
|
+
| Knowledge Base | 🟢 / 🟡 / 🔴 | `[0-100]` | `[TIME]` |
|
|
26
|
+
| Neo4j Graph | 🟢 / 🟡 / 🔴 | `[0-100]` | `[TIME]` |
|
|
27
|
+
| MCP Connectors | 🟢 / 🟡 / 🔴 | `[0-100]` | `[TIME]` |
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## Missing Components
|
|
32
|
+
|
|
33
|
+
### Documentation Gaps
|
|
34
|
+
- **Missing:** `[COUNT]` files without documentation
|
|
35
|
+
- **Critical Files:**
|
|
36
|
+
- `[file1.ext]` - No header comments
|
|
37
|
+
- `[file2.ext]` - No README
|
|
38
|
+
- `[file3.ext]` - Missing API docs
|
|
39
|
+
|
|
40
|
+
**Recommendation:** Add documentation for high-priority files first
|
|
41
|
+
|
|
42
|
+
### Test Coverage Gaps
|
|
43
|
+
- **Overall Coverage:** `[X]%` (Target: 80%+)
|
|
44
|
+
- **Files with No Tests:**
|
|
45
|
+
- `[file1.ext]`
|
|
46
|
+
- `[file2.ext]`
|
|
47
|
+
- `[file3.ext]`
|
|
48
|
+
|
|
49
|
+
**Recommendation:** Focus on core business logic first
|
|
50
|
+
|
|
51
|
+
### Missing Artifacts
|
|
52
|
+
- **Sprint Plan:** Missing for Sprint `[N]`
|
|
53
|
+
- **Walkthroughs:** `[COUNT]` completed tasks without walkthrough
|
|
54
|
+
- **Architecture Docs:** `[Component]` not documented
|
|
55
|
+
|
|
56
|
+
**Recommendation:** Document recent completions immediately
|
|
57
|
+
|
|
58
|
+
---
|
|
59
|
+
|
|
60
|
+
## Improvements Needed
|
|
61
|
+
|
|
62
|
+
### Low-Quality Code (Judge Score < 70)
|
|
63
|
+
|
|
64
|
+
#### File: `[file1.ext]`
|
|
65
|
+
- **Quality Score:** `[SCORE]` / 100
|
|
66
|
+
- **Issues:**
|
|
67
|
+
- High complexity (cyclomatic: `[VALUE]`)
|
|
68
|
+
- Poor naming
|
|
69
|
+
- No tests
|
|
70
|
+
- **Priority:** High | Medium | Low
|
|
71
|
+
- **Recommendation:** `[Specific actions]`
|
|
72
|
+
|
|
73
|
+
#### File: `[file2.ext]`
|
|
74
|
+
- **Quality Score:** `[SCORE]` / 100
|
|
75
|
+
- **Issues:** `[Description]`
|
|
76
|
+
- **Recommendation:** `[Actions]`
|
|
77
|
+
|
|
78
|
+
### Architecture Debt
|
|
79
|
+
- **Issue:** `[Description]`
|
|
80
|
+
- **Location:** `[Component/files]`
|
|
81
|
+
- **Impact:** `[Impact description]`
|
|
82
|
+
- **Recommendation:** `[How to address]`
|
|
83
|
+
- **Effort:** Low | Medium | High
|
|
84
|
+
|
|
85
|
+
### Performance Bottlenecks
|
|
86
|
+
- **Function:** `[function_name]` in `[file.ext]`
|
|
87
|
+
- **Issue:** O(n²) complexity
|
|
88
|
+
- **Impact:** Slow for large datasets
|
|
89
|
+
- **Recommendation:** Use hash map instead of nested loops
|
|
90
|
+
- **Priority:** High | Medium | Low
|
|
91
|
+
|
|
92
|
+
---
|
|
93
|
+
|
|
94
|
+
## Obsolete Code
|
|
95
|
+
|
|
96
|
+
### Unused Files
|
|
97
|
+
- `[file1.ext]` - Last used: `[DATE]` (> 90 days ago)
|
|
98
|
+
- `[file2.ext]` - No imports/references found
|
|
99
|
+
- `[file3.ext]` - Replaced by `[new_file.ext]`
|
|
100
|
+
|
|
101
|
+
**Recommendation:** Review and delete if confirmed unused
|
|
102
|
+
|
|
103
|
+
### Deprecated Functions
|
|
104
|
+
- `[old_function]` in `[file.ext]`
|
|
105
|
+
- **Deprecated Since:** `[DATE]`
|
|
106
|
+
- **Replacement:** `[new_function]`
|
|
107
|
+
- **Still Used In:** `[X]` files
|
|
108
|
+
- **Recommendation:** Migrate to new function
|
|
109
|
+
|
|
110
|
+
### Dead Code Paths
|
|
111
|
+
- `[code_block]` in `[file.ext:line]`
|
|
112
|
+
- **Reason:** Unreachable code
|
|
113
|
+
- **Recommendation:** Remove
|
|
114
|
+
|
|
115
|
+
---
|
|
116
|
+
|
|
117
|
+
## Compliance Trends
|
|
118
|
+
|
|
119
|
+
### Observer Violation Rate
|
|
120
|
+
**Current Period:** `[START]` to `[END]`
|
|
121
|
+
|
|
122
|
+
| Period | Violations | Compliance % | Trend |
|
|
123
|
+
|--------|------------|--------------|-------|
|
|
124
|
+
| 2 weeks ago | `[COUNT]` | `[X]%` | - |
|
|
125
|
+
| 1 week ago | `[COUNT]` | `[X]%` | ⬆️/⬇️/➡️ |
|
|
126
|
+
| This week | `[COUNT]` | `[X]%` | ⬆️/⬇️/➡️ |
|
|
127
|
+
|
|
128
|
+
**Overall Trend:** ⬆️ Improving | ➡️ Stable | ⬇️ Declining
|
|
129
|
+
|
|
130
|
+
### Most Common Violations
|
|
131
|
+
1. `[Violation type]` - `[COUNT]` occurrences
|
|
132
|
+
2. `[Violation type]` - `[COUNT]` occurrences
|
|
133
|
+
3. `[Violation type]` - `[COUNT]` occurrences
|
|
134
|
+
|
|
135
|
+
**Recommendation:** Focus on top 3 violations for maximum impact
|
|
136
|
+
|
|
137
|
+
---
|
|
138
|
+
|
|
139
|
+
## Test Coverage Analysis
|
|
140
|
+
|
|
141
|
+
### Overall Coverage
|
|
142
|
+
- **Unit Tests:** `[X]%` (Target: 80%+)
|
|
143
|
+
- **Integration Tests:** `[X]%` (Target: 60%+)
|
|
144
|
+
- **E2E Tests:** `[X]%` (Target: 40%+)
|
|
145
|
+
|
|
146
|
+
### Coverage by Component
|
|
147
|
+
| Component | Coverage | Status | Priority |
|
|
148
|
+
|-----------|----------|--------|----------|
|
|
149
|
+
| `[Component 1]` | `[X]%` | 🟢/🟡/🔴 | High/Med/Low |
|
|
150
|
+
| `[Component 2]` | `[X]%` | 🟢/🟡/🔴 | High/Med/Low |
|
|
151
|
+
|
|
152
|
+
### Critical Paths Without Tests
|
|
153
|
+
1. `[Critical path 1]`
|
|
154
|
+
- **Risk:** High | Medium | Low
|
|
155
|
+
- **Recommendation:** Add tests immediately
|
|
156
|
+
|
|
157
|
+
2. `[Critical path 2]`
|
|
158
|
+
- **Details:** `[Description]`
|
|
159
|
+
|
|
160
|
+
---
|
|
161
|
+
|
|
162
|
+
## Performance Metrics
|
|
163
|
+
|
|
164
|
+
### Response Times
|
|
165
|
+
| Endpoint/Function | Avg | P95 | P99 | Status |
|
|
166
|
+
|-------------------|-----|-----|-----|--------|
|
|
167
|
+
| `[endpoint1]` | `[X]ms` | `[X]ms` | `[X]ms` | 🟢/🟡/🔴 |
|
|
168
|
+
| `[endpoint2]` | `[X]ms` | `[X]ms` | `[X]ms` | 🟢/🟡/🔴 |
|
|
169
|
+
|
|
170
|
+
**Targets:**
|
|
171
|
+
- Avg < 200ms: 🟢
|
|
172
|
+
- Avg < 500ms: 🟡
|
|
173
|
+
- Avg > 500ms: 🔴
|
|
174
|
+
|
|
175
|
+
### Memory Usage
|
|
176
|
+
- **Current:** `[X]MB`
|
|
177
|
+
- **Peak:** `[X]MB`
|
|
178
|
+
- **Trend:** ⬆️ Increasing | ➡️ Stable | ⬇️ Decreasing
|
|
179
|
+
|
|
180
|
+
**Memory Leaks Detected:** `[COUNT]`
|
|
181
|
+
- `[Location 1]` - `[Description]`
|
|
182
|
+
|
|
183
|
+
### Database Performance
|
|
184
|
+
- **Slow Queries:** `[COUNT]`
|
|
185
|
+
- **N+1 Queries:** `[COUNT]`
|
|
186
|
+
- **Missing Indexes:** `[COUNT]`
|
|
187
|
+
|
|
188
|
+
**Top Slow Query:**
|
|
189
|
+
```sql
|
|
190
|
+
[QUERY]
|
|
191
|
+
```
|
|
192
|
+
**Recommendation:** `[Optimization suggestion]`
|
|
193
|
+
|
|
194
|
+
---
|
|
195
|
+
|
|
196
|
+
## Security Health
|
|
197
|
+
|
|
198
|
+
### Known Vulnerabilities
|
|
199
|
+
- **Critical:** `[COUNT]`
|
|
200
|
+
- **High:** `[COUNT]`
|
|
201
|
+
- **Medium:** `[COUNT]`
|
|
202
|
+
- **Low:** `[COUNT]`
|
|
203
|
+
|
|
204
|
+
### Vulnerabilities Details
|
|
205
|
+
1. **CVE-XXXX-XXXXX** in `[dependency]`
|
|
206
|
+
- **Severity:** Critical | High | Medium | Low
|
|
207
|
+
- **Impact:** `[Description]`
|
|
208
|
+
- **Fix:** Update to version `[X.Y.Z]`
|
|
209
|
+
|
|
210
|
+
### Security Best Practices Compliance
|
|
211
|
+
- **Input Validation:** `[X]%` covered
|
|
212
|
+
- **SQL Injection Protection:** `[X]%` covered
|
|
213
|
+
- **XSS Protection:** `[X]%` covered
|
|
214
|
+
- **Authentication:** Implemented | Partial | Missing
|
|
215
|
+
- **Authorization:** Implemented | Partial | Missing
|
|
216
|
+
|
|
217
|
+
---
|
|
218
|
+
|
|
219
|
+
## Knowledge Base Health
|
|
220
|
+
|
|
221
|
+
### KB Statistics
|
|
222
|
+
- **Total Entries:** `[COUNT]`
|
|
223
|
+
- **Entries Added (Last 30 days):** `[COUNT]`
|
|
224
|
+
- **Orphan Entries:** `[COUNT]` (not linked from anywhere)
|
|
225
|
+
- **Stale Entries:** `[COUNT]` (> 180 days old, no updates)
|
|
226
|
+
|
|
227
|
+
### KB Quality
|
|
228
|
+
- **Well-Documented:** `[X]%`
|
|
229
|
+
- **Missing Tags:** `[COUNT]` entries
|
|
230
|
+
- **Missing Examples:** `[COUNT]` entries
|
|
231
|
+
- **Broken Links:** `[COUNT]`
|
|
232
|
+
|
|
233
|
+
**Recommendation:** Review and update stale entries
|
|
234
|
+
|
|
235
|
+
---
|
|
236
|
+
|
|
237
|
+
## Neo4j Graph Health
|
|
238
|
+
|
|
239
|
+
### Graph Statistics
|
|
240
|
+
- **Total Nodes:** `[COUNT]`
|
|
241
|
+
- **Total Relationships:** `[COUNT]`
|
|
242
|
+
- **Orphan Nodes:** `[COUNT]` (no relationships)
|
|
243
|
+
- **Last Sync:** `[TIMESTAMP]`
|
|
244
|
+
|
|
245
|
+
### Graph Quality
|
|
246
|
+
- **Schema Compliance:** `[X]%`
|
|
247
|
+
- **Data Completeness:** `[X]%`
|
|
248
|
+
- **Relationship Accuracy:** `[X]%`
|
|
249
|
+
|
|
250
|
+
**Recommendation:** Sync and cleanup recommended
|
|
251
|
+
|
|
252
|
+
---
|
|
253
|
+
|
|
254
|
+
## Improvement Actions
|
|
255
|
+
|
|
256
|
+
### Critical (Do Immediately)
|
|
257
|
+
1. **`[Action 1]`**
|
|
258
|
+
- **Issue:** `[Description]`
|
|
259
|
+
- **Impact:** High | Medium | Low
|
|
260
|
+
- **Effort:** `[TIME]` hours
|
|
261
|
+
- **Owner:** `[Team/Role]`
|
|
262
|
+
|
|
263
|
+
2. **`[Action 2]`**
|
|
264
|
+
- **Details:** `[Description]`
|
|
265
|
+
|
|
266
|
+
### High Priority (This Week)
|
|
267
|
+
1. `[Action 1]`
|
|
268
|
+
2. `[Action 2]`
|
|
269
|
+
3. `[Action 3]`
|
|
270
|
+
|
|
271
|
+
### Medium Priority (This Sprint)
|
|
272
|
+
1. `[Action 1]`
|
|
273
|
+
2. `[Action 2]`
|
|
274
|
+
|
|
275
|
+
### Low Priority (Backlog)
|
|
276
|
+
1. `[Action 1]`
|
|
277
|
+
2. `[Action 2]`
|
|
278
|
+
|
|
279
|
+
---
|
|
280
|
+
|
|
281
|
+
## Maintenance Schedule
|
|
282
|
+
|
|
283
|
+
### Daily
|
|
284
|
+
- [ ] Check Observer compliance report
|
|
285
|
+
- [ ] Review new violations
|
|
286
|
+
- [ ] Monitor performance metrics
|
|
287
|
+
|
|
288
|
+
### Weekly
|
|
289
|
+
- [ ] Review this health report
|
|
290
|
+
- [ ] Address critical issues
|
|
291
|
+
- [ ] Update KB with new learnings
|
|
292
|
+
- [ ] Sync to Neo4j
|
|
293
|
+
|
|
294
|
+
### Monthly
|
|
295
|
+
- [ ] Comprehensive code quality review
|
|
296
|
+
- [ ] Security audit
|
|
297
|
+
- [ ] Documentation update sprint
|
|
298
|
+
- [ ] Performance optimization sprint
|
|
299
|
+
|
|
300
|
+
---
|
|
301
|
+
|
|
302
|
+
## Trend Analysis
|
|
303
|
+
|
|
304
|
+
### Health Score Trend
|
|
305
|
+
| Period | Score | Change |
|
|
306
|
+
|--------|-------|--------|
|
|
307
|
+
| 3 months ago | `[SCORE]` | - |
|
|
308
|
+
| 2 months ago | `[SCORE]` | `[+/-X]` |
|
|
309
|
+
| 1 month ago | `[SCORE]` | `[+/-X]` |
|
|
310
|
+
| Today | `[SCORE]` | `[+/-X]` |
|
|
311
|
+
|
|
312
|
+
**Trend:** ⬆️ Improving | ➡️ Stable | ⬇️ Declining
|
|
313
|
+
|
|
314
|
+
### Issue Resolution Rate
|
|
315
|
+
- **New Issues:** `[COUNT]` per week
|
|
316
|
+
- **Resolved Issues:** `[COUNT]` per week
|
|
317
|
+
- **Net Change:** `[+/-X]` per week
|
|
318
|
+
|
|
319
|
+
---
|
|
320
|
+
|
|
321
|
+
## Next Health Check
|
|
322
|
+
|
|
323
|
+
**Scheduled For:** `[DATE]`
|
|
324
|
+
**Focus Areas:** `[Based on this report's findings]`
|
|
325
|
+
|
|
326
|
+
---
|
|
327
|
+
|
|
328
|
+
**Monitor Agent:** v1.0.0
|
|
329
|
+
**Health Check Duration:** `[X]` seconds
|
|
330
|
+
**Report Generated At:** `[TIMESTAMP]`
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Intelligence - A/B Test - Generate Alternatives
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# /ab - A/B Testing for Decisions
|
|
6
|
+
|
|
7
|
+
## ⚠️ PURPOSE
|
|
8
|
+
Generate and compare alternative approaches for any decision, architecture choice, or implementation strategy.
|
|
9
|
+
|
|
10
|
+
// turbo-all
|
|
11
|
+
|
|
12
|
+
## Quick Commands
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
# Generate A/B alternatives for a decision
|
|
16
|
+
python tools/intelligence/ab_test/ab_tester.py --prompt "implement user authentication"
|
|
17
|
+
|
|
18
|
+
# Compare two specific options
|
|
19
|
+
python tools/intelligence/ab_test/ab_tester.py --compare "JWT tokens" "Session cookies"
|
|
20
|
+
|
|
21
|
+
# Get recommendation based on context
|
|
22
|
+
python tools/core/brain/brain_cli.py ab-test "Should we use JWT or Session Auth?"
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## When to Use
|
|
26
|
+
|
|
27
|
+
- Before major architectural decisions
|
|
28
|
+
- When choosing between technologies
|
|
29
|
+
- For implementation strategy choices
|
|
30
|
+
- During design phase
|
|
31
|
+
|
|
32
|
+
## Workflow Steps
|
|
33
|
+
|
|
34
|
+
### 1. Define the Decision
|
|
35
|
+
Clearly state the decision or choice you need to make.
|
|
36
|
+
|
|
37
|
+
### 2. Generate Alternatives
|
|
38
|
+
```bash
|
|
39
|
+
python tools/intelligence/ab_test/ab_tester.py --prompt "[your decision]"
|
|
40
|
+
```
|
|
41
|
+
This will:
|
|
42
|
+
- Generate 2 alternative approaches
|
|
43
|
+
- Search KB for past similar solutions
|
|
44
|
+
- Score each option
|
|
45
|
+
|
|
46
|
+
### 3. Review Comparison Report
|
|
47
|
+
Check the generated report at `docs/reports/ab_tests/YYYY-MM-DD-[topic].md`
|
|
48
|
+
|
|
49
|
+
### 4. Make Decision
|
|
50
|
+
Based on:
|
|
51
|
+
- Time estimate
|
|
52
|
+
- Complexity score
|
|
53
|
+
- Reliability rating
|
|
54
|
+
- Maintainability score
|
|
55
|
+
|
|
56
|
+
### 5. Document Choice
|
|
57
|
+
```bash
|
|
58
|
+
# Record the decision
|
|
59
|
+
python tools/core/brain/brain_cli.py learn "Chose [Option] for [Decision] because [Reason]"
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## Output
|
|
63
|
+
|
|
64
|
+
The A/B test generates a comparison report:
|
|
65
|
+
|
|
66
|
+
```markdown
|
|
67
|
+
# A/B Test: [Decision]
|
|
68
|
+
|
|
69
|
+
## Option A: [Name]
|
|
70
|
+
- **Pros:** ...
|
|
71
|
+
- **Cons:** ...
|
|
72
|
+
- **Time Estimate:** ...
|
|
73
|
+
- **Complexity:** X/10
|
|
74
|
+
|
|
75
|
+
## Option B: [Name]
|
|
76
|
+
- **Pros:** ...
|
|
77
|
+
- **Cons:** ...
|
|
78
|
+
- **Time Estimate:** ...
|
|
79
|
+
- **Complexity:** X/10
|
|
80
|
+
|
|
81
|
+
## Recommendation
|
|
82
|
+
[Based on scoring...]
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
## Integration
|
|
86
|
+
|
|
87
|
+
- **@SA** - Architecture decisions
|
|
88
|
+
- **@PM** - Technology choices
|
|
89
|
+
- **/explore** - Deep investigation
|
|
90
|
+
- **/planning** - Planning phase decisions
|
|
91
|
+
|
|
92
|
+
#ab-test #decisions #alternatives #comparison
|
|
93
|
+
|
|
94
|
+
## ⏭️ Next Steps
|
|
95
|
+
- **If Decision Made:** Proceed with `/cycle` or `/orchestrator`
|
|
96
|
+
- **If More Research Needed:** Trigger `/explore`
|
|
97
|
+
|
|
98
|
+
---
|
|
99
|
+
|
|
100
|
+
## ENFORCEMENT REMINDER
|
|
101
|
+
Document A/B test results for future reference.
|