gsdd-cli 0.18.4 → 0.19.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.
Files changed (100) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +625 -607
  3. package/agents/DISTILLATION.md +421 -421
  4. package/agents/README.md +62 -62
  5. package/agents/approach-explorer.md +361 -361
  6. package/agents/debugger.md +82 -82
  7. package/agents/executor.md +394 -394
  8. package/agents/integration-checker.md +318 -318
  9. package/agents/mapper.md +103 -103
  10. package/agents/planner.md +313 -313
  11. package/agents/researcher.md +84 -84
  12. package/agents/roadmapper.md +296 -296
  13. package/agents/synthesizer.md +236 -236
  14. package/agents/verifier.md +337 -337
  15. package/bin/adapters/agents.mjs +34 -34
  16. package/bin/adapters/claude.mjs +191 -191
  17. package/bin/adapters/codex.mjs +85 -85
  18. package/bin/adapters/index.mjs +20 -20
  19. package/bin/adapters/opencode.mjs +278 -278
  20. package/bin/gsdd.mjs +123 -116
  21. package/bin/lib/cli-utils.mjs +28 -28
  22. package/bin/lib/evidence-contract.mjs +112 -112
  23. package/bin/lib/file-ops.mjs +209 -161
  24. package/bin/lib/health-truth.mjs +181 -178
  25. package/bin/lib/health.mjs +265 -235
  26. package/bin/lib/init-flow.mjs +252 -236
  27. package/bin/lib/init-prompts.mjs +248 -247
  28. package/bin/lib/init-runtime.mjs +225 -212
  29. package/bin/lib/init.mjs +17 -17
  30. package/bin/lib/lifecycle-preflight.mjs +360 -333
  31. package/bin/lib/lifecycle-state.mjs +351 -267
  32. package/bin/lib/manifest.mjs +116 -114
  33. package/bin/lib/models.mjs +411 -411
  34. package/bin/lib/phase.mjs +397 -378
  35. package/bin/lib/plan-constants.mjs +30 -30
  36. package/bin/lib/provenance.mjs +109 -106
  37. package/bin/lib/rendering.mjs +178 -130
  38. package/bin/lib/runtime-freshness.mjs +221 -219
  39. package/bin/lib/templates.mjs +225 -224
  40. package/bin/lib/workspace-root.mjs +132 -0
  41. package/distilled/DESIGN.md +2347 -2327
  42. package/distilled/EVIDENCE-INDEX.md +397 -394
  43. package/distilled/README.md +196 -193
  44. package/distilled/SKILL.md +86 -85
  45. package/distilled/templates/agents.block.md +21 -21
  46. package/distilled/templates/agents.md +6 -6
  47. package/distilled/templates/approach.md +232 -232
  48. package/distilled/templates/auth-matrix.md +78 -78
  49. package/distilled/templates/brownfield-change/CHANGE.md +99 -0
  50. package/distilled/templates/brownfield-change/HANDOFF.md +38 -0
  51. package/distilled/templates/brownfield-change/VERIFICATION.md +56 -0
  52. package/distilled/templates/codebase/architecture.md +110 -110
  53. package/distilled/templates/codebase/concerns.md +95 -95
  54. package/distilled/templates/codebase/conventions.md +193 -193
  55. package/distilled/templates/codebase/stack.md +96 -96
  56. package/distilled/templates/delegates/approach-explorer.md +25 -25
  57. package/distilled/templates/delegates/mapper-arch.md +26 -26
  58. package/distilled/templates/delegates/mapper-concerns.md +27 -27
  59. package/distilled/templates/delegates/mapper-quality.md +28 -28
  60. package/distilled/templates/delegates/mapper-tech.md +25 -25
  61. package/distilled/templates/delegates/plan-checker.md +68 -68
  62. package/distilled/templates/delegates/researcher-architecture.md +30 -30
  63. package/distilled/templates/delegates/researcher-features.md +30 -30
  64. package/distilled/templates/delegates/researcher-pitfalls.md +30 -30
  65. package/distilled/templates/delegates/researcher-stack.md +30 -30
  66. package/distilled/templates/delegates/researcher-synthesizer.md +31 -31
  67. package/distilled/templates/research/architecture.md +57 -57
  68. package/distilled/templates/research/features.md +23 -23
  69. package/distilled/templates/research/pitfalls.md +46 -46
  70. package/distilled/templates/research/stack.md +45 -45
  71. package/distilled/templates/research/summary.md +67 -67
  72. package/distilled/templates/roadmap.md +74 -62
  73. package/distilled/templates/spec.md +110 -110
  74. package/distilled/workflows/audit-milestone.md +275 -271
  75. package/distilled/workflows/complete-milestone.md +336 -332
  76. package/distilled/workflows/execute.md +454 -449
  77. package/distilled/workflows/map-codebase.md +253 -253
  78. package/distilled/workflows/new-milestone.md +242 -238
  79. package/distilled/workflows/new-project.md +398 -398
  80. package/distilled/workflows/pause.md +160 -156
  81. package/distilled/workflows/plan-milestone-gaps.md +183 -183
  82. package/distilled/workflows/plan.md +451 -447
  83. package/distilled/workflows/progress.md +227 -223
  84. package/distilled/workflows/quick.md +351 -347
  85. package/distilled/workflows/resume.md +220 -212
  86. package/distilled/workflows/verify-work.md +260 -260
  87. package/distilled/workflows/verify.md +431 -429
  88. package/docs/BROWNFIELD-PROOF.md +95 -95
  89. package/docs/RUNTIME-SUPPORT.md +93 -75
  90. package/docs/USER-GUIDE.md +440 -399
  91. package/docs/VERIFICATION-DISCIPLINE.md +59 -59
  92. package/docs/claude/context-monitor.md +98 -98
  93. package/docs/proof/consumer-node-cli/README.md +37 -37
  94. package/docs/proof/consumer-node-cli/ROADMAP.md +14 -14
  95. package/docs/proof/consumer-node-cli/SPEC.md +17 -17
  96. package/docs/proof/consumer-node-cli/brief.md +9 -9
  97. package/docs/proof/consumer-node-cli/phases/01-foundation/01-01-PLAN.md +34 -34
  98. package/docs/proof/consumer-node-cli/phases/01-foundation/01-01-SUMMARY.md +10 -10
  99. package/docs/proof/consumer-node-cli/phases/01-foundation/01-VERIFICATION.md +30 -30
  100. package/package.json +62 -61
@@ -1,31 +1,31 @@
1
- **Role contract:** Read `.planning/templates/roles/synthesizer.md` before starting. Follow its algorithm, quality guarantees, and anti-patterns.
2
-
3
- Synthesize the 4 research files into a single actionable SUMMARY.md.
4
-
5
- Read these files (all should exist):
6
- - `.planning/research/STACK.md`
7
- - `.planning/research/FEATURES.md`
8
- - `.planning/research/ARCHITECTURE.md`
9
- - `.planning/research/PITFALLS.md`
10
-
11
- Cross-reference them. Surface conflicts and dependencies between findings. Do NOT do new research — synthesize what exists.
12
-
13
- SUMMARY.md MUST include:
14
- 1. **Key Findings** — top 5-7 bullets across all 4 dimensions
15
- 2. **Implications for Roadmap** — suggested phase groupings derived from architecture build order + pitfall avoidance (this is the critical handoff to the roadmapper)
16
- 3. **Research Flags** — which phases need deeper research vs standard patterns
17
- 4. **Confidence Assessment** — per domain: stack / features / architecture / pitfalls
18
- 5. **Sources** — all sources cited across the 4 research files, deduplicated
19
-
20
- Use template: `.planning/templates/research/summary.md` (if it exists)
21
-
22
- <quality_gate>
23
- - [ ] "Implications for Roadmap" section populated with phase suggestions
24
- - [ ] Conflicts between research files surfaced (not hidden)
25
- - [ ] Confidence levels consistent with what researchers assigned
26
- - [ ] No new claims introduced (only synthesis)
27
- </quality_gate>
28
-
29
- Write to: `.planning/research/SUMMARY.md`
30
- Return: 5-7 bullet key findings to the Orchestrator when done.
31
- Guardrails: Max Agent Hops = 2. Do not do new research — synthesize only.
1
+ **Role contract:** Read `.planning/templates/roles/synthesizer.md` before starting. Follow its algorithm, quality guarantees, and anti-patterns.
2
+
3
+ Synthesize the 4 research files into a single actionable SUMMARY.md.
4
+
5
+ Read these files (all should exist):
6
+ - `.planning/research/STACK.md`
7
+ - `.planning/research/FEATURES.md`
8
+ - `.planning/research/ARCHITECTURE.md`
9
+ - `.planning/research/PITFALLS.md`
10
+
11
+ Cross-reference them. Surface conflicts and dependencies between findings. Do NOT do new research — synthesize what exists.
12
+
13
+ SUMMARY.md MUST include:
14
+ 1. **Key Findings** — top 5-7 bullets across all 4 dimensions
15
+ 2. **Implications for Roadmap** — suggested phase groupings derived from architecture build order + pitfall avoidance (this is the critical handoff to the roadmapper)
16
+ 3. **Research Flags** — which phases need deeper research vs standard patterns
17
+ 4. **Confidence Assessment** — per domain: stack / features / architecture / pitfalls
18
+ 5. **Sources** — all sources cited across the 4 research files, deduplicated
19
+
20
+ Use template: `.planning/templates/research/summary.md` (if it exists)
21
+
22
+ <quality_gate>
23
+ - [ ] "Implications for Roadmap" section populated with phase suggestions
24
+ - [ ] Conflicts between research files surfaced (not hidden)
25
+ - [ ] Confidence levels consistent with what researchers assigned
26
+ - [ ] No new claims introduced (only synthesis)
27
+ </quality_gate>
28
+
29
+ Write to: `.planning/research/SUMMARY.md`
30
+ Return: 5-7 bullet key findings to the Orchestrator when done.
31
+ Guardrails: Max Agent Hops = 2. Do not do new research — synthesize only.
@@ -1,57 +1,57 @@
1
- # Architecture Research Template
2
-
3
- Use when researching system structure and patterns for a project or phase.
4
-
5
- Write to: `.planning/research/ARCHITECTURE.md`
6
-
7
- ---
8
-
9
- ```markdown
10
- # Architecture Research
11
-
12
- **Domain**: [what we're building]
13
- **Researched**: [date]
14
-
15
- ## Recommended Structure
16
-
17
- ```
18
- src/
19
- ├── [folder]/ # [purpose]
20
- ├── [folder]/ # [purpose]
21
- └── [folder]/ # [purpose]
22
- ```
23
-
24
- ## Key Patterns
25
-
26
- ### [Pattern Name]
27
- **What**: [description]
28
- **When**: [when to use it]
29
- **Example**:
30
- ```
31
- [brief code or pseudo-code snippet]
32
- ```
33
-
34
- ### [Pattern Name]
35
- **What**: [description]
36
- **When**: [when to use it]
37
-
38
- ## Anti-Patterns
39
-
40
- - **[Don't do this]**: [why it's bad] → [do this instead]
41
- - **[Don't do this]**: [why it's bad] → [do this instead]
42
-
43
- ## Component Boundaries
44
-
45
- [Which components talk to which, data flow direction, build order implications]
46
-
47
- ---
48
- *Confidence: [HIGH/MEDIUM/LOW]*
49
- ```
50
-
51
- ## Guidelines
52
-
53
- - **Structure** should reflect the actual folder layout you'd create
54
- - **Patterns** should include real examples, not just names
55
- - **Anti-patterns** are as valuable as patterns — they prevent common mistakes
56
- - **Component boundaries** inform phase ordering in the roadmap
57
- - Keep to ~40-50 lines when filled out
1
+ # Architecture Research Template
2
+
3
+ Use when researching system structure and patterns for a project or phase.
4
+
5
+ Write to: `.planning/research/ARCHITECTURE.md`
6
+
7
+ ---
8
+
9
+ ```markdown
10
+ # Architecture Research
11
+
12
+ **Domain**: [what we're building]
13
+ **Researched**: [date]
14
+
15
+ ## Recommended Structure
16
+
17
+ ```
18
+ src/
19
+ ├── [folder]/ # [purpose]
20
+ ├── [folder]/ # [purpose]
21
+ └── [folder]/ # [purpose]
22
+ ```
23
+
24
+ ## Key Patterns
25
+
26
+ ### [Pattern Name]
27
+ **What**: [description]
28
+ **When**: [when to use it]
29
+ **Example**:
30
+ ```
31
+ [brief code or pseudo-code snippet]
32
+ ```
33
+
34
+ ### [Pattern Name]
35
+ **What**: [description]
36
+ **When**: [when to use it]
37
+
38
+ ## Anti-Patterns
39
+
40
+ - **[Don't do this]**: [why it's bad] → [do this instead]
41
+ - **[Don't do this]**: [why it's bad] → [do this instead]
42
+
43
+ ## Component Boundaries
44
+
45
+ [Which components talk to which, data flow direction, build order implications]
46
+
47
+ ---
48
+ *Confidence: [HIGH/MEDIUM/LOW]*
49
+ ```
50
+
51
+ ## Guidelines
52
+
53
+ - **Structure** should reflect the actual folder layout you'd create
54
+ - **Patterns** should include real examples, not just names
55
+ - **Anti-patterns** are as valuable as patterns — they prevent common mistakes
56
+ - **Component boundaries** inform phase ordering in the roadmap
57
+ - Keep to ~40-50 lines when filled out
@@ -1,23 +1,23 @@
1
- # FEATURES.md — Feature Landscape
2
-
3
- ## Table Stakes
4
- Features users expect. Without them, your product feels broken.
5
-
6
- - [ ] [feature] — [why it's expected]
7
- - [ ] [feature] — [why it's expected]
8
-
9
- ## Differentiators
10
- Features that set you apart from competitors.
11
-
12
- - [ ] [feature] — [what makes this unique]
13
- - [ ] [feature] — [competitive advantage]
14
-
15
- ## Anti-Features
16
- Things to deliberately NOT build. Complexity traps.
17
-
18
- - [ ] [feature to avoid] — [why: complexity trap / scope creep / premature optimization]
19
- - [ ] [feature to avoid] — [why]
20
-
21
- ## Sources
22
- - [Competitor 1] — [what they do well / poorly]
23
- - [Competitor 2] — [what they do well / poorly]
1
+ # FEATURES.md — Feature Landscape
2
+
3
+ ## Table Stakes
4
+ Features users expect. Without them, your product feels broken.
5
+
6
+ - [ ] [feature] — [why it's expected]
7
+ - [ ] [feature] — [why it's expected]
8
+
9
+ ## Differentiators
10
+ Features that set you apart from competitors.
11
+
12
+ - [ ] [feature] — [what makes this unique]
13
+ - [ ] [feature] — [competitive advantage]
14
+
15
+ ## Anti-Features
16
+ Things to deliberately NOT build. Complexity traps.
17
+
18
+ - [ ] [feature to avoid] — [why: complexity trap / scope creep / premature optimization]
19
+ - [ ] [feature to avoid] — [why]
20
+
21
+ ## Sources
22
+ - [Competitor 1] — [what they do well / poorly]
23
+ - [Competitor 2] — [what they do well / poorly]
@@ -1,46 +1,46 @@
1
- # Pitfalls Research Template
2
-
3
- Use when researching common mistakes and gotchas for a domain or technology.
4
-
5
- Write to: `.planning/research/PITFALLS.md`
6
-
7
- ---
8
-
9
- ```markdown
10
- # Pitfalls
11
-
12
- **Domain**: [what we're building]
13
- **Researched**: [date]
14
-
15
- ## Pitfall 1: [Name]
16
-
17
- **What goes wrong**: [description]
18
- **Why it happens**: [root cause]
19
- **How to avoid**: [prevention strategy]
20
- **Warning signs**: [how to detect early]
21
-
22
- ## Pitfall 2: [Name]
23
-
24
- **What goes wrong**: [description]
25
- **Why it happens**: [root cause]
26
- **How to avoid**: [prevention strategy]
27
- **Warning signs**: [how to detect early]
28
-
29
- ## Pitfall 3: [Name]
30
-
31
- **What goes wrong**: [description]
32
- **Why it happens**: [root cause]
33
- **How to avoid**: [prevention strategy]
34
- **Warning signs**: [how to detect early]
35
-
36
- ---
37
- *These pitfalls should inform verification criteria in the roadmap.*
38
- ```
39
-
40
- ## Guidelines
41
-
42
- - **Be specific to the domain** — not generic advice like "write tests"
43
- - **Warning signs** are crucial — they let you catch problems early
44
- - **Prevention strategies** should be actionable, not vague
45
- - 3-5 pitfalls is the sweet spot — more than 5 and none get remembered
46
- - **Link to phases**: note which roadmap phase should address each pitfall
1
+ # Pitfalls Research Template
2
+
3
+ Use when researching common mistakes and gotchas for a domain or technology.
4
+
5
+ Write to: `.planning/research/PITFALLS.md`
6
+
7
+ ---
8
+
9
+ ```markdown
10
+ # Pitfalls
11
+
12
+ **Domain**: [what we're building]
13
+ **Researched**: [date]
14
+
15
+ ## Pitfall 1: [Name]
16
+
17
+ **What goes wrong**: [description]
18
+ **Why it happens**: [root cause]
19
+ **How to avoid**: [prevention strategy]
20
+ **Warning signs**: [how to detect early]
21
+
22
+ ## Pitfall 2: [Name]
23
+
24
+ **What goes wrong**: [description]
25
+ **Why it happens**: [root cause]
26
+ **How to avoid**: [prevention strategy]
27
+ **Warning signs**: [how to detect early]
28
+
29
+ ## Pitfall 3: [Name]
30
+
31
+ **What goes wrong**: [description]
32
+ **Why it happens**: [root cause]
33
+ **How to avoid**: [prevention strategy]
34
+ **Warning signs**: [how to detect early]
35
+
36
+ ---
37
+ *These pitfalls should inform verification criteria in the roadmap.*
38
+ ```
39
+
40
+ ## Guidelines
41
+
42
+ - **Be specific to the domain** — not generic advice like "write tests"
43
+ - **Warning signs** are crucial — they let you catch problems early
44
+ - **Prevention strategies** should be actionable, not vague
45
+ - 3-5 pitfalls is the sweet spot — more than 5 and none get remembered
46
+ - **Link to phases**: note which roadmap phase should address each pitfall
@@ -1,45 +1,45 @@
1
- # Stack Research Template
2
-
3
- Use when researching the technology stack for a project or phase.
4
-
5
- Write to: `.planning/research/STACK.md`
6
-
7
- ---
8
-
9
- ```markdown
10
- # Stack Research
11
-
12
- **Domain**: [what we're building]
13
- **Researched**: [date]
14
-
15
- ## Recommended Stack
16
-
17
- | Library/Tool | Version | Purpose | Why This One |
18
- |-------------|---------|---------|--------------|
19
- | [name] | [ver] | [what it does] | [why it's the right choice] |
20
- | [name] | [ver] | [what it does] | [why it's the right choice] |
21
-
22
- ## Alternatives Considered
23
-
24
- | Recommended | Alternative | Why Not |
25
- |-------------|------------|---------|
26
- | [choice] | [option] | [tradeoff] |
27
-
28
- ## Don't Hand-Roll
29
-
30
- Problems that look simple but have battle-tested solutions:
31
-
32
- | Problem | Don't Build | Use Instead | Why |
33
- |---------|------------|-------------|-----|
34
- | [problem] | [custom solution] | [library] | [edge cases you'd miss] |
35
-
36
- ---
37
- *Confidence: [HIGH/MEDIUM/LOW]*
38
- ```
39
-
40
- ## Guidelines
41
-
42
- - **Specific versions** — not "latest", give actual numbers
43
- - **"Why This One"** matters more than "What It Does"
44
- - **Don't Hand-Roll** is the highest-value section — prevents wasted effort on solved problems
45
- - Keep to ~30-40 lines when filled out
1
+ # Stack Research Template
2
+
3
+ Use when researching the technology stack for a project or phase.
4
+
5
+ Write to: `.planning/research/STACK.md`
6
+
7
+ ---
8
+
9
+ ```markdown
10
+ # Stack Research
11
+
12
+ **Domain**: [what we're building]
13
+ **Researched**: [date]
14
+
15
+ ## Recommended Stack
16
+
17
+ | Library/Tool | Version | Purpose | Why This One |
18
+ |-------------|---------|---------|--------------|
19
+ | [name] | [ver] | [what it does] | [why it's the right choice] |
20
+ | [name] | [ver] | [what it does] | [why it's the right choice] |
21
+
22
+ ## Alternatives Considered
23
+
24
+ | Recommended | Alternative | Why Not |
25
+ |-------------|------------|---------|
26
+ | [choice] | [option] | [tradeoff] |
27
+
28
+ ## Don't Hand-Roll
29
+
30
+ Problems that look simple but have battle-tested solutions:
31
+
32
+ | Problem | Don't Build | Use Instead | Why |
33
+ |---------|------------|-------------|-----|
34
+ | [problem] | [custom solution] | [library] | [edge cases you'd miss] |
35
+
36
+ ---
37
+ *Confidence: [HIGH/MEDIUM/LOW]*
38
+ ```
39
+
40
+ ## Guidelines
41
+
42
+ - **Specific versions** — not "latest", give actual numbers
43
+ - **"Why This One"** matters more than "What It Does"
44
+ - **Don't Hand-Roll** is the highest-value section — prevents wasted effort on solved problems
45
+ - Keep to ~30-40 lines when filled out
@@ -1,67 +1,67 @@
1
- # Research Summary
2
-
3
- **Date:** [YYYY-MM-DD]
4
- **Topic:** [Domain/feature area]
5
- **Milestone context:** [greenfield | subsequent]
6
-
7
- ## Executive Summary (5-10 bullets)
8
- - [What we learned, in actionable terms — one concrete insight per bullet]
9
-
10
- ## Confidence Assessment
11
-
12
- | Area | Confidence | Rationale |
13
- |------|-----------|-----------|
14
- | Stack choices | ✅ verified / ⚠️ likely / ❓ uncertain | [why] |
15
- | Feature set | ✅ verified / ⚠️ likely / ❓ uncertain | [why] |
16
- | Architecture pattern | ✅ verified / ⚠️ likely / ❓ uncertain | [why] |
17
- | Key pitfalls | ✅ verified / ⚠️ likely / ❓ uncertain | [why] |
18
-
19
- ## Recommendations (Prescriptive)
20
-
21
- For each recommendation, include confidence and the evidence.
22
-
23
- 1. Recommendation: [Use X / Avoid Y]
24
- - Confidence: [verified | likely | uncertain]
25
- - Why: [short rationale]
26
- - Evidence: [URL(s)]
27
- - Counterpoints / tradeoffs: [what would change the decision]
28
-
29
- ## Non-Goals / Anti-Features
30
- - [What we explicitly will not do in v1, and why — grounded in research findings]
31
-
32
- ## Pitfalls To Avoid
33
- - [Concrete mistakes teams make in this domain — phase-mapped where possible]
34
-
35
- ## Open Questions (Blockers)
36
- - [What must be decided before planning can proceed]
37
-
38
- ## Implications for Roadmap
39
-
40
- This section is the critical handoff from research to ROADMAP.md. The roadmapper reads this.
41
-
42
- ### Suggested Phase Structure
43
- Derived from architecture build order + pitfall avoidance priorities:
44
-
45
- | Phase | Focus | Rationale |
46
- |-------|-------|-----------|
47
- | Phase 1 | [Foundation: e.g., data model + auth] | [why this must come first — dependency or risk] |
48
- | Phase 2 | [Core: e.g., primary user workflow] | [what unblocks after Phase 1] |
49
- | Phase 3 | [Integration: e.g., external services] | [why deferred — complexity or dependency] |
50
- | Phase N | [Polish / edge cases] | [why last] |
51
-
52
- ### Research Flags (Phase-Level)
53
- These are signals for the planner — which phases need deeper domain research vs standard patterns:
54
-
55
- | Phase | Flag | Reason |
56
- |-------|------|--------|
57
- | Phase 1 | ⚠️ Needs deeper research | [e.g., "auth pattern depends on regulatory context"] |
58
- | Phase 2 | ✅ Standard pattern | [e.g., "CRUD with established library — no surprises"] |
59
- | Phase N | ❓ Uncertain | [e.g., "real-time sync has multiple viable approaches"] |
60
-
61
- ## Sources
62
-
63
- | Claim | URL | Accessed |
64
- |-------|-----|---------|
65
- | [Stack recommendation] | [URL] | [YYYY-MM-DD] |
66
- | [Architecture pattern] | [URL] | [YYYY-MM-DD] |
67
- | [Pitfall] | [URL] | [YYYY-MM-DD] |
1
+ # Research Summary
2
+
3
+ **Date:** [YYYY-MM-DD]
4
+ **Topic:** [Domain/feature area]
5
+ **Milestone context:** [greenfield | subsequent]
6
+
7
+ ## Executive Summary (5-10 bullets)
8
+ - [What we learned, in actionable terms — one concrete insight per bullet]
9
+
10
+ ## Confidence Assessment
11
+
12
+ | Area | Confidence | Rationale |
13
+ |------|-----------|-----------|
14
+ | Stack choices | ✅ verified / ⚠️ likely / ❓ uncertain | [why] |
15
+ | Feature set | ✅ verified / ⚠️ likely / ❓ uncertain | [why] |
16
+ | Architecture pattern | ✅ verified / ⚠️ likely / ❓ uncertain | [why] |
17
+ | Key pitfalls | ✅ verified / ⚠️ likely / ❓ uncertain | [why] |
18
+
19
+ ## Recommendations (Prescriptive)
20
+
21
+ For each recommendation, include confidence and the evidence.
22
+
23
+ 1. Recommendation: [Use X / Avoid Y]
24
+ - Confidence: [verified | likely | uncertain]
25
+ - Why: [short rationale]
26
+ - Evidence: [URL(s)]
27
+ - Counterpoints / tradeoffs: [what would change the decision]
28
+
29
+ ## Non-Goals / Anti-Features
30
+ - [What we explicitly will not do in v1, and why — grounded in research findings]
31
+
32
+ ## Pitfalls To Avoid
33
+ - [Concrete mistakes teams make in this domain — phase-mapped where possible]
34
+
35
+ ## Open Questions (Blockers)
36
+ - [What must be decided before planning can proceed]
37
+
38
+ ## Implications for Roadmap
39
+
40
+ This section is the critical handoff from research to ROADMAP.md. The roadmapper reads this.
41
+
42
+ ### Suggested Phase Structure
43
+ Derived from architecture build order + pitfall avoidance priorities:
44
+
45
+ | Phase | Focus | Rationale |
46
+ |-------|-------|-----------|
47
+ | Phase 1 | [Foundation: e.g., data model + auth] | [why this must come first — dependency or risk] |
48
+ | Phase 2 | [Core: e.g., primary user workflow] | [what unblocks after Phase 1] |
49
+ | Phase 3 | [Integration: e.g., external services] | [why deferred — complexity or dependency] |
50
+ | Phase N | [Polish / edge cases] | [why last] |
51
+
52
+ ### Research Flags (Phase-Level)
53
+ These are signals for the planner — which phases need deeper domain research vs standard patterns:
54
+
55
+ | Phase | Flag | Reason |
56
+ |-------|------|--------|
57
+ | Phase 1 | ⚠️ Needs deeper research | [e.g., "auth pattern depends on regulatory context"] |
58
+ | Phase 2 | ✅ Standard pattern | [e.g., "CRUD with established library — no surprises"] |
59
+ | Phase N | ❓ Uncertain | [e.g., "real-time sync has multiple viable approaches"] |
60
+
61
+ ## Sources
62
+
63
+ | Claim | URL | Accessed |
64
+ |-------|-----|---------|
65
+ | [Stack recommendation] | [URL] | [YYYY-MM-DD] |
66
+ | [Architecture pattern] | [URL] | [YYYY-MM-DD] |
67
+ | [Pitfall] | [URL] | [YYYY-MM-DD] |