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,206 @@
|
|
|
1
|
+
# ORCHESTRATOR WORK ORDER #XXX
|
|
2
|
+
## Type: INVESTIGATION
|
|
3
|
+
## [Investigation Title]
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## AUTHORIZATION
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
TRINITY COUNCIL APPROVAL:
|
|
11
|
+
☑ LUKA: APPROVED - [Approval reason]
|
|
12
|
+
☑ TRINITY: APPROVED - [Technical justification]
|
|
13
|
+
☑ CC: PENDING - Awaiting your acknowledgment
|
|
14
|
+
|
|
15
|
+
STATUS: APPROVED FOR EXECUTION
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## MISSION OBJECTIVE
|
|
21
|
+
|
|
22
|
+
[Clear, single paragraph describing what needs to be investigated and why]
|
|
23
|
+
|
|
24
|
+
**Investigation Focus:** [Specific area/component/pattern to investigate]
|
|
25
|
+
**Trigger:** [What prompted this investigation - prior findings, issues, etc.]
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## INVESTIGATION SCOPE
|
|
30
|
+
|
|
31
|
+
### Primary Questions to Answer
|
|
32
|
+
1. [Specific question #1]
|
|
33
|
+
2. [Specific question #2]
|
|
34
|
+
3. [Specific question #3]
|
|
35
|
+
|
|
36
|
+
### Areas to Examine
|
|
37
|
+
- **[Component/Area 1]:** [What to look for]
|
|
38
|
+
- **[Component/Area 2]:** [What to look for]
|
|
39
|
+
- **[Component/Area 3]:** [What to look for]
|
|
40
|
+
|
|
41
|
+
### Mobile-First Investigation Requirements
|
|
42
|
+
**MANDATORY for all UI-related investigations:**
|
|
43
|
+
- [ ] **Mobile Viewport Testing** - Test on mobile device emulation
|
|
44
|
+
- [ ] **Touch Interaction Verification** - Ensure touch events work correctly
|
|
45
|
+
- [ ] **Mobile Browser Compatibility** - Test iOS Safari, Chrome Mobile, Android browsers
|
|
46
|
+
- [ ] **Dynamic Viewport Handling** - Test with browser UI showing/hiding
|
|
47
|
+
- [ ] **Mobile Performance Impact** - Check loading times and responsiveness
|
|
48
|
+
- [ ] **Mobile-Specific Issues** - Look for desktop-only assumptions
|
|
49
|
+
|
|
50
|
+
### Data to Collect
|
|
51
|
+
- [ ] [Metric/Count #1]
|
|
52
|
+
- [ ] [Metric/Count #2]
|
|
53
|
+
- [ ] [Pattern instances]
|
|
54
|
+
- [ ] [File lists]
|
|
55
|
+
- [ ] Mobile-specific metrics (if UI investigation)
|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
|
|
59
|
+
## INVESTIGATION METHODOLOGY
|
|
60
|
+
|
|
61
|
+
### Phase 1: Discovery
|
|
62
|
+
- [Specific discovery action]
|
|
63
|
+
- [Search/scan parameters]
|
|
64
|
+
- [Initial data gathering]
|
|
65
|
+
|
|
66
|
+
### Phase 2: Analysis
|
|
67
|
+
- [How to analyze findings]
|
|
68
|
+
- [Patterns to identify]
|
|
69
|
+
- [Correlations to make]
|
|
70
|
+
|
|
71
|
+
### Phase 3: Documentation
|
|
72
|
+
- [How to structure findings]
|
|
73
|
+
- [Required evidence format]
|
|
74
|
+
- [Conclusion requirements]
|
|
75
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
## DELIVERABLE REQUIREMENTS
|
|
79
|
+
|
|
80
|
+
### Document Format
|
|
81
|
+
**Filename:** `[TYPE]-INVESTIGATION-[TIMESTAMP].md`
|
|
82
|
+
**Location:** `${PROJECT_REPORTS}/` (Project-specific Reports folder)
|
|
83
|
+
|
|
84
|
+
### Required Sections
|
|
85
|
+
1. **Executive Summary** - Key findings in 2-3 paragraphs
|
|
86
|
+
2. **Investigation Results** - Detailed findings with evidence
|
|
87
|
+
3. **Pattern Analysis** - Recurring issues identified
|
|
88
|
+
4. **Root Cause Analysis** - Underlying causes discovered
|
|
89
|
+
5. **Impact Assessment** - Scope and severity of findings
|
|
90
|
+
6. **Mobile Compatibility Assessment** - Mobile-specific findings (if applicable)
|
|
91
|
+
7. **Recommendations** - Specific next steps proposed
|
|
92
|
+
8. **Supporting Evidence** - File paths, line numbers, counts
|
|
93
|
+
|
|
94
|
+
### Metrics to Include
|
|
95
|
+
- Total files/components examined
|
|
96
|
+
- Issue counts by category
|
|
97
|
+
- Pattern frequency data
|
|
98
|
+
- Impact multipliers (1 cause : X symptoms)
|
|
99
|
+
- Mobile compatibility scores (if applicable)
|
|
100
|
+
|
|
101
|
+
---
|
|
102
|
+
|
|
103
|
+
## ✅ AFTER COMPLETION
|
|
104
|
+
|
|
105
|
+
### ⚠️ CRITICAL: Complete ALL Steps Below - NO EXCEPTIONS
|
|
106
|
+
|
|
107
|
+
**Step 1: Create Completion Report** ✅
|
|
108
|
+
- [ ] Investigation deliverable created in `${PROJECT_REPORTS}/`
|
|
109
|
+
- [ ] Follow format: `[TYPE]-INVESTIGATION-[TIMESTAMP].md`
|
|
110
|
+
- [ ] JUNO audit report generated automatically (if applicable)
|
|
111
|
+
- [ ] All deliverables include required sections listed above
|
|
112
|
+
|
|
113
|
+
**Step 2: 🚨 MOVE THIS WORK ORDER FILE 🚨** ✅
|
|
114
|
+
- [ ] **IMMEDIATELY** move this file from `trinity/work-orders/` to `trinity/sessions/`
|
|
115
|
+
- [ ] **THIS STEP IS MANDATORY** - Work orders left in trinity/work-orders/ are considered incomplete
|
|
116
|
+
|
|
117
|
+
**Execute this exact command:**
|
|
118
|
+
```bash
|
|
119
|
+
mv trinity/work-orders/{{workOrderFilename}} trinity/sessions/
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
**Step 3: Verify File Locations** ✅
|
|
123
|
+
- [ ] This work order file NOW EXISTS in: `trinity/sessions/{{workOrderFilename}}`
|
|
124
|
+
- [ ] Completion report exists in: `${PROJECT_REPORTS}/[TYPE]-INVESTIGATION-[TIMESTAMP].md`
|
|
125
|
+
- [ ] This work order NO LONGER EXISTS in: `trinity/work-orders/`
|
|
126
|
+
|
|
127
|
+
**If any verification fails, the work order is NOT complete. Fix immediately.**
|
|
128
|
+
|
|
129
|
+
**Step 4: Session Cleanup (when entire session complete):**
|
|
130
|
+
- [ ] When session is complete, run `/trinity-end`
|
|
131
|
+
- [ ] trinity-end will archive ALL files from `trinity/sessions/` and `${PROJECT_REPORTS}/`
|
|
132
|
+
- [ ] Next session starts with empty sessions/ and reports/ folders
|
|
133
|
+
|
|
134
|
+
**Archive Destination (via trinity-end):**
|
|
135
|
+
- Work order → `trinity/archive/work-orders/YYYY-MM-DD/`
|
|
136
|
+
- Completion report → `trinity/archive/reports/YYYY-MM-DD/`
|
|
137
|
+
- JUNO audit report → `trinity/archive/reports/YYYY-MM-DD/` (if applicable)
|
|
138
|
+
- Session summary → `trinity/archive/sessions/YYYY-MM-DD/`
|
|
139
|
+
|
|
140
|
+
---
|
|
141
|
+
|
|
142
|
+
## SUCCESS CRITERIA
|
|
143
|
+
|
|
144
|
+
The investigation is complete when:
|
|
145
|
+
- [ ] All specified areas have been examined
|
|
146
|
+
- [ ] All questions have been answered with evidence
|
|
147
|
+
- [ ] Patterns have been identified and documented
|
|
148
|
+
- [ ] Root causes have been determined where possible
|
|
149
|
+
- [ ] Mobile compatibility verified (if UI investigation)
|
|
150
|
+
- [ ] Clear recommendations have been provided
|
|
151
|
+
- [ ] Investigation report submitted to project Reports folder
|
|
152
|
+
|
|
153
|
+
---
|
|
154
|
+
|
|
155
|
+
## ⚠️ CRITICAL RESTRICTIONS - GIT OPERATIONS FORBIDDEN
|
|
156
|
+
|
|
157
|
+
**INVESTIGATIONS ARE READ-ONLY OPERATIONS:**
|
|
158
|
+
ALL team members (CC, TRINITY, specialists) are PERMANENTLY FORBIDDEN from performing ANY git operations during investigations:
|
|
159
|
+
|
|
160
|
+
- [ ] **git add** - FORBIDDEN - Only LUKA has permission
|
|
161
|
+
- [ ] **git commit** - FORBIDDEN - Only LUKA has permission
|
|
162
|
+
- [ ] **git push** - FORBIDDEN - Only LUKA has permission
|
|
163
|
+
- [ ] **git pull** - FORBIDDEN - Only LUKA has permission
|
|
164
|
+
- [ ] **git merge** - FORBIDDEN - Only LUKA has permission
|
|
165
|
+
- [ ] **git checkout -b** - FORBIDDEN - Only LUKA has permission
|
|
166
|
+
- [ ] **git branch** - FORBIDDEN - Only LUKA has permission
|
|
167
|
+
- [ ] **git tag** - FORBIDDEN - Only LUKA has permission
|
|
168
|
+
- [ ] **Any git operation that modifies repository state**
|
|
169
|
+
|
|
170
|
+
**INVESTIGATION PROTOCOL:**
|
|
171
|
+
1. Investigate and analyze files in current state
|
|
172
|
+
2. Document all findings and recommendations
|
|
173
|
+
3. Report investigation results to LUKA
|
|
174
|
+
4. No file modifications during investigation phase
|
|
175
|
+
5. If fixes are needed, LUKA will issue separate implementation work order
|
|
176
|
+
|
|
177
|
+
---
|
|
178
|
+
|
|
179
|
+
## CONTEXT FROM PREVIOUS WORK
|
|
180
|
+
|
|
181
|
+
[Include relevant findings from prior work orders that inform this investigation]
|
|
182
|
+
|
|
183
|
+
**Related Work Orders:** [#XXX, #XXX]
|
|
184
|
+
**Prior Findings:** [Brief summary of relevant discoveries]
|
|
185
|
+
|
|
186
|
+
---
|
|
187
|
+
|
|
188
|
+
## PRIORITY LEVEL
|
|
189
|
+
|
|
190
|
+
**Analysis Scope:** [COMPREHENSIVE/STANDARD/FOCUSED]
|
|
191
|
+
**Completeness Required:** 100% - Full analysis must be completed
|
|
192
|
+
**Reasoning:** [Why this priority]
|
|
193
|
+
**Time Expectation:** [Estimated hours/scope]
|
|
194
|
+
|
|
195
|
+
---
|
|
196
|
+
|
|
197
|
+
## SPECIAL INSTRUCTIONS
|
|
198
|
+
|
|
199
|
+
[Any specific tools, techniques, or constraints for this investigation]
|
|
200
|
+
|
|
201
|
+
---
|
|
202
|
+
|
|
203
|
+
**Remember:** Focus on discovering patterns and root causes, not just symptoms. Your investigation will guide our next strategic decisions. Investigations are read-only - no file modifications or git operations.
|
|
204
|
+
|
|
205
|
+
*Trinity Method v2.0 - Investigation Work Order Template*
|
|
206
|
+
*Project-Isolated Architecture with Dynamic Paths*
|
|
@@ -0,0 +1,320 @@
|
|
|
1
|
+
# ORCHESTRATOR WORK ORDER #XXX
|
|
2
|
+
## Type: PATTERN
|
|
3
|
+
## [Pattern Extraction/Implementation Title]
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## AUTHORIZATION
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
TRINITY COUNCIL APPROVAL:
|
|
11
|
+
☑ LUKA: APPROVED - [Pattern work justification]
|
|
12
|
+
☑ TRINITY: APPROVED - [Pattern approach validation]
|
|
13
|
+
☑ CC: PENDING - Awaiting your acknowledgment
|
|
14
|
+
|
|
15
|
+
STATUS: APPROVED FOR EXECUTION
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## MISSION OBJECTIVE
|
|
21
|
+
|
|
22
|
+
[Clear statement about pattern work - either extracting patterns from issues or implementing pattern-based fixes]
|
|
23
|
+
|
|
24
|
+
**Pattern Goal:** [Extract patterns OR Apply pattern fixes]
|
|
25
|
+
**Impact Potential:** [Estimated issues resolved by this pattern work]
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## PATTERN SCOPE
|
|
30
|
+
|
|
31
|
+
### For Pattern EXTRACTION:
|
|
32
|
+
|
|
33
|
+
#### Source Material
|
|
34
|
+
- Previous work orders: [#XXX, #XXX, #XXX]
|
|
35
|
+
- Issue categories: [Types of issues to analyze]
|
|
36
|
+
- Components: [Which parts of codebase]
|
|
37
|
+
- Time range: [Period to analyze]
|
|
38
|
+
|
|
39
|
+
#### Pattern Categories to Identify
|
|
40
|
+
1. **Code Patterns**
|
|
41
|
+
- Repeated code structures
|
|
42
|
+
- Common anti-patterns
|
|
43
|
+
- Recurring bugs
|
|
44
|
+
|
|
45
|
+
2. **Architecture Patterns**
|
|
46
|
+
- Design issues
|
|
47
|
+
- Coupling problems
|
|
48
|
+
- Scaling bottlenecks
|
|
49
|
+
|
|
50
|
+
3. **Process Patterns**
|
|
51
|
+
- Development workflow issues
|
|
52
|
+
- Testing gaps
|
|
53
|
+
- Deployment problems
|
|
54
|
+
|
|
55
|
+
4. **Mobile-Specific Patterns**
|
|
56
|
+
- Responsive design anti-patterns
|
|
57
|
+
- Touch interaction issues
|
|
58
|
+
- Viewport handling problems
|
|
59
|
+
- Mobile performance bottlenecks
|
|
60
|
+
|
|
61
|
+
### For Pattern APPLICATION:
|
|
62
|
+
|
|
63
|
+
#### Pattern to Apply
|
|
64
|
+
**Pattern Name:** [Identified pattern]
|
|
65
|
+
**Pattern Source:** [Where this pattern was identified]
|
|
66
|
+
**Fix Template:**
|
|
67
|
+
```language
|
|
68
|
+
// Standard fix approach
|
|
69
|
+
[Code template or approach]
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
#### Target Files
|
|
73
|
+
```yaml
|
|
74
|
+
High_Confidence_Matches:
|
|
75
|
+
- file: [path/file.ext]
|
|
76
|
+
instances: [X]
|
|
77
|
+
lines: [specific lines]
|
|
78
|
+
|
|
79
|
+
- file: [path/file.ext]
|
|
80
|
+
instances: [X]
|
|
81
|
+
lines: [specific lines]
|
|
82
|
+
|
|
83
|
+
Probable_Matches:
|
|
84
|
+
- file: [path/file.ext]
|
|
85
|
+
instances: [X]
|
|
86
|
+
review_needed: true
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
---
|
|
90
|
+
|
|
91
|
+
## PATTERN METHODOLOGY
|
|
92
|
+
|
|
93
|
+
### For EXTRACTION:
|
|
94
|
+
|
|
95
|
+
#### Step 1: Collection
|
|
96
|
+
- [ ] Gather all relevant issues/reports
|
|
97
|
+
- [ ] Categorize by component and type
|
|
98
|
+
- [ ] Create frequency analysis
|
|
99
|
+
- [ ] Include mobile-specific issue analysis
|
|
100
|
+
|
|
101
|
+
#### Step 2: Analysis
|
|
102
|
+
- [ ] Identify recurring elements
|
|
103
|
+
- [ ] Group similar issues
|
|
104
|
+
- [ ] Calculate occurrence rates
|
|
105
|
+
- [ ] Analyze mobile vs desktop pattern differences
|
|
106
|
+
|
|
107
|
+
#### Step 3: Pattern Definition
|
|
108
|
+
- [ ] Document pattern characteristics
|
|
109
|
+
- [ ] Create detection criteria
|
|
110
|
+
- [ ] Develop fix templates
|
|
111
|
+
- [ ] Include mobile-specific pattern templates
|
|
112
|
+
|
|
113
|
+
### For APPLICATION:
|
|
114
|
+
|
|
115
|
+
#### Step 1: Pattern Matching
|
|
116
|
+
- [ ] Scan codebase for pattern instances
|
|
117
|
+
- [ ] Verify matches against criteria
|
|
118
|
+
- [ ] Prioritize by confidence level
|
|
119
|
+
- [ ] Test patterns on mobile devices
|
|
120
|
+
|
|
121
|
+
#### Step 2: Batch Implementation
|
|
122
|
+
- [ ] Apply fixes to high-confidence matches
|
|
123
|
+
- [ ] Review and fix probable matches
|
|
124
|
+
- [ ] Test after each batch
|
|
125
|
+
- [ ] Verify mobile compatibility after fixes
|
|
126
|
+
|
|
127
|
+
#### Step 3: Validation
|
|
128
|
+
- [ ] Verify all fixes applied correctly
|
|
129
|
+
- [ ] Run tests for affected components
|
|
130
|
+
- [ ] Document any exceptions
|
|
131
|
+
- [ ] Confirm mobile compatibility maintained
|
|
132
|
+
|
|
133
|
+
---
|
|
134
|
+
|
|
135
|
+
## DELIVERABLE REQUIREMENTS
|
|
136
|
+
|
|
137
|
+
### Document Format
|
|
138
|
+
**Filename:** `PATTERN-[EXTRACTION/APPLICATION]-[TIMESTAMP].md`
|
|
139
|
+
**Location:** `${PROJECT_REPORTS}/` (Project-specific Reports folder)
|
|
140
|
+
|
|
141
|
+
### For Pattern EXTRACTION Report:
|
|
142
|
+
1. **Executive Summary** - Patterns found and their impact
|
|
143
|
+
2. **Pattern Catalog** - Detailed pattern descriptions
|
|
144
|
+
3. **Frequency Analysis** - How often each pattern occurs
|
|
145
|
+
4. **Mobile-Specific Patterns** - Mobile-unique pattern findings (if applicable)
|
|
146
|
+
5. **Impact Multipliers** - Issues resolved per pattern fix
|
|
147
|
+
6. **Fix Templates** - How to fix each pattern
|
|
148
|
+
7. **Priority Matrix** - Which patterns to fix first
|
|
149
|
+
8. **Implementation Plan** - How to apply fixes
|
|
150
|
+
|
|
151
|
+
### For Pattern APPLICATION Report:
|
|
152
|
+
1. **Executive Summary** - Fixes applied and results
|
|
153
|
+
2. **Application Statistics** - Files changed, instances fixed
|
|
154
|
+
3. **Confidence Levels** - High/medium/low confidence fixes
|
|
155
|
+
4. **Mobile Compatibility Verification** - Mobile testing results (if applicable)
|
|
156
|
+
5. **Exceptions** - Instances that couldn't be fixed
|
|
157
|
+
6. **Test Results** - Validation of fixes
|
|
158
|
+
7. **Remaining Work** - What still needs manual attention
|
|
159
|
+
8. **Metrics** - Before/after comparison
|
|
160
|
+
|
|
161
|
+
---
|
|
162
|
+
|
|
163
|
+
## ✅ AFTER COMPLETION
|
|
164
|
+
|
|
165
|
+
### ⚠️ CRITICAL: Complete ALL Steps Below - NO EXCEPTIONS
|
|
166
|
+
|
|
167
|
+
**Step 1: Create Completion Report** ✅
|
|
168
|
+
- [ ] Pattern deliverable created in `${PROJECT_REPORTS}/`
|
|
169
|
+
- [ ] Follow format: `PATTERN-[NAME]-[TIMESTAMP].md`
|
|
170
|
+
- [ ] JUNO audit report generated automatically (if applicable)
|
|
171
|
+
- [ ] All deliverables include required sections listed above
|
|
172
|
+
|
|
173
|
+
**Step 2: 🚨 MOVE THIS WORK ORDER FILE 🚨** ✅
|
|
174
|
+
- [ ] **IMMEDIATELY** move this file from `trinity/work-orders/` to `trinity/sessions/`
|
|
175
|
+
- [ ] **THIS STEP IS MANDATORY** - Work orders left in trinity/work-orders/ are considered incomplete
|
|
176
|
+
|
|
177
|
+
**Execute this exact command:**
|
|
178
|
+
```bash
|
|
179
|
+
mv trinity/work-orders/{{workOrderFilename}} trinity/sessions/
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
**Step 3: Verify File Locations** ✅
|
|
183
|
+
- [ ] This work order file NOW EXISTS in: `trinity/sessions/{{workOrderFilename}}`
|
|
184
|
+
- [ ] Completion report exists in: `${PROJECT_REPORTS}/PATTERN-[NAME]-[TIMESTAMP].md`
|
|
185
|
+
- [ ] This work order NO LONGER EXISTS in: `trinity/work-orders/`
|
|
186
|
+
|
|
187
|
+
**If any verification fails, the work order is NOT complete. Fix immediately.**
|
|
188
|
+
|
|
189
|
+
**Step 4: Session Cleanup (when entire session complete):**
|
|
190
|
+
- [ ] When session is complete, run `/trinity-end`
|
|
191
|
+
- [ ] trinity-end will archive ALL files from `trinity/sessions/` and `${PROJECT_REPORTS}/`
|
|
192
|
+
- [ ] Next session starts with empty sessions/ and reports/ folders
|
|
193
|
+
|
|
194
|
+
**Archive Destination (via trinity-end):**
|
|
195
|
+
- Work order → `trinity/archive/work-orders/YYYY-MM-DD/`
|
|
196
|
+
- Completion report → `trinity/archive/reports/YYYY-MM-DD/`
|
|
197
|
+
- JUNO audit report → `trinity/archive/reports/YYYY-MM-DD/` (if applicable)
|
|
198
|
+
- Session summary → `trinity/archive/sessions/YYYY-MM-DD/`
|
|
199
|
+
|
|
200
|
+
---
|
|
201
|
+
|
|
202
|
+
## SUCCESS CRITERIA
|
|
203
|
+
|
|
204
|
+
### For Pattern EXTRACTION:
|
|
205
|
+
- [ ] Minimum 3 significant patterns identified
|
|
206
|
+
- [ ] Impact multipliers calculated for each
|
|
207
|
+
- [ ] Fix templates created and validated
|
|
208
|
+
- [ ] Mobile patterns identified (if UI work)
|
|
209
|
+
- [ ] Priority recommendations provided
|
|
210
|
+
- [ ] Pattern library updated
|
|
211
|
+
|
|
212
|
+
### For Pattern APPLICATION:
|
|
213
|
+
- [ ] All high-confidence matches fixed
|
|
214
|
+
- [ ] Probable matches reviewed and fixed
|
|
215
|
+
- [ ] No regressions introduced
|
|
216
|
+
- [ ] Mobile compatibility verified (if UI patterns)
|
|
217
|
+
- [ ] Tests pass for affected code
|
|
218
|
+
- [ ] Exceptions documented
|
|
219
|
+
|
|
220
|
+
---
|
|
221
|
+
|
|
222
|
+
## ⚠️ CRITICAL RESTRICTIONS - GIT OPERATIONS FORBIDDEN
|
|
223
|
+
|
|
224
|
+
**PATTERN WORK MAY INVOLVE FILE MODIFICATIONS - BUT NO GIT OPERATIONS:**
|
|
225
|
+
ALL team members (CC, TRINITY, specialists) are PERMANENTLY FORBIDDEN from performing ANY git operations:
|
|
226
|
+
|
|
227
|
+
- [ ] **git add** - FORBIDDEN - Only LUKA has permission
|
|
228
|
+
- [ ] **git commit** - FORBIDDEN - Only LUKA has permission
|
|
229
|
+
- [ ] **git push** - FORBIDDEN - Only LUKA has permission
|
|
230
|
+
- [ ] **git pull** - FORBIDDEN - Only LUKA has permission
|
|
231
|
+
- [ ] **git merge** - FORBIDDEN - Only LUKA has permission
|
|
232
|
+
- [ ] **git checkout -b** - FORBIDDEN - Only LUKA has permission
|
|
233
|
+
- [ ] **git branch** - FORBIDDEN - Only LUKA has permission
|
|
234
|
+
- [ ] **git tag** - FORBIDDEN - Only LUKA has permission
|
|
235
|
+
- [ ] **git rebase** - FORBIDDEN - Only LUKA has permission
|
|
236
|
+
- [ ] **git reset** - FORBIDDEN - Only LUKA has permission
|
|
237
|
+
- [ ] **git revert** - FORBIDDEN - Only LUKA has permission
|
|
238
|
+
- [ ] **git stash** - FORBIDDEN - Only LUKA has permission
|
|
239
|
+
- [ ] **Any git operation that modifies repository state**
|
|
240
|
+
|
|
241
|
+
**PATTERN WORK PROTOCOL:**
|
|
242
|
+
1. Make all local file changes as specified
|
|
243
|
+
2. Test thoroughly in local environment
|
|
244
|
+
3. Report completion to LUKA with summary of changes
|
|
245
|
+
4. LUKA will handle ALL git operations (add, commit, push, etc.)
|
|
246
|
+
|
|
247
|
+
---
|
|
248
|
+
|
|
249
|
+
## PATTERN QUALITY REQUIREMENTS
|
|
250
|
+
|
|
251
|
+
### Valid Pattern Criteria
|
|
252
|
+
A pattern must have:
|
|
253
|
+
- Minimum frequency: [X occurrences]
|
|
254
|
+
- Clear identification: [Unambiguous detection]
|
|
255
|
+
- Consistent fix: [Same solution works for all instances]
|
|
256
|
+
- Measurable impact: [Quantifiable improvement]
|
|
257
|
+
|
|
258
|
+
### Pattern Documentation Standard
|
|
259
|
+
Each pattern needs:
|
|
260
|
+
```markdown
|
|
261
|
+
## Pattern: [Name]
|
|
262
|
+
**Frequency:** X instances across Y files
|
|
263
|
+
**Detection:** [How to identify]
|
|
264
|
+
**Root Cause:** [Why this occurs]
|
|
265
|
+
**Fix Template:** [Standard solution]
|
|
266
|
+
**Mobile Considerations:** [Mobile-specific variations if applicable]
|
|
267
|
+
**Impact:** Resolves ~X issues
|
|
268
|
+
**Risk:** [LOW/MEDIUM/HIGH]
|
|
269
|
+
**Automation:** [Possible/Partial/Manual]
|
|
270
|
+
```
|
|
271
|
+
|
|
272
|
+
---
|
|
273
|
+
|
|
274
|
+
## AUTOMATION POTENTIAL
|
|
275
|
+
|
|
276
|
+
### For Future Automation
|
|
277
|
+
Document patterns suitable for automation:
|
|
278
|
+
- Detection rules that could be scripted
|
|
279
|
+
- Fix approaches that could be automated
|
|
280
|
+
- Testing that could verify fixes
|
|
281
|
+
|
|
282
|
+
### Current Manual Requirements
|
|
283
|
+
Note what must remain manual:
|
|
284
|
+
- Context-dependent fixes
|
|
285
|
+
- Architectural decisions
|
|
286
|
+
- Complex refactoring
|
|
287
|
+
|
|
288
|
+
---
|
|
289
|
+
|
|
290
|
+
## CONTEXT FROM SESSION
|
|
291
|
+
|
|
292
|
+
**Pattern Sources:** [Which investigations revealed patterns]
|
|
293
|
+
**Previous Pattern Work:** [Build on Work Order #XXX if applicable]
|
|
294
|
+
**Known Patterns:** [Already documented patterns to consider]
|
|
295
|
+
|
|
296
|
+
---
|
|
297
|
+
|
|
298
|
+
## PRIORITY & EFFICIENCY
|
|
299
|
+
|
|
300
|
+
**Analysis Scope:** [COMPREHENSIVE/STANDARD/FOCUSED]
|
|
301
|
+
**Completeness Required:** 100% - Full analysis must be completed
|
|
302
|
+
**Efficiency Factor:** [1:X - one fix resolves X issues]
|
|
303
|
+
**Time Investment:** [Estimated hours]
|
|
304
|
+
**ROI:** [High/Medium/Low based on impact vs effort]
|
|
305
|
+
|
|
306
|
+
---
|
|
307
|
+
|
|
308
|
+
## SPECIAL CONSIDERATIONS
|
|
309
|
+
|
|
310
|
+
- Edge cases: [Unusual instances to watch for]
|
|
311
|
+
- False positives: [What might look like pattern but isn't]
|
|
312
|
+
- Dependencies: [Order of fixes if patterns are related]
|
|
313
|
+
- Mobile-specific considerations: [Mobile testing requirements]
|
|
314
|
+
|
|
315
|
+
---
|
|
316
|
+
|
|
317
|
+
**Remember:** Pattern work is about maximizing impact through systematic fixes. One pattern fix can resolve dozens of issues. Document patterns thoroughly for future reuse. Report all changes to LUKA for git operations.
|
|
318
|
+
|
|
319
|
+
*Trinity Method v2.0 - Pattern Work Order Template*
|
|
320
|
+
*Project-Isolated Architecture with Dynamic Paths*
|