@tekyzinc/gsd-t 2.50.12 → 2.53.10

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 (99) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/README.md +379 -372
  3. package/bin/component-registry.js +250 -0
  4. package/bin/graph-cgc.js +510 -510
  5. package/bin/graph-indexer.js +147 -147
  6. package/bin/graph-overlay.js +195 -195
  7. package/bin/graph-parsers.js +327 -327
  8. package/bin/graph-query.js +453 -452
  9. package/bin/graph-store.js +154 -154
  10. package/bin/qa-calibrator.js +194 -0
  11. package/bin/scan-data-collector.js +153 -153
  12. package/bin/scan-diagrams-generators.js +187 -187
  13. package/bin/scan-diagrams.js +79 -79
  14. package/bin/scan-renderer.js +92 -92
  15. package/bin/scan-report-sections.js +121 -121
  16. package/bin/scan-report.js +184 -184
  17. package/bin/scan-schema-parsers.js +199 -199
  18. package/bin/scan-schema.js +103 -103
  19. package/bin/token-budget.js +246 -0
  20. package/commands/Claude-md.md +10 -10
  21. package/commands/branch.md +15 -15
  22. package/commands/checkin.md +45 -45
  23. package/commands/global-change.md +209 -209
  24. package/commands/gsd-t-audit.md +199 -0
  25. package/commands/gsd-t-backlog-add.md +94 -94
  26. package/commands/gsd-t-backlog-edit.md +111 -111
  27. package/commands/gsd-t-backlog-list.md +63 -63
  28. package/commands/gsd-t-backlog-move.md +94 -94
  29. package/commands/gsd-t-backlog-promote.md +123 -123
  30. package/commands/gsd-t-backlog-remove.md +86 -86
  31. package/commands/gsd-t-backlog-settings.md +158 -158
  32. package/commands/gsd-t-complete-milestone.md +528 -515
  33. package/commands/gsd-t-debug.md +506 -399
  34. package/commands/gsd-t-discuss.md +174 -174
  35. package/commands/gsd-t-execute.md +758 -634
  36. package/commands/gsd-t-feature.md +276 -276
  37. package/commands/gsd-t-health.md +142 -142
  38. package/commands/gsd-t-help.md +465 -457
  39. package/commands/gsd-t-impact.md +302 -302
  40. package/commands/gsd-t-init.md +320 -280
  41. package/commands/gsd-t-integrate.md +365 -249
  42. package/commands/gsd-t-milestone.md +87 -87
  43. package/commands/gsd-t-partition.md +442 -361
  44. package/commands/gsd-t-pause.md +82 -82
  45. package/commands/gsd-t-plan.md +345 -344
  46. package/commands/gsd-t-populate.md +111 -111
  47. package/commands/gsd-t-prd.md +326 -326
  48. package/commands/gsd-t-project.md +211 -211
  49. package/commands/gsd-t-promote-debt.md +123 -123
  50. package/commands/gsd-t-prompt.md +137 -137
  51. package/commands/gsd-t-qa.md +266 -266
  52. package/commands/gsd-t-quick.md +357 -234
  53. package/commands/gsd-t-reflect.md +134 -134
  54. package/commands/gsd-t-resume.md +72 -72
  55. package/commands/gsd-t-scan.md +615 -615
  56. package/commands/gsd-t-setup.md +76 -0
  57. package/commands/gsd-t-status.md +192 -166
  58. package/commands/gsd-t-test-sync.md +381 -381
  59. package/commands/gsd-t-triage-and-merge.md +171 -171
  60. package/commands/gsd-t-verify.md +382 -382
  61. package/commands/gsd-t-visualize.md +118 -118
  62. package/commands/gsd-t-wave.md +401 -378
  63. package/docs/GSD-T-README.md +425 -422
  64. package/docs/architecture.md +385 -369
  65. package/docs/harness-design-analysis.md +371 -0
  66. package/docs/infrastructure.md +205 -205
  67. package/docs/prd-graph-engine.md +398 -398
  68. package/docs/prd-gsd2-hybrid.md +559 -559
  69. package/docs/prd-harness-evolution.md +583 -0
  70. package/docs/requirements.md +14 -0
  71. package/docs/workflows.md +226 -226
  72. package/examples/.gsd-t/domains/example-domain/scope.md +13 -13
  73. package/package.json +40 -40
  74. package/scripts/gsd-t-auto-route.js +39 -39
  75. package/scripts/gsd-t-dashboard-mockup.html +1143 -1143
  76. package/scripts/gsd-t-dashboard-server.js +171 -171
  77. package/scripts/gsd-t-dashboard.html +262 -262
  78. package/scripts/gsd-t-event-writer.js +128 -128
  79. package/scripts/gsd-t-statusline.js +94 -94
  80. package/scripts/gsd-t-tools.js +175 -175
  81. package/templates/CLAUDE-global.md +639 -614
  82. package/templates/CLAUDE-project.md +24 -0
  83. package/templates/backlog-settings.md +18 -18
  84. package/templates/backlog.md +1 -1
  85. package/templates/progress.md +40 -40
  86. package/templates/shared-services-contract.md +60 -60
  87. package/templates/stacks/desktop.ini +2 -2
  88. package/bin/desktop.ini +0 -2
  89. package/commands/desktop.ini +0 -2
  90. package/docs/ci-examples/desktop.ini +0 -2
  91. package/docs/desktop.ini +0 -2
  92. package/examples/.gsd-t/contracts/desktop.ini +0 -2
  93. package/examples/.gsd-t/desktop.ini +0 -2
  94. package/examples/.gsd-t/domains/desktop.ini +0 -2
  95. package/examples/.gsd-t/domains/example-domain/desktop.ini +0 -2
  96. package/examples/desktop.ini +0 -2
  97. package/examples/rules/desktop.ini +0 -2
  98. package/scripts/desktop.ini +0 -2
  99. package/templates/desktop.ini +0 -2
@@ -1,142 +1,142 @@
1
- # GSD-T: Health — Validate Project Structure
2
-
3
- You are diagnosing the health of a GSD-T project. Check every required file and directory, report findings, and optionally repair missing pieces.
4
-
5
- ## Step 0: Launch via Subagent (default)
6
-
7
- When invoked directly by the user, spawn yourself as a Task subagent for a fresh context window:
8
-
9
- ```
10
- Task subagent (general-purpose, model: haiku):
11
- "Run the GSD-T health check. Read commands/gsd-t-health.md for your full instructions.
12
- Arguments: {$ARGUMENTS}
13
- Skip Step 0 — you are already the subagent."
14
- ```
15
-
16
- Return the subagent's output and stop. Only skip Step 0 if you are already running as a subagent.
17
-
18
- ## Step 1: Determine Mode
19
-
20
- If `--repair` appears in $ARGUMENTS, set `REPAIR=true`. Otherwise `REPAIR=false`.
21
-
22
- ## Step 2: Check Required Structure
23
-
24
- Check each item below. Record status as `OK`, `MISSING`, or `INVALID`.
25
-
26
- ### Root files
27
- | File | Check |
28
- |------|-------|
29
- | `CLAUDE.md` | Exists and non-empty |
30
- | `README.md` | Exists and non-empty |
31
- | `.gsd-t/progress.md` | Exists, has `## Status:` and `## Version:` sections |
32
- | `.gsd-t/backlog.md` | Exists |
33
- | `.gsd-t/backlog-settings.md` | Exists |
34
-
35
- ### Required directories
36
- | Directory | Check |
37
- |-----------|-------|
38
- | `.gsd-t/contracts/` | Exists |
39
- | `.gsd-t/domains/` | Exists |
40
- | `docs/` | Exists |
41
-
42
- ### Docs
43
- | File | Check |
44
- |------|-------|
45
- | `docs/requirements.md` | Exists |
46
- | `docs/architecture.md` | Exists |
47
- | `docs/workflows.md` | Exists |
48
- | `docs/infrastructure.md` | Exists |
49
-
50
- ### Active milestone (if any)
51
- Read `.gsd-t/progress.md` to find active milestone. For each domain listed as active:
52
- - `.gsd-t/domains/{domain}/scope.md` — exists?
53
- - `.gsd-t/domains/{domain}/tasks.md` — exists?
54
- - `.gsd-t/contracts/` — at least one `.md` contract file present?
55
-
56
- ## Step 3: Additional Checks
57
-
58
- 1. **Version consistency**: Read `## Version:` from `.gsd-t/progress.md`. If `package.json` exists, compare — they should match.
59
- 2. **Status validity**: Read `## Status:` value. Confirm it's one of: `DEFINED`, `PARTITIONED`, `DISCUSSED`, `PLANNED`, `EXECUTED`, `SYNCED`, `INTEGRATED`, `VERIFIED`, `VERIFIED-WITH-WARNINGS`, `VERIFY-FAILED`, `COMPLETED`.
60
- 3. **Decision Log**: Confirm `## Decision Log` section exists and has at least one entry.
61
- 4. **Contract integrity**: For each `.md` file in `.gsd-t/contracts/`, confirm it's non-empty.
62
- 5. **Domain integrity**: For each directory in `.gsd-t/domains/`, confirm at least `scope.md` exists.
63
-
64
- ## Step 4: Report Findings
65
-
66
- Output a health report in this format:
67
-
68
- ```
69
- GSD-T Health Report
70
- ═══════════════════════════════════════════════════════════
71
-
72
- Core Files
73
- ✓ CLAUDE.md
74
- ✓ README.md
75
- ✗ .gsd-t/progress.md — MISSING
76
- ✓ .gsd-t/backlog.md
77
-
78
- Directories
79
- ✓ .gsd-t/contracts/
80
- ✗ docs/ — MISSING
81
-
82
- Docs
83
- ✓ docs/requirements.md
84
- ✗ docs/architecture.md — MISSING
85
-
86
- Active Milestone: {name | none}
87
- ✓ .gsd-t/domains/{domain}/scope.md
88
- ✗ .gsd-t/domains/{domain}/tasks.md — MISSING
89
-
90
- Additional Checks
91
- ✓ Version: 2.27.10 (consistent with package.json)
92
- ✓ Status: PLANNED (valid)
93
- ✓ Decision Log: present
94
- ✗ contracts/api-contract.md — EMPTY
95
-
96
- ═══════════════════════════════════════════════════════════
97
- Summary: {N} OK | {N} missing | {N} invalid
98
- Overall: {HEALTHY | DEGRADED | BROKEN}
99
- ```
100
-
101
- Status thresholds:
102
- - **HEALTHY**: 0 missing, 0 invalid
103
- - **DEGRADED**: 1-3 missing/invalid (non-critical)
104
- - **BROKEN**: 4+ missing/invalid OR progress.md missing OR contracts/ missing
105
-
106
- ## Step 5: Repair (if --repair)
107
-
108
- If `REPAIR=true` and any items are MISSING (not INVALID), create them now:
109
-
110
- | Missing item | Repair action |
111
- |--------------|---------------|
112
- | `CLAUDE.md` | Create from `templates/CLAUDE-project.md` (with `{Project Name}` = directory name) |
113
- | `README.md` | Create minimal `# {Project Name}\n\n_No description yet._\n` |
114
- | `.gsd-t/progress.md` | Create from `templates/progress.md` |
115
- | `.gsd-t/backlog.md` | Create from `templates/backlog.md` |
116
- | `.gsd-t/backlog-settings.md` | Create from `templates/backlog-settings.md` |
117
- | `.gsd-t/contracts/` | Create empty directory |
118
- | `.gsd-t/domains/` | Create empty directory |
119
- | `docs/` | Create directory |
120
- | `docs/requirements.md` | Create from `templates/requirements.md` |
121
- | `docs/architecture.md` | Create from `templates/architecture.md` |
122
- | `docs/workflows.md` | Create from `templates/workflows.md` |
123
- | `docs/infrastructure.md` | Create from `templates/infrastructure.md` |
124
- | Domain `scope.md` | Create minimal scope with domain name as heading |
125
- | Domain `tasks.md` | Create minimal task list with `## Tasks\n_No tasks defined yet._` |
126
-
127
- After repair, re-run the checks and report the final state.
128
-
129
- **Do NOT repair INVALID items** (e.g., empty contracts, bad status values) — flag them for user action.
130
-
131
- ## Step 6: Next Steps
132
-
133
- If HEALTHY → "✅ GSD-T structure is healthy — all required files present."
134
- If DEGRADED with --repair done → "✅ Repaired {N} missing files. Run /user:gsd-t-health again to confirm."
135
- If DEGRADED without --repair → "⚠ Run /user:gsd-t-health --repair to create {N} missing files."
136
- If BROKEN → "🔴 Project structure is broken. Run /user:gsd-t-health --repair or /user:gsd-t-init to rebuild."
137
-
138
- $ARGUMENTS
139
-
140
- ## Auto-Clear
141
-
142
- All work is committed to project files. Execute `/clear` to free the context window for the next command.
1
+ # GSD-T: Health — Validate Project Structure
2
+
3
+ You are diagnosing the health of a GSD-T project. Check every required file and directory, report findings, and optionally repair missing pieces.
4
+
5
+ ## Step 0: Launch via Subagent (default)
6
+
7
+ When invoked directly by the user, spawn yourself as a Task subagent for a fresh context window:
8
+
9
+ ```
10
+ Task subagent (general-purpose, model: haiku):
11
+ "Run the GSD-T health check. Read commands/gsd-t-health.md for your full instructions.
12
+ Arguments: {$ARGUMENTS}
13
+ Skip Step 0 — you are already the subagent."
14
+ ```
15
+
16
+ Return the subagent's output and stop. Only skip Step 0 if you are already running as a subagent.
17
+
18
+ ## Step 1: Determine Mode
19
+
20
+ If `--repair` appears in $ARGUMENTS, set `REPAIR=true`. Otherwise `REPAIR=false`.
21
+
22
+ ## Step 2: Check Required Structure
23
+
24
+ Check each item below. Record status as `OK`, `MISSING`, or `INVALID`.
25
+
26
+ ### Root files
27
+ | File | Check |
28
+ |------|-------|
29
+ | `CLAUDE.md` | Exists and non-empty |
30
+ | `README.md` | Exists and non-empty |
31
+ | `.gsd-t/progress.md` | Exists, has `## Status:` and `## Version:` sections |
32
+ | `.gsd-t/backlog.md` | Exists |
33
+ | `.gsd-t/backlog-settings.md` | Exists |
34
+
35
+ ### Required directories
36
+ | Directory | Check |
37
+ |-----------|-------|
38
+ | `.gsd-t/contracts/` | Exists |
39
+ | `.gsd-t/domains/` | Exists |
40
+ | `docs/` | Exists |
41
+
42
+ ### Docs
43
+ | File | Check |
44
+ |------|-------|
45
+ | `docs/requirements.md` | Exists |
46
+ | `docs/architecture.md` | Exists |
47
+ | `docs/workflows.md` | Exists |
48
+ | `docs/infrastructure.md` | Exists |
49
+
50
+ ### Active milestone (if any)
51
+ Read `.gsd-t/progress.md` to find active milestone. For each domain listed as active:
52
+ - `.gsd-t/domains/{domain}/scope.md` — exists?
53
+ - `.gsd-t/domains/{domain}/tasks.md` — exists?
54
+ - `.gsd-t/contracts/` — at least one `.md` contract file present?
55
+
56
+ ## Step 3: Additional Checks
57
+
58
+ 1. **Version consistency**: Read `## Version:` from `.gsd-t/progress.md`. If `package.json` exists, compare — they should match.
59
+ 2. **Status validity**: Read `## Status:` value. Confirm it's one of: `DEFINED`, `PARTITIONED`, `DISCUSSED`, `PLANNED`, `EXECUTED`, `SYNCED`, `INTEGRATED`, `VERIFIED`, `VERIFIED-WITH-WARNINGS`, `VERIFY-FAILED`, `COMPLETED`.
60
+ 3. **Decision Log**: Confirm `## Decision Log` section exists and has at least one entry.
61
+ 4. **Contract integrity**: For each `.md` file in `.gsd-t/contracts/`, confirm it's non-empty.
62
+ 5. **Domain integrity**: For each directory in `.gsd-t/domains/`, confirm at least `scope.md` exists.
63
+
64
+ ## Step 4: Report Findings
65
+
66
+ Output a health report in this format:
67
+
68
+ ```
69
+ GSD-T Health Report
70
+ ═══════════════════════════════════════════════════════════
71
+
72
+ Core Files
73
+ ✓ CLAUDE.md
74
+ ✓ README.md
75
+ ✗ .gsd-t/progress.md — MISSING
76
+ ✓ .gsd-t/backlog.md
77
+
78
+ Directories
79
+ ✓ .gsd-t/contracts/
80
+ ✗ docs/ — MISSING
81
+
82
+ Docs
83
+ ✓ docs/requirements.md
84
+ ✗ docs/architecture.md — MISSING
85
+
86
+ Active Milestone: {name | none}
87
+ ✓ .gsd-t/domains/{domain}/scope.md
88
+ ✗ .gsd-t/domains/{domain}/tasks.md — MISSING
89
+
90
+ Additional Checks
91
+ ✓ Version: 2.27.10 (consistent with package.json)
92
+ ✓ Status: PLANNED (valid)
93
+ ✓ Decision Log: present
94
+ ✗ contracts/api-contract.md — EMPTY
95
+
96
+ ═══════════════════════════════════════════════════════════
97
+ Summary: {N} OK | {N} missing | {N} invalid
98
+ Overall: {HEALTHY | DEGRADED | BROKEN}
99
+ ```
100
+
101
+ Status thresholds:
102
+ - **HEALTHY**: 0 missing, 0 invalid
103
+ - **DEGRADED**: 1-3 missing/invalid (non-critical)
104
+ - **BROKEN**: 4+ missing/invalid OR progress.md missing OR contracts/ missing
105
+
106
+ ## Step 5: Repair (if --repair)
107
+
108
+ If `REPAIR=true` and any items are MISSING (not INVALID), create them now:
109
+
110
+ | Missing item | Repair action |
111
+ |--------------|---------------|
112
+ | `CLAUDE.md` | Create from `templates/CLAUDE-project.md` (with `{Project Name}` = directory name) |
113
+ | `README.md` | Create minimal `# {Project Name}\n\n_No description yet._\n` |
114
+ | `.gsd-t/progress.md` | Create from `templates/progress.md` |
115
+ | `.gsd-t/backlog.md` | Create from `templates/backlog.md` |
116
+ | `.gsd-t/backlog-settings.md` | Create from `templates/backlog-settings.md` |
117
+ | `.gsd-t/contracts/` | Create empty directory |
118
+ | `.gsd-t/domains/` | Create empty directory |
119
+ | `docs/` | Create directory |
120
+ | `docs/requirements.md` | Create from `templates/requirements.md` |
121
+ | `docs/architecture.md` | Create from `templates/architecture.md` |
122
+ | `docs/workflows.md` | Create from `templates/workflows.md` |
123
+ | `docs/infrastructure.md` | Create from `templates/infrastructure.md` |
124
+ | Domain `scope.md` | Create minimal scope with domain name as heading |
125
+ | Domain `tasks.md` | Create minimal task list with `## Tasks\n_No tasks defined yet._` |
126
+
127
+ After repair, re-run the checks and report the final state.
128
+
129
+ **Do NOT repair INVALID items** (e.g., empty contracts, bad status values) — flag them for user action.
130
+
131
+ ## Step 6: Next Steps
132
+
133
+ If HEALTHY → "✅ GSD-T structure is healthy — all required files present."
134
+ If DEGRADED with --repair done → "✅ Repaired {N} missing files. Run /user:gsd-t-health again to confirm."
135
+ If DEGRADED without --repair → "⚠ Run /user:gsd-t-health --repair to create {N} missing files."
136
+ If BROKEN → "🔴 Project structure is broken. Run /user:gsd-t-health --repair or /user:gsd-t-init to rebuild."
137
+
138
+ $ARGUMENTS
139
+
140
+ ## Auto-Clear
141
+
142
+ All work is committed to project files. Execute `/clear` to free the context window for the next command.