@tekyzinc/gsd-t 2.39.13 → 2.46.11

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 (50) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +19 -10
  3. package/bin/desktop.ini +2 -0
  4. package/bin/global-sync-manager.js +350 -0
  5. package/bin/gsd-t.js +592 -2
  6. package/bin/metrics-collector.js +167 -0
  7. package/bin/metrics-rollup.js +200 -0
  8. package/bin/patch-lifecycle.js +195 -0
  9. package/bin/rule-engine.js +160 -0
  10. package/commands/desktop.ini +2 -0
  11. package/commands/gsd-t-complete-milestone.md +194 -6
  12. package/commands/gsd-t-debug.md +38 -3
  13. package/commands/gsd-t-doc-ripple.md +148 -0
  14. package/commands/gsd-t-execute.md +328 -54
  15. package/commands/gsd-t-help.md +32 -10
  16. package/commands/gsd-t-integrate.md +59 -7
  17. package/commands/gsd-t-metrics.md +143 -0
  18. package/commands/gsd-t-plan.md +49 -2
  19. package/commands/gsd-t-qa.md +26 -5
  20. package/commands/gsd-t-quick.md +36 -3
  21. package/commands/gsd-t-status.md +78 -0
  22. package/commands/gsd-t-test-sync.md +23 -2
  23. package/commands/gsd-t-verify.md +142 -10
  24. package/commands/gsd-t-visualize.md +11 -1
  25. package/commands/gsd-t-wave.md +64 -18
  26. package/docs/GSD-T-README.md +10 -6
  27. package/docs/architecture.md +84 -2
  28. package/docs/ci-examples/desktop.ini +2 -0
  29. package/docs/ci-examples/github-actions.yml +104 -0
  30. package/docs/ci-examples/gitlab-ci.yml +116 -0
  31. package/docs/desktop.ini +2 -0
  32. package/docs/framework-comparison-scorecard.md +160 -0
  33. package/docs/infrastructure.md +87 -1
  34. package/docs/prd-graph-engine.md +2 -2
  35. package/docs/prd-gsd2-hybrid.md +258 -135
  36. package/docs/requirements.md +66 -2
  37. package/examples/.gsd-t/contracts/desktop.ini +2 -0
  38. package/examples/.gsd-t/desktop.ini +2 -0
  39. package/examples/.gsd-t/domains/desktop.ini +2 -0
  40. package/examples/.gsd-t/domains/example-domain/desktop.ini +2 -0
  41. package/examples/desktop.ini +2 -0
  42. package/examples/rules/.gitkeep +0 -0
  43. package/examples/rules/desktop.ini +2 -0
  44. package/package.json +40 -40
  45. package/scripts/desktop.ini +2 -0
  46. package/scripts/gsd-t-dashboard-server.js +19 -2
  47. package/scripts/gsd-t-dashboard.html +63 -0
  48. package/scripts/gsd-t-event-writer.js +1 -0
  49. package/templates/CLAUDE-global.md +92 -10
  50. package/templates/desktop.ini +2 -0
@@ -0,0 +1,116 @@
1
+ # GSD-T Headless Mode — GitLab CI Example
2
+ #
3
+ # This pipeline demonstrates using `gsd-t headless` for automated milestone
4
+ # verification and state queries in GitLab CI/CD.
5
+ #
6
+ # Prerequisites:
7
+ # - ANTHROPIC_API_KEY variable configured in GitLab CI/CD settings
8
+ # - Node.js 20+ runner
9
+ #
10
+ # Usage: Copy the relevant stages/jobs into your .gitlab-ci.yml
11
+
12
+ stages:
13
+ - status
14
+ - verify
15
+ - report
16
+
17
+ variables:
18
+ NODE_VERSION: "20"
19
+ GSD_T_TIMEOUT: "1200"
20
+
21
+ # ─── Status Stage (no LLM, runs fast) ────────────────────────────────────────
22
+
23
+ gsd-t-status:
24
+ stage: status
25
+ image: node:${NODE_VERSION}
26
+ before_script:
27
+ - npm install -g @tekyzinc/gsd-t
28
+ script:
29
+ - echo "=== Project Status ==="
30
+ - gsd-t headless query status
31
+ - echo "=== Active Domains ==="
32
+ - gsd-t headless query domains
33
+ - echo "=== Contracts ==="
34
+ - gsd-t headless query contracts
35
+ - echo "=== Tech Debt ==="
36
+ - gsd-t headless query debt
37
+ - echo "=== Backlog ==="
38
+ - gsd-t headless query backlog
39
+ artifacts:
40
+ reports:
41
+ # Capture JSON output for downstream jobs
42
+ dotenv: .gsd-t-status.env
43
+ allow_failure: false
44
+
45
+ # ─── Verify Stage (LLM-powered, requires ANTHROPIC_API_KEY) ─────────────────
46
+
47
+ gsd-t-verify:
48
+ stage: verify
49
+ image: node:${NODE_VERSION}
50
+ before_script:
51
+ - npm install -g @tekyzinc/gsd-t @anthropic-ai/claude-code
52
+ script:
53
+ - >
54
+ gsd-t headless verify
55
+ --json
56
+ --timeout=${GSD_T_TIMEOUT}
57
+ --log
58
+ after_script:
59
+ - cat .gsd-t/headless-*.log 2>/dev/null || true
60
+ artifacts:
61
+ when: always
62
+ paths:
63
+ - .gsd-t/headless-*.log
64
+ expire_in: 1 week
65
+ # Exit code mapping:
66
+ # 0 = success — pipeline continues
67
+ # 1 = verify-fail — pipeline fails (tests/quality gates failed)
68
+ # 2 = context-budget-exceeded — pipeline fails (split milestone required)
69
+ # 3 = error — pipeline fails (check claude CLI config)
70
+ # 4 = blocked-needs-human — pipeline fails with manual review needed
71
+ variables:
72
+ ANTHROPIC_API_KEY: ${ANTHROPIC_API_KEY}
73
+ only:
74
+ - main
75
+ - develop
76
+ - merge_requests
77
+
78
+ # ─── Report Stage ────────────────────────────────────────────────────────────
79
+
80
+ gsd-t-context-report:
81
+ stage: report
82
+ image: node:${NODE_VERSION}
83
+ before_script:
84
+ - npm install -g @tekyzinc/gsd-t
85
+ script:
86
+ - echo "=== Token/Context Usage ==="
87
+ - gsd-t headless query context
88
+ - echo "=== Graph Index ==="
89
+ - gsd-t headless query graph
90
+ when: always
91
+ allow_failure: true
92
+
93
+ # ─── Nightly Headless Execute ─────────────────────────────────────────────────
94
+ # Run overnight to execute a milestone phase unattended
95
+
96
+ gsd-t-nightly-execute:
97
+ stage: verify
98
+ image: node:${NODE_VERSION}
99
+ before_script:
100
+ - npm install -g @tekyzinc/gsd-t @anthropic-ai/claude-code
101
+ script:
102
+ - >
103
+ gsd-t headless execute
104
+ --json
105
+ --timeout=3600
106
+ --log
107
+ artifacts:
108
+ when: always
109
+ paths:
110
+ - .gsd-t/headless-*.log
111
+ expire_in: 2 weeks
112
+ variables:
113
+ ANTHROPIC_API_KEY: ${ANTHROPIC_API_KEY}
114
+ only:
115
+ - schedules # Only runs on scheduled pipelines
116
+ allow_failure: false
@@ -0,0 +1,2 @@
1
+ [.ShellClassInfo]
2
+ IconResource=C:\Program Files\Google\Drive File Stream\122.0.1.0\GoogleDriveFS.exe,27
@@ -0,0 +1,160 @@
1
+ # Framework Comparison Scorecard
2
+
3
+ **Purpose**: Unbiased comparison of development frameworks.
4
+ **Instructions**: Score each framework 1-5 per dimension. Use the rubric at the bottom. Equal weights — no dimension gaming.
5
+
6
+ ---
7
+
8
+ ## Frameworks Being Compared
9
+
10
+ | Slot | Framework | Version/Variant | Evaluator | Date |
11
+ |------|-----------|-----------------|-----------|------|
12
+ | F1 | | | | |
13
+ | F2 | | | | |
14
+ | F3 | | | | |
15
+ | F4 | | | | |
16
+
17
+ ---
18
+
19
+ ## A. Onboarding & Adoption (Dimensions 1-3)
20
+
21
+ | # | Dimension | What to Evaluate | F1 | F2 | F3 | F4 |
22
+ |---|-----------|------------------|----|----|----|----|
23
+ | 1 | Time to first productive output | How quickly can someone go from choosing the framework to shipping real work? | | | | |
24
+ | 2 | Team adoption friction | How willing is a typical team to adopt it after initial exposure? | | | | |
25
+ | 3 | Works without specific tooling | Can it be used with any IDE, editor, or AI assistant? | | | | |
26
+ | | **Category Average** | | **—** | **—** | **—** | **—** |
27
+
28
+ ## B. Execution & Delivery (Dimensions 4-7)
29
+
30
+ | # | Dimension | What to Evaluate | F1 | F2 | F3 | F4 |
31
+ |---|-----------|------------------|----|----|----|----|
32
+ | 4 | Defect prevention | How effectively does the framework prevent bugs from reaching production? | | | | |
33
+ | 5 | Throughput | How many features can be shipped per unit time? | | | | |
34
+ | 6 | Rework prevention | How well does the framework prevent completed work from needing redo? | | | | |
35
+ | 7 | Idea-to-deploy cycle time | How quickly can a concept move from idea to production? | | | | |
36
+ | | **Category Average** | | **—** | **—** | **—** | **—** |
37
+
38
+ ## C. Sustainability & Maintenance (Dimensions 8-11)
39
+
40
+ | # | Dimension | What to Evaluate | F1 | F2 | F3 | F4 |
41
+ |---|-----------|------------------|----|----|----|----|
42
+ | 8 | New member ramp-up | How quickly can a new team member contribute independently? | | | | |
43
+ | 9 | Context recovery | How easily can work resume after an interruption of days or weeks? | | | | |
44
+ | 10 | Tech debt management | How well does the framework track and control technical debt? | | | | |
45
+ | 11 | Documentation freshness | How well does the framework keep documentation accurate and current? | | | | |
46
+ | | **Category Average** | | **—** | **—** | **—** | **—** |
47
+
48
+ ## D. Flexibility & Universality (Dimensions 12-15)
49
+
50
+ | # | Dimension | What to Evaluate | F1 | F2 | F3 | F4 |
51
+ |---|-----------|------------------|----|----|----|----|
52
+ | 12 | Minimum viable process | Can you use a small portion of it and still get value? | | | | |
53
+ | 13 | Project type coverage | Does it work across web, mobile, data, infra, and non-code projects? | | | | |
54
+ | 14 | Team size range | Is it effective from 1-person teams to 50-person teams? | | | | |
55
+ | 15 | Overhead proportionality | Does ceremony scale with project size rather than being fixed? | | | | |
56
+ | | **Category Average** | | **—** | **—** | **—** | **—** |
57
+
58
+ ## E. Automation & AI-Agent Capabilities (Dimensions 16-19)
59
+
60
+ | # | Dimension | What to Evaluate | F1 | F2 | F3 | F4 |
61
+ |---|-----------|------------------|----|----|----|----|
62
+ | 16 | Agentic workflow support | Does the framework enable AI agents to execute work autonomously (task dispatch, parallel execution, adaptive replanning)? | | | | |
63
+ | 17 | QA automation | Does the framework automate test generation, execution, and gap detection — not just run existing tests? | | | | |
64
+ | 18 | QA coverage enforcement | Does the framework enforce minimum coverage and block progress when tests are missing or failing? | | | | |
65
+ | 19 | Contract enforcement | Does the framework define and validate interfaces between components automatically (API shapes, schemas, props)? | | | | |
66
+ | | **Category Average** | | **—** | **—** | **—** | **—** |
67
+
68
+ ## F. Observability & Decision Quality (Dimensions 20-22)
69
+
70
+ | # | Dimension | What to Evaluate | F1 | F2 | F3 | F4 |
71
+ |---|-----------|------------------|----|----|----|----|
72
+ | 20 | Decision traceability | Can you find why a choice was made 6 months later? | | | | |
73
+ | 21 | Progress accuracy | Does reported progress match actual state? | | | | |
74
+ | 22 | Risk visibility | Do problems surface early or only at integration? | | | | |
75
+ | | **Category Average** | | **—** | **—** | **—** | **—** |
76
+
77
+ ---
78
+
79
+ ## Summary
80
+
81
+ | Category | F1 | F2 | F3 | F4 |
82
+ |---------------------------------------------|----|----|----|----|
83
+ | A. Onboarding & Adoption (1-3) | | | | |
84
+ | B. Execution & Delivery (4-7) | | | | |
85
+ | C. Sustainability & Maintenance (8-11) | | | | |
86
+ | D. Flexibility & Universality (12-15) | | | | |
87
+ | E. Automation & AI-Agent Capabilities (16-19) | | | | |
88
+ | F. Observability & Decisions (20-22) | | | | |
89
+ | **Overall Average (1-5)** | **—** | **—** | **—** | **—** |
90
+ | **Normalized Score (/100)** | **—** | **—** | **—** | **—** |
91
+
92
+ ### Calculation
93
+
94
+ ```
95
+ Category Average = sum of dimension scores in category / number of dimensions in category
96
+ Overall Average = sum of all 22 dimension scores / 22
97
+ Normalized /100 = Overall Average × 20
98
+ ```
99
+
100
+ ---
101
+
102
+ ## Radar Chart Data
103
+
104
+ For visual comparison, plot each framework on a 6-axis radar chart using the category averages:
105
+
106
+ ```
107
+ Axis 1: Onboarding & Adoption
108
+ Axis 2: Execution & Delivery
109
+ Axis 3: Sustainability & Maintenance
110
+ Axis 4: Flexibility & Universality
111
+ Axis 5: Automation & AI-Agent Capabilities
112
+ Axis 6: Observability & Decisions
113
+ ```
114
+
115
+ ---
116
+
117
+ ## Scoring Rubric
118
+
119
+ Use this rubric consistently across all frameworks and dimensions:
120
+
121
+ | Score | Label | Definition |
122
+ |-------|---------------|------------------------------------------------------------------------------|
123
+ | 1 | Absent | Not addressed by the framework. User must solve this entirely on their own. |
124
+ | 2 | Minimal | Acknowledged but not enforced. Ad-hoc or optional guidance only. |
125
+ | 3 | Supported | Present with some structure, but inconsistently applied or easy to skip. |
126
+ | 4 | Systematic | Well-integrated, mostly enforced, clear process with known exceptions. |
127
+ | 5 | Core strength | Foundational to the framework. Systematically enforced, hard to bypass. |
128
+
129
+ ### Scoring guidelines
130
+
131
+ - **Score what the framework provides**, not what a disciplined team could achieve without it
132
+ - **Score the default experience**, not the best-case customized setup
133
+ - **Score independently** — don't let a high score in one dimension inflate adjacent ones
134
+ - **Use 3 as the anchor** — most frameworks land at 3 for most dimensions. Reserve 1 and 5 for clear extremes
135
+ - **When uncertain**, score conservatively (lower)
136
+
137
+ ---
138
+
139
+ ## Bias Checks
140
+
141
+ Before finalizing scores, verify:
142
+
143
+ - [ ] No single framework scores 5 on more than 9 of 22 dimensions
144
+ - [ ] No single framework scores below 2 on more than 9 of 22 dimensions
145
+ - [ ] Every framework has at least one category where it leads
146
+ - [ ] The evaluator did not design or build any of the frameworks being compared (if they did, note the conflict and consider a second evaluator)
147
+ - [ ] Dimensions were not added or removed after seeing preliminary scores
148
+
149
+ ---
150
+
151
+ ## Notes & Justifications
152
+
153
+ Use this section to record reasoning for any score that might be controversial:
154
+
155
+ | Dimension | Framework | Score | Justification |
156
+ |-----------|-----------|-------|---------------|
157
+ | | | | |
158
+ | | | | |
159
+ | | | | |
160
+ | | | | |
@@ -1,6 +1,6 @@
1
1
  # Infrastructure — GSD-T Framework (@tekyzinc/gsd-t)
2
2
 
3
- ## Last Updated: 2026-03-09 (Scan #9, Post-M17)
3
+ ## Last Updated: 2026-03-22 (M23 Headless Mode)
4
4
 
5
5
  ## Quick Reference
6
6
 
@@ -14,6 +14,8 @@
14
14
  | View changelog | `npx @tekyzinc/gsd-t changelog` |
15
15
  | Register project | `npx @tekyzinc/gsd-t register` |
16
16
  | Publish to npm | `npm publish` (runs `npm test` automatically via prepublishOnly) |
17
+ | Headless exec | `gsd-t headless <command> [--json] [--timeout=N] [--log]` |
18
+ | Headless query | `gsd-t headless query <type>` (no LLM, <100ms) |
17
19
 
18
20
  ## Local Development
19
21
 
@@ -109,6 +111,90 @@ get-stuff-done-teams/
109
111
  └── package.json — npm package config
110
112
  ```
111
113
 
114
+ ## Headless Mode (M23)
115
+
116
+ Headless mode enables non-interactive GSD-T execution for CI/CD pipelines and overnight builds.
117
+
118
+ ### headless exec
119
+
120
+ Wraps `claude -p "/user:gsd-t-{command} {args}"` for unattended execution.
121
+
122
+ ```bash
123
+ gsd-t headless verify --json --timeout=1200 --log
124
+ gsd-t headless execute --timeout=3600
125
+ gsd-t headless wave --json
126
+ ```
127
+
128
+ **Flags:**
129
+ | Flag | Default | Description |
130
+ |------|---------|-------------|
131
+ | `--json` | off | Output structured JSON envelope |
132
+ | `--timeout=N` | 300s | Kill process after N seconds |
133
+ | `--log` | off | Write output to `.gsd-t/headless-{timestamp}.log` |
134
+
135
+ **Exit codes:**
136
+ | Code | Meaning |
137
+ |------|---------|
138
+ | 0 | success |
139
+ | 1 | verify-fail (tests or quality gates failed) |
140
+ | 2 | context-budget-exceeded (split the milestone) |
141
+ | 3 | error (claude CLI error or process failure) |
142
+ | 4 | blocked-needs-human (requires manual intervention) |
143
+
144
+ **JSON envelope shape (--json flag):**
145
+ ```json
146
+ {
147
+ "success": true,
148
+ "exitCode": 0,
149
+ "gsdtExitCode": 0,
150
+ "command": "verify",
151
+ "args": [],
152
+ "output": "...",
153
+ "timestamp": "2026-03-22T10:00:00.000Z",
154
+ "duration": 42150,
155
+ "logFile": ".gsd-t/headless-1742641200000.log"
156
+ }
157
+ ```
158
+
159
+ ### headless query
160
+
161
+ Pure Node.js file parsing — no LLM calls, <100ms response.
162
+
163
+ ```bash
164
+ gsd-t headless query status # Version, milestone, phase
165
+ gsd-t headless query domains # Domain list with flags
166
+ gsd-t headless query contracts # Contract file list
167
+ gsd-t headless query debt # Tech debt items
168
+ gsd-t headless query context # Token log summary
169
+ gsd-t headless query backlog # Backlog items
170
+ gsd-t headless query graph # Graph index metadata
171
+ ```
172
+
173
+ All queries return JSON to stdout.
174
+
175
+ ### CI/CD Integration
176
+
177
+ Example workflow files are in `docs/ci-examples/`:
178
+ - `github-actions.yml` — GitHub Actions workflow with verify + status gate jobs
179
+ - `gitlab-ci.yml` — GitLab CI pipeline with status/verify/report stages
180
+
181
+ **Quick setup for GitHub Actions:**
182
+ ```yaml
183
+ - name: GSD-T Verify
184
+ env:
185
+ ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
186
+ run: gsd-t headless verify --json --timeout=1200
187
+ ```
188
+
189
+ **Quick setup for GitLab CI:**
190
+ ```yaml
191
+ gsd-t-verify:
192
+ script:
193
+ - gsd-t headless verify --json --timeout=1200
194
+ variables:
195
+ ANTHROPIC_API_KEY: ${ANTHROPIC_API_KEY}
196
+ ```
197
+
112
198
  ## Security Notes
113
199
 
114
200
  - Zero npm dependencies — no supply chain risk
@@ -6,12 +6,12 @@
6
6
  | **PRD ID** | PRD-GRAPH-001 |
7
7
  | **Date** | 2026-03-18 |
8
8
  | **Author** | GSD-T Team |
9
- | **Status** | DRAFT |
9
+ | **Status** | DELIVERED (M20 + M21 complete — 2026-03-20) |
10
10
  | **Milestones** | M20 (Graph Abstraction + Indexer + CGC), M21 (Graph-Powered Commands) |
11
11
  | **Version Target** | 2.37.10 (M20), 2.38.10 (M21) |
12
12
  | **Priority** | P0 — foundational for all future enhancements |
13
13
  | **Predecessor** | M19 (Shared Service Detection v2.35.10) |
14
- | **Successor** | Scan self-validation, then GSD 2 milestones (M22+) |
14
+ | **Successor** | GSD 2 milestones (M22 COMPLETE, M23-M24 queued) |
15
15
 
16
16
  ---
17
17