gsdd-cli 0.18.5 → 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 +609 -608
  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 +186 -144
  24. package/bin/lib/health-truth.mjs +181 -178
  25. package/bin/lib/health.mjs +246 -226
  26. package/bin/lib/init-flow.mjs +247 -231
  27. package/bin/lib/init-prompts.mjs +248 -247
  28. package/bin/lib/init-runtime.mjs +191 -190
  29. package/bin/lib/init.mjs +17 -17
  30. package/bin/lib/lifecycle-preflight.mjs +347 -325
  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 +360 -358
  35. package/bin/lib/plan-constants.mjs +30 -30
  36. package/bin/lib/provenance.mjs +109 -106
  37. package/bin/lib/rendering.mjs +115 -83
  38. package/bin/lib/runtime-freshness.mjs +214 -214
  39. package/bin/lib/templates.mjs +225 -224
  40. package/bin/lib/workspace-root.mjs +2 -1
  41. package/distilled/DESIGN.md +2333 -2323
  42. package/distilled/EVIDENCE-INDEX.md +394 -392
  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 +80 -69
  90. package/docs/USER-GUIDE.md +394 -386
  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,62 +1,74 @@
1
- # ROADMAP.md Template
2
-
3
- Use this template when creating `.planning/ROADMAP.md` (phase breakdown + progress tracker).
4
-
5
- ```markdown
6
- # Roadmap: [Project Name]
7
-
8
- ## Overview
9
-
10
- [One paragraph: what v1 delivers and why.]
11
-
12
- ## Phases (Status Legend: [ ] not started, [-] in progress, [x] complete)
13
-
14
- - [ ] **Phase 1: [Name]** - [One-line goal]
15
- - [ ] **Phase 2: [Name]** - [One-line goal]
16
- - [ ] **Phase 3: [Name]** - [One-line goal]
17
-
18
- ## Phase Details
19
-
20
- ### Phase 1: [Name]
21
-
22
- **Goal**: [What this phase delivers]
23
- **Status**: [ ] / [-] / [x]
24
- **Requirements**: [REQ-IDs from `.planning/SPEC.md`]
25
- **Success Criteria** (must be TRUE when done):
26
- 1. [Observable behavior]
27
- 2. [Observable behavior]
28
-
29
- ### Phase 2: [Name]
30
-
31
- **Goal**: [What this phase delivers]
32
- **Status**: [ ] / [-] / [x]
33
- **Depends on**: Phase 1
34
- **Requirements**: [REQ-IDs]
35
- **Success Criteria**:
36
- 1. [Observable behavior]
37
- 2. [Observable behavior]
38
-
39
- ---
40
- *Created: [YYYY-MM-DD]*
41
- ```
42
-
43
- ## Guidelines
44
-
45
- - Prefer 3-8 phases for most projects.
46
- - Every v1 requirement in `.planning/SPEC.md` must map to exactly one phase (no orphans).
47
- - Success criteria are 2-5 observable behaviors per phase.
48
- - No time estimates: focus on verifiable outcomes.
49
- - These status markers are the portable source of truth. Workflow files and summaries should use `[ ]`, `[-]`, and `[x]` consistently.
50
-
51
- ## Coverage Verification
52
-
53
- After creating the roadmap, verify:
54
- ```
55
- For each v1 requirement in .planning/SPEC.md:
56
- [ ] Requirement appears in exactly one phase's "Requirements" list
57
- [ ] The phase's success criteria would prove the requirement is met
58
- ```
59
-
60
- If a requirement doesn't map to any phase: add a phase or expand an existing one.
61
- If a requirement maps to multiple phases: clarify which phase owns it.
62
-
1
+ # ROADMAP.md Template
2
+
3
+ Use this template when creating `.planning/ROADMAP.md` (phase breakdown + progress tracker).
4
+
5
+ ```markdown
6
+ # Roadmap: [Project Name]
7
+
8
+ ## Overview
9
+
10
+ [One paragraph: what v1 delivers and why.]
11
+
12
+ ## Phases (Status Legend: [ ] not started, [-] in progress, [x] complete)
13
+
14
+ - [ ] **Phase 1: [Name]** - [One-line goal]
15
+ - [ ] **Phase 2: [Name]** - [One-line goal]
16
+ - [ ] **Phase 3: [Name]** - [One-line goal]
17
+
18
+ ## Phase Details
19
+
20
+ ### Phase 1: [Name]
21
+
22
+ **Goal**: [What this phase delivers]
23
+ **Status**: [ ]
24
+ **Requirements**: [REQ-IDs from `.planning/SPEC.md`]
25
+ **Success Criteria** (must be TRUE when done):
26
+ 1. [Observable behavior]
27
+ 2. [Observable behavior]
28
+
29
+ ### Phase 2: [Name]
30
+
31
+ **Goal**: [What this phase delivers]
32
+ **Status**: [ ]
33
+ **Depends on**: Phase 1
34
+ **Requirements**: [REQ-IDs]
35
+ **Success Criteria**:
36
+ 1. [Observable behavior]
37
+ 2. [Observable behavior]
38
+
39
+ ### Phase 3: [Name]
40
+
41
+ **Goal**: [What this phase delivers]
42
+ **Status**: [ ]
43
+ **Depends on**: Phase 2
44
+ **Requirements**: [REQ-IDs]
45
+ **Success Criteria**:
46
+ 1. [Observable behavior]
47
+ 2. [Observable behavior]
48
+
49
+ ---
50
+ *Created: [YYYY-MM-DD]*
51
+ ```
52
+
53
+ ## Guidelines
54
+
55
+ - Prefer 3-8 phases for most projects.
56
+ - Every v1 requirement in `.planning/SPEC.md` must map to exactly one phase (no orphans).
57
+ - Success criteria are 2-5 observable behaviors per phase.
58
+ - No time estimates: focus on verifiable outcomes.
59
+ - These status markers are the portable source of truth. Workflow files and summaries should use `[ ]`, `[-]`, and `[x]` consistently.
60
+ - Keep each overview phase marker and its matching Phase Details `**Status**` marker identical. Use `gsdd phase-status <phase> <status>` instead of hand-editing either location.
61
+ - Treat `<details>...</details>` sections as archived roadmap history only; lifecycle helpers ignore phases inside those blocks.
62
+
63
+ ## Coverage Verification
64
+
65
+ After creating the roadmap, verify:
66
+ ```
67
+ For each v1 requirement in .planning/SPEC.md:
68
+ [ ] Requirement appears in exactly one phase's "Requirements" list
69
+ [ ] The phase's success criteria would prove the requirement is met
70
+ ```
71
+
72
+ If a requirement doesn't map to any phase: add a phase or expand an existing one.
73
+ If a requirement maps to multiple phases: clarify which phase owns it.
74
+
@@ -1,110 +1,110 @@
1
- # SPEC.md Template
2
-
3
- Use this template when creating `.planning/SPEC.md` - the project's single source of truth.
4
-
5
- > **Agentic PRD Constraint:** Do not write narrative prose or fluff. Use strict checklists, dense tables, and typed schemas. There is no artificial line limit, but every single line must be highly deterministic and actionable for a downstream Subagent.
6
-
7
- ---
8
-
9
- ```markdown
10
- # [Project Name]
11
-
12
- ## What We're Building
13
-
14
- [2-3 sentences. What does this product/feature do and who is it for? Use the developer's own language.]
15
-
16
- ## Core Value
17
-
18
- [The ONE thing that matters most. If everything else fails, this must work.]
19
-
20
- ## Core Principles
21
-
22
- [SOTA: 3-5 governing rules for the project (e.g., Code Quality, UI Consistency, Testing)]
23
-
24
- ## Typed Data Schemas
25
-
26
- ```typescript
27
- // SOTA: Define the core shared data models here early to prevent agent hallucination during handoffs
28
- // type User = { id: string; role: 'admin' | 'user' };
29
- ```
30
-
31
- ## Capability & Security Gates
32
-
33
- // SOTA [OpenFang]: Define what autonomous agents are explicitly NOT allowed to do without human `/approve`.
34
- - **Destructive DB actions:** Require human review
35
- - **External Purchases:** Mandatory approval gate
36
-
37
- ## Requirements
38
-
39
- ### Must Have (v1)
40
-
41
- - [ ] **[CAT-01]**: [User-centric, testable requirement] [Done-When: observable verification criteria]
42
- - [ ] **[CAT-02]**: [User-centric, testable requirement] [Done-When: observable verification criteria]
43
- - [ ] **[CAT-03]**: [User-centric, testable requirement] [Done-When: observable verification criteria]
44
-
45
- ### Nice to Have (v2)
46
-
47
- - **[CAT-04]**: [Deferred requirement]
48
- - **[CAT-05]**: [Deferred requirement]
49
-
50
- ### Out of Scope
51
-
52
- - [Feature] - [why excluded]
53
- - [Feature] - [why excluded]
54
-
55
- ## Constraints
56
-
57
- - **[Type]**: [What] - [Why]
58
- - **[Type]**: [What] - [Why]
59
-
60
- ## Key Decisions
61
-
62
- | Decision | Rationale | Date |
63
- |----------|-----------|------|
64
- | [Choice] | [Why] | [When] |
65
-
66
- ## Current State
67
-
68
- - **Active Phase:** Phase [X] - [Name] ([ ]/[-]/[x])
69
- - **Last Completed:** [What was last done]
70
- - **In Progress:** [What is currently being worked on]
71
- - **Decisions:** [Any recent decisions]
72
- - **Blockers:** [None / description]
73
-
74
- ---
75
- *Last updated: [date] after [trigger]*
76
- ```
77
-
78
- ---
79
-
80
- ## Guidelines
81
-
82
- - **Requirements** must be specific, testable, and user-centric ("User can X", not "System does Y")
83
- - **Requirement IDs** use `[CATEGORY]-[NUMBER]` format (AUTH-01, DATA-02, UI-03)
84
- - **v1 requirements** have checkboxes - check them off when verified as complete
85
- - **Every v1 requirement** must include a `[Done-When: ...]` clause with observable verification criteria
86
- - **Out of Scope** always includes reasoning (prevents scope creep discussions later)
87
- - **Key Decisions** are appended throughout the project as they're made
88
- - **Current State** is updated after each significant milestone - this is how agents resume work across sessions
89
- - **No Narrative Fluff** - this is an executable Agentic PRD, not a novel. Details live in plans, but core Typed Schemas MUST reside here.
90
-
91
- ## When Codebase Already Exists (Brownfield)
92
-
93
- If auditing an existing codebase during `init`:
94
- - Add a **Validated** section under Requirements:
95
- ```markdown
96
- ### Validated (existing capabilities)
97
- - [x] **[CAT-01]**: User can log in - existing auth system
98
- - [x] **[CAT-02]**: Data persists across sessions - PostgreSQL database
99
- ```
100
- - New requirements go under "Must Have (v1)"
101
- - Document existing tech stack and patterns in Constraints
102
- - Document any tech debt discovered in a separate concern note (not in SPEC.md)
103
-
104
- ## Archive Guidance
105
-
106
- When a major milestone completes:
107
- 1. The SPEC.md "Current State" section reflects the new state
108
- 2. Completed phases have summaries in `.planning/phases/{N}-SUMMARY.md`
109
- 3. SPEC.md itself stays lean - don't accumulate history here
110
-
1
+ # SPEC.md Template
2
+
3
+ Use this template when creating `.planning/SPEC.md` - the project's single source of truth.
4
+
5
+ > **Agentic PRD Constraint:** Do not write narrative prose or fluff. Use strict checklists, dense tables, and typed schemas. There is no artificial line limit, but every single line must be highly deterministic and actionable for a downstream Subagent.
6
+
7
+ ---
8
+
9
+ ```markdown
10
+ # [Project Name]
11
+
12
+ ## What We're Building
13
+
14
+ [2-3 sentences. What does this product/feature do and who is it for? Use the developer's own language.]
15
+
16
+ ## Core Value
17
+
18
+ [The ONE thing that matters most. If everything else fails, this must work.]
19
+
20
+ ## Core Principles
21
+
22
+ [SOTA: 3-5 governing rules for the project (e.g., Code Quality, UI Consistency, Testing)]
23
+
24
+ ## Typed Data Schemas
25
+
26
+ ```typescript
27
+ // SOTA: Define the core shared data models here early to prevent agent hallucination during handoffs
28
+ // type User = { id: string; role: 'admin' | 'user' };
29
+ ```
30
+
31
+ ## Capability & Security Gates
32
+
33
+ // SOTA [OpenFang]: Define what autonomous agents are explicitly NOT allowed to do without human `/approve`.
34
+ - **Destructive DB actions:** Require human review
35
+ - **External Purchases:** Mandatory approval gate
36
+
37
+ ## Requirements
38
+
39
+ ### Must Have (v1)
40
+
41
+ - [ ] **[CAT-01]**: [User-centric, testable requirement] [Done-When: observable verification criteria]
42
+ - [ ] **[CAT-02]**: [User-centric, testable requirement] [Done-When: observable verification criteria]
43
+ - [ ] **[CAT-03]**: [User-centric, testable requirement] [Done-When: observable verification criteria]
44
+
45
+ ### Nice to Have (v2)
46
+
47
+ - **[CAT-04]**: [Deferred requirement]
48
+ - **[CAT-05]**: [Deferred requirement]
49
+
50
+ ### Out of Scope
51
+
52
+ - [Feature] - [why excluded]
53
+ - [Feature] - [why excluded]
54
+
55
+ ## Constraints
56
+
57
+ - **[Type]**: [What] - [Why]
58
+ - **[Type]**: [What] - [Why]
59
+
60
+ ## Key Decisions
61
+
62
+ | Decision | Rationale | Date |
63
+ |----------|-----------|------|
64
+ | [Choice] | [Why] | [When] |
65
+
66
+ ## Current State
67
+
68
+ - **Active Phase:** Phase [X] - [Name] ([ ]/[-]/[x])
69
+ - **Last Completed:** [What was last done]
70
+ - **In Progress:** [What is currently being worked on]
71
+ - **Decisions:** [Any recent decisions]
72
+ - **Blockers:** [None / description]
73
+
74
+ ---
75
+ *Last updated: [date] after [trigger]*
76
+ ```
77
+
78
+ ---
79
+
80
+ ## Guidelines
81
+
82
+ - **Requirements** must be specific, testable, and user-centric ("User can X", not "System does Y")
83
+ - **Requirement IDs** use `[CATEGORY]-[NUMBER]` format (AUTH-01, DATA-02, UI-03)
84
+ - **v1 requirements** have checkboxes - check them off when verified as complete
85
+ - **Every v1 requirement** must include a `[Done-When: ...]` clause with observable verification criteria
86
+ - **Out of Scope** always includes reasoning (prevents scope creep discussions later)
87
+ - **Key Decisions** are appended throughout the project as they're made
88
+ - **Current State** is updated after each significant milestone - this is how agents resume work across sessions
89
+ - **No Narrative Fluff** - this is an executable Agentic PRD, not a novel. Details live in plans, but core Typed Schemas MUST reside here.
90
+
91
+ ## When Codebase Already Exists (Brownfield)
92
+
93
+ If auditing an existing codebase during `init`:
94
+ - Add a **Validated** section under Requirements:
95
+ ```markdown
96
+ ### Validated (existing capabilities)
97
+ - [x] **[CAT-01]**: User can log in - existing auth system
98
+ - [x] **[CAT-02]**: Data persists across sessions - PostgreSQL database
99
+ ```
100
+ - New requirements go under "Must Have (v1)"
101
+ - Document existing tech stack and patterns in Constraints
102
+ - Document any tech debt discovered in a separate concern note (not in SPEC.md)
103
+
104
+ ## Archive Guidance
105
+
106
+ When a major milestone completes:
107
+ 1. The SPEC.md "Current State" section reflects the new state
108
+ 2. Completed phases have summaries in `.planning/phases/{N}-SUMMARY.md`
109
+ 3. SPEC.md itself stays lean - don't accumulate history here
110
+