trinity-method-sdk 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +116 -0
- package/LICENSE +21 -0
- package/README.md +555 -0
- package/dist/cli/commands/deploy/agents.d.ts +14 -0
- package/dist/cli/commands/deploy/agents.js +59 -0
- package/dist/cli/commands/deploy/ci-cd.d.ts +13 -0
- package/dist/cli/commands/deploy/ci-cd.js +50 -0
- package/dist/cli/commands/deploy/claude-setup.d.ts +17 -0
- package/dist/cli/commands/deploy/claude-setup.js +91 -0
- package/dist/cli/commands/deploy/configuration.d.ts +13 -0
- package/dist/cli/commands/deploy/configuration.js +215 -0
- package/dist/cli/commands/deploy/directories.d.ts +12 -0
- package/dist/cli/commands/deploy/directories.js +38 -0
- package/dist/cli/commands/deploy/gitignore.d.ts +12 -0
- package/dist/cli/commands/deploy/gitignore.js +53 -0
- package/dist/cli/commands/deploy/index.d.ts +38 -0
- package/dist/cli/commands/deploy/index.js +156 -0
- package/dist/cli/commands/deploy/knowledge-base.d.ts +16 -0
- package/dist/cli/commands/deploy/knowledge-base.js +75 -0
- package/dist/cli/commands/deploy/linting.d.ts +18 -0
- package/dist/cli/commands/deploy/linting.js +51 -0
- package/dist/cli/commands/deploy/metrics.d.ts +13 -0
- package/dist/cli/commands/deploy/metrics.js +34 -0
- package/dist/cli/commands/deploy/pre-flight.d.ts +13 -0
- package/dist/cli/commands/deploy/pre-flight.js +29 -0
- package/dist/cli/commands/deploy/root-files.d.ts +16 -0
- package/dist/cli/commands/deploy/root-files.js +178 -0
- package/dist/cli/commands/deploy/sdk-install.d.ts +12 -0
- package/dist/cli/commands/deploy/sdk-install.js +57 -0
- package/dist/cli/commands/deploy/summary.d.ts +14 -0
- package/dist/cli/commands/deploy/summary.js +130 -0
- package/dist/cli/commands/deploy/templates.d.ts +14 -0
- package/dist/cli/commands/deploy/templates.js +84 -0
- package/dist/cli/commands/deploy/types.d.ts +39 -0
- package/dist/cli/commands/deploy/types.js +5 -0
- package/dist/cli/commands/update/agents.d.ts +14 -0
- package/dist/cli/commands/update/agents.js +31 -0
- package/dist/cli/commands/update/backup.d.ts +31 -0
- package/dist/cli/commands/update/backup.js +97 -0
- package/dist/cli/commands/update/commands.d.ts +14 -0
- package/dist/cli/commands/update/commands.js +75 -0
- package/dist/cli/commands/update/index.d.ts +15 -0
- package/dist/cli/commands/update/index.js +118 -0
- package/dist/cli/commands/update/knowledge-base.d.ts +14 -0
- package/dist/cli/commands/update/knowledge-base.js +38 -0
- package/dist/cli/commands/update/pre-flight.d.ts +13 -0
- package/dist/cli/commands/update/pre-flight.js +37 -0
- package/dist/cli/commands/update/summary.d.ts +20 -0
- package/dist/cli/commands/update/summary.js +47 -0
- package/dist/cli/commands/update/templates.d.ts +14 -0
- package/dist/cli/commands/update/templates.js +25 -0
- package/dist/cli/commands/update/types.d.ts +13 -0
- package/dist/cli/commands/update/types.js +7 -0
- package/dist/cli/commands/update/utils.d.ts +11 -0
- package/dist/cli/commands/update/utils.js +19 -0
- package/dist/cli/commands/update/verification.d.ts +20 -0
- package/dist/cli/commands/update/verification.js +54 -0
- package/dist/cli/commands/update/version.d.ts +18 -0
- package/dist/cli/commands/update/version.js +36 -0
- package/dist/cli/commands/update.d.ts +7 -0
- package/dist/cli/commands/update.js +7 -0
- package/dist/cli/index.d.ts +3 -0
- package/dist/cli/index.js +36 -0
- package/dist/cli/types.d.ts +77 -0
- package/dist/cli/types.js +5 -0
- package/dist/cli/utils/deploy-ci.d.ts +22 -0
- package/dist/cli/utils/deploy-ci.js +138 -0
- package/dist/cli/utils/deploy-linting.d.ts +3 -0
- package/dist/cli/utils/deploy-linting.js +136 -0
- package/dist/cli/utils/detect-stack.d.ts +3 -0
- package/dist/cli/utils/detect-stack.js +270 -0
- package/dist/cli/utils/error-classes.d.ts +63 -0
- package/dist/cli/utils/error-classes.js +84 -0
- package/dist/cli/utils/error-handler.d.ts +59 -0
- package/dist/cli/utils/error-handler.js +127 -0
- package/dist/cli/utils/errors.d.ts +52 -0
- package/dist/cli/utils/errors.js +102 -0
- package/dist/cli/utils/get-sdk-path.d.ts +18 -0
- package/dist/cli/utils/get-sdk-path.js +31 -0
- package/dist/cli/utils/inject-dependencies.d.ts +2 -0
- package/dist/cli/utils/inject-dependencies.js +55 -0
- package/dist/cli/utils/linting-tools.d.ts +8 -0
- package/dist/cli/utils/linting-tools.js +206 -0
- package/dist/cli/utils/metrics/code-quality.d.ts +32 -0
- package/dist/cli/utils/metrics/code-quality.js +122 -0
- package/dist/cli/utils/metrics/dependency-parser.d.ts +21 -0
- package/dist/cli/utils/metrics/dependency-parser.js +153 -0
- package/dist/cli/utils/metrics/file-complexity.d.ts +26 -0
- package/dist/cli/utils/metrics/file-complexity.js +77 -0
- package/dist/cli/utils/metrics/framework-detector.d.ts +17 -0
- package/dist/cli/utils/metrics/framework-detector.js +120 -0
- package/dist/cli/utils/metrics/git-metrics.d.ts +30 -0
- package/dist/cli/utils/metrics/git-metrics.js +83 -0
- package/dist/cli/utils/metrics/index.d.ts +28 -0
- package/dist/cli/utils/metrics/index.js +100 -0
- package/dist/cli/utils/template-processor.d.ts +10 -0
- package/dist/cli/utils/template-processor.js +188 -0
- package/dist/cli/utils/validate-path.d.ts +80 -0
- package/dist/cli/utils/validate-path.js +180 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +8 -0
- package/dist/templates/agents/aj-team/apo-documentation-specialist.md.template +572 -0
- package/dist/templates/agents/aj-team/bas-quality-gate.md.template +906 -0
- package/dist/templates/agents/aj-team/bon-dependency-manager.md.template +636 -0
- package/dist/templates/agents/aj-team/cap-configuration-specialist.md.template +670 -0
- package/dist/templates/agents/aj-team/dra-code-reviewer.md.template +768 -0
- package/dist/templates/agents/aj-team/kil-task-executor.md.template +764 -0
- package/dist/templates/agents/aj-team/uro-refactoring-specialist.md.template +759 -0
- package/dist/templates/agents/audit/juno-auditor.md.template +447 -0
- package/dist/templates/agents/deployment/ein-cicd.md.template +694 -0
- package/dist/templates/agents/deployment/ino-context.md.template +733 -0
- package/dist/templates/agents/deployment/tan-structure.md.template +661 -0
- package/dist/templates/agents/deployment/zen-knowledge.md.template +451 -0
- package/dist/templates/agents/leadership/aj-cc.md.template +462 -0
- package/dist/templates/agents/leadership/aj-maestro.md.template +943 -0
- package/dist/templates/agents/leadership/aly-cto.md.template +407 -0
- package/dist/templates/agents/planning/eus-decomposer.md.template +496 -0
- package/dist/templates/agents/planning/mon-requirements.md.template +323 -0
- package/dist/templates/agents/planning/ror-design.md.template +465 -0
- package/dist/templates/agents/planning/tra-planner.md.template +432 -0
- package/dist/templates/ci/cd.yml.template +175 -0
- package/dist/templates/ci/ci.yml.template +196 -0
- package/dist/templates/ci/generic-ci.yml +115 -0
- package/dist/templates/ci/github-actions.yml +86 -0
- package/dist/templates/ci/gitlab-ci.yml +103 -0
- package/dist/templates/claude/EMPLOYEE-DIRECTORY.md.template +545 -0
- package/dist/templates/documentation/ROOT-README.md.template +307 -0
- package/dist/templates/documentation/SUBDIRECTORY-README.md.template +261 -0
- package/dist/templates/investigations/bug.md.template +484 -0
- package/dist/templates/investigations/feature.md.template +564 -0
- package/dist/templates/investigations/performance.md.template +625 -0
- package/dist/templates/investigations/security.md.template +714 -0
- package/dist/templates/investigations/technical.md.template +433 -0
- package/dist/templates/knowledge-base/AI-DEVELOPMENT-GUIDE.md.template +957 -0
- package/dist/templates/knowledge-base/ARCHITECTURE.md.template +452 -0
- package/dist/templates/knowledge-base/CODING-PRINCIPLES.md.template +750 -0
- package/dist/templates/knowledge-base/DOCUMENTATION-CRITERIA.md.template +1118 -0
- package/dist/templates/knowledge-base/ISSUES.md.template +539 -0
- package/dist/templates/knowledge-base/TESTING-PRINCIPLES.md.template +894 -0
- package/dist/templates/knowledge-base/Technical-Debt.md.template +640 -0
- package/dist/templates/knowledge-base/To-do.md.template +407 -0
- package/dist/templates/knowledge-base/Trinity.md.template +464 -0
- package/dist/templates/linting/flutter/.pre-commit-config.yaml.template +27 -0
- package/dist/templates/linting/flutter/analysis_options.yaml.template +26 -0
- package/dist/templates/linting/nodejs/.eslintrc-commonjs.json.template +19 -0
- package/dist/templates/linting/nodejs/.eslintrc-esm.json.template +19 -0
- package/dist/templates/linting/nodejs/.eslintrc-typescript.json.template +22 -0
- package/dist/templates/linting/nodejs/.pre-commit-config.yaml.template +51 -0
- package/dist/templates/linting/nodejs/.prettierrc.json.template +10 -0
- package/dist/templates/linting/python/.flake8.template +16 -0
- package/dist/templates/linting/python/.pre-commit-config.yaml.template +30 -0
- package/dist/templates/linting/python/pyproject.toml.template +38 -0
- package/dist/templates/linting/rust/.pre-commit-config.yaml.template +28 -0
- package/dist/templates/linting/rust/clippy.toml.template +14 -0
- package/dist/templates/linting/rust/rustfmt.toml.template +12 -0
- package/dist/templates/root/CLAUDE.md.template +65 -0
- package/dist/templates/root/TRINITY.md.template +52 -0
- package/dist/templates/shared/claude-commands/trinity-agents.md.template +168 -0
- package/dist/templates/shared/claude-commands/trinity-audit.md.template +646 -0
- package/dist/templates/shared/claude-commands/trinity-changelog.md.template +624 -0
- package/dist/templates/shared/claude-commands/trinity-continue.md.template +549 -0
- package/dist/templates/shared/claude-commands/trinity-create-investigation.md.template +232 -0
- package/dist/templates/shared/claude-commands/trinity-decompose.md.template +181 -0
- package/dist/templates/shared/claude-commands/trinity-design.md.template +347 -0
- package/dist/templates/shared/claude-commands/trinity-docs.md.template +2093 -0
- package/dist/templates/shared/claude-commands/trinity-end.md.template +397 -0
- package/dist/templates/shared/claude-commands/trinity-init.md.template +606 -0
- package/dist/templates/shared/claude-commands/trinity-investigate-templates.md.template +725 -0
- package/dist/templates/shared/claude-commands/trinity-orchestrate.md.template +1061 -0
- package/dist/templates/shared/claude-commands/trinity-plan-investigation.md.template +135 -0
- package/dist/templates/shared/claude-commands/trinity-plan.md.template +201 -0
- package/dist/templates/shared/claude-commands/trinity-readme.md.template +1971 -0
- package/dist/templates/shared/claude-commands/trinity-requirements.md.template +148 -0
- package/dist/templates/shared/claude-commands/trinity-start.md.template +268 -0
- package/dist/templates/shared/claude-commands/trinity-verify.md.template +453 -0
- package/dist/templates/shared/claude-commands/trinity-workorder.md.template +249 -0
- package/dist/templates/source/base-CLAUDE.md.template +310 -0
- package/dist/templates/source/flutter-CLAUDE.md.template +593 -0
- package/dist/templates/source/nodejs-CLAUDE.md.template +531 -0
- package/dist/templates/source/python-CLAUDE.md.template +510 -0
- package/dist/templates/source/react-CLAUDE.md.template +513 -0
- package/dist/templates/source/rust-CLAUDE.md.template +653 -0
- package/dist/templates/source/tests-CLAUDE.md.template +432 -0
- package/dist/templates/trinity/CLAUDE.md.template +372 -0
- package/dist/templates/work-orders/ANALYSIS-TEMPLATE.md.template +276 -0
- package/dist/templates/work-orders/AUDIT-TEMPLATE.md.template +262 -0
- package/dist/templates/work-orders/IMPLEMENTATION-TEMPLATE.md.template +260 -0
- package/dist/templates/work-orders/INVESTIGATION-TEMPLATE.md.template +206 -0
- package/dist/templates/work-orders/PATTERN-TEMPLATE.md.template +320 -0
- package/dist/templates/work-orders/VERIFICATION-TEMPLATE.md.template +273 -0
- package/package.json +94 -0
|
@@ -0,0 +1,433 @@
|
|
|
1
|
+
# Technical Investigation: {{title}}
|
|
2
|
+
|
|
3
|
+
**Investigation ID:** {{investigationId}}
|
|
4
|
+
**Created:** {{createdAt}}
|
|
5
|
+
**Investigator:** {{investigator}}
|
|
6
|
+
**Status:** {{status}}
|
|
7
|
+
**Priority:** {{priority}}
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## 🔧 Technical Issue Summary
|
|
12
|
+
|
|
13
|
+
**Brief Description:**
|
|
14
|
+
{{description}}
|
|
15
|
+
|
|
16
|
+
**Technical Area:**
|
|
17
|
+
- [ ] Architecture / Design
|
|
18
|
+
- [ ] Code Quality / Refactoring
|
|
19
|
+
- [ ] Integration / APIs
|
|
20
|
+
- [ ] Data Migration / Schema
|
|
21
|
+
- [ ] Infrastructure / DevOps
|
|
22
|
+
- [ ] Third-party Dependencies
|
|
23
|
+
- [ ] Technical Debt
|
|
24
|
+
- [ ] Other: [specify]
|
|
25
|
+
|
|
26
|
+
**Complexity:**
|
|
27
|
+
- [ ] Low (1-2 days)
|
|
28
|
+
- [ ] Medium (3-5 days)
|
|
29
|
+
- [ ] High (1-2 weeks)
|
|
30
|
+
- [ ] Very High (>2 weeks)
|
|
31
|
+
|
|
32
|
+
**Affected Systems:**
|
|
33
|
+
-
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
## 🔍 Trinity Method Guided Questions
|
|
38
|
+
|
|
39
|
+
### Problem Definition
|
|
40
|
+
|
|
41
|
+
**1. What is the technical challenge?**
|
|
42
|
+
[Describe the technical problem clearly]
|
|
43
|
+
|
|
44
|
+
**2. Why is this important?**
|
|
45
|
+
- Business impact:
|
|
46
|
+
- Technical impact:
|
|
47
|
+
- User impact:
|
|
48
|
+
|
|
49
|
+
**3. What are the constraints?**
|
|
50
|
+
- Time constraints:
|
|
51
|
+
- Resource constraints:
|
|
52
|
+
- Technical constraints:
|
|
53
|
+
- Business constraints:
|
|
54
|
+
|
|
55
|
+
**4. What is the current state?**
|
|
56
|
+
[Describe how things work today]
|
|
57
|
+
|
|
58
|
+
**5. What is the desired state?**
|
|
59
|
+
[Describe how things should work]
|
|
60
|
+
|
|
61
|
+
**6. What is the gap?**
|
|
62
|
+
[Describe the difference between current and desired state]
|
|
63
|
+
|
|
64
|
+
### Solution Space Exploration
|
|
65
|
+
|
|
66
|
+
**7. What solutions have been considered?**
|
|
67
|
+
|
|
68
|
+
**Solution 1:**
|
|
69
|
+
- Description:
|
|
70
|
+
- Pros:
|
|
71
|
+
- Cons:
|
|
72
|
+
- Estimated effort:
|
|
73
|
+
- Risk level:
|
|
74
|
+
|
|
75
|
+
**Solution 2:**
|
|
76
|
+
- Description:
|
|
77
|
+
- Pros:
|
|
78
|
+
- Cons:
|
|
79
|
+
- Estimated effort:
|
|
80
|
+
- Risk level:
|
|
81
|
+
|
|
82
|
+
**Solution 3:**
|
|
83
|
+
- Description:
|
|
84
|
+
- Pros:
|
|
85
|
+
- Cons:
|
|
86
|
+
- Estimated effort:
|
|
87
|
+
- Risk level:
|
|
88
|
+
|
|
89
|
+
**8. What is the recommended approach?**
|
|
90
|
+
[Chosen solution and rationale]
|
|
91
|
+
|
|
92
|
+
**9. What are the risks?**
|
|
93
|
+
- Technical risks:
|
|
94
|
+
- Business risks:
|
|
95
|
+
- Timeline risks:
|
|
96
|
+
|
|
97
|
+
**10. What dependencies exist?**
|
|
98
|
+
- Code dependencies:
|
|
99
|
+
- System dependencies:
|
|
100
|
+
- Team dependencies:
|
|
101
|
+
- External dependencies:
|
|
102
|
+
|
|
103
|
+
---
|
|
104
|
+
|
|
105
|
+
## 📐 Architecture & Design
|
|
106
|
+
|
|
107
|
+
### Current Architecture
|
|
108
|
+
```
|
|
109
|
+
[Diagram or description of current architecture]
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
**Components:**
|
|
113
|
+
-
|
|
114
|
+
|
|
115
|
+
**Data Flow:**
|
|
116
|
+
1.
|
|
117
|
+
2.
|
|
118
|
+
3.
|
|
119
|
+
|
|
120
|
+
**Known Issues:**
|
|
121
|
+
-
|
|
122
|
+
|
|
123
|
+
### Proposed Architecture
|
|
124
|
+
```
|
|
125
|
+
[Diagram or description of proposed architecture]
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
**Changes:**
|
|
129
|
+
-
|
|
130
|
+
|
|
131
|
+
**New Components:**
|
|
132
|
+
-
|
|
133
|
+
|
|
134
|
+
**Updated Data Flow:**
|
|
135
|
+
1.
|
|
136
|
+
2.
|
|
137
|
+
3.
|
|
138
|
+
|
|
139
|
+
**Improvements:**
|
|
140
|
+
-
|
|
141
|
+
|
|
142
|
+
### Design Decisions
|
|
143
|
+
|
|
144
|
+
**Decision 1: [Title]**
|
|
145
|
+
- **Context:** [Why this decision is needed]
|
|
146
|
+
- **Options Considered:**
|
|
147
|
+
1. Option A
|
|
148
|
+
2. Option B
|
|
149
|
+
3. Option C
|
|
150
|
+
- **Decision:** [Chosen option]
|
|
151
|
+
- **Rationale:** [Why this option was chosen]
|
|
152
|
+
- **Consequences:** [Impact of this decision]
|
|
153
|
+
|
|
154
|
+
**Decision 2: [Title]**
|
|
155
|
+
- **Context:**
|
|
156
|
+
- **Options Considered:**
|
|
157
|
+
- **Decision:**
|
|
158
|
+
- **Rationale:**
|
|
159
|
+
- **Consequences:**
|
|
160
|
+
|
|
161
|
+
---
|
|
162
|
+
|
|
163
|
+
## 🛠️ Implementation Plan
|
|
164
|
+
|
|
165
|
+
### Phase 1: Research & Design
|
|
166
|
+
**Duration:** [X days]
|
|
167
|
+
|
|
168
|
+
**Tasks:**
|
|
169
|
+
- [ ] Review existing codebase
|
|
170
|
+
- [ ] Research solutions / libraries
|
|
171
|
+
- [ ] Create proof of concept
|
|
172
|
+
- [ ] Design document review
|
|
173
|
+
- [ ] Architecture decision record (ADR)
|
|
174
|
+
|
|
175
|
+
**Deliverables:**
|
|
176
|
+
- Design document
|
|
177
|
+
- Proof of concept code
|
|
178
|
+
- ADR documentation
|
|
179
|
+
|
|
180
|
+
### Phase 2: Implementation
|
|
181
|
+
**Duration:** [X days]
|
|
182
|
+
|
|
183
|
+
**Tasks:**
|
|
184
|
+
- [ ] Set up development environment
|
|
185
|
+
- [ ] Implement core functionality
|
|
186
|
+
- [ ] Add error handling
|
|
187
|
+
- [ ] Add logging / monitoring
|
|
188
|
+
- [ ] Code review
|
|
189
|
+
|
|
190
|
+
**Deliverables:**
|
|
191
|
+
- Implementation code
|
|
192
|
+
- Unit tests
|
|
193
|
+
- Integration tests
|
|
194
|
+
|
|
195
|
+
### Phase 3: Testing & Validation
|
|
196
|
+
**Duration:** [X days]
|
|
197
|
+
|
|
198
|
+
**Tasks:**
|
|
199
|
+
- [ ] Unit testing (≥80% coverage)
|
|
200
|
+
- [ ] Integration testing
|
|
201
|
+
- [ ] Performance testing
|
|
202
|
+
- [ ] Security testing
|
|
203
|
+
- [ ] User acceptance testing
|
|
204
|
+
|
|
205
|
+
**Deliverables:**
|
|
206
|
+
- Test results
|
|
207
|
+
- Performance benchmarks
|
|
208
|
+
- Security scan results
|
|
209
|
+
|
|
210
|
+
### Phase 4: Deployment
|
|
211
|
+
**Duration:** [X days]
|
|
212
|
+
|
|
213
|
+
**Tasks:**
|
|
214
|
+
- [ ] Deployment plan
|
|
215
|
+
- [ ] Database migrations
|
|
216
|
+
- [ ] Configuration updates
|
|
217
|
+
- [ ] Deploy to staging
|
|
218
|
+
- [ ] Deploy to production
|
|
219
|
+
- [ ] Monitoring setup
|
|
220
|
+
|
|
221
|
+
**Deliverables:**
|
|
222
|
+
- Deployed code
|
|
223
|
+
- Deployment documentation
|
|
224
|
+
- Runbook
|
|
225
|
+
|
|
226
|
+
---
|
|
227
|
+
|
|
228
|
+
## 🧪 Testing Strategy
|
|
229
|
+
|
|
230
|
+
### Unit Tests
|
|
231
|
+
```typescript
|
|
232
|
+
describe('Technical Implementation', () => {
|
|
233
|
+
describe('ComponentName', () => {
|
|
234
|
+
it('should handle happy path', () => {
|
|
235
|
+
// Test happy path
|
|
236
|
+
});
|
|
237
|
+
|
|
238
|
+
it('should handle edge cases', () => {
|
|
239
|
+
// Test edge cases
|
|
240
|
+
});
|
|
241
|
+
|
|
242
|
+
it('should handle errors gracefully', () => {
|
|
243
|
+
// Test error handling
|
|
244
|
+
});
|
|
245
|
+
});
|
|
246
|
+
});
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
**Test Coverage Target:** ≥80%
|
|
250
|
+
|
|
251
|
+
### Integration Tests
|
|
252
|
+
- [ ] Test integration with System A
|
|
253
|
+
- [ ] Test integration with System B
|
|
254
|
+
- [ ] Test data flow end-to-end
|
|
255
|
+
- [ ] Test error scenarios
|
|
256
|
+
|
|
257
|
+
### Performance Tests
|
|
258
|
+
- [ ] Load testing (expected load)
|
|
259
|
+
- [ ] Stress testing (peak load)
|
|
260
|
+
- [ ] Scalability testing
|
|
261
|
+
- [ ] Response time validation
|
|
262
|
+
|
|
263
|
+
**Performance Targets:**
|
|
264
|
+
- Response time: < 500ms (p95)
|
|
265
|
+
- Throughput: > 100 req/sec
|
|
266
|
+
- Memory usage: < 1GB
|
|
267
|
+
- CPU usage: < 70%
|
|
268
|
+
|
|
269
|
+
---
|
|
270
|
+
|
|
271
|
+
## 📊 Success Criteria
|
|
272
|
+
|
|
273
|
+
**Technical Success:**
|
|
274
|
+
- [ ] Implementation meets design specification
|
|
275
|
+
- [ ] All tests pass (≥80% coverage)
|
|
276
|
+
- [ ] Performance targets met
|
|
277
|
+
- [ ] Security scan passes
|
|
278
|
+
- [ ] Code review approved
|
|
279
|
+
- [ ] Documentation complete
|
|
280
|
+
|
|
281
|
+
**Business Success:**
|
|
282
|
+
- [ ] User requirements met
|
|
283
|
+
- [ ] Acceptance criteria passed
|
|
284
|
+
- [ ] Stakeholder approval
|
|
285
|
+
- [ ] Timeline met
|
|
286
|
+
|
|
287
|
+
**Validation:**
|
|
288
|
+
- [ ] Deployed to production
|
|
289
|
+
- [ ] Monitoring confirms stable operation
|
|
290
|
+
- [ ] No regressions detected
|
|
291
|
+
- [ ] User feedback positive
|
|
292
|
+
|
|
293
|
+
---
|
|
294
|
+
|
|
295
|
+
## 🔗 Related Resources
|
|
296
|
+
|
|
297
|
+
**Design Documents:**
|
|
298
|
+
- [Link to design doc]
|
|
299
|
+
|
|
300
|
+
**Architecture Decision Records:**
|
|
301
|
+
- [Link to ADR]
|
|
302
|
+
|
|
303
|
+
**Related Tickets:**
|
|
304
|
+
- Issue #123
|
|
305
|
+
- PR #456
|
|
306
|
+
|
|
307
|
+
**External Resources:**
|
|
308
|
+
- [Documentation]
|
|
309
|
+
- [Blog post]
|
|
310
|
+
- [GitHub repo]
|
|
311
|
+
|
|
312
|
+
---
|
|
313
|
+
|
|
314
|
+
## 📋 DELIVERABLE REQUIREMENTS
|
|
315
|
+
|
|
316
|
+
### Investigation Report Format
|
|
317
|
+
**Filename:** `INV-{{investigationId}}-findings-[TIMESTAMP].md`
|
|
318
|
+
**Location:** `trinity/reports/`
|
|
319
|
+
|
|
320
|
+
### Required Sections
|
|
321
|
+
1. **Investigation Summary** - Technical challenge overview and context
|
|
322
|
+
2. **Findings** - Solution analysis, architecture decisions, and technical approach
|
|
323
|
+
3. **Design Documentation** - Architecture diagrams, data flow, component design
|
|
324
|
+
4. **Implementation Plan** - Phased implementation with tasks, estimates, and dependencies
|
|
325
|
+
5. **Testing Strategy** - Unit, integration, performance, and security testing requirements
|
|
326
|
+
6. **Recommendations** - Work orders to create, risks to mitigate, next steps
|
|
327
|
+
|
|
328
|
+
### Evidence to Provide
|
|
329
|
+
- Architecture diagrams (current vs. proposed)
|
|
330
|
+
- Proof of concept code/results
|
|
331
|
+
- Performance benchmarks or capacity planning
|
|
332
|
+
- Risk assessment and mitigation strategies
|
|
333
|
+
- Dependency analysis
|
|
334
|
+
- Effort estimates per phase
|
|
335
|
+
|
|
336
|
+
---
|
|
337
|
+
|
|
338
|
+
## ✅ AFTER COMPLETION
|
|
339
|
+
|
|
340
|
+
When investigation is complete:
|
|
341
|
+
1. **Create Investigation Report:**
|
|
342
|
+
- [ ] Save findings report to `trinity/reports/INV-{{investigationId}}-findings-[TIMESTAMP].md`
|
|
343
|
+
- [ ] Include all required sections listed above
|
|
344
|
+
- [ ] Attach all evidence and supporting documentation
|
|
345
|
+
|
|
346
|
+
2. **Move Investigation File:**
|
|
347
|
+
- [ ] Move this investigation file (INV-{{investigationId}}.md) to `trinity/sessions/`
|
|
348
|
+
- [ ] Keep report in `trinity/reports/` until end of session
|
|
349
|
+
|
|
350
|
+
3. **Session Cleanup:**
|
|
351
|
+
- [ ] Run `/trinity-end` to archive both investigation and report
|
|
352
|
+
- [ ] Investigation will be archived to `trinity/archive/investigations/YYYY-MM-DD/`
|
|
353
|
+
- [ ] Report will be archived to `trinity/archive/reports/YYYY-MM-DD/`
|
|
354
|
+
|
|
355
|
+
4. **Clean Slate:**
|
|
356
|
+
- [ ] Verify `trinity/sessions/` is empty (ready for next session)
|
|
357
|
+
- [ ] Verify `trinity/reports/` is empty (ready for next session)
|
|
358
|
+
|
|
359
|
+
---
|
|
360
|
+
|
|
361
|
+
## 📚 Reference Documentation
|
|
362
|
+
|
|
363
|
+
**Trinity Method Core:**
|
|
364
|
+
- [Trinity Method Protocols](../../CLAUDE.md) - Root Trinity guidance
|
|
365
|
+
- [Investigation Requirements](../../trinity/CLAUDE.md#investigation-protocols) - Investigation-first methodology
|
|
366
|
+
- [Agent Directory](../../.claude/EMPLOYEE-DIRECTORY.md) - 19-agent Trinity team
|
|
367
|
+
|
|
368
|
+
**Knowledge Base:**
|
|
369
|
+
- [Architecture](../../trinity/knowledge-base/ARCHITECTURE.md) - System architecture and patterns
|
|
370
|
+
- [Known Issues](../../trinity/knowledge-base/ISSUES.md) - Issue patterns database
|
|
371
|
+
- [Technical Debt](../../trinity/knowledge-base/Technical-Debt.md) - Debt tracking
|
|
372
|
+
- [Testing Standards](../../trinity/knowledge-base/TESTING-PRINCIPLES.md) - Test requirements
|
|
373
|
+
- [Coding Standards](../../trinity/knowledge-base/CODING-PRINCIPLES.md) - Code quality
|
|
374
|
+
|
|
375
|
+
**Investigation Protocols:**
|
|
376
|
+
- READ-ONLY: No file modifications during investigation
|
|
377
|
+
- Document findings thoroughly
|
|
378
|
+
- Provide evidence-based recommendations
|
|
379
|
+
- Implementation requires separate approval
|
|
380
|
+
|
|
381
|
+
---
|
|
382
|
+
|
|
383
|
+
## 📝 Investigation Log
|
|
384
|
+
|
|
385
|
+
### {{timestamp1}}
|
|
386
|
+
**Research:**
|
|
387
|
+
[Notes on research findings]
|
|
388
|
+
|
|
389
|
+
### {{timestamp2}}
|
|
390
|
+
**Design:**
|
|
391
|
+
[Notes on design decisions]
|
|
392
|
+
|
|
393
|
+
### {{timestamp3}}
|
|
394
|
+
**Implementation:**
|
|
395
|
+
[Notes on implementation progress]
|
|
396
|
+
|
|
397
|
+
### {{timestamp4}}
|
|
398
|
+
**Testing:**
|
|
399
|
+
[Notes on test results]
|
|
400
|
+
|
|
401
|
+
---
|
|
402
|
+
|
|
403
|
+
## 💡 Lessons Learned
|
|
404
|
+
|
|
405
|
+
**What Went Well:**
|
|
406
|
+
-
|
|
407
|
+
|
|
408
|
+
**What Could Be Improved:**
|
|
409
|
+
-
|
|
410
|
+
|
|
411
|
+
**Knowledge Gained:**
|
|
412
|
+
-
|
|
413
|
+
|
|
414
|
+
**Patterns to Reuse:**
|
|
415
|
+
-
|
|
416
|
+
|
|
417
|
+
**Patterns to Avoid:**
|
|
418
|
+
-
|
|
419
|
+
|
|
420
|
+
---
|
|
421
|
+
|
|
422
|
+
## 🔄 Next Steps
|
|
423
|
+
|
|
424
|
+
1. [ ] [Next action item]
|
|
425
|
+
2. [ ] [Next action item]
|
|
426
|
+
3. [ ] [Next action item]
|
|
427
|
+
|
|
428
|
+
---
|
|
429
|
+
|
|
430
|
+
**Investigation Status:** {{status}}
|
|
431
|
+
**Completion:** [X%]
|
|
432
|
+
**Last Updated:** {{lastUpdated}}
|
|
433
|
+
**Next Review:** {{nextReview}}
|