agentic-sdlc 1.5.1 → 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 +79 -77
- package/.agent/rules/auto-learning.md +78 -0
- package/.agent/rules/code-quality.md +40 -0
- package/.agent/rules/git-workflow.md +44 -24
- package/.agent/rules/global.md +10 -6
- 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 +31 -5
- package/.agent/skills/role-devops.md +9 -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 +15 -3
- package/.agent/skills/role-uiux.md +4 -0
- package/.agent/templates/CHANGELOG-Template.md +2 -2
- package/.agent/templates/Design-Verification-Report-Template.md +4 -4
- package/.agent/templates/DevOps-Plan-Template.md +7 -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 +52 -42
- package/.agent/workflows/commit.md +61 -0
- package/.agent/workflows/cycle.md +36 -15
- 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 +21 -14
- 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 +88 -0
- package/README.md +12 -4
- package/bin/cli.js +143 -13
- 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/skills/role-qa.md +0 -81
- 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,131 @@
|
|
|
1
|
+
# Observer Compliance Report
|
|
2
|
+
|
|
3
|
+
**Report ID:** `[AUTO-GENERATED]`
|
|
4
|
+
**Generated:** `[TIMESTAMP]`
|
|
5
|
+
**Agent:** `[AGENT_NAME]`
|
|
6
|
+
**Task:** `[TASK_ID]`
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## Executive Summary
|
|
11
|
+
|
|
12
|
+
**Compliance Score:** `[0-100]` / 100
|
|
13
|
+
**Status:** ✅ PASS | ⚠️ WARNING | ❌ FAIL
|
|
14
|
+
**Violations Found:** `[NUMBER]`
|
|
15
|
+
**Auto-Corrected:** `[NUMBER]`
|
|
16
|
+
**Requires Attention:** `[NUMBER]`
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## Rule Compliance Check
|
|
21
|
+
|
|
22
|
+
### Code Quality Rules
|
|
23
|
+
|
|
24
|
+
| Rule | Status | Details |
|
|
25
|
+
|------|--------|---------|
|
|
26
|
+
| Linting passed | ✅ / ❌ | `[Details]` |
|
|
27
|
+
| Code style follows conventions | ✅ / ❌ | `[Details]` |
|
|
28
|
+
| Cyclomatic complexity < 10 | ✅ / ❌ | `[Details]` |
|
|
29
|
+
| Nesting depth < 4 | ✅ / ❌ | `[Details]` |
|
|
30
|
+
| Function length < 50 lines | ✅ / ❌ | `[Details]` |
|
|
31
|
+
|
|
32
|
+
### Naming Conventions
|
|
33
|
+
|
|
34
|
+
| Rule | Status | Details |
|
|
35
|
+
|------|--------|---------|
|
|
36
|
+
| Files use snake_case | ✅ / ❌ | `[Details]` |
|
|
37
|
+
| Classes use PascalCase | ✅ / ❌ | `[Details]` |
|
|
38
|
+
| Variables use camelCase | ✅ / ❌ | `[Details]` |
|
|
39
|
+
| Constants use UPPER_CASE | ✅ / ❌ | `[Details]` |
|
|
40
|
+
|
|
41
|
+
### Template Compliance
|
|
42
|
+
|
|
43
|
+
| Rule | Status | Details |
|
|
44
|
+
|------|--------|---------|
|
|
45
|
+
| Used correct template | ✅ / ❌ | `[Template name]` |
|
|
46
|
+
| All required sections present | ✅ / ❌ | `[Missing sections]` |
|
|
47
|
+
| YAML frontmatter valid | ✅ / ❌ | `[Errors]` |
|
|
48
|
+
|
|
49
|
+
### Workflow Steps
|
|
50
|
+
|
|
51
|
+
| Rule | Status | Details |
|
|
52
|
+
|------|--------|---------|
|
|
53
|
+
| Followed all mandatory steps | ✅ / ❌ | `[Skipped steps]` |
|
|
54
|
+
| Pre-flight checklist completed | ✅ / ❌ | `[Details]` |
|
|
55
|
+
| Enforcement gates passed | ✅ / ❌ | `[Failed gates]` |
|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
|
|
59
|
+
## Violations Detected
|
|
60
|
+
|
|
61
|
+
### Critical Violations (Require Immediate Action)
|
|
62
|
+
|
|
63
|
+
#### Violation #1
|
|
64
|
+
- **Type:** `[Code Quality / Naming / Template / Workflow]`
|
|
65
|
+
- **Severity:** CRITICAL
|
|
66
|
+
- **Rule:** `[Rule name]`
|
|
67
|
+
- **Location:** `[file:line]`
|
|
68
|
+
- **Description:** `[What was violated]`
|
|
69
|
+
- **Impact:** `[Why this matters]`
|
|
70
|
+
- **Recommendation:** `[How to fix]`
|
|
71
|
+
|
|
72
|
+
### Warning Violations (Should Be Fixed)
|
|
73
|
+
|
|
74
|
+
#### Violation #2
|
|
75
|
+
- **Type:** `[Type]`
|
|
76
|
+
- **Severity:** WARNING
|
|
77
|
+
- **Rule:** `[Rule name]`
|
|
78
|
+
- **Location:** `[file:line]`
|
|
79
|
+
- **Description:** `[What was violated]`
|
|
80
|
+
- **Recommendation:** `[How to fix]`
|
|
81
|
+
|
|
82
|
+
### Auto-Corrected Violations
|
|
83
|
+
|
|
84
|
+
#### Violation #3
|
|
85
|
+
- **Type:** `[Type]`
|
|
86
|
+
- **Severity:** INFO
|
|
87
|
+
- **Rule:** `[Rule name]`
|
|
88
|
+
- **Location:** `[file:line]`
|
|
89
|
+
- **Description:** `[What was violated]`
|
|
90
|
+
- **Action Taken:** `[What Observer did to fix it]`
|
|
91
|
+
|
|
92
|
+
---
|
|
93
|
+
|
|
94
|
+
## Compliance Trends
|
|
95
|
+
|
|
96
|
+
**Previous Reports:**
|
|
97
|
+
- 2 days ago: 85/100
|
|
98
|
+
- 1 day ago: 90/100
|
|
99
|
+
- Today: `[SCORE]`/100
|
|
100
|
+
|
|
101
|
+
**Trend:** ⬆️ Improving | ➡️ Stable | ⬇️ Declining
|
|
102
|
+
|
|
103
|
+
---
|
|
104
|
+
|
|
105
|
+
## Recommendations
|
|
106
|
+
|
|
107
|
+
### Immediate Actions Required
|
|
108
|
+
1. `[Action 1]`
|
|
109
|
+
2. `[Action 2]`
|
|
110
|
+
|
|
111
|
+
### Suggested Improvements
|
|
112
|
+
1. `[Suggestion 1]`
|
|
113
|
+
2. `[Suggestion 2]`
|
|
114
|
+
|
|
115
|
+
### Learning Opportunities
|
|
116
|
+
- Consider updating rule: `[Rule name]` based on this pattern
|
|
117
|
+
- Add to anti-patterns KB: `[Pattern description]`
|
|
118
|
+
|
|
119
|
+
---
|
|
120
|
+
|
|
121
|
+
## Next Steps
|
|
122
|
+
|
|
123
|
+
- [ ] Fix critical violations
|
|
124
|
+
- [ ] Review warning violations
|
|
125
|
+
- [ ] Update auto-correction rules if needed
|
|
126
|
+
- [ ] Sync learnings to Neo4j
|
|
127
|
+
|
|
128
|
+
---
|
|
129
|
+
|
|
130
|
+
**Observer Agent:** v1.0.0
|
|
131
|
+
**Report Generated At:** `[TIMESTAMP]`
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
# Quality Score Report
|
|
2
|
+
|
|
3
|
+
**Report ID:** `[AUTO-GENERATED]`
|
|
4
|
+
**Generated:** `[TIMESTAMP]`
|
|
5
|
+
**Target:** `[FILE_PATH or REPORT_PATH]`
|
|
6
|
+
**Type:** Code | Report | Documentation
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## Executive Summary
|
|
11
|
+
|
|
12
|
+
**Overall Quality Score:** `[0-100]` / 100
|
|
13
|
+
**Grade:** A+ | A | B | C | D | F
|
|
14
|
+
**Status:** ✅ PASS | ⚠️ NEEDS IMPROVEMENT | ❌ FAIL
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
## Score Breakdown
|
|
19
|
+
|
|
20
|
+
### For Code Files
|
|
21
|
+
|
|
22
|
+
#### Complexity Score: `[0-100]` / 100
|
|
23
|
+
- **Cyclomatic Complexity:** `[VALUE]` (Target: < 10)
|
|
24
|
+
- **Nesting Depth:** `[VALUE]` (Target: < 4)
|
|
25
|
+
- **Function Length:** `[VALUE]` lines (Target: < 50)
|
|
26
|
+
- **Class Size:** `[VALUE]` lines (Target: < 300)
|
|
27
|
+
|
|
28
|
+
**Grade:** A+ (90-100) | A (80-89) | B (70-79) | C (60-69) | D (50-59) | F (< 50)
|
|
29
|
+
|
|
30
|
+
#### Readability Score: `[0-100]` / 100
|
|
31
|
+
- **Naming Quality:** Clear | Acceptable | Needs Improvement
|
|
32
|
+
- **Comment Coverage:** `[VALUE]%` (Target: > 10%)
|
|
33
|
+
- **Code Structure:** Excellent | Good | Fair | Poor
|
|
34
|
+
- **Consistency:** `[VALUE]%` (Target: > 90%)
|
|
35
|
+
|
|
36
|
+
**Grade:** A+ | A | B | C | D | F
|
|
37
|
+
|
|
38
|
+
#### Security Score: `[0-100]` / 100
|
|
39
|
+
- **Known Vulnerabilities:** `[COUNT]`
|
|
40
|
+
- **Security Best Practices:** `[COMPLIANCE]%`
|
|
41
|
+
- **Input Validation:** Present | Missing
|
|
42
|
+
- **Error Handling:** Robust | Basic | Insufficient
|
|
43
|
+
|
|
44
|
+
**Grade:** A+ | A | B | C | D | F
|
|
45
|
+
|
|
46
|
+
#### Performance Score: `[0-100]` / 100
|
|
47
|
+
- **Algorithmic Efficiency:** O(`[COMPLEXITY]`)
|
|
48
|
+
- **Memory Usage:** Optimal | Acceptable | High
|
|
49
|
+
- **Database Queries:** Optimized | N+1 Issues | Inefficient
|
|
50
|
+
- **Caching Strategy:** Present | Missing
|
|
51
|
+
|
|
52
|
+
**Grade:** A+ | A | B | C | D | F
|
|
53
|
+
|
|
54
|
+
#### Maintainability Score: `[0-100]` / 100
|
|
55
|
+
- **Modularity:** Excellent | Good | Fair | Poor
|
|
56
|
+
- **DRY Principle:** `[COMPLIANCE]%`
|
|
57
|
+
- **SOLID Principles:** `[COMPLIANCE]%`
|
|
58
|
+
- **Test Coverage:** `[VALUE]%` (Target: > 80%)
|
|
59
|
+
|
|
60
|
+
**Grade:** A+ | A | B | C | D | F
|
|
61
|
+
|
|
62
|
+
---
|
|
63
|
+
|
|
64
|
+
### For Reports/Documentation
|
|
65
|
+
|
|
66
|
+
#### Completeness Score: `[0-100]` / 100
|
|
67
|
+
- **Required Sections Present:** `[COUNT/TOTAL]`
|
|
68
|
+
- **Missing Sections:** `[LIST]`
|
|
69
|
+
- **YAML Frontmatter:** Valid | Invalid | Missing
|
|
70
|
+
- **Template Compliance:** `[COMPLIANCE]%`
|
|
71
|
+
|
|
72
|
+
**Grade:** A+ | A | B | C | D | F
|
|
73
|
+
|
|
74
|
+
#### Clarity Score: `[0-100]` / 100
|
|
75
|
+
- **Writing Quality:** Excellent | Good | Fair | Poor
|
|
76
|
+
- **Structure:** Logical | Acceptable | Confusing
|
|
77
|
+
- **Technical Accuracy:** `[COMPLIANCE]%`
|
|
78
|
+
- **Readability Level:** `[GRADE_LEVEL]`
|
|
79
|
+
|
|
80
|
+
**Grade:** A+ | A | B | C | D | F
|
|
81
|
+
|
|
82
|
+
#### Accuracy Score: `[0-100]` / 100
|
|
83
|
+
- **Factual Errors:** `[COUNT]`
|
|
84
|
+
- **Technical Correctness:** `[COMPLIANCE]%`
|
|
85
|
+
- **Data Consistency:** Consistent | Some Issues | Inconsistent
|
|
86
|
+
- **References:** Complete | Partial | Missing
|
|
87
|
+
|
|
88
|
+
**Grade:** A+ | A | B | C | D | F
|
|
89
|
+
|
|
90
|
+
#### Actionability Score: `[0-100]` / 100
|
|
91
|
+
- **Clear Next Steps:** Present | Vague | Missing
|
|
92
|
+
- **Specific Recommendations:** `[COUNT]`
|
|
93
|
+
- **Implementation Guidance:** Detailed | Basic | Absent
|
|
94
|
+
- **Decision Support:** Strong | Adequate | Weak
|
|
95
|
+
|
|
96
|
+
**Grade:** A+ | A | B | C | D | F
|
|
97
|
+
|
|
98
|
+
---
|
|
99
|
+
|
|
100
|
+
## Detailed Findings
|
|
101
|
+
|
|
102
|
+
### Strengths 💪
|
|
103
|
+
1. `[Strength 1]`
|
|
104
|
+
2. `[Strength 2]`
|
|
105
|
+
3. `[Strength 3]`
|
|
106
|
+
|
|
107
|
+
### Weaknesses ⚠️
|
|
108
|
+
1. `[Weakness 1]`
|
|
109
|
+
- **Impact:** `[Description]`
|
|
110
|
+
- **Recommendation:** `[How to fix]`
|
|
111
|
+
|
|
112
|
+
2. `[Weakness 2]`
|
|
113
|
+
- **Impact:** `[Description]`
|
|
114
|
+
- **Recommendation:** `[How to fix]`
|
|
115
|
+
|
|
116
|
+
### Critical Issues 🚨
|
|
117
|
+
1. `[Critical Issue 1]`
|
|
118
|
+
- **Severity:** CRITICAL
|
|
119
|
+
- **Impact:** `[Description]`
|
|
120
|
+
- **Required Action:** `[What must be done]`
|
|
121
|
+
|
|
122
|
+
---
|
|
123
|
+
|
|
124
|
+
## Comparison with Standards
|
|
125
|
+
|
|
126
|
+
| Metric | Current | Target | Status |
|
|
127
|
+
|--------|---------|--------|---------|
|
|
128
|
+
| Overall Score | `[VALUE]` | 80 | ✅ / ❌ |
|
|
129
|
+
| Complexity | `[VALUE]` | < 10 | ✅ / ❌ |
|
|
130
|
+
| Test Coverage | `[VALUE]%` | > 80% | ✅ / ❌ |
|
|
131
|
+
| Security | `[VALUE]` | 90 | ✅ / ❌ |
|
|
132
|
+
| Maintainability | `[VALUE]` | 80 | ✅ / ❌ |
|
|
133
|
+
|
|
134
|
+
---
|
|
135
|
+
|
|
136
|
+
## Historical Trend
|
|
137
|
+
|
|
138
|
+
**Score Over Time:**
|
|
139
|
+
- 2 weeks ago: `[SCORE]`
|
|
140
|
+
- 1 week ago: `[SCORE]`
|
|
141
|
+
- Today: `[SCORE]`
|
|
142
|
+
|
|
143
|
+
**Trend:** ⬆️ Improving | ➡️ Stable | ⬇️ Declining
|
|
144
|
+
|
|
145
|
+
**Improvement Rate:** `[+/- X points]` per week
|
|
146
|
+
|
|
147
|
+
---
|
|
148
|
+
|
|
149
|
+
## Improvement Recommendations
|
|
150
|
+
|
|
151
|
+
### High Priority (Fix Immediately)
|
|
152
|
+
1. `[Recommendation 1]`
|
|
153
|
+
- **Category:** `[Complexity/Security/etc.]`
|
|
154
|
+
- **Expected Impact:** `[+X points]`
|
|
155
|
+
- **Effort:** Low | Medium | High
|
|
156
|
+
|
|
157
|
+
2. `[Recommendation 2]`
|
|
158
|
+
- **Category:** `[Category]`
|
|
159
|
+
- **Expected Impact:** `[+X points]`
|
|
160
|
+
- **Effort:** Low | Medium | High
|
|
161
|
+
|
|
162
|
+
### Medium Priority (Fix Soon)
|
|
163
|
+
1. `[Recommendation 1]`
|
|
164
|
+
2. `[Recommendation 2]`
|
|
165
|
+
|
|
166
|
+
### Low Priority (Nice to Have)
|
|
167
|
+
1. `[Recommendation 1]`
|
|
168
|
+
2. `[Recommendation 2]`
|
|
169
|
+
|
|
170
|
+
---
|
|
171
|
+
|
|
172
|
+
## Learning Opportunities
|
|
173
|
+
|
|
174
|
+
**Patterns to Replicate:**
|
|
175
|
+
- `[Good pattern 1]` - Should be added to KB
|
|
176
|
+
|
|
177
|
+
**Anti-Patterns to Avoid:**
|
|
178
|
+
- `[Bad pattern 1]` - Should be documented as anti-pattern
|
|
179
|
+
|
|
180
|
+
**Skills to Develop:**
|
|
181
|
+
- `[Skill 1]` - Recommended learning path: `[Link to Neo4j path]`
|
|
182
|
+
|
|
183
|
+
---
|
|
184
|
+
|
|
185
|
+
## Next Steps
|
|
186
|
+
|
|
187
|
+
- [ ] Address critical issues
|
|
188
|
+
- [ ] Implement high-priority recommendations
|
|
189
|
+
- [ ] Re-run quality check after fixes
|
|
190
|
+
- [ ] Update KB with learnings
|
|
191
|
+
- [ ] Sync to Neo4j
|
|
192
|
+
|
|
193
|
+
---
|
|
194
|
+
|
|
195
|
+
**Judge Agent:** v1.0.0
|
|
196
|
+
**Scoring Algorithm:** v2.0
|
|
197
|
+
**Report Generated At:** `[TIMESTAMP]`
|
|
@@ -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]`
|