owflow 0.6.0 → 0.7.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/LICENSE +21 -21
- package/README.md +448 -283
- package/dist/agents/bottleneck-analyzer.md +332 -333
- package/dist/agents/code-quality-pragmatist.md +353 -354
- package/dist/agents/code-reviewer.md +238 -239
- package/dist/agents/codebase-analysis-reporter.md +245 -246
- package/dist/agents/docs-operator.md +22 -23
- package/dist/agents/e2e-test-verifier.md +447 -448
- package/dist/agents/gap-analyzer.md +501 -502
- package/dist/agents/implementation-completeness-checker.md +219 -220
- package/dist/agents/implementation-planner.md +308 -309
- package/dist/agents/information-gatherer.md +690 -691
- package/dist/agents/production-readiness-checker.md +278 -279
- package/dist/agents/project-analyzer.md +403 -403
- package/dist/agents/reality-assessor.md +365 -366
- package/dist/agents/research-planner.md +449 -450
- package/dist/agents/research-synthesizer.md +402 -403
- package/dist/agents/solution-brainstormer.md +256 -257
- package/dist/agents/solution-designer.md +371 -372
- package/dist/agents/spec-auditor.md +297 -298
- package/dist/agents/specification-creator.md +333 -334
- package/dist/agents/task-classifier.md +449 -450
- package/dist/agents/task-group-implementer.md +283 -284
- package/dist/agents/test-suite-runner.md +194 -195
- package/dist/agents/user-docs-generator.md +508 -509
- package/dist/commands/reviews-code.md +90 -90
- package/dist/commands/reviews-pragmatic.md +99 -99
- package/dist/commands/reviews-production-readiness.md +113 -113
- package/dist/commands/reviews-reality-check.md +110 -110
- package/dist/commands/reviews-spec-audit.md +114 -114
- package/dist/commands/work.md +280 -280
- package/dist/configuration/agents-config.d.ts +2 -0
- package/dist/configuration/agents-config.js +8 -44
- package/dist/configuration/commands-config.d.ts +23 -0
- package/dist/configuration/commands-config.js +17 -17
- package/dist/configuration/skills-config.d.ts +2 -0
- package/dist/configuration/skills-config.js +3 -3
- package/dist/hooks/hooks-diagnostics.d.ts +3 -0
- package/dist/hooks/hooks-diagnostics.js +21 -0
- package/dist/hooks/hooks-persistence.d.ts +17 -0
- package/dist/hooks/hooks-persistence.js +207 -0
- package/dist/hooks/hooks-registry.d.ts +6 -0
- package/dist/hooks/hooks-registry.js +104 -0
- package/dist/hooks/hooks-wrapper.d.ts +25 -0
- package/dist/hooks/hooks-wrapper.js +318 -0
- package/dist/hooks/internal/before-tool.d.ts +6 -0
- package/dist/hooks/internal/before-tool.js +13 -0
- package/dist/hooks/internal/session-compaction.d.ts +9 -0
- package/dist/hooks/{session-compaction.js → internal/session-compaction.js} +9 -7
- package/dist/hooks/runtime/circuit-breaker.d.ts +23 -0
- package/dist/hooks/runtime/circuit-breaker.js +39 -0
- package/dist/hooks/runtime/failure-policy.d.ts +15 -0
- package/dist/hooks/runtime/failure-policy.js +49 -0
- package/dist/hooks/runtime/process-executor.d.ts +33 -0
- package/dist/hooks/runtime/process-executor.js +147 -0
- package/dist/hooks/runtime/status-recorder.d.ts +27 -0
- package/dist/hooks/runtime/status-recorder.js +111 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +111 -40
- package/dist/skills/agents-md-generator/SKILL.md +223 -223
- package/dist/skills/codebase-analyzer/SKILL.md +162 -162
- package/dist/skills/codebase-analyzer/references/code-analysis.md +63 -63
- package/dist/skills/codebase-analyzer/references/combined.md +31 -31
- package/dist/skills/codebase-analyzer/references/context-discovery.md +63 -63
- package/dist/skills/codebase-analyzer/references/file-discovery.md +51 -51
- package/dist/skills/codebase-analyzer/references/migration-target.md +23 -23
- package/dist/skills/codebase-analyzer/references/pattern-mining.md +22 -22
- package/dist/skills/dev-analyze/SKILL.md +115 -115
- package/dist/skills/dev-bugfix/SKILL.md +452 -452
- package/dist/skills/dev-finalize/SKILL.md +118 -118
- package/dist/skills/dev-implement/SKILL.md +167 -167
- package/dist/skills/dev-plan/SKILL.md +147 -147
- package/dist/skills/dev-spec/SKILL.md +182 -182
- package/dist/skills/dev-tdd-red/SKILL.md +94 -94
- package/dist/skills/dev-verify/SKILL.md +153 -153
- package/dist/skills/development/SKILL.md +260 -260
- package/dist/skills/diagrams-mermaid/SKILL.md +183 -159
- package/dist/skills/diagrams-mermaid/references/reference.md +220 -148
- package/dist/skills/docs-manager/SKILL.md +379 -379
- package/dist/skills/docs-manager/docs/INDEX.md +199 -199
- package/dist/skills/docs-manager/docs/standards/backend/api.md +25 -25
- package/dist/skills/docs-manager/docs/standards/backend/migrations.md +22 -22
- package/dist/skills/docs-manager/docs/standards/backend/models.md +25 -25
- package/dist/skills/docs-manager/docs/standards/backend/queries.md +22 -22
- package/dist/skills/docs-manager/docs/standards/frontend/accessibility.md +25 -25
- package/dist/skills/docs-manager/docs/standards/frontend/components.md +28 -28
- package/dist/skills/docs-manager/docs/standards/frontend/css.md +16 -16
- package/dist/skills/docs-manager/docs/standards/frontend/responsive.md +28 -28
- package/dist/skills/docs-manager/docs/standards/global/coding-style.md +25 -25
- package/dist/skills/docs-manager/docs/standards/global/commenting.md +10 -10
- package/dist/skills/docs-manager/docs/standards/global/conventions.md +31 -31
- package/dist/skills/docs-manager/docs/standards/global/error-handling.md +22 -22
- package/dist/skills/docs-manager/docs/standards/global/minimal-implementation.md +22 -22
- package/dist/skills/docs-manager/docs/standards/global/validation.md +28 -28
- package/dist/skills/docs-manager/docs/standards/testing/test-writing.md +25 -25
- package/dist/skills/docs-manager/references/agents-md-template.md +29 -29
- package/dist/skills/docs-manager/references/index-md-template.md +73 -73
- package/dist/skills/flow-init/SKILL.md +234 -234
- package/dist/skills/flow-init/references/architecture-template.md +45 -45
- package/dist/skills/flow-init/references/roadmap-templates.md +93 -93
- package/dist/skills/flow-init/references/tech-stack-template.md +70 -70
- package/dist/skills/flow-init/references/vision-templates.md +75 -75
- package/dist/skills/goal-development/SKILL.md +96 -96
- package/dist/skills/goal-migration/SKILL.md +114 -114
- package/dist/skills/goal-performance/SKILL.md +126 -126
- package/dist/skills/goal-research/SKILL.md +118 -118
- package/dist/skills/html-renderer/SKILL.md +173 -173
- package/dist/skills/html-renderer/references/index.html +318 -318
- package/dist/skills/html-renderer/references/styles.css +388 -388
- package/dist/skills/html-renderer/references/tokens.json +104 -104
- package/dist/skills/implementation-plan-executor/SKILL.md +378 -378
- package/dist/skills/implementation-verifier/SKILL.md +307 -307
- package/dist/skills/migration/SKILL.md +268 -268
- package/dist/skills/migration-analyze/SKILL.md +126 -126
- package/dist/skills/migration-finalize/SKILL.md +161 -161
- package/dist/skills/migration-fix/SKILL.md +155 -155
- package/dist/skills/migration-implement/SKILL.md +131 -131
- package/dist/skills/migration-plan/SKILL.md +131 -131
- package/dist/skills/migration-spec/SKILL.md +135 -135
- package/dist/skills/migration-spec/references/migration-strategies.md +430 -430
- package/dist/skills/migration-target/SKILL.md +134 -134
- package/dist/skills/migration-target/references/migration-types.md +489 -489
- package/dist/skills/migration-verify/SKILL.md +184 -184
- package/dist/skills/orchestrator-framework/SKILL.md +65 -65
- package/dist/skills/orchestrator-framework/references/command-namespacing.md +7 -7
- package/dist/skills/orchestrator-framework/references/confirm-or-revise-exception.md +20 -20
- package/dist/skills/orchestrator-framework/references/delegation-rules.md +54 -54
- package/dist/skills/orchestrator-framework/references/dispatcher-handoff.md +27 -27
- package/dist/skills/orchestrator-framework/references/fix-loop-contract.md +65 -65
- package/dist/skills/orchestrator-framework/references/gate-contract.md +122 -122
- package/dist/skills/orchestrator-framework/references/orchestrator-creation-checklist.md +51 -51
- package/dist/skills/orchestrator-framework/references/orchestrator-patterns.md +235 -235
- package/dist/skills/performance/SKILL.md +267 -267
- package/dist/skills/performance-analyze/SKILL.md +129 -129
- package/dist/skills/performance-analyze/references/performance-optimization-guide.md +271 -271
- package/dist/skills/performance-finalize/SKILL.md +117 -117
- package/dist/skills/performance-implement/SKILL.md +114 -114
- package/dist/skills/performance-plan/SKILL.md +112 -112
- package/dist/skills/performance-spec/SKILL.md +145 -145
- package/dist/skills/performance-verify/SKILL.md +164 -164
- package/dist/skills/research/SKILL.md +249 -249
- package/dist/skills/research-brainstorm/SKILL.md +120 -120
- package/dist/skills/research-brainstorm/references/brainstorming-techniques.md +84 -84
- package/dist/skills/research-converge/SKILL.md +130 -130
- package/dist/skills/research-design/SKILL.md +146 -146
- package/dist/skills/research-design/references/design-techniques.md +40 -40
- package/dist/skills/research-finalize/SKILL.md +125 -125
- package/dist/skills/research-fork/SKILL.md +190 -190
- package/dist/skills/research-gather/SKILL.md +133 -133
- package/dist/skills/research-plan/SKILL.md +141 -141
- package/dist/skills/research-plan/references/research-methodologies.md +710 -710
- package/dist/skills/research-quick/SKILL.md +139 -139
- package/dist/skills/research-synthesize/SKILL.md +127 -127
- package/dist/skills/rule-reviewer/SKILL.md +334 -334
- package/dist/skills/standards-discover/SKILL.md +260 -260
- package/dist/skills/standards-discover/references/aggregation-strategy.md +76 -76
- package/dist/skills/standards-discover/references/code-pattern-prompt.md +68 -68
- package/dist/skills/standards-discover/references/config-analyzer-prompt.md +67 -67
- package/dist/skills/standards-discover/references/docs-extractor-prompt.md +65 -65
- package/dist/skills/standards-discover/references/external-analyzer-prompt.md +75 -75
- package/dist/skills/standards-update/SKILL.md +207 -207
- package/dist/templates/orchestrator-state-base.yml +17 -17
- package/dist/templates/orchestrator-state-development.yml +95 -95
- package/dist/templates/orchestrator-state-migration.yml +95 -95
- package/dist/templates/orchestrator-state-performance.yml +64 -64
- package/dist/templates/orchestrator-state-research.yml +67 -67
- package/dist/tools/fork_task.d.ts +17 -0
- package/dist/tools/fork_task.js +21 -11
- package/dist/tools/verify_template.d.ts +11 -0
- package/dist/tools/verify_template.js +32 -17
- package/dist/tui/hooks-dialogs.d.ts +20 -0
- package/dist/tui/hooks-dialogs.js +181 -0
- package/dist/tui/hooks-presenter.d.ts +15 -0
- package/dist/tui/hooks-presenter.js +70 -0
- package/dist/tui/hooks-sidebar.d.ts +10 -0
- package/dist/tui/hooks-sidebar.js +104 -0
- package/dist/tui/primitives.d.ts +21 -0
- package/dist/tui/primitives.js +47 -0
- package/dist/tui.d.ts +12 -0
- package/dist/tui.js +129 -0
- package/dist/types/hook-types.d.ts +125 -0
- package/dist/types/hook-types.js +76 -0
- package/dist/types/opencode-types.d.ts +13 -0
- package/dist/utils/file-util.d.ts +2 -0
- package/dist/utils/file-util.js +6 -6
- package/dist/utils/fork-task.d.ts +27 -0
- package/dist/utils/fork-task.js +18 -23
- package/dist/utils/plugin-info.d.ts +3 -0
- package/dist/utils/plugin-info.js +8 -10
- package/dist/utils/workflow-paths.d.ts +17 -0
- package/dist/utils/workflow-paths.js +18 -0
- package/dist/utils/yaml-structure.d.ts +7 -0
- package/dist/utils/yaml-structure.js +7 -11
- package/package.json +68 -48
- package/dist/hooks/before-tool.js +0 -19
|
@@ -1,710 +1,710 @@
|
|
|
1
|
-
# Research Methodologies Reference
|
|
2
|
-
|
|
3
|
-
This reference provides conceptual patterns and decision frameworks for research methodology selection and execution in the AI SDLC Research Orchestrator.
|
|
4
|
-
|
|
5
|
-
## Purpose
|
|
6
|
-
|
|
7
|
-
Research methodologies guide how information is gathered, analyzed, and synthesized to answer research questions. This reference helps the orchestrator select appropriate methodologies based on research type and adapt execution strategies to research objectives.
|
|
8
|
-
|
|
9
|
-
---
|
|
10
|
-
|
|
11
|
-
## Research Type Classification
|
|
12
|
-
|
|
13
|
-
### Decision Criteria
|
|
14
|
-
|
|
15
|
-
Research type classification determines which methodology to apply. Use question analysis and keyword detection:
|
|
16
|
-
|
|
17
|
-
**Technical Research**:
|
|
18
|
-
|
|
19
|
-
- **Keywords**: "how does", "where is", "what patterns", "how is implemented", "architecture of"
|
|
20
|
-
- **Focus**: Understanding codebase implementation, patterns, and architecture
|
|
21
|
-
- **Primary sources**: Source code, configuration, tests
|
|
22
|
-
- **Output emphasis**: Implementation details, architectural diagrams, pattern documentation
|
|
23
|
-
|
|
24
|
-
**Requirements Research**:
|
|
25
|
-
|
|
26
|
-
- **Keywords**: "what are the requirements", "user needs", "business requirements", "stakeholder", "acceptance criteria"
|
|
27
|
-
- **Focus**: Understanding what needs to be built and why
|
|
28
|
-
- **Primary sources**: Documentation, issues, user stories, PRs
|
|
29
|
-
- **Output emphasis**: Requirements lists, user stories, constraints, priorities
|
|
30
|
-
|
|
31
|
-
**Literature Research**:
|
|
32
|
-
|
|
33
|
-
- **Keywords**: "best practices", "industry standards", "recommended approach", "how others do", "state of the art"
|
|
34
|
-
- **Focus**: Understanding established patterns and recommendations
|
|
35
|
-
- **Primary sources**: Documentation, web resources, framework docs, academic papers
|
|
36
|
-
- **Output emphasis**: Best practices, trade-offs, recommendations
|
|
37
|
-
|
|
38
|
-
**Mixed Research**:
|
|
39
|
-
|
|
40
|
-
- **Keywords**: Combination of above or broad questions like "everything about X"
|
|
41
|
-
- **Focus**: Comprehensive understanding requiring multiple perspectives
|
|
42
|
-
- **Primary sources**: All applicable sources
|
|
43
|
-
- **Output emphasis**: Holistic view with multiple dimensions
|
|
44
|
-
|
|
45
|
-
---
|
|
46
|
-
|
|
47
|
-
## Methodology Selection Framework
|
|
48
|
-
|
|
49
|
-
### Technical Research Methodology
|
|
50
|
-
|
|
51
|
-
**When to use**: Investigating how something works in the codebase
|
|
52
|
-
|
|
53
|
-
**Approach**: Codebase analysis with iterative deepening
|
|
54
|
-
|
|
55
|
-
**Strategy**:
|
|
56
|
-
|
|
57
|
-
1. **Broad Discovery**: Pattern matching to find all relevant files
|
|
58
|
-
2. **Structural Analysis**: Understand organization and architecture
|
|
59
|
-
3. **Implementation Reading**: Read code to understand details
|
|
60
|
-
4. **Flow Tracing**: Follow execution paths and data flows
|
|
61
|
-
5. **Integration Mapping**: Understand connections and dependencies
|
|
62
|
-
|
|
63
|
-
**Tools**:
|
|
64
|
-
|
|
65
|
-
- Glob: File pattern matching
|
|
66
|
-
- Grep: Code pattern searching
|
|
67
|
-
- Read: Full file analysis
|
|
68
|
-
- Bash: Directory structure exploration
|
|
69
|
-
|
|
70
|
-
**Expected Timeline**: 2-4 phases depending on complexity
|
|
71
|
-
|
|
72
|
-
**Success Indicators**:
|
|
73
|
-
|
|
74
|
-
- All major components identified
|
|
75
|
-
- Execution flows documented
|
|
76
|
-
- Integration points mapped
|
|
77
|
-
- Patterns recognized and documented
|
|
78
|
-
|
|
79
|
-
---
|
|
80
|
-
|
|
81
|
-
### Requirements Research Methodology
|
|
82
|
-
|
|
83
|
-
**When to use**: Understanding what needs to be built
|
|
84
|
-
|
|
85
|
-
**Approach**: Documentation synthesis with stakeholder input analysis
|
|
86
|
-
|
|
87
|
-
**Strategy**:
|
|
88
|
-
|
|
89
|
-
1. **Document Collection**: Gather all requirement sources
|
|
90
|
-
2. **Content Extraction**: Extract requirements, user stories, acceptance criteria
|
|
91
|
-
3. **Categorization**: Organize by priority, stakeholder, feature area
|
|
92
|
-
4. **Gap Identification**: Find missing, conflicting, or unclear requirements
|
|
93
|
-
5. **Synthesis**: Create comprehensive requirement specification
|
|
94
|
-
|
|
95
|
-
**Tools**:
|
|
96
|
-
|
|
97
|
-
- Glob: Find requirement documents
|
|
98
|
-
- Read: Document analysis
|
|
99
|
-
- Grep: Search for keywords (requirement, must, should, acceptance criteria)
|
|
100
|
-
|
|
101
|
-
**Expected Timeline**: 2-3 phases
|
|
102
|
-
|
|
103
|
-
**Success Indicators**:
|
|
104
|
-
|
|
105
|
-
- All requirements captured
|
|
106
|
-
- Priorities established
|
|
107
|
-
- Conflicts resolved
|
|
108
|
-
- Acceptance criteria clear
|
|
109
|
-
|
|
110
|
-
---
|
|
111
|
-
|
|
112
|
-
### Literature Research Methodology
|
|
113
|
-
|
|
114
|
-
**When to use**: Understanding best practices or industry approaches
|
|
115
|
-
|
|
116
|
-
**Approach**: Multi-source review with comparative analysis
|
|
117
|
-
|
|
118
|
-
**Strategy**:
|
|
119
|
-
|
|
120
|
-
1. **Source Identification**: Find authoritative sources (framework docs, standards, papers)
|
|
121
|
-
2. **Content Review**: Read and extract key recommendations
|
|
122
|
-
3. **Comparison**: Compare different approaches and their trade-offs
|
|
123
|
-
4. **Applicability Assessment**: Evaluate what fits project constraints
|
|
124
|
-
5. **Recommendation**: Synthesize into actionable recommendations
|
|
125
|
-
|
|
126
|
-
**Tools**:
|
|
127
|
-
|
|
128
|
-
- WebSearch: Find authoritative sources
|
|
129
|
-
- WebFetch: Read external documentation
|
|
130
|
-
- Read: Internal documentation review
|
|
131
|
-
|
|
132
|
-
**Expected Timeline**: 2-3 phases
|
|
133
|
-
|
|
134
|
-
**Success Indicators**:
|
|
135
|
-
|
|
136
|
-
- Multiple authoritative sources consulted
|
|
137
|
-
- Approaches compared and contrasted
|
|
138
|
-
- Trade-offs understood
|
|
139
|
-
- Recommendations aligned with project constraints
|
|
140
|
-
|
|
141
|
-
---
|
|
142
|
-
|
|
143
|
-
### Mixed Research Methodology
|
|
144
|
-
|
|
145
|
-
**When to use**: Complex questions requiring multiple perspectives
|
|
146
|
-
|
|
147
|
-
**Approach**: Hybrid methodology combining above approaches
|
|
148
|
-
|
|
149
|
-
**Strategy**:
|
|
150
|
-
|
|
151
|
-
1. **Question Decomposition**: Break into technical, requirements, and literature sub-questions
|
|
152
|
-
2. **Parallel Investigation**: Execute appropriate methodology for each sub-question
|
|
153
|
-
3. **Cross-Referencing**: Identify relationships between different dimensions
|
|
154
|
-
4. **Integrated Synthesis**: Combine insights into holistic view
|
|
155
|
-
|
|
156
|
-
**Tools**: All applicable tools from above methodologies
|
|
157
|
-
|
|
158
|
-
**Expected Timeline**: 3-5 phases depending on breadth
|
|
159
|
-
|
|
160
|
-
**Success Indicators**:
|
|
161
|
-
|
|
162
|
-
- All dimensions investigated
|
|
163
|
-
- Relationships mapped between dimensions
|
|
164
|
-
- Holistic understanding achieved
|
|
165
|
-
- Comprehensive recommendations provided
|
|
166
|
-
|
|
167
|
-
---
|
|
168
|
-
|
|
169
|
-
## Source Identification Patterns
|
|
170
|
-
|
|
171
|
-
### Codebase Sources
|
|
172
|
-
|
|
173
|
-
**File Pattern Generation**:
|
|
174
|
-
|
|
175
|
-
1. Extract key terms from research question (nouns, technical terms)
|
|
176
|
-
2. Generate patterns:
|
|
177
|
-
|
|
178
|
-
```
|
|
179
|
-
**/*{term}*.{js,ts,py,java,go,rb,php}
|
|
180
|
-
**/services/{term}*
|
|
181
|
-
**/controllers/{term}*
|
|
182
|
-
**/middleware/{term}*
|
|
183
|
-
**/models/{term}*
|
|
184
|
-
**/utils/{term}*
|
|
185
|
-
```
|
|
186
|
-
|
|
187
|
-
3. Search by concept:
|
|
188
|
-
```
|
|
189
|
-
Authentication → **/*auth*, **/security/*, **/session/*
|
|
190
|
-
Database → **/*db*, **/*database*, **/*models*, **/*repository*
|
|
191
|
-
API → **/*api*, **/*routes*, **/*controllers*, **/*endpoints*
|
|
192
|
-
```
|
|
193
|
-
|
|
194
|
-
**Directory Structure Analysis**:
|
|
195
|
-
|
|
196
|
-
- List directories to understand organization
|
|
197
|
-
- Identify module boundaries
|
|
198
|
-
- Map feature areas
|
|
199
|
-
|
|
200
|
-
**Test Files**:
|
|
201
|
-
|
|
202
|
-
- Tests provide usage examples and expected behavior
|
|
203
|
-
- Pattern: `**/*test*, **/*spec*, tests/**, __tests__/**`
|
|
204
|
-
|
|
205
|
-
**Configuration**:
|
|
206
|
-
|
|
207
|
-
- Configuration reveals setup and dependencies
|
|
208
|
-
- Files: `package.json`, `pom.xml`, `requirements.txt`, `Gemfile`, `go.mod`
|
|
209
|
-
- Config directories: `config/`, `.config/`, `conf/`
|
|
210
|
-
|
|
211
|
-
---
|
|
212
|
-
|
|
213
|
-
### Documentation Sources
|
|
214
|
-
|
|
215
|
-
**Project Documentation**:
|
|
216
|
-
|
|
217
|
-
- `.owflow/docs/**/*.md` - AI SDLC framework documentation
|
|
218
|
-
- `docs/**/*.md` - Project documentation
|
|
219
|
-
- `README.md`, `ARCHITECTURE.md`, `CONTRIBUTING.md` - Root docs
|
|
220
|
-
|
|
221
|
-
**Code Documentation**:
|
|
222
|
-
|
|
223
|
-
- Inline comments
|
|
224
|
-
- JSDoc, Javadoc, docstrings
|
|
225
|
-
- Header comments explaining purpose
|
|
226
|
-
|
|
227
|
-
**Standard Locations**:
|
|
228
|
-
|
|
229
|
-
```
|
|
230
|
-
docs/
|
|
231
|
-
architecture/
|
|
232
|
-
api/
|
|
233
|
-
guides/
|
|
234
|
-
standards/
|
|
235
|
-
.owflow/docs/
|
|
236
|
-
project/
|
|
237
|
-
standards/
|
|
238
|
-
```
|
|
239
|
-
|
|
240
|
-
---
|
|
241
|
-
|
|
242
|
-
### Configuration Sources
|
|
243
|
-
|
|
244
|
-
**Dependency Files**:
|
|
245
|
-
|
|
246
|
-
- JavaScript: `package.json`, `yarn.lock`
|
|
247
|
-
- Python: `requirements.txt`, `Pipfile`, `pyproject.toml`
|
|
248
|
-
- Java: `pom.xml`, `build.gradle`
|
|
249
|
-
- Ruby: `Gemfile`
|
|
250
|
-
- Go: `go.mod`
|
|
251
|
-
|
|
252
|
-
**Environment Configuration**:
|
|
253
|
-
|
|
254
|
-
- `.env.example` (never .env - contains secrets)
|
|
255
|
-
- `config/*.{json,yml,yaml,toml}`
|
|
256
|
-
- Environment-specific: `config/development.yml`, `config/production.yml`
|
|
257
|
-
|
|
258
|
-
**Infrastructure Configuration**:
|
|
259
|
-
|
|
260
|
-
- `docker-compose.yml`
|
|
261
|
-
- `Dockerfile`
|
|
262
|
-
- `kubernetes/*.yaml`
|
|
263
|
-
- `.github/workflows/*.yml` (CI/CD)
|
|
264
|
-
|
|
265
|
-
---
|
|
266
|
-
|
|
267
|
-
### External Sources
|
|
268
|
-
|
|
269
|
-
**Framework Documentation**:
|
|
270
|
-
|
|
271
|
-
- Official docs for frameworks used (React, Django, Spring, Rails, etc.)
|
|
272
|
-
- Version-specific documentation (match versions in project)
|
|
273
|
-
|
|
274
|
-
**Best Practices**:
|
|
275
|
-
|
|
276
|
-
- Official style guides
|
|
277
|
-
- Industry standards (OWASP, W3C, IETF RFCs)
|
|
278
|
-
- Authoritative blogs and articles
|
|
279
|
-
|
|
280
|
-
**Academic Sources**:
|
|
281
|
-
|
|
282
|
-
- Research papers (if applicable)
|
|
283
|
-
- Technical specifications
|
|
284
|
-
- Standards documents
|
|
285
|
-
|
|
286
|
-
**Caution**: Validate external sources are:
|
|
287
|
-
|
|
288
|
-
- Authoritative (official or widely recognized)
|
|
289
|
-
- Current (not outdated)
|
|
290
|
-
- Applicable (matches project context)
|
|
291
|
-
|
|
292
|
-
---
|
|
293
|
-
|
|
294
|
-
## Information Gathering Strategies
|
|
295
|
-
|
|
296
|
-
### Iterative Deepening Strategy
|
|
297
|
-
|
|
298
|
-
**Phase 1: Broad Discovery** (fast, high-level)
|
|
299
|
-
|
|
300
|
-
- Use Glob to find all potentially relevant files
|
|
301
|
-
- Quick scan of directory structure
|
|
302
|
-
- Identify major areas
|
|
303
|
-
|
|
304
|
-
**Phase 2: Targeted Reading** (moderate depth)
|
|
305
|
-
|
|
306
|
-
- Read key files completely
|
|
307
|
-
- Extract main components and patterns
|
|
308
|
-
- Identify integration points
|
|
309
|
-
|
|
310
|
-
**Phase 3: Deep Dive** (detailed analysis)
|
|
311
|
-
|
|
312
|
-
- Trace specific flows
|
|
313
|
-
- Understand implementation details
|
|
314
|
-
- Map dependencies
|
|
315
|
-
|
|
316
|
-
**Phase 4: Verification** (validation)
|
|
317
|
-
|
|
318
|
-
- Cross-reference findings
|
|
319
|
-
- Validate understanding with tests
|
|
320
|
-
- Identify gaps
|
|
321
|
-
|
|
322
|
-
**Adaptation**: Skip or combine phases based on research complexity
|
|
323
|
-
|
|
324
|
-
---
|
|
325
|
-
|
|
326
|
-
### Multi-Source Triangulation Strategy
|
|
327
|
-
|
|
328
|
-
**Purpose**: Validate findings through multiple independent sources
|
|
329
|
-
|
|
330
|
-
**Approach**:
|
|
331
|
-
|
|
332
|
-
1. Gather information from source type A (e.g., code)
|
|
333
|
-
2. Gather information from source type B (e.g., docs)
|
|
334
|
-
3. Gather information from source type C (e.g., tests)
|
|
335
|
-
4. Compare findings across sources
|
|
336
|
-
5. High confidence: Sources agree
|
|
337
|
-
6. Medium confidence: Some agreement
|
|
338
|
-
7. Low confidence: Sources disagree or single source only
|
|
339
|
-
|
|
340
|
-
**Example**:
|
|
341
|
-
|
|
342
|
-
- **Code** says authentication uses JWT
|
|
343
|
-
- **Configuration** shows jwt library in dependencies
|
|
344
|
-
- **Tests** validate JWT token generation
|
|
345
|
-
- **Conclusion**: High confidence - JWT authentication confirmed by 3 sources
|
|
346
|
-
|
|
347
|
-
---
|
|
348
|
-
|
|
349
|
-
### Progressive Refinement Strategy
|
|
350
|
-
|
|
351
|
-
**Purpose**: Start broad, progressively narrow focus
|
|
352
|
-
|
|
353
|
-
**Approach**:
|
|
354
|
-
|
|
355
|
-
1. **Start Broad**: Search entire codebase for relevant terms
|
|
356
|
-
2. **Initial Filtering**: Identify most relevant directories/files
|
|
357
|
-
3. **Focused Investigation**: Deep dive into filtered set
|
|
358
|
-
4. **Targeted Expansion**: Expand to related areas as needed
|
|
359
|
-
5. **Final Verification**: Confirm understanding is complete
|
|
360
|
-
|
|
361
|
-
**Example**:
|
|
362
|
-
|
|
363
|
-
1. Search for "payment" across entire codebase → 150 files
|
|
364
|
-
2. Filter to payment module → 30 files
|
|
365
|
-
3. Read core payment service files → 5 files
|
|
366
|
-
4. Expand to payment gateway integration → 8 more files
|
|
367
|
-
5. Verify with payment tests → 10 test files
|
|
368
|
-
|
|
369
|
-
---
|
|
370
|
-
|
|
371
|
-
## Analysis Frameworks
|
|
372
|
-
|
|
373
|
-
### Technical Research Analysis Framework
|
|
374
|
-
|
|
375
|
-
**Component Inventory**:
|
|
376
|
-
|
|
377
|
-
- List all components/modules/classes
|
|
378
|
-
- Categorize by responsibility (service, controller, model, util)
|
|
379
|
-
- Map directory structure to logical architecture
|
|
380
|
-
|
|
381
|
-
**Pattern Recognition**:
|
|
382
|
-
|
|
383
|
-
- Identify design patterns (singleton, factory, strategy, etc.)
|
|
384
|
-
- Recognize architectural patterns (MVC, layered, microservices)
|
|
385
|
-
- Document consistency of pattern application
|
|
386
|
-
|
|
387
|
-
**Flow Analysis**:
|
|
388
|
-
|
|
389
|
-
- Trace request/response flows
|
|
390
|
-
- Map data transformations
|
|
391
|
-
- Document control flow (decision points, loops)
|
|
392
|
-
- Identify error handling flows
|
|
393
|
-
|
|
394
|
-
**Integration Mapping**:
|
|
395
|
-
|
|
396
|
-
- Internal dependencies (module A depends on module B)
|
|
397
|
-
- External dependencies (third-party libraries, external APIs)
|
|
398
|
-
- Database interactions
|
|
399
|
-
- Infrastructure dependencies
|
|
400
|
-
|
|
401
|
-
**Quality Assessment**:
|
|
402
|
-
|
|
403
|
-
- Code quality (duplication, complexity, readability)
|
|
404
|
-
- Test coverage (what's tested, what's not)
|
|
405
|
-
- Documentation quality (comprehensive, missing, outdated)
|
|
406
|
-
- Consistency (naming, structure, patterns)
|
|
407
|
-
|
|
408
|
-
---
|
|
409
|
-
|
|
410
|
-
### Requirements Research Analysis Framework
|
|
411
|
-
|
|
412
|
-
**Requirement Extraction**:
|
|
413
|
-
|
|
414
|
-
- Explicit requirements (stated directly)
|
|
415
|
-
- Implicit requirements (inferred from context)
|
|
416
|
-
- Non-functional requirements (performance, security, scalability)
|
|
417
|
-
|
|
418
|
-
**Categorization**:
|
|
419
|
-
|
|
420
|
-
- By feature area (reporting, authentication, data management)
|
|
421
|
-
- By stakeholder (admin, user, developer, operations)
|
|
422
|
-
- By priority (must-have, should-have, nice-to-have)
|
|
423
|
-
- By type (functional, non-functional, constraint)
|
|
424
|
-
|
|
425
|
-
**Gap Analysis**:
|
|
426
|
-
|
|
427
|
-
- Missing requirements (not specified)
|
|
428
|
-
- Ambiguous requirements (unclear)
|
|
429
|
-
- Conflicting requirements (contradictory)
|
|
430
|
-
- Incomplete requirements (missing details)
|
|
431
|
-
|
|
432
|
-
**Acceptance Criteria**:
|
|
433
|
-
|
|
434
|
-
- Testable conditions for requirement completion
|
|
435
|
-
- Success metrics
|
|
436
|
-
- User validation approach
|
|
437
|
-
|
|
438
|
-
---
|
|
439
|
-
|
|
440
|
-
### Literature Research Analysis Framework
|
|
441
|
-
|
|
442
|
-
**Source Evaluation**:
|
|
443
|
-
|
|
444
|
-
- Authority (official docs, recognized experts)
|
|
445
|
-
- Currency (up-to-date vs outdated)
|
|
446
|
-
- Relevance (applicable to project context)
|
|
447
|
-
- Completeness (comprehensive vs superficial)
|
|
448
|
-
|
|
449
|
-
**Approach Comparison**:
|
|
450
|
-
|
|
451
|
-
- Approach A: Description, pros, cons, use cases
|
|
452
|
-
- Approach B: Description, pros, cons, use cases
|
|
453
|
-
- Trade-offs: When to use which
|
|
454
|
-
|
|
455
|
-
**Applicability Assessment**:
|
|
456
|
-
|
|
457
|
-
- Technical fit (compatible with tech stack)
|
|
458
|
-
- Constraint fit (works within limitations)
|
|
459
|
-
- Resource fit (feasible with available resources)
|
|
460
|
-
- Risk assessment (implementation risks)
|
|
461
|
-
|
|
462
|
-
**Recommendation Synthesis**:
|
|
463
|
-
|
|
464
|
-
- What to adopt (and why)
|
|
465
|
-
- What to adapt (and how)
|
|
466
|
-
- What to avoid (and why)
|
|
467
|
-
|
|
468
|
-
---
|
|
469
|
-
|
|
470
|
-
## Research Execution Patterns
|
|
471
|
-
|
|
472
|
-
### Serial Execution Pattern
|
|
473
|
-
|
|
474
|
-
**When**: Phases depend on each other
|
|
475
|
-
|
|
476
|
-
**Flow**:
|
|
477
|
-
|
|
478
|
-
1. Complete Phase 1 fully
|
|
479
|
-
2. Use Phase 1 outputs for Phase 2
|
|
480
|
-
3. Complete Phase 2 fully
|
|
481
|
-
4. Continue sequentially
|
|
482
|
-
|
|
483
|
-
**Example**: Discovery → Reading → Deep Dive → Synthesis
|
|
484
|
-
|
|
485
|
-
---
|
|
486
|
-
|
|
487
|
-
### Parallel Execution Pattern
|
|
488
|
-
|
|
489
|
-
**When**: Independent sub-questions can be investigated simultaneously
|
|
490
|
-
|
|
491
|
-
**Flow**:
|
|
492
|
-
|
|
493
|
-
1. Decompose research question into independent sub-questions
|
|
494
|
-
2. Investigate each sub-question in parallel
|
|
495
|
-
3. Synthesize findings together
|
|
496
|
-
|
|
497
|
-
**Example**:
|
|
498
|
-
|
|
499
|
-
- Sub-question A: "How is authentication implemented?" (codebase)
|
|
500
|
-
- Sub-question B: "What are authentication best practices?" (literature)
|
|
501
|
-
- Both investigated independently, then synthesized
|
|
502
|
-
|
|
503
|
-
---
|
|
504
|
-
|
|
505
|
-
### Spiral Pattern
|
|
506
|
-
|
|
507
|
-
**When**: Understanding develops iteratively through repeated cycles
|
|
508
|
-
|
|
509
|
-
**Flow**:
|
|
510
|
-
|
|
511
|
-
1. Cycle 1: Surface-level understanding across all areas
|
|
512
|
-
2. Cycle 2: Moderate depth across all areas (informed by Cycle 1)
|
|
513
|
-
3. Cycle 3: Deep understanding in key areas (informed by Cycle 2)
|
|
514
|
-
|
|
515
|
-
**Example**:
|
|
516
|
-
|
|
517
|
-
- Cycle 1: Find all auth-related files (broad discovery)
|
|
518
|
-
- Cycle 2: Read main auth files (targeted reading)
|
|
519
|
-
- Cycle 3: Trace auth flow end-to-end (deep dive)
|
|
520
|
-
|
|
521
|
-
---
|
|
522
|
-
|
|
523
|
-
## Success Criteria Patterns
|
|
524
|
-
|
|
525
|
-
### Technical Research Success Criteria
|
|
526
|
-
|
|
527
|
-
✅ **Complete Component Inventory**: All major components identified
|
|
528
|
-
✅ **Documented Flows**: Key execution paths traced and documented
|
|
529
|
-
✅ **Pattern Recognition**: Design and architectural patterns identified
|
|
530
|
-
✅ **Integration Mapping**: Dependencies and integration points mapped
|
|
531
|
-
✅ **Evidence-Based**: All claims backed by code references
|
|
532
|
-
|
|
533
|
-
---
|
|
534
|
-
|
|
535
|
-
### Requirements Research Success Criteria
|
|
536
|
-
|
|
537
|
-
✅ **Comprehensive Coverage**: All requirements sources consulted
|
|
538
|
-
✅ **Categorized Requirements**: Requirements organized by priority, stakeholder, type
|
|
539
|
-
✅ **Gaps Identified**: Missing, ambiguous, conflicting requirements documented
|
|
540
|
-
✅ **Acceptance Criteria**: Clear success conditions defined
|
|
541
|
-
✅ **Stakeholder Alignment**: Requirements mapped to stakeholder needs
|
|
542
|
-
|
|
543
|
-
---
|
|
544
|
-
|
|
545
|
-
### Literature Research Success Criteria
|
|
546
|
-
|
|
547
|
-
✅ **Authoritative Sources**: Multiple credible sources consulted
|
|
548
|
-
✅ **Comparative Analysis**: Different approaches compared
|
|
549
|
-
✅ **Trade-offs Understood**: Pros/cons of each approach documented
|
|
550
|
-
✅ **Applicability Assessed**: Recommendations match project constraints
|
|
551
|
-
✅ **Actionable Recommendations**: Clear guidance for next steps
|
|
552
|
-
|
|
553
|
-
---
|
|
554
|
-
|
|
555
|
-
## Confidence Scoring Patterns
|
|
556
|
-
|
|
557
|
-
### High Confidence (90-100%)
|
|
558
|
-
|
|
559
|
-
**Indicators**:
|
|
560
|
-
|
|
561
|
-
- Multiple independent sources confirm
|
|
562
|
-
- Direct evidence (code, explicit docs)
|
|
563
|
-
- No contradictions found
|
|
564
|
-
- Verified through tests or usage examples
|
|
565
|
-
|
|
566
|
-
**Example**: "Authentication uses Passport.js with JWT strategy"
|
|
567
|
-
|
|
568
|
-
- Evidence: Code imports, configuration, tests, documentation all confirm
|
|
569
|
-
|
|
570
|
-
---
|
|
571
|
-
|
|
572
|
-
### Medium Confidence (60-89%)
|
|
573
|
-
|
|
574
|
-
**Indicators**:
|
|
575
|
-
|
|
576
|
-
- Single source or indirect evidence
|
|
577
|
-
- Inferred from patterns or context
|
|
578
|
-
- Minor contradictions or gaps
|
|
579
|
-
- Partial verification
|
|
580
|
-
|
|
581
|
-
**Example**: "Token refresh might be handled by client"
|
|
582
|
-
|
|
583
|
-
- Evidence: Server doesn't have refresh endpoint, but client code unclear
|
|
584
|
-
|
|
585
|
-
---
|
|
586
|
-
|
|
587
|
-
### Low Confidence (<60%)
|
|
588
|
-
|
|
589
|
-
**Indicators**:
|
|
590
|
-
|
|
591
|
-
- Speculation or assumption
|
|
592
|
-
- Contradictory evidence
|
|
593
|
-
- No direct confirmation
|
|
594
|
-
- Significant gaps in understanding
|
|
595
|
-
|
|
596
|
-
**Example**: "OAuth integration appears incomplete"
|
|
597
|
-
|
|
598
|
-
- Evidence: OAuth packages installed but no routes configured (ambiguous intent)
|
|
599
|
-
|
|
600
|
-
---
|
|
601
|
-
|
|
602
|
-
## Adaptation Strategies
|
|
603
|
-
|
|
604
|
-
### Adjust Scope Based on Findings
|
|
605
|
-
|
|
606
|
-
**Expand Scope**:
|
|
607
|
-
|
|
608
|
-
- If initial findings reveal related areas that must be understood
|
|
609
|
-
- If dependencies require understanding of additional components
|
|
610
|
-
|
|
611
|
-
**Narrow Scope**:
|
|
612
|
-
|
|
613
|
-
- If research question can be answered with subset of sources
|
|
614
|
-
- If areas are well-documented and don't need deep investigation
|
|
615
|
-
|
|
616
|
-
---
|
|
617
|
-
|
|
618
|
-
### Adjust Depth Based on Complexity
|
|
619
|
-
|
|
620
|
-
**Increase Depth**:
|
|
621
|
-
|
|
622
|
-
- If implementations are complex or non-standard
|
|
623
|
-
- If documentation is missing or incomplete
|
|
624
|
-
- If contradictions need resolution
|
|
625
|
-
|
|
626
|
-
**Decrease Depth**:
|
|
627
|
-
|
|
628
|
-
- If implementations are standard and well-documented
|
|
629
|
-
- If patterns are consistent and clear
|
|
630
|
-
- If multiple sources confirm understanding
|
|
631
|
-
|
|
632
|
-
---
|
|
633
|
-
|
|
634
|
-
### Adjust Timeline Based on Findings
|
|
635
|
-
|
|
636
|
-
**Extend Timeline**:
|
|
637
|
-
|
|
638
|
-
- Significant gaps in documentation
|
|
639
|
-
- Complex implementations requiring deep analysis
|
|
640
|
-
- Multiple contradictions to resolve
|
|
641
|
-
|
|
642
|
-
**Shorten Timeline**:
|
|
643
|
-
|
|
644
|
-
- Excellent documentation available
|
|
645
|
-
- Standard implementations
|
|
646
|
-
- High confidence early findings
|
|
647
|
-
|
|
648
|
-
---
|
|
649
|
-
|
|
650
|
-
## Common Pitfalls and Mitigations
|
|
651
|
-
|
|
652
|
-
### Pitfall: Scope Creep
|
|
653
|
-
|
|
654
|
-
**Problem**: Research expands beyond original question
|
|
655
|
-
**Mitigation**: Continuously refer back to research question; document scope expansions explicitly
|
|
656
|
-
|
|
657
|
-
---
|
|
658
|
-
|
|
659
|
-
### Pitfall: Insufficient Evidence
|
|
660
|
-
|
|
661
|
-
**Problem**: Making claims without adequate proof
|
|
662
|
-
**Mitigation**: Maintain strict citation discipline; mark low-confidence findings
|
|
663
|
-
|
|
664
|
-
---
|
|
665
|
-
|
|
666
|
-
### Pitfall: Missing Integration Points
|
|
667
|
-
|
|
668
|
-
**Problem**: Understanding components in isolation without seeing how they connect
|
|
669
|
-
**Mitigation**: Explicitly include integration mapping phase
|
|
670
|
-
|
|
671
|
-
---
|
|
672
|
-
|
|
673
|
-
### Pitfall: Outdated Information
|
|
674
|
-
|
|
675
|
-
**Problem**: Relying on old documentation or examples
|
|
676
|
-
**Mitigation**: Check file timestamps; prioritize recently modified files; verify docs match code
|
|
677
|
-
|
|
678
|
-
---
|
|
679
|
-
|
|
680
|
-
### Pitfall: Over-Confidence
|
|
681
|
-
|
|
682
|
-
**Problem**: Stating findings with more confidence than evidence warrants
|
|
683
|
-
**Mitigation**: Use confidence scoring; acknowledge limitations; document uncertainties
|
|
684
|
-
|
|
685
|
-
---
|
|
686
|
-
|
|
687
|
-
## Methodology Selection Decision Tree
|
|
688
|
-
|
|
689
|
-
```
|
|
690
|
-
Research Question Received
|
|
691
|
-
|
|
|
692
|
-
v
|
|
693
|
-
Keywords Indicate Type?
|
|
694
|
-
|
|
|
695
|
-
+----+----+
|
|
696
|
-
| |
|
|
697
|
-
Technical Requirements Literature Mixed
|
|
698
|
-
| | | |
|
|
699
|
-
v v v v
|
|
700
|
-
Codebase Documentation Web All
|
|
701
|
-
Analysis Synthesis Research Methods
|
|
702
|
-
| | | |
|
|
703
|
-
v v v v
|
|
704
|
-
Iterative Extraction Comparative Hybrid
|
|
705
|
-
Deepening Analysis Analysis Approach
|
|
706
|
-
```
|
|
707
|
-
|
|
708
|
-
---
|
|
709
|
-
|
|
710
|
-
This reference provides patterns and frameworks. Actual implementation adapts these concepts to specific research contexts.
|
|
1
|
+
# Research Methodologies Reference
|
|
2
|
+
|
|
3
|
+
This reference provides conceptual patterns and decision frameworks for research methodology selection and execution in the AI SDLC Research Orchestrator.
|
|
4
|
+
|
|
5
|
+
## Purpose
|
|
6
|
+
|
|
7
|
+
Research methodologies guide how information is gathered, analyzed, and synthesized to answer research questions. This reference helps the orchestrator select appropriate methodologies based on research type and adapt execution strategies to research objectives.
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## Research Type Classification
|
|
12
|
+
|
|
13
|
+
### Decision Criteria
|
|
14
|
+
|
|
15
|
+
Research type classification determines which methodology to apply. Use question analysis and keyword detection:
|
|
16
|
+
|
|
17
|
+
**Technical Research**:
|
|
18
|
+
|
|
19
|
+
- **Keywords**: "how does", "where is", "what patterns", "how is implemented", "architecture of"
|
|
20
|
+
- **Focus**: Understanding codebase implementation, patterns, and architecture
|
|
21
|
+
- **Primary sources**: Source code, configuration, tests
|
|
22
|
+
- **Output emphasis**: Implementation details, architectural diagrams, pattern documentation
|
|
23
|
+
|
|
24
|
+
**Requirements Research**:
|
|
25
|
+
|
|
26
|
+
- **Keywords**: "what are the requirements", "user needs", "business requirements", "stakeholder", "acceptance criteria"
|
|
27
|
+
- **Focus**: Understanding what needs to be built and why
|
|
28
|
+
- **Primary sources**: Documentation, issues, user stories, PRs
|
|
29
|
+
- **Output emphasis**: Requirements lists, user stories, constraints, priorities
|
|
30
|
+
|
|
31
|
+
**Literature Research**:
|
|
32
|
+
|
|
33
|
+
- **Keywords**: "best practices", "industry standards", "recommended approach", "how others do", "state of the art"
|
|
34
|
+
- **Focus**: Understanding established patterns and recommendations
|
|
35
|
+
- **Primary sources**: Documentation, web resources, framework docs, academic papers
|
|
36
|
+
- **Output emphasis**: Best practices, trade-offs, recommendations
|
|
37
|
+
|
|
38
|
+
**Mixed Research**:
|
|
39
|
+
|
|
40
|
+
- **Keywords**: Combination of above or broad questions like "everything about X"
|
|
41
|
+
- **Focus**: Comprehensive understanding requiring multiple perspectives
|
|
42
|
+
- **Primary sources**: All applicable sources
|
|
43
|
+
- **Output emphasis**: Holistic view with multiple dimensions
|
|
44
|
+
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
## Methodology Selection Framework
|
|
48
|
+
|
|
49
|
+
### Technical Research Methodology
|
|
50
|
+
|
|
51
|
+
**When to use**: Investigating how something works in the codebase
|
|
52
|
+
|
|
53
|
+
**Approach**: Codebase analysis with iterative deepening
|
|
54
|
+
|
|
55
|
+
**Strategy**:
|
|
56
|
+
|
|
57
|
+
1. **Broad Discovery**: Pattern matching to find all relevant files
|
|
58
|
+
2. **Structural Analysis**: Understand organization and architecture
|
|
59
|
+
3. **Implementation Reading**: Read code to understand details
|
|
60
|
+
4. **Flow Tracing**: Follow execution paths and data flows
|
|
61
|
+
5. **Integration Mapping**: Understand connections and dependencies
|
|
62
|
+
|
|
63
|
+
**Tools**:
|
|
64
|
+
|
|
65
|
+
- Glob: File pattern matching
|
|
66
|
+
- Grep: Code pattern searching
|
|
67
|
+
- Read: Full file analysis
|
|
68
|
+
- Bash: Directory structure exploration
|
|
69
|
+
|
|
70
|
+
**Expected Timeline**: 2-4 phases depending on complexity
|
|
71
|
+
|
|
72
|
+
**Success Indicators**:
|
|
73
|
+
|
|
74
|
+
- All major components identified
|
|
75
|
+
- Execution flows documented
|
|
76
|
+
- Integration points mapped
|
|
77
|
+
- Patterns recognized and documented
|
|
78
|
+
|
|
79
|
+
---
|
|
80
|
+
|
|
81
|
+
### Requirements Research Methodology
|
|
82
|
+
|
|
83
|
+
**When to use**: Understanding what needs to be built
|
|
84
|
+
|
|
85
|
+
**Approach**: Documentation synthesis with stakeholder input analysis
|
|
86
|
+
|
|
87
|
+
**Strategy**:
|
|
88
|
+
|
|
89
|
+
1. **Document Collection**: Gather all requirement sources
|
|
90
|
+
2. **Content Extraction**: Extract requirements, user stories, acceptance criteria
|
|
91
|
+
3. **Categorization**: Organize by priority, stakeholder, feature area
|
|
92
|
+
4. **Gap Identification**: Find missing, conflicting, or unclear requirements
|
|
93
|
+
5. **Synthesis**: Create comprehensive requirement specification
|
|
94
|
+
|
|
95
|
+
**Tools**:
|
|
96
|
+
|
|
97
|
+
- Glob: Find requirement documents
|
|
98
|
+
- Read: Document analysis
|
|
99
|
+
- Grep: Search for keywords (requirement, must, should, acceptance criteria)
|
|
100
|
+
|
|
101
|
+
**Expected Timeline**: 2-3 phases
|
|
102
|
+
|
|
103
|
+
**Success Indicators**:
|
|
104
|
+
|
|
105
|
+
- All requirements captured
|
|
106
|
+
- Priorities established
|
|
107
|
+
- Conflicts resolved
|
|
108
|
+
- Acceptance criteria clear
|
|
109
|
+
|
|
110
|
+
---
|
|
111
|
+
|
|
112
|
+
### Literature Research Methodology
|
|
113
|
+
|
|
114
|
+
**When to use**: Understanding best practices or industry approaches
|
|
115
|
+
|
|
116
|
+
**Approach**: Multi-source review with comparative analysis
|
|
117
|
+
|
|
118
|
+
**Strategy**:
|
|
119
|
+
|
|
120
|
+
1. **Source Identification**: Find authoritative sources (framework docs, standards, papers)
|
|
121
|
+
2. **Content Review**: Read and extract key recommendations
|
|
122
|
+
3. **Comparison**: Compare different approaches and their trade-offs
|
|
123
|
+
4. **Applicability Assessment**: Evaluate what fits project constraints
|
|
124
|
+
5. **Recommendation**: Synthesize into actionable recommendations
|
|
125
|
+
|
|
126
|
+
**Tools**:
|
|
127
|
+
|
|
128
|
+
- WebSearch: Find authoritative sources
|
|
129
|
+
- WebFetch: Read external documentation
|
|
130
|
+
- Read: Internal documentation review
|
|
131
|
+
|
|
132
|
+
**Expected Timeline**: 2-3 phases
|
|
133
|
+
|
|
134
|
+
**Success Indicators**:
|
|
135
|
+
|
|
136
|
+
- Multiple authoritative sources consulted
|
|
137
|
+
- Approaches compared and contrasted
|
|
138
|
+
- Trade-offs understood
|
|
139
|
+
- Recommendations aligned with project constraints
|
|
140
|
+
|
|
141
|
+
---
|
|
142
|
+
|
|
143
|
+
### Mixed Research Methodology
|
|
144
|
+
|
|
145
|
+
**When to use**: Complex questions requiring multiple perspectives
|
|
146
|
+
|
|
147
|
+
**Approach**: Hybrid methodology combining above approaches
|
|
148
|
+
|
|
149
|
+
**Strategy**:
|
|
150
|
+
|
|
151
|
+
1. **Question Decomposition**: Break into technical, requirements, and literature sub-questions
|
|
152
|
+
2. **Parallel Investigation**: Execute appropriate methodology for each sub-question
|
|
153
|
+
3. **Cross-Referencing**: Identify relationships between different dimensions
|
|
154
|
+
4. **Integrated Synthesis**: Combine insights into holistic view
|
|
155
|
+
|
|
156
|
+
**Tools**: All applicable tools from above methodologies
|
|
157
|
+
|
|
158
|
+
**Expected Timeline**: 3-5 phases depending on breadth
|
|
159
|
+
|
|
160
|
+
**Success Indicators**:
|
|
161
|
+
|
|
162
|
+
- All dimensions investigated
|
|
163
|
+
- Relationships mapped between dimensions
|
|
164
|
+
- Holistic understanding achieved
|
|
165
|
+
- Comprehensive recommendations provided
|
|
166
|
+
|
|
167
|
+
---
|
|
168
|
+
|
|
169
|
+
## Source Identification Patterns
|
|
170
|
+
|
|
171
|
+
### Codebase Sources
|
|
172
|
+
|
|
173
|
+
**File Pattern Generation**:
|
|
174
|
+
|
|
175
|
+
1. Extract key terms from research question (nouns, technical terms)
|
|
176
|
+
2. Generate patterns:
|
|
177
|
+
|
|
178
|
+
```
|
|
179
|
+
**/*{term}*.{js,ts,py,java,go,rb,php}
|
|
180
|
+
**/services/{term}*
|
|
181
|
+
**/controllers/{term}*
|
|
182
|
+
**/middleware/{term}*
|
|
183
|
+
**/models/{term}*
|
|
184
|
+
**/utils/{term}*
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
3. Search by concept:
|
|
188
|
+
```
|
|
189
|
+
Authentication → **/*auth*, **/security/*, **/session/*
|
|
190
|
+
Database → **/*db*, **/*database*, **/*models*, **/*repository*
|
|
191
|
+
API → **/*api*, **/*routes*, **/*controllers*, **/*endpoints*
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
**Directory Structure Analysis**:
|
|
195
|
+
|
|
196
|
+
- List directories to understand organization
|
|
197
|
+
- Identify module boundaries
|
|
198
|
+
- Map feature areas
|
|
199
|
+
|
|
200
|
+
**Test Files**:
|
|
201
|
+
|
|
202
|
+
- Tests provide usage examples and expected behavior
|
|
203
|
+
- Pattern: `**/*test*, **/*spec*, tests/**, __tests__/**`
|
|
204
|
+
|
|
205
|
+
**Configuration**:
|
|
206
|
+
|
|
207
|
+
- Configuration reveals setup and dependencies
|
|
208
|
+
- Files: `package.json`, `pom.xml`, `requirements.txt`, `Gemfile`, `go.mod`
|
|
209
|
+
- Config directories: `config/`, `.config/`, `conf/`
|
|
210
|
+
|
|
211
|
+
---
|
|
212
|
+
|
|
213
|
+
### Documentation Sources
|
|
214
|
+
|
|
215
|
+
**Project Documentation**:
|
|
216
|
+
|
|
217
|
+
- `.owflow/docs/**/*.md` - AI SDLC framework documentation
|
|
218
|
+
- `docs/**/*.md` - Project documentation
|
|
219
|
+
- `README.md`, `ARCHITECTURE.md`, `CONTRIBUTING.md` - Root docs
|
|
220
|
+
|
|
221
|
+
**Code Documentation**:
|
|
222
|
+
|
|
223
|
+
- Inline comments
|
|
224
|
+
- JSDoc, Javadoc, docstrings
|
|
225
|
+
- Header comments explaining purpose
|
|
226
|
+
|
|
227
|
+
**Standard Locations**:
|
|
228
|
+
|
|
229
|
+
```
|
|
230
|
+
docs/
|
|
231
|
+
architecture/
|
|
232
|
+
api/
|
|
233
|
+
guides/
|
|
234
|
+
standards/
|
|
235
|
+
.owflow/docs/
|
|
236
|
+
project/
|
|
237
|
+
standards/
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
---
|
|
241
|
+
|
|
242
|
+
### Configuration Sources
|
|
243
|
+
|
|
244
|
+
**Dependency Files**:
|
|
245
|
+
|
|
246
|
+
- JavaScript: `package.json`, `yarn.lock`
|
|
247
|
+
- Python: `requirements.txt`, `Pipfile`, `pyproject.toml`
|
|
248
|
+
- Java: `pom.xml`, `build.gradle`
|
|
249
|
+
- Ruby: `Gemfile`
|
|
250
|
+
- Go: `go.mod`
|
|
251
|
+
|
|
252
|
+
**Environment Configuration**:
|
|
253
|
+
|
|
254
|
+
- `.env.example` (never .env - contains secrets)
|
|
255
|
+
- `config/*.{json,yml,yaml,toml}`
|
|
256
|
+
- Environment-specific: `config/development.yml`, `config/production.yml`
|
|
257
|
+
|
|
258
|
+
**Infrastructure Configuration**:
|
|
259
|
+
|
|
260
|
+
- `docker-compose.yml`
|
|
261
|
+
- `Dockerfile`
|
|
262
|
+
- `kubernetes/*.yaml`
|
|
263
|
+
- `.github/workflows/*.yml` (CI/CD)
|
|
264
|
+
|
|
265
|
+
---
|
|
266
|
+
|
|
267
|
+
### External Sources
|
|
268
|
+
|
|
269
|
+
**Framework Documentation**:
|
|
270
|
+
|
|
271
|
+
- Official docs for frameworks used (React, Django, Spring, Rails, etc.)
|
|
272
|
+
- Version-specific documentation (match versions in project)
|
|
273
|
+
|
|
274
|
+
**Best Practices**:
|
|
275
|
+
|
|
276
|
+
- Official style guides
|
|
277
|
+
- Industry standards (OWASP, W3C, IETF RFCs)
|
|
278
|
+
- Authoritative blogs and articles
|
|
279
|
+
|
|
280
|
+
**Academic Sources**:
|
|
281
|
+
|
|
282
|
+
- Research papers (if applicable)
|
|
283
|
+
- Technical specifications
|
|
284
|
+
- Standards documents
|
|
285
|
+
|
|
286
|
+
**Caution**: Validate external sources are:
|
|
287
|
+
|
|
288
|
+
- Authoritative (official or widely recognized)
|
|
289
|
+
- Current (not outdated)
|
|
290
|
+
- Applicable (matches project context)
|
|
291
|
+
|
|
292
|
+
---
|
|
293
|
+
|
|
294
|
+
## Information Gathering Strategies
|
|
295
|
+
|
|
296
|
+
### Iterative Deepening Strategy
|
|
297
|
+
|
|
298
|
+
**Phase 1: Broad Discovery** (fast, high-level)
|
|
299
|
+
|
|
300
|
+
- Use Glob to find all potentially relevant files
|
|
301
|
+
- Quick scan of directory structure
|
|
302
|
+
- Identify major areas
|
|
303
|
+
|
|
304
|
+
**Phase 2: Targeted Reading** (moderate depth)
|
|
305
|
+
|
|
306
|
+
- Read key files completely
|
|
307
|
+
- Extract main components and patterns
|
|
308
|
+
- Identify integration points
|
|
309
|
+
|
|
310
|
+
**Phase 3: Deep Dive** (detailed analysis)
|
|
311
|
+
|
|
312
|
+
- Trace specific flows
|
|
313
|
+
- Understand implementation details
|
|
314
|
+
- Map dependencies
|
|
315
|
+
|
|
316
|
+
**Phase 4: Verification** (validation)
|
|
317
|
+
|
|
318
|
+
- Cross-reference findings
|
|
319
|
+
- Validate understanding with tests
|
|
320
|
+
- Identify gaps
|
|
321
|
+
|
|
322
|
+
**Adaptation**: Skip or combine phases based on research complexity
|
|
323
|
+
|
|
324
|
+
---
|
|
325
|
+
|
|
326
|
+
### Multi-Source Triangulation Strategy
|
|
327
|
+
|
|
328
|
+
**Purpose**: Validate findings through multiple independent sources
|
|
329
|
+
|
|
330
|
+
**Approach**:
|
|
331
|
+
|
|
332
|
+
1. Gather information from source type A (e.g., code)
|
|
333
|
+
2. Gather information from source type B (e.g., docs)
|
|
334
|
+
3. Gather information from source type C (e.g., tests)
|
|
335
|
+
4. Compare findings across sources
|
|
336
|
+
5. High confidence: Sources agree
|
|
337
|
+
6. Medium confidence: Some agreement
|
|
338
|
+
7. Low confidence: Sources disagree or single source only
|
|
339
|
+
|
|
340
|
+
**Example**:
|
|
341
|
+
|
|
342
|
+
- **Code** says authentication uses JWT
|
|
343
|
+
- **Configuration** shows jwt library in dependencies
|
|
344
|
+
- **Tests** validate JWT token generation
|
|
345
|
+
- **Conclusion**: High confidence - JWT authentication confirmed by 3 sources
|
|
346
|
+
|
|
347
|
+
---
|
|
348
|
+
|
|
349
|
+
### Progressive Refinement Strategy
|
|
350
|
+
|
|
351
|
+
**Purpose**: Start broad, progressively narrow focus
|
|
352
|
+
|
|
353
|
+
**Approach**:
|
|
354
|
+
|
|
355
|
+
1. **Start Broad**: Search entire codebase for relevant terms
|
|
356
|
+
2. **Initial Filtering**: Identify most relevant directories/files
|
|
357
|
+
3. **Focused Investigation**: Deep dive into filtered set
|
|
358
|
+
4. **Targeted Expansion**: Expand to related areas as needed
|
|
359
|
+
5. **Final Verification**: Confirm understanding is complete
|
|
360
|
+
|
|
361
|
+
**Example**:
|
|
362
|
+
|
|
363
|
+
1. Search for "payment" across entire codebase → 150 files
|
|
364
|
+
2. Filter to payment module → 30 files
|
|
365
|
+
3. Read core payment service files → 5 files
|
|
366
|
+
4. Expand to payment gateway integration → 8 more files
|
|
367
|
+
5. Verify with payment tests → 10 test files
|
|
368
|
+
|
|
369
|
+
---
|
|
370
|
+
|
|
371
|
+
## Analysis Frameworks
|
|
372
|
+
|
|
373
|
+
### Technical Research Analysis Framework
|
|
374
|
+
|
|
375
|
+
**Component Inventory**:
|
|
376
|
+
|
|
377
|
+
- List all components/modules/classes
|
|
378
|
+
- Categorize by responsibility (service, controller, model, util)
|
|
379
|
+
- Map directory structure to logical architecture
|
|
380
|
+
|
|
381
|
+
**Pattern Recognition**:
|
|
382
|
+
|
|
383
|
+
- Identify design patterns (singleton, factory, strategy, etc.)
|
|
384
|
+
- Recognize architectural patterns (MVC, layered, microservices)
|
|
385
|
+
- Document consistency of pattern application
|
|
386
|
+
|
|
387
|
+
**Flow Analysis**:
|
|
388
|
+
|
|
389
|
+
- Trace request/response flows
|
|
390
|
+
- Map data transformations
|
|
391
|
+
- Document control flow (decision points, loops)
|
|
392
|
+
- Identify error handling flows
|
|
393
|
+
|
|
394
|
+
**Integration Mapping**:
|
|
395
|
+
|
|
396
|
+
- Internal dependencies (module A depends on module B)
|
|
397
|
+
- External dependencies (third-party libraries, external APIs)
|
|
398
|
+
- Database interactions
|
|
399
|
+
- Infrastructure dependencies
|
|
400
|
+
|
|
401
|
+
**Quality Assessment**:
|
|
402
|
+
|
|
403
|
+
- Code quality (duplication, complexity, readability)
|
|
404
|
+
- Test coverage (what's tested, what's not)
|
|
405
|
+
- Documentation quality (comprehensive, missing, outdated)
|
|
406
|
+
- Consistency (naming, structure, patterns)
|
|
407
|
+
|
|
408
|
+
---
|
|
409
|
+
|
|
410
|
+
### Requirements Research Analysis Framework
|
|
411
|
+
|
|
412
|
+
**Requirement Extraction**:
|
|
413
|
+
|
|
414
|
+
- Explicit requirements (stated directly)
|
|
415
|
+
- Implicit requirements (inferred from context)
|
|
416
|
+
- Non-functional requirements (performance, security, scalability)
|
|
417
|
+
|
|
418
|
+
**Categorization**:
|
|
419
|
+
|
|
420
|
+
- By feature area (reporting, authentication, data management)
|
|
421
|
+
- By stakeholder (admin, user, developer, operations)
|
|
422
|
+
- By priority (must-have, should-have, nice-to-have)
|
|
423
|
+
- By type (functional, non-functional, constraint)
|
|
424
|
+
|
|
425
|
+
**Gap Analysis**:
|
|
426
|
+
|
|
427
|
+
- Missing requirements (not specified)
|
|
428
|
+
- Ambiguous requirements (unclear)
|
|
429
|
+
- Conflicting requirements (contradictory)
|
|
430
|
+
- Incomplete requirements (missing details)
|
|
431
|
+
|
|
432
|
+
**Acceptance Criteria**:
|
|
433
|
+
|
|
434
|
+
- Testable conditions for requirement completion
|
|
435
|
+
- Success metrics
|
|
436
|
+
- User validation approach
|
|
437
|
+
|
|
438
|
+
---
|
|
439
|
+
|
|
440
|
+
### Literature Research Analysis Framework
|
|
441
|
+
|
|
442
|
+
**Source Evaluation**:
|
|
443
|
+
|
|
444
|
+
- Authority (official docs, recognized experts)
|
|
445
|
+
- Currency (up-to-date vs outdated)
|
|
446
|
+
- Relevance (applicable to project context)
|
|
447
|
+
- Completeness (comprehensive vs superficial)
|
|
448
|
+
|
|
449
|
+
**Approach Comparison**:
|
|
450
|
+
|
|
451
|
+
- Approach A: Description, pros, cons, use cases
|
|
452
|
+
- Approach B: Description, pros, cons, use cases
|
|
453
|
+
- Trade-offs: When to use which
|
|
454
|
+
|
|
455
|
+
**Applicability Assessment**:
|
|
456
|
+
|
|
457
|
+
- Technical fit (compatible with tech stack)
|
|
458
|
+
- Constraint fit (works within limitations)
|
|
459
|
+
- Resource fit (feasible with available resources)
|
|
460
|
+
- Risk assessment (implementation risks)
|
|
461
|
+
|
|
462
|
+
**Recommendation Synthesis**:
|
|
463
|
+
|
|
464
|
+
- What to adopt (and why)
|
|
465
|
+
- What to adapt (and how)
|
|
466
|
+
- What to avoid (and why)
|
|
467
|
+
|
|
468
|
+
---
|
|
469
|
+
|
|
470
|
+
## Research Execution Patterns
|
|
471
|
+
|
|
472
|
+
### Serial Execution Pattern
|
|
473
|
+
|
|
474
|
+
**When**: Phases depend on each other
|
|
475
|
+
|
|
476
|
+
**Flow**:
|
|
477
|
+
|
|
478
|
+
1. Complete Phase 1 fully
|
|
479
|
+
2. Use Phase 1 outputs for Phase 2
|
|
480
|
+
3. Complete Phase 2 fully
|
|
481
|
+
4. Continue sequentially
|
|
482
|
+
|
|
483
|
+
**Example**: Discovery → Reading → Deep Dive → Synthesis
|
|
484
|
+
|
|
485
|
+
---
|
|
486
|
+
|
|
487
|
+
### Parallel Execution Pattern
|
|
488
|
+
|
|
489
|
+
**When**: Independent sub-questions can be investigated simultaneously
|
|
490
|
+
|
|
491
|
+
**Flow**:
|
|
492
|
+
|
|
493
|
+
1. Decompose research question into independent sub-questions
|
|
494
|
+
2. Investigate each sub-question in parallel
|
|
495
|
+
3. Synthesize findings together
|
|
496
|
+
|
|
497
|
+
**Example**:
|
|
498
|
+
|
|
499
|
+
- Sub-question A: "How is authentication implemented?" (codebase)
|
|
500
|
+
- Sub-question B: "What are authentication best practices?" (literature)
|
|
501
|
+
- Both investigated independently, then synthesized
|
|
502
|
+
|
|
503
|
+
---
|
|
504
|
+
|
|
505
|
+
### Spiral Pattern
|
|
506
|
+
|
|
507
|
+
**When**: Understanding develops iteratively through repeated cycles
|
|
508
|
+
|
|
509
|
+
**Flow**:
|
|
510
|
+
|
|
511
|
+
1. Cycle 1: Surface-level understanding across all areas
|
|
512
|
+
2. Cycle 2: Moderate depth across all areas (informed by Cycle 1)
|
|
513
|
+
3. Cycle 3: Deep understanding in key areas (informed by Cycle 2)
|
|
514
|
+
|
|
515
|
+
**Example**:
|
|
516
|
+
|
|
517
|
+
- Cycle 1: Find all auth-related files (broad discovery)
|
|
518
|
+
- Cycle 2: Read main auth files (targeted reading)
|
|
519
|
+
- Cycle 3: Trace auth flow end-to-end (deep dive)
|
|
520
|
+
|
|
521
|
+
---
|
|
522
|
+
|
|
523
|
+
## Success Criteria Patterns
|
|
524
|
+
|
|
525
|
+
### Technical Research Success Criteria
|
|
526
|
+
|
|
527
|
+
✅ **Complete Component Inventory**: All major components identified
|
|
528
|
+
✅ **Documented Flows**: Key execution paths traced and documented
|
|
529
|
+
✅ **Pattern Recognition**: Design and architectural patterns identified
|
|
530
|
+
✅ **Integration Mapping**: Dependencies and integration points mapped
|
|
531
|
+
✅ **Evidence-Based**: All claims backed by code references
|
|
532
|
+
|
|
533
|
+
---
|
|
534
|
+
|
|
535
|
+
### Requirements Research Success Criteria
|
|
536
|
+
|
|
537
|
+
✅ **Comprehensive Coverage**: All requirements sources consulted
|
|
538
|
+
✅ **Categorized Requirements**: Requirements organized by priority, stakeholder, type
|
|
539
|
+
✅ **Gaps Identified**: Missing, ambiguous, conflicting requirements documented
|
|
540
|
+
✅ **Acceptance Criteria**: Clear success conditions defined
|
|
541
|
+
✅ **Stakeholder Alignment**: Requirements mapped to stakeholder needs
|
|
542
|
+
|
|
543
|
+
---
|
|
544
|
+
|
|
545
|
+
### Literature Research Success Criteria
|
|
546
|
+
|
|
547
|
+
✅ **Authoritative Sources**: Multiple credible sources consulted
|
|
548
|
+
✅ **Comparative Analysis**: Different approaches compared
|
|
549
|
+
✅ **Trade-offs Understood**: Pros/cons of each approach documented
|
|
550
|
+
✅ **Applicability Assessed**: Recommendations match project constraints
|
|
551
|
+
✅ **Actionable Recommendations**: Clear guidance for next steps
|
|
552
|
+
|
|
553
|
+
---
|
|
554
|
+
|
|
555
|
+
## Confidence Scoring Patterns
|
|
556
|
+
|
|
557
|
+
### High Confidence (90-100%)
|
|
558
|
+
|
|
559
|
+
**Indicators**:
|
|
560
|
+
|
|
561
|
+
- Multiple independent sources confirm
|
|
562
|
+
- Direct evidence (code, explicit docs)
|
|
563
|
+
- No contradictions found
|
|
564
|
+
- Verified through tests or usage examples
|
|
565
|
+
|
|
566
|
+
**Example**: "Authentication uses Passport.js with JWT strategy"
|
|
567
|
+
|
|
568
|
+
- Evidence: Code imports, configuration, tests, documentation all confirm
|
|
569
|
+
|
|
570
|
+
---
|
|
571
|
+
|
|
572
|
+
### Medium Confidence (60-89%)
|
|
573
|
+
|
|
574
|
+
**Indicators**:
|
|
575
|
+
|
|
576
|
+
- Single source or indirect evidence
|
|
577
|
+
- Inferred from patterns or context
|
|
578
|
+
- Minor contradictions or gaps
|
|
579
|
+
- Partial verification
|
|
580
|
+
|
|
581
|
+
**Example**: "Token refresh might be handled by client"
|
|
582
|
+
|
|
583
|
+
- Evidence: Server doesn't have refresh endpoint, but client code unclear
|
|
584
|
+
|
|
585
|
+
---
|
|
586
|
+
|
|
587
|
+
### Low Confidence (<60%)
|
|
588
|
+
|
|
589
|
+
**Indicators**:
|
|
590
|
+
|
|
591
|
+
- Speculation or assumption
|
|
592
|
+
- Contradictory evidence
|
|
593
|
+
- No direct confirmation
|
|
594
|
+
- Significant gaps in understanding
|
|
595
|
+
|
|
596
|
+
**Example**: "OAuth integration appears incomplete"
|
|
597
|
+
|
|
598
|
+
- Evidence: OAuth packages installed but no routes configured (ambiguous intent)
|
|
599
|
+
|
|
600
|
+
---
|
|
601
|
+
|
|
602
|
+
## Adaptation Strategies
|
|
603
|
+
|
|
604
|
+
### Adjust Scope Based on Findings
|
|
605
|
+
|
|
606
|
+
**Expand Scope**:
|
|
607
|
+
|
|
608
|
+
- If initial findings reveal related areas that must be understood
|
|
609
|
+
- If dependencies require understanding of additional components
|
|
610
|
+
|
|
611
|
+
**Narrow Scope**:
|
|
612
|
+
|
|
613
|
+
- If research question can be answered with subset of sources
|
|
614
|
+
- If areas are well-documented and don't need deep investigation
|
|
615
|
+
|
|
616
|
+
---
|
|
617
|
+
|
|
618
|
+
### Adjust Depth Based on Complexity
|
|
619
|
+
|
|
620
|
+
**Increase Depth**:
|
|
621
|
+
|
|
622
|
+
- If implementations are complex or non-standard
|
|
623
|
+
- If documentation is missing or incomplete
|
|
624
|
+
- If contradictions need resolution
|
|
625
|
+
|
|
626
|
+
**Decrease Depth**:
|
|
627
|
+
|
|
628
|
+
- If implementations are standard and well-documented
|
|
629
|
+
- If patterns are consistent and clear
|
|
630
|
+
- If multiple sources confirm understanding
|
|
631
|
+
|
|
632
|
+
---
|
|
633
|
+
|
|
634
|
+
### Adjust Timeline Based on Findings
|
|
635
|
+
|
|
636
|
+
**Extend Timeline**:
|
|
637
|
+
|
|
638
|
+
- Significant gaps in documentation
|
|
639
|
+
- Complex implementations requiring deep analysis
|
|
640
|
+
- Multiple contradictions to resolve
|
|
641
|
+
|
|
642
|
+
**Shorten Timeline**:
|
|
643
|
+
|
|
644
|
+
- Excellent documentation available
|
|
645
|
+
- Standard implementations
|
|
646
|
+
- High confidence early findings
|
|
647
|
+
|
|
648
|
+
---
|
|
649
|
+
|
|
650
|
+
## Common Pitfalls and Mitigations
|
|
651
|
+
|
|
652
|
+
### Pitfall: Scope Creep
|
|
653
|
+
|
|
654
|
+
**Problem**: Research expands beyond original question
|
|
655
|
+
**Mitigation**: Continuously refer back to research question; document scope expansions explicitly
|
|
656
|
+
|
|
657
|
+
---
|
|
658
|
+
|
|
659
|
+
### Pitfall: Insufficient Evidence
|
|
660
|
+
|
|
661
|
+
**Problem**: Making claims without adequate proof
|
|
662
|
+
**Mitigation**: Maintain strict citation discipline; mark low-confidence findings
|
|
663
|
+
|
|
664
|
+
---
|
|
665
|
+
|
|
666
|
+
### Pitfall: Missing Integration Points
|
|
667
|
+
|
|
668
|
+
**Problem**: Understanding components in isolation without seeing how they connect
|
|
669
|
+
**Mitigation**: Explicitly include integration mapping phase
|
|
670
|
+
|
|
671
|
+
---
|
|
672
|
+
|
|
673
|
+
### Pitfall: Outdated Information
|
|
674
|
+
|
|
675
|
+
**Problem**: Relying on old documentation or examples
|
|
676
|
+
**Mitigation**: Check file timestamps; prioritize recently modified files; verify docs match code
|
|
677
|
+
|
|
678
|
+
---
|
|
679
|
+
|
|
680
|
+
### Pitfall: Over-Confidence
|
|
681
|
+
|
|
682
|
+
**Problem**: Stating findings with more confidence than evidence warrants
|
|
683
|
+
**Mitigation**: Use confidence scoring; acknowledge limitations; document uncertainties
|
|
684
|
+
|
|
685
|
+
---
|
|
686
|
+
|
|
687
|
+
## Methodology Selection Decision Tree
|
|
688
|
+
|
|
689
|
+
```
|
|
690
|
+
Research Question Received
|
|
691
|
+
|
|
|
692
|
+
v
|
|
693
|
+
Keywords Indicate Type?
|
|
694
|
+
|
|
|
695
|
+
+----+----+
|
|
696
|
+
| |
|
|
697
|
+
Technical Requirements Literature Mixed
|
|
698
|
+
| | | |
|
|
699
|
+
v v v v
|
|
700
|
+
Codebase Documentation Web All
|
|
701
|
+
Analysis Synthesis Research Methods
|
|
702
|
+
| | | |
|
|
703
|
+
v v v v
|
|
704
|
+
Iterative Extraction Comparative Hybrid
|
|
705
|
+
Deepening Analysis Analysis Approach
|
|
706
|
+
```
|
|
707
|
+
|
|
708
|
+
---
|
|
709
|
+
|
|
710
|
+
This reference provides patterns and frameworks. Actual implementation adapts these concepts to specific research contexts.
|