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.
Files changed (144) hide show
  1. package/.agent/rules/agent-execution.md +55 -0
  2. package/.agent/rules/ai-enforcement.md +4 -3
  3. package/.agent/rules/artifacts.md +1 -1
  4. package/.agent/rules/auto-learning.md +78 -0
  5. package/.agent/rules/code-quality.md +40 -0
  6. package/.agent/rules/global.md +2 -2
  7. package/.agent/rules/naming-conventions.md +55 -0
  8. package/.agent/skills/role-ba.md +6 -2
  9. package/.agent/skills/role-brain.md +5 -1
  10. package/.agent/skills/role-cloud.md +38 -0
  11. package/.agent/skills/role-dev.md +22 -1
  12. package/.agent/skills/role-devops.md +4 -0
  13. package/.agent/skills/role-game.md +35 -0
  14. package/.agent/skills/role-mobile.md +55 -0
  15. package/.agent/skills/role-orchestrator.md +4 -0
  16. package/.agent/skills/role-pm.md +4 -0
  17. package/.agent/skills/role-po.md +4 -0
  18. package/.agent/skills/role-reporter.md +4 -0
  19. package/.agent/skills/role-research.md +78 -0
  20. package/.agent/skills/role-sa.md +4 -0
  21. package/.agent/skills/role-seca.md +4 -0
  22. package/.agent/skills/role-stakeholder.md +4 -0
  23. package/.agent/skills/role-tester.md +4 -0
  24. package/.agent/skills/role-uiux.md +4 -0
  25. package/.agent/templates/Specification-Template.md +38 -0
  26. package/.agent/templates/ab-comparison-report.md +175 -0
  27. package/.agent/templates/observer-report.md +131 -0
  28. package/.agent/templates/quality-score-report.md +197 -0
  29. package/.agent/templates/self-learning-digest.md +268 -0
  30. package/.agent/templates/system-health-report.md +330 -0
  31. package/.agent/workflows/ab.md +101 -0
  32. package/.agent/workflows/autogen.md +65 -0
  33. package/.agent/workflows/brain.md +48 -37
  34. package/.agent/workflows/commit.md +61 -0
  35. package/.agent/workflows/cycle.md +32 -11
  36. package/.agent/workflows/debug.md +123 -0
  37. package/.agent/workflows/deep-search.md +82 -0
  38. package/.agent/workflows/docs.md +144 -0
  39. package/.agent/workflows/emergency.md +17 -15
  40. package/.agent/workflows/explore.md +15 -9
  41. package/.agent/workflows/housekeeping.md +24 -11
  42. package/.agent/workflows/metrics.md +14 -12
  43. package/.agent/workflows/monitor.md +98 -0
  44. package/.agent/workflows/observe.md +84 -0
  45. package/.agent/workflows/onboarding.md +135 -0
  46. package/.agent/workflows/orchestrator.md +12 -5
  47. package/.agent/workflows/planning.md +126 -0
  48. package/.agent/workflows/refactor.md +132 -0
  49. package/.agent/workflows/release.md +19 -12
  50. package/.agent/workflows/review.md +99 -0
  51. package/.agent/workflows/score.md +104 -0
  52. package/.agent/workflows/sprint.md +16 -14
  53. package/.agent/workflows/validate.md +13 -11
  54. package/.agent/workflows/worktree.md +154 -0
  55. package/CHANGELOG.md +71 -0
  56. package/README.md +12 -4
  57. package/bin/cli.js +142 -16
  58. package/docs/.brain-health-history.json +42 -0
  59. package/docs/.brain-improvements.json +53 -0
  60. package/docs/.brain-learner-log.json +27 -0
  61. package/docs/.brain-scores.json +310 -0
  62. package/docs/architecture/system-flow.mermaid +81 -0
  63. package/docs/artifacts/2026-01-05-enforcement-gates-plan.md +80 -0
  64. package/docs/artifacts/2026-01-05-workflow-analysis.md +231 -0
  65. package/docs/artifacts/README.md +26 -0
  66. package/docs/guides/MCP-GUIDE.md +1 -0
  67. package/docs/reports/2026-01-05-autogen-evaluation.md +64 -0
  68. package/docs/reports/2026-01-05-brain-layer-analysis.md +109 -0
  69. package/docs/reports/2026-01-05-repository-audit.md +253 -0
  70. package/docs/reports/Metrics-Dashboard-2026-01-08.md +29 -0
  71. package/docs/reports/Metrics-Dashboard-Final.md +29 -0
  72. package/docs/reports/Validation-Report-2026-01-05.md +40 -0
  73. package/docs/reports/Validation-Report-2026-01-08.md +40 -0
  74. package/docs/reports/worktrunk-audit.md +94 -0
  75. package/docs/solutions/README.md +96 -0
  76. package/docs/walkthroughs/2026-01-05-audit-implementation.md +36 -0
  77. package/docs/walkthroughs/2026-01-05-autonomy-release.md +54 -0
  78. package/docs/walkthroughs/2026-01-05-enforcement-gates.md +33 -0
  79. package/docs/walkthroughs/2026-01-05-judge-enhancement.md +30 -0
  80. package/docs/walkthroughs/2026-01-05-landing-page-orchestrator.md +52 -0
  81. package/docs/walkthroughs/2026-01-05-validation.md +32 -0
  82. package/docs/walkthroughs/2026-01-05-workflow-audit.md +89 -0
  83. package/docs/walkthroughs/2026-01-05-workflow-refactoring.md +44 -0
  84. package/docs/walkthroughs/2026-01-06-worktrunk-integration.md +41 -0
  85. package/docs/walkthroughs/README.md +25 -0
  86. package/package.json +33 -19
  87. package/.agent/knowledge-base/AUTO-LEARNING-GUIDE.md +0 -327
  88. package/.agent/knowledge-base/HOW-IT-WORKS.md +0 -365
  89. package/.agent/knowledge-base/INDEX.md +0 -43
  90. package/.agent/knowledge-base/README.md +0 -242
  91. package/.agent/knowledge-base/architecture/.gitkeep +0 -1
  92. package/.agent/knowledge-base/architecture/KB-2026-01-01-003-neo4j-graph-database-skills.md +0 -1146
  93. package/.agent/knowledge-base/architecture/README.md +0 -98
  94. package/.agent/knowledge-base/bugs/.gitkeep +0 -1
  95. package/.agent/knowledge-base/bugs/KB-2026-01-02-yaml-special-character-escaping.md +0 -56
  96. package/.agent/knowledge-base/bugs/medium/KB-2026-01-01-001-example-auto-learned.md +0 -198
  97. package/.agent/knowledge-base/features/.gitkeep +0 -1
  98. package/.agent/knowledge-base/features/KB-2026-01-01-001-landing-page-design-trends-2026.md +0 -646
  99. package/.agent/knowledge-base/features/KB-2026-01-01-004-uiux-design-skills-2026.md +0 -945
  100. package/.agent/knowledge-base/features/KB-2026-01-01-005-modern-ai-landing-page-ui.md +0 -310
  101. package/.agent/knowledge-base/features/KB-2026-01-01-006-award-winning-landing-page-patterns.md +0 -324
  102. package/.agent/knowledge-base/features/KB-2026-01-02-001-cleanup-workflow.md +0 -242
  103. package/.agent/knowledge-base/features/KB-2026-01-02-002-landing-page-monorepo-architecture.md +0 -148
  104. package/.agent/knowledge-base/features/KB-2026-01-02-003-premium-glassmorphism-patterns.md +0 -58
  105. package/.agent/knowledge-base/features/KB-2026-01-04-ai-agent-enforcement.md +0 -46
  106. package/.agent/knowledge-base/features/README.md +0 -83
  107. package/.agent/knowledge-base/features/figma-landing-page-workflow.md +0 -311
  108. package/.agent/knowledge-base/features/figma-mcp-sa-guide.md +0 -673
  109. package/.agent/knowledge-base/features/figma-mcp-uiux-guide.md +0 -459
  110. package/.agent/knowledge-base/performance/.gitkeep +0 -1
  111. package/.agent/knowledge-base/performance/KB-2026-01-02-lazy-loading-optimization.md +0 -80
  112. package/.agent/knowledge-base/platform-specific/.gitkeep +0 -1
  113. package/.agent/knowledge-base/platform-specific/KB-2026-01-02-windows-console-encoding.md +0 -56
  114. package/.agent/knowledge-base/role-guides/DEV-KB-Guide.md +0 -527
  115. package/.agent/knowledge-base/role-guides/DEVOPS-KB-Guide.md +0 -491
  116. package/.agent/knowledge-base/role-guides/PM-KB-Guide.md +0 -299
  117. package/.agent/knowledge-base/role-guides/SECA-KB-Guide.md +0 -555
  118. package/.agent/knowledge-base/role-guides/TESTER-KB-Guide.md +0 -519
  119. package/.agent/knowledge-base/security/.gitkeep +0 -1
  120. package/.agent/knowledge-base/security/KB-2026-01-02-input-validation-sanitization.md +0 -74
  121. package/.agent/rules/AUTO-LEARNING.md +0 -418
  122. package/.agent/rules/KNOWLEDGE-BASE.md +0 -45
  123. package/.agent/workflows/compound.md +0 -51
  124. package/.agent/workflows/preflight.md +0 -35
  125. package/.agent/workflows/route.md +0 -160
  126. package/bin/kb +0 -34
  127. package/bin/kb.bat +0 -28
  128. package/bin/kb_cli.py +0 -226
  129. package/bin/lib/README.md +0 -411
  130. package/bin/lib/__init__.py +0 -7
  131. package/bin/lib/__pycache__/kb_add.cpython-313.pyc +0 -0
  132. package/bin/lib/__pycache__/kb_common.cpython-313.pyc +0 -0
  133. package/bin/lib/__pycache__/kb_compound.cpython-313.pyc +0 -0
  134. package/bin/lib/__pycache__/kb_index.cpython-313.pyc +0 -0
  135. package/bin/lib/__pycache__/kb_list.cpython-313.pyc +0 -0
  136. package/bin/lib/__pycache__/kb_search.cpython-313.pyc +0 -0
  137. package/bin/lib/__pycache__/kb_stats.cpython-313.pyc +0 -0
  138. package/bin/lib/kb_add.py +0 -203
  139. package/bin/lib/kb_common.py +0 -224
  140. package/bin/lib/kb_compound.py +0 -250
  141. package/bin/lib/kb_index.py +0 -193
  142. package/bin/lib/kb_list.py +0 -144
  143. package/bin/lib/kb_search.py +0 -121
  144. package/bin/lib/kb_stats.py +0 -153
@@ -0,0 +1,26 @@
1
+ # Artifacts Directory
2
+
3
+ This folder stores IDE-generated artifacts that must be persisted for self-learning.
4
+
5
+ ## What Goes Here
6
+
7
+ | Artifact Type | Example |
8
+ |---------------|---------|
9
+ | Analysis reports | `2026-01-05-workflow-analysis.md` |
10
+ | Task summaries | `2026-01-05-task-refactoring.md` |
11
+ | Investigation reports | `2026-01-05-explore-auth.md` |
12
+ | Gap analysis | `2026-01-05-gap-analysis.md` |
13
+
14
+ ## Naming Convention
15
+
16
+ ```
17
+ [YYYY-MM-DD]-[task-name].md
18
+ ```
19
+
20
+ ## Sync to Neo4j
21
+
22
+ After adding artifacts:
23
+
24
+ ```bash
25
+ agentic-sdlc kb compound sync
26
+ ```
@@ -14,6 +14,7 @@ The following servers are integrated into the team roles. Ensure these are confi
14
14
  | **GitIngest** | Codebase snapshots | @ORCHESTRATOR, @REPORTER |
15
15
  | **Apidog** | API Testing & Design | @SA, @TESTER |
16
16
  | **Brave Search** | External Research | @PM, @PO |
17
+ | **Deep Search** | Technical Research (DDG + GitHub + StackOverflow) | @RESEARCH, @SA, @DEV |
17
18
  | **Firecrawl** | Web Scraper / Log research | @SECA, @DEVOPS |
18
19
  | **Playwright** | E2E / Browser Testing | @QA, @TESTER |
19
20
  | **Context7** | Architecture Analysis | @SA, @DEV |
@@ -0,0 +1,64 @@
1
+ # Evaluation Report: Microsoft AutoGen Integration
2
+
3
+ **Date:** 2026-01-05
4
+ **Status:** Draft
5
+ **Author:** @BRAIN (Research)
6
+
7
+ ## 1. Executive Summary
8
+ This report evaluates the applicability of **Microsoft AutoGen** (specifically v0.4+) to the **Agentic SDLC** project.
9
+
10
+ **Conclusion:** AutoGen represents a significant paradigm shift from the current `CLI + Workflow` architecture to a `Runtime + Event-Driven` architecture. While it offers powerful capabilities for autonomous multi-agent collaboration and state management, a full migration would require substantial refactoring.
11
+ **Recommendation:** We recommend a **Phased Adoption (Hybrid Approach)**, starting with a pilot implementation for the `@Orchestrator` role or a specific complex workflow (e.g., `/sprint`), while maintaining the existing stable CLI tools for atomic tasks.
12
+
13
+ ---
14
+
15
+ ## 2. Microsoft AutoGen Overview
16
+ AutoGen is a framework for building event-driven, distributed, agentic applications.
17
+ * **Core Unit:** `ConversableAgent` (an object that can send/receive messages).
18
+ * **Key Features:**
19
+ * **Multi-Agent Conversation:** Built-in patterns for Two-Agent Chat, Group Chat, and Hierarchical Chat.
20
+ * **Human-in-the-loop:** `UserProxyAgent` allows seamless human intervention.
21
+ * **Code Execution:** Native support for executing code (Docker/Local) within conversations.
22
+ * **Tool Use:** Agents can be equipped with functions (Tools) to interact with the environment.
23
+ * **Ecosystem:** v0.4 introduces an event-driven architecture, enabling distributed agents and better scalability.
24
+
25
+ ## 3. Current "Agentic SDLC" Architecture Analysis
26
+ The current system acts as a **Meta-Level Controller** using a "Brain" workflow.
27
+ * **Architecture:** `CLI-First`. Interactions are discrete tool calls driven by prompt engineering and static Markdown definitions (`.agent/skills/`, `.agent/workflows/`).
28
+ * **Execution Model:** "Run & Stop". Scripts in `tools/` run, perform an action, and exit. State is persisted in files (Markdown, JSON) or Neo4j.
29
+ * **Pros:** Simple, transparent, stateless (easy to debug), strongly typed workflows (Markdown).
30
+ * **Cons:** Limited "autonomy" between steps; rigid workflow adherence; limited inter-agent negotiation (requires user as relay).
31
+
32
+ ## 4. Gap Analysis
33
+
34
+ | Feature | Agentic SDLC (Current) | Microsoft AutoGen (Target) | Gap/Bridge |
35
+ | :--- | :--- | :--- | :--- |
36
+ | **Agent Definition** | Markdown Prompts + CLI Tools | Python Classes (`AssistantAgent`) | Requires wrapping Prompts into Class metadata. |
37
+ | **Communication** | Invisible (Prompt -> Tool -> Output) | Explicit Message Passing | Needs a message loop (runtime). |
38
+ | **Orchestration** | User / Static Workflow Files | Dynamic GroupChat Manager | AutoGen excels here. |
39
+ | **Human Inputs** | `notify_user` / Interrupts | `UserProxyAgent` | Direct replacement possible. |
40
+ | **Tools** | `tools/` directory (Python scripts) | `autogen.tools` | Existing tools can be registered easily. |
41
+
42
+ ## 5. Integration Scenarios
43
+
44
+ ### Scenario A: The "Super-Tool" (Recommended Pilot)
45
+ Treat AutoGen as a *Tool* within the existing SDLC.
46
+ * **Concept:** Create a new tool `tools/autogen/runner.py`.
47
+ * **Usage:** The current Brain invokes this tool to spin up a simpler sub-team (e.g., "Solver Team: Dev + Tester") to solve a specific hard problem autonomously.
48
+ * **Pros:** Low risk, high value for complex tasks.
49
+ * **Cons:** Context switching between "System Agent" and "AutoGen Sub-agents".
50
+
51
+ ### Scenario B: The "Brain Replacement" (Long Term)
52
+ Refactor the entire `bin/agentic-sdlc` CLI to wrap an AutoGen runtime.
53
+ * **Concept:** When the user types `/orchestrator`, it launches a persistent AutoGen `GroupChat` involving `@PM`, `@Dev`, etc.
54
+ * **Pros:** True agentic autonomy, dynamic planning.
55
+ * **Cons:** Complete rewrite of the Supervisor layer.
56
+
57
+ ## 6. Proposed Pilot: "The Auto-Coder"
58
+ We propose building a pilot module using AutoGen to handle the `/emergency` or `/debug` workflow.
59
+ **Objective:** Give an AutoGen "Debugger Agent" access to `grep`, `read_file`, and `run_test` tools and let it autonomously find root causes without constant user prompting.
60
+
61
+ ## 7. Next Steps
62
+ 1. **Prototype:** Create a `tools/experiment/autogen_pilot.py`.
63
+ 2. **Define:** Map the `@DEV` and `@TESTER` roles to AutoGen definitions.
64
+ 3. **Evaluate:** Measure if the AutoGen loop resolves bugs faster than the manual `/debug` workflow.
@@ -0,0 +1,109 @@
1
+ # 🧠 Brain Root Layer Analysis
2
+
3
+ **Date:** 2026-01-05
4
+ **Issue:** Brain components not working during agent chat
5
+
6
+ ---
7
+
8
+ ## Current State: All Tools EXIST ✅
9
+
10
+ | Component | Script | Lines | Status |
11
+ |-----------|--------|-------|--------|
12
+ | Observer | `tools/brain/observer.py` | 297 | ✅ Implemented |
13
+ | Judge | `tools/brain/judge.py` | 341 | ✅ Implemented |
14
+ | Learner | `tools/brain/learner.py` | 298 | ✅ Implemented |
15
+ | A/B Tester | `tools/brain/ab_tester.py` | 353 | ✅ Implemented |
16
+ | Model Optimizer | `tools/brain/model_optimizer.py` | 341 | ✅ Implemented |
17
+ | Self-Improver | `tools/brain/self_improver.py` | 372 | ✅ Implemented |
18
+
19
+ ---
20
+
21
+ ## 🔴 The Problem
22
+
23
+ The brain tools are **standalone CLI scripts** that must be called explicitly. They do NOT:
24
+ - Auto-run when agent starts a session
25
+ - Monitor chat in real-time
26
+ - Intercept agent actions
27
+ - Auto-trigger learning after tasks
28
+
29
+ **Current reality:**
30
+ ```
31
+ User Chat → Agent → Executes Task
32
+
33
+ (Brain tools NOT called)
34
+ ```
35
+
36
+ **Expected:**
37
+ ```
38
+ User Chat → Agent → Brain Observer watches
39
+ → Agent Executes Task
40
+ → Judge scores result
41
+ → Learner records patterns
42
+ → Self-Improver updates rules
43
+ ```
44
+
45
+ ---
46
+
47
+ ## 🟢 Solution Options
48
+
49
+ ### Option 1: IDE Integration (Best but Hard)
50
+ **How:** IDE hooks call brain tools before/after each agent action.
51
+ - **Cursor:** Custom MCP server
52
+ - **Windsurf:** Cascade plugin
53
+ - **Antigravity:** Extension hooks
54
+
55
+ **Pros:** Fully automatic, no agent changes needed
56
+ **Cons:** Requires IDE-specific development
57
+
58
+ ---
59
+
60
+ ### Option 2: Agent Protocol (Recommended)
61
+ **How:** Add mandatory steps to GEMINI.md that agents MUST follow:
62
+
63
+ ```markdown
64
+ ## Brain Protocol (MANDATORY)
65
+
66
+ Before EVERY task:
67
+ 1. Check observer status: `python tools/brain/observer.py --status`
68
+ 2. Get model recommendation: `python tools/brain/model_optimizer.py --recommend "[task]"`
69
+
70
+ After EVERY task:
71
+ 1. Score result: `python tools/brain/judge.py --score "[artifact]"`
72
+ 2. Trigger learning: `python tools/brain/learner.py --learn "[description]"`
73
+ 3. Record A/B if applicable
74
+ ```
75
+
76
+ **Pros:** Works now, no IDE changes
77
+ **Cons:** Relies on agent compliance
78
+
79
+ ---
80
+
81
+ ### Option 3: Batch/Scheduled (Easiest)
82
+ **How:** Run brain analysis periodically, not per-task.
83
+
84
+ ```bash
85
+ # Daily brain sync (add to workflow)
86
+ python tools/brain/observer.py --watch
87
+ python tools/brain/self_improver.py --analyze
88
+ python tools/brain/self_improver.py --plan
89
+ ```
90
+
91
+ **Pros:** Simple, low overhead
92
+ **Cons:** Not real-time
93
+
94
+ ---
95
+
96
+ ## 📋 Recommendation: Option 2 + Option 3
97
+
98
+ 1. **Update GEMINI.md** with mandatory brain protocol
99
+ 2. **Add brain check to `/onboarding`**
100
+ 3. **Add brain sync to `/housekeeping`**
101
+ 4. **Future:** Build MCP server for full integration
102
+
103
+ ---
104
+
105
+ ## ❓ Questions for User
106
+
107
+ 1. Implement Option 2 (add brain protocol to GEMINI.md)?
108
+ 2. Add brain hooks to existing workflows?
109
+ 3. Build MCP server for Cursor/Windsurf (future)?
@@ -0,0 +1,253 @@
1
+ # 🔍 Repository Audit Report
2
+
3
+ **Date:** 2026-01-05
4
+ **Version:** 1.6.0
5
+
6
+ ---
7
+
8
+ ## 📊 Architecture Diagram
9
+
10
+ ```mermaid
11
+ graph TB
12
+ subgraph "🧠 Layer 1: ROOT (Brain)"
13
+ BRAIN[Brain Controller]
14
+ OBS[Observer]
15
+ JUD[Judge]
16
+ LEARN[Learner]
17
+ AB[A/B Tester]
18
+ OPT[Model Optimizer]
19
+ SELF[Self-Improver]
20
+ end
21
+
22
+ subgraph "🔄 Layer 2: WORKFLOWS (15)"
23
+ direction LR
24
+ W1[/brain]
25
+ W2[/cycle]
26
+ W3[/orchestrator]
27
+ W4[/emergency]
28
+ W5[/explore]
29
+ W6[/sprint]
30
+ W7[/release]
31
+ W8[/metrics]
32
+ W9[/validate]
33
+ W10[/housekeeping]
34
+ W11[/review]
35
+ W12[/debug]
36
+ W13[/refactor]
37
+ W14[/onboarding]
38
+ W15[/docs]
39
+ end
40
+
41
+ subgraph "👥 Layer 3: SKILLS (13)"
42
+ direction LR
43
+ PM[@PM]
44
+ BA[@BA]
45
+ SA[@SA]
46
+ DEV[@DEV]
47
+ TESTER[@TESTER]
48
+ SECA[@SECA]
49
+ DEVOPS[@DEVOPS]
50
+ UIUX[@UIUX]
51
+ PO[@PO]
52
+ REP[@REPORTER]
53
+ STAKE[@STAKEHOLDER]
54
+ ORCH[@ORCHESTRATOR]
55
+ BRAINR[@BRAIN]
56
+ end
57
+
58
+ subgraph "🛠️ TOOLS"
59
+ direction TB
60
+ T_BRAIN[tools/brain/]
61
+ T_KB[tools/kb/]
62
+ T_NEO[tools/neo4j/]
63
+ T_WORK[tools/workflows/]
64
+ T_RES[tools/research/]
65
+ T_REL[tools/release/]
66
+ T_VAL[tools/validation/]
67
+ end
68
+
69
+ subgraph "📦 STORAGE"
70
+ KB[.agent/knowledge-base/]
71
+ DOCS[docs/]
72
+ NEO4J[(Neo4j)]
73
+ end
74
+
75
+ BRAIN --> OBS & JUD & LEARN & AB & OPT & SELF
76
+ W1 --> T_BRAIN
77
+ W2 & W4 & W6 --> T_WORK
78
+ W8 --> T_KB
79
+ T_NEO --> NEO4J
80
+ T_KB --> KB
81
+ DEV & SA --> DOCS
82
+ ```
83
+
84
+ ---
85
+
86
+ ## 📦 Component Inventory
87
+
88
+ ### Workflows (15) ✅
89
+ | Workflow | Type | Script Exists |
90
+ |----------|------|---------------|
91
+ | /brain | Support | ✅ brain_cli.py |
92
+ | /cycle | Process | ✅ cycle.py |
93
+ | /orchestrator | Process | ❌ **Missing** |
94
+ | /emergency | Process | ✅ emergency.py |
95
+ | /explore | Process | ❌ **Missing** |
96
+ | /sprint | Process | ✅ sprint.py |
97
+ | /release | Support | ✅ release.py |
98
+ | /metrics | Utility | ✅ metrics-dashboard.py |
99
+ | /validate | Utility | ✅ validate.py |
100
+ | /housekeeping | Support | ✅ housekeeping.py |
101
+ | /review | Process | ❌ **Missing** |
102
+ | /debug | Process | ❌ **Missing** |
103
+ | /refactor | Process | ❌ **Missing** |
104
+ | /onboarding | Support | ❌ **Missing** |
105
+ | /docs | Support | ❌ **Missing** |
106
+
107
+ ### Skills (13) ✅
108
+ | Role | File Size | Status |
109
+ |------|-----------|--------|
110
+ | @PM | 8.6KB | ✅ Complete |
111
+ | @BA | 3.2KB | ⚠️ Minimal |
112
+ | @SA | 8.2KB | ✅ Complete |
113
+ | @DEV | 10KB | ✅ Complete |
114
+ | @TESTER | 8.6KB | ✅ Complete |
115
+ | @SECA | 8.8KB | ✅ Complete |
116
+ | @DEVOPS | 3.9KB | ⚠️ Minimal |
117
+ | @UIUX | 7.6KB | ✅ Complete |
118
+ | @PO | 6.4KB | ✅ Complete |
119
+ | @REPORTER | 3.1KB | ⚠️ Minimal |
120
+ | @STAKEHOLDER | 2.9KB | ⚠️ Minimal |
121
+ | @ORCHESTRATOR | 6.5KB | ✅ Complete |
122
+ | @BRAIN | 16KB | ✅ Complete |
123
+
124
+ ### Tools (28 Python Scripts)
125
+ | Directory | Scripts | Purpose |
126
+ |-----------|---------|---------|
127
+ | tools/brain/ | 8 | Brain components |
128
+ | tools/kb/ | 6 | KB management |
129
+ | tools/neo4j/ | 9 | Neo4j integration |
130
+ | tools/workflows/ | 5 | Workflow automation |
131
+ | tools/research/ | 4 | Research agent |
132
+ | tools/release/ | 3 | Release management |
133
+ | tools/validation/ | 3 | Validation |
134
+
135
+ ### Tests (10)
136
+ | Test File | Coverage |
137
+ |-----------|----------|
138
+ | test_brain_components.py | Brain tools |
139
+ | test_learning_engine.py | Learning engine |
140
+ | test_document_sync.py | Doc sync |
141
+ | test_emergency.py | Emergency workflow |
142
+ | test_kb_tools.py | KB tools |
143
+ | test_release.py | Release |
144
+ | test_agent_manage.py | Agent management |
145
+ | test_cli_js.py | CLI |
146
+ | test_common.py | Common utils |
147
+
148
+ ### CLI Commands (8)
149
+ | Command | Script | Status |
150
+ |---------|--------|--------|
151
+ | release | release.py | ✅ |
152
+ | kb | kb_cli.py | ✅ |
153
+ | agent | run.py | ✅ |
154
+ | validate | validate.py | ✅ |
155
+ | health | health-check.py | ✅ |
156
+ | setup | init.py | ✅ |
157
+ | brain | brain_cli.py | ✅ |
158
+ | research | research_agent.py | ✅ |
159
+
160
+ ---
161
+
162
+ ## 🔴 MISSING Features & Scripts (P0)
163
+
164
+ | # | Missing | Location | Impact |
165
+ |---|---------|----------|--------|
166
+ | 1 | `orchestrator.py` | tools/workflows/ | Full SDLC automation broken |
167
+ | 2 | `explore.py` | tools/workflows/ | Deep investigation unavailable |
168
+ | 3 | `review.py` | tools/workflows/ | Code review workflow manual |
169
+ | 4 | `debug.py` | tools/workflows/ | Debug workflow manual |
170
+ | 5 | `refactor.py` | tools/workflows/ | Refactor workflow manual |
171
+ | 6 | `onboarding.py` | tools/workflows/ | Onboarding manual |
172
+ | 7 | `docs.py` | tools/workflows/ | Docs workflow manual |
173
+ | 8 | `learn` CLI cmd | bin/cli.js | Learning engine not in CLI |
174
+
175
+ ---
176
+
177
+ ## 🟠 GAPS Identified (P1)
178
+
179
+ | # | Gap | Current State | Needed |
180
+ |---|-----|---------------|--------|
181
+ | 1 | No `/learn` CLI | Must use python directly | Add to cli.js |
182
+ | 2 | No artifact sync cmd | Manual copy | `agentic-sdlc artifact` |
183
+ | 3 | Minimal @BA role | 3KB only | Expand like @PM |
184
+ | 4 | Minimal @DEVOPS | 3.9KB | Expand with CI/CD |
185
+ | 5 | No GitHub Actions | .github/ exists | Add CI workflow |
186
+ | 6 | No solution sync | Solutions folder new | Add to document_sync |
187
+
188
+ ---
189
+
190
+ ## 🟡 Improvements Recommended (P2)
191
+
192
+ | # | Improvement | Benefit |
193
+ |---|-------------|---------|
194
+ | 1 | Add `workflow` to CLI | `agentic-sdlc workflow cycle` works but missing in commands |
195
+ | 2 | Expand test coverage | Current: 10 tests, need more integration |
196
+ | 3 | Add `metrics` CLI cmd | Quick project stats |
197
+ | 4 | Role cross-references | Link roles to workflows |
198
+ | 5 | Template validation | Check templates exist |
199
+ | 6 | KB auto-categorize | Auto-tag entries |
200
+ | 7 | Solution template | Standardize solutions |
201
+ | 8 | Brain dashboard | Visualize brain state |
202
+
203
+ ---
204
+
205
+ ## 📈 Statistics Summary
206
+
207
+ | Category | Count |
208
+ |----------|-------|
209
+ | Workflows | 15 |
210
+ | Skills/Roles | 13 |
211
+ | Tools (Python) | 28 |
212
+ | CLI Commands | 8 |
213
+ | Tests | 10 |
214
+ | Templates | 17 |
215
+ | KB Entries | ~28 |
216
+ | Docs | 91 |
217
+
218
+ ---
219
+
220
+ ## 🎯 Priority Actions
221
+
222
+ ### P0 - Critical (Missing Core Scripts)
223
+ ```bash
224
+ # Create these workflow scripts:
225
+ tools/workflows/orchestrator.py
226
+ tools/workflows/explore.py
227
+ tools/workflows/review.py
228
+ tools/workflows/debug.py
229
+ tools/workflows/refactor.py
230
+ tools/workflows/onboarding.py
231
+ tools/workflows/docs.py
232
+ ```
233
+
234
+ ### P1 - Important (CLI Gaps)
235
+ ```javascript
236
+ // Add to bin/cli.js commands:
237
+ 'learn': 'tools/neo4j/learning_engine.py',
238
+ 'metrics': 'tools/kb/metrics-dashboard.py',
239
+ 'artifact': 'tools/kb/artifact_sync.py' // NEW
240
+ ```
241
+
242
+ ### P2 - Nice to Have
243
+ - Expand minimal roles (@BA, @DEVOPS, @REPORTER)
244
+ - Add GitHub Actions CI
245
+ - Brain visualization dashboard
246
+
247
+ ---
248
+
249
+ ## ❓ Questions for User
250
+
251
+ 1. **Priority:** Should I create missing P0 workflow scripts first?
252
+ 2. **Scope:** Expand minimal roles now or later?
253
+ 3. **CI/CD:** Add GitHub Actions workflow?
@@ -0,0 +1,29 @@
1
+ # 📊 Metrics Dashboard
2
+
3
+ **Generated:** 2026-01-08 20:58
4
+ **Overall Health:** 🟢 Excellent
5
+
6
+ ---
7
+
8
+ ## Executive Summary
9
+
10
+ | Metric | Value |
11
+ |--------|-------|
12
+ | Total KB Entries | 15 |
13
+ | This Week | +3 |
14
+ | This Month | +8 |
15
+ | Total Time Saved | 32 hours |
16
+ | Avg Time per Entry | 2.1 hours |
17
+
18
+ ---
19
+
20
+ ## 📈 Learning Velocity
21
+
22
+ ✅ **Strong learning velocity** - Team is actively documenting solutions
23
+
24
+ ---
25
+
26
+ ## 🎯 Recommendations
27
+
28
+ - ✅ Keep up the great work!
29
+ - 💡 Consider documenting more architecture decisions
@@ -0,0 +1,29 @@
1
+ # 📊 Metrics Dashboard
2
+
3
+ **Generated:** 2026-01-08 10:58
4
+ **Overall Health:** 🟢 Excellent
5
+
6
+ ---
7
+
8
+ ## Executive Summary
9
+
10
+ | Metric | Value |
11
+ |--------|-------|
12
+ | Total KB Entries | 15 |
13
+ | This Week | +3 |
14
+ | This Month | +8 |
15
+ | Total Time Saved | 32 hours |
16
+ | Avg Time per Entry | 2.1 hours |
17
+
18
+ ---
19
+
20
+ ## 📈 Learning Velocity
21
+
22
+ ✅ **Strong learning velocity** - Team is actively documenting solutions
23
+
24
+ ---
25
+
26
+ ## 🎯 Recommendations
27
+
28
+ - ✅ Keep up the great work!
29
+ - 💡 Consider documenting more architecture decisions
@@ -0,0 +1,40 @@
1
+ ---
2
+ category: report
3
+ tags: [validation, health-check, workflow-audit]
4
+ date: 2026-01-05
5
+ author: @VALIDATOR
6
+ status: automated
7
+ related: [validate.md](../../.agent/workflows/validate.md)
8
+ ---
9
+
10
+ # Validation Report: 2026-01-05
11
+
12
+ ## Problem/Challenge
13
+ Need to ensure integrity of workflow tool references and file paths to prevent runtime errors.
14
+
15
+ ## Solution/Implementation
16
+ Executed automated validation scan on **14 workflow files**.
17
+
18
+ ### Scan Results
19
+ ```yaml
20
+ Workflows Scanned: 14
21
+ Total References: 31
22
+ Valid References: 31
23
+ Broken References: 0
24
+ Generated At: 10:39
25
+ ```
26
+
27
+ ## Artifacts/Output
28
+
29
+ - **Health Score:** 100/100
30
+ - **Status:** ✅ PASS
31
+
32
+ ✅ **All Clear:** No issues found. All tool references are valid.
33
+
34
+ ## Next Steps/Actions
35
+
36
+ 1. Fix any broken references immediately
37
+ 2. Replace hardcoded paths with relative paths
38
+ 3. Run validation again to verify fixes
39
+
40
+ #validation #health-check #workflow-audit
@@ -0,0 +1,40 @@
1
+ ---
2
+ category: report
3
+ tags: [validation, health-check, workflow-audit]
4
+ date: 2026-01-08
5
+ author: @VALIDATOR
6
+ status: automated
7
+ related: [validate.md](../../.agent/workflows/validate.md)
8
+ ---
9
+
10
+ # Validation Report: 2026-01-08
11
+
12
+ ## Problem/Challenge
13
+ Need to ensure integrity of workflow tool references and file paths to prevent runtime errors.
14
+
15
+ ## Solution/Implementation
16
+ Executed automated validation scan on **22 workflow files**.
17
+
18
+ ### Scan Results
19
+ ```yaml
20
+ Workflows Scanned: 22
21
+ Total References: 86
22
+ Valid References: 86
23
+ Broken References: 0
24
+ Generated At: 20:50
25
+ ```
26
+
27
+ ## Artifacts/Output
28
+
29
+ - **Health Score:** 100/100
30
+ - **Status:** ✅ PASS
31
+
32
+ ✅ **All Clear:** No issues found. All tool references are valid.
33
+
34
+ ## Next Steps/Actions
35
+
36
+ 1. Fix any broken references immediately
37
+ 2. Replace hardcoded paths with relative paths
38
+ 3. Run validation again to verify fixes
39
+
40
+ #validation #health-check #workflow-audit
@@ -0,0 +1,94 @@
1
+ # Exploration Report: Worktrunk Audit
2
+
3
+ **Date:** 2026-01-06
4
+ **Author:** @SA (Agentic SDLC)
5
+
6
+ ## Executive Summary
7
+
8
+ Worktrunk is a Rust-based CLI tool that simplifies `git worktree` management, specifically designed for parallel AI agent workflows. It allows running 5-10+ AI agents (like Claude Code) simultaneously, each in its own isolated worktree. **Highly recommended for adoption** given the user's agentic SDLC context.
9
+
10
+ ## First-Order Analysis
11
+
12
+ ### Core Value Proposition
13
+ | Feature | Description |
14
+ |---------|-------------|
15
+ | **Simplified Commands** | `wt switch`, `wt list`, `wt merge`, `wt remove` |
16
+ | **Context Isolation** | Each agent gets its own working directory |
17
+ | **Workflow Automation** | Hooks for on-create, pre-merge, post-merge |
18
+ | **LLM Integration** | Auto-generate commit messages from diffs |
19
+
20
+ ### Immediate Benefits
21
+ - **Instant context switching** without stashing/committing
22
+ - **Parallel execution**: Run multiple agents on different features
23
+ - **Clean state**: Each task has isolated file system state
24
+
25
+ ## Second-Order Analysis
26
+
27
+ ### Installation
28
+
29
+ | Method | Command |
30
+ |--------|---------|
31
+ | **Cargo** | `cargo install worktrunk && wt config shell install` |
32
+ | **Homebrew** | `brew install max-sixty/worktrunk/wt && wt config shell install` |
33
+
34
+ **Prerequisites:** Git, Rust (for Cargo install)
35
+
36
+ ### Integration Points
37
+ - Can integrate with `.agent/workflows` for environment setup
38
+ - Hook system allows running setup scripts on worktree creation
39
+ - Claude Code integration documented at [worktrunk.dev](https://worktrunk.dev)
40
+
41
+ ## Third-Order Analysis
42
+
43
+ ### Performance & Resources
44
+ | Aspect | Impact |
45
+ |--------|--------|
46
+ | **Disk usage** | Moderate increase (shared git objects) |
47
+ | **Checkout time** | Initial worktree creation ~1-3s |
48
+ | **Switch time** | Instantaneous (just `cd`) |
49
+
50
+ ### Maintenance
51
+ - Active project: 41 releases, 7 contributors
52
+ - Good documentation at [worktrunk.dev](https://worktrunk.dev)
53
+
54
+ ## Fourth-Order Analysis
55
+
56
+ ### Windows Compatibility ✅
57
+ Worktrunk has **explicit Windows support**:
58
+ - Git Bash support with POSIX path conversion
59
+ - PowerShell fallback for basic commands
60
+ - Handles Windows verbatim paths (`\\?\`)
61
+ - Fixes path canonicalization issues
62
+
63
+ ### Potential Risks
64
+ | Risk | Probability | Impact | Mitigation |
65
+ |------|-------------|--------|------------|
66
+ | Rust/Cargo not installed | Medium | High | Document install prerequisites |
67
+ | IDE worktree support | Low | Medium | Each worktree = separate VSCode window |
68
+ | Submodules complexity | Low | Low | Run `git submodule update --init` per worktree |
69
+
70
+ ## Recommendation
71
+
72
+ > [!TIP]
73
+ > **ADOPT** - Worktrunk is a strong fit for the Agentic SDLC project.
74
+
75
+ ### Why Adopt
76
+ 1. **Perfect fit**: Designed for parallel AI agent workflows
77
+ 2. **Windows ready**: Explicit support for the user's OS
78
+ 3. **Active maintenance**: Frequent releases and good docs
79
+ 4. **Claude integration**: Built-in support for Claude Code
80
+
81
+ ### Suggested Next Steps
82
+ 1. Install via Cargo: `cargo install worktrunk`
83
+ 2. Configure shell: `wt config shell install`
84
+ 3. Create a `/worktree` workflow in `.agent/workflows/`
85
+ 4. Document usage in role-dev.md
86
+
87
+ ## Open Questions
88
+ - [x] Installation method? → Cargo or Homebrew
89
+ - [x] Windows compatibility? → Yes, with Git Bash
90
+
91
+ ## References
92
+ - [GitHub: max-sixty/worktrunk](https://github.com/max-sixty/worktrunk)
93
+ - [Documentation: worktrunk.dev](https://worktrunk.dev)
94
+ - [Anthropic: Claude Code Best Practices](https://www.anthropic.com/engineering/claude-code-best-practices)