gsd-antigravity-kit 2.0.1 → 2.1.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 (251) hide show
  1. package/.agent/skills/gsd/SKILL.md +26 -4
  2. package/.agent/skills/gsd/VERSION +1 -1
  3. package/.agent/skills/gsd/assets/templates/AI-SPEC.md +246 -0
  4. package/.agent/skills/gsd/assets/templates/DEBUG.md +7 -2
  5. package/.agent/skills/gsd/assets/templates/config.json +56 -48
  6. package/.agent/skills/gsd/assets/templates/research.md +40 -0
  7. package/.agent/skills/gsd/assets/templates/spec.md +307 -0
  8. package/.agent/skills/gsd/assets/templates/state.md +8 -0
  9. package/.agent/skills/gsd/bin/gsd-tools.cjs +212 -11
  10. package/.agent/skills/gsd/bin/help-manifest.json +8 -2
  11. package/.agent/skills/gsd/bin/hooks/gsd-check-update-worker.js +108 -0
  12. package/.agent/skills/gsd/bin/hooks/gsd-check-update.js +14 -89
  13. package/.agent/skills/gsd/bin/hooks/gsd-context-monitor.js +34 -5
  14. package/.agent/skills/gsd/bin/hooks/gsd-phase-boundary.sh +1 -0
  15. package/.agent/skills/gsd/bin/hooks/gsd-prompt-guard.js +1 -1
  16. package/.agent/skills/gsd/bin/hooks/gsd-read-guard.js +6 -1
  17. package/.agent/skills/gsd/bin/hooks/gsd-session-state.sh +1 -0
  18. package/.agent/skills/gsd/bin/hooks/gsd-statusline.js +150 -16
  19. package/.agent/skills/gsd/bin/hooks/gsd-validate-commit.sh +1 -0
  20. package/.agent/skills/gsd/bin/hooks/gsd-workflow-guard.js +1 -1
  21. package/.agent/skills/gsd/bin/lib/audit.cjs +757 -0
  22. package/.agent/skills/gsd/bin/lib/commands.cjs +17 -7
  23. package/.agent/skills/gsd/bin/lib/config.cjs +66 -20
  24. package/.agent/skills/gsd/bin/lib/core.cjs +212 -12
  25. package/.agent/skills/gsd/bin/lib/frontmatter.cjs +6 -8
  26. package/.agent/skills/gsd/bin/lib/graphify.cjs +494 -0
  27. package/.agent/skills/gsd/bin/lib/gsd2-import.cjs +511 -0
  28. package/.agent/skills/gsd/bin/lib/init.cjs +371 -18
  29. package/.agent/skills/gsd/bin/lib/intel.cjs +9 -30
  30. package/.agent/skills/gsd/bin/lib/milestone.cjs +18 -17
  31. package/.agent/skills/gsd/bin/lib/model-profiles.cjs +1 -0
  32. package/.agent/skills/gsd/bin/lib/phase.cjs +225 -98
  33. package/.agent/skills/gsd/bin/lib/profile-output.cjs +17 -5
  34. package/.agent/skills/gsd/bin/lib/roadmap.cjs +12 -5
  35. package/.agent/skills/gsd/bin/lib/state.cjs +394 -129
  36. package/.agent/skills/gsd/bin/lib/template.cjs +8 -4
  37. package/.agent/skills/gsd/bin/lib/uat.cjs +2 -1
  38. package/.agent/skills/gsd/bin/lib/verify.cjs +111 -42
  39. package/.agent/skills/gsd/migration_report.md +2 -2
  40. package/.agent/skills/gsd/references/agents/gsd-advisor-researcher.md +23 -0
  41. package/.agent/skills/gsd/references/agents/gsd-ai-researcher.md +133 -0
  42. package/.agent/skills/gsd/references/agents/gsd-code-fixer.md +11 -10
  43. package/.agent/skills/gsd/references/agents/gsd-code-reviewer.md +2 -2
  44. package/.agent/skills/gsd/references/agents/gsd-codebase-mapper.md +13 -2
  45. package/.agent/skills/gsd/references/agents/gsd-debug-session-manager.md +314 -0
  46. package/.agent/skills/gsd/references/agents/gsd-debugger.md +147 -76
  47. package/.agent/skills/gsd/references/agents/gsd-doc-verifier.md +1 -1
  48. package/.agent/skills/gsd/references/agents/gsd-doc-writer.md +615 -602
  49. package/.agent/skills/gsd/references/agents/gsd-domain-researcher.md +153 -0
  50. package/.agent/skills/gsd/references/agents/gsd-eval-auditor.md +175 -0
  51. package/.agent/skills/gsd/references/agents/gsd-eval-planner.md +154 -0
  52. package/.agent/skills/gsd/references/agents/gsd-executor.md +108 -38
  53. package/.agent/skills/gsd/references/agents/gsd-framework-selector.md +160 -0
  54. package/.agent/skills/gsd/references/agents/gsd-integration-checker.md +454 -443
  55. package/.agent/skills/gsd/references/agents/gsd-intel-updater.md +40 -20
  56. package/.agent/skills/gsd/references/agents/gsd-nyquist-auditor.md +187 -176
  57. package/.agent/skills/gsd/references/agents/gsd-pattern-mapper.md +335 -0
  58. package/.agent/skills/gsd/references/agents/gsd-phase-researcher.md +112 -13
  59. package/.agent/skills/gsd/references/agents/gsd-plan-checker.md +104 -10
  60. package/.agent/skills/gsd/references/agents/gsd-planner.md +125 -167
  61. package/.agent/skills/gsd/references/agents/gsd-project-researcher.md +25 -2
  62. package/.agent/skills/gsd/references/agents/gsd-research-synthesizer.md +3 -3
  63. package/.agent/skills/gsd/references/agents/gsd-roadmapper.md +12 -1
  64. package/.agent/skills/gsd/references/agents/gsd-security-auditor.md +139 -128
  65. package/.agent/skills/gsd/references/agents/gsd-ui-auditor.md +3 -3
  66. package/.agent/skills/gsd/references/agents/gsd-ui-checker.md +11 -2
  67. package/.agent/skills/gsd/references/agents/gsd-ui-researcher.md +27 -4
  68. package/.agent/skills/gsd/references/agents/gsd-verifier.md +13 -19
  69. package/.agent/skills/gsd/references/commands/atomic/add-todo.md +2 -2
  70. package/.agent/skills/gsd/references/commands/atomic/check-todos.md +2 -2
  71. package/.agent/skills/gsd/references/commands/atomic/cleanup.md +2 -2
  72. package/.agent/skills/gsd/references/commands/atomic/do.md +2 -2
  73. package/.agent/skills/gsd/references/commands/atomic/help.md +2 -2
  74. package/.agent/skills/gsd/references/commands/atomic/join-discord.md +2 -2
  75. package/.agent/skills/gsd/references/commands/atomic/note.md +2 -2
  76. package/.agent/skills/gsd/references/commands/atomic/session-report.md +2 -2
  77. package/.agent/skills/gsd/references/commands/atomic/ship.md +2 -2
  78. package/.agent/skills/gsd/references/commands/atomic/stats.md +2 -2
  79. package/.agent/skills/gsd/references/commands/atomic/thread.md +141 -41
  80. package/.agent/skills/gsd/references/commands/atomic/undo.md +2 -2
  81. package/.agent/skills/gsd/references/commands/milestone/add-backlog.md +15 -12
  82. package/.agent/skills/gsd/references/commands/milestone/audit-milestone.md +2 -2
  83. package/.agent/skills/gsd/references/commands/milestone/complete-milestone.md +2 -2
  84. package/.agent/skills/gsd/references/commands/milestone/milestone-summary.md +2 -2
  85. package/.agent/skills/gsd/references/commands/milestone/new-milestone.md +2 -2
  86. package/.agent/skills/gsd/references/commands/milestone/plan-milestone-gaps.md +2 -2
  87. package/.agent/skills/gsd/references/commands/milestone/plant-seed.md +2 -2
  88. package/.agent/skills/gsd/references/commands/milestone/review-backlog.md +4 -4
  89. package/.agent/skills/gsd/references/commands/misc/ai-integration-phase.md +38 -0
  90. package/.agent/skills/gsd/references/commands/misc/audit-fix.md +2 -2
  91. package/.agent/skills/gsd/references/commands/misc/audit-uat.md +2 -2
  92. package/.agent/skills/gsd/references/commands/misc/eval-review.md +34 -0
  93. package/.agent/skills/gsd/references/commands/misc/extract_learnings.md +24 -0
  94. package/.agent/skills/gsd/references/commands/misc/from-gsd2.md +49 -0
  95. package/.agent/skills/gsd/references/commands/misc/graphify.md +203 -0
  96. package/.agent/skills/gsd/references/commands/misc/inbox.md +40 -0
  97. package/.agent/skills/gsd/references/commands/misc/next.md +5 -3
  98. package/.agent/skills/gsd/references/commands/misc/progress.md +4 -3
  99. package/.agent/skills/gsd/references/commands/misc/sketch-wrap-up.md +33 -0
  100. package/.agent/skills/gsd/references/commands/misc/sketch.md +47 -0
  101. package/.agent/skills/gsd/references/commands/misc/spec-phase.md +64 -0
  102. package/.agent/skills/gsd/references/commands/misc/spike-wrap-up.md +33 -0
  103. package/.agent/skills/gsd/references/commands/misc/spike.md +43 -0
  104. package/.agent/skills/gsd/references/commands/misc/verify-work.md +2 -2
  105. package/.agent/skills/gsd/references/commands/phase/add-phase.md +2 -2
  106. package/.agent/skills/gsd/references/commands/phase/add-tests.md +2 -2
  107. package/.agent/skills/gsd/references/commands/phase/discuss-phase.md +5 -5
  108. package/.agent/skills/gsd/references/commands/phase/execute-phase.md +4 -4
  109. package/.agent/skills/gsd/references/commands/phase/insert-phase.md +2 -2
  110. package/.agent/skills/gsd/references/commands/phase/list-phase-assumptions.md +2 -2
  111. package/.agent/skills/gsd/references/commands/phase/plan-phase.md +3 -3
  112. package/.agent/skills/gsd/references/commands/phase/remove-phase.md +2 -2
  113. package/.agent/skills/gsd/references/commands/phase/research-phase.md +5 -5
  114. package/.agent/skills/gsd/references/commands/phase/secure-phase.md +2 -2
  115. package/.agent/skills/gsd/references/commands/phase/ui-phase.md +2 -2
  116. package/.agent/skills/gsd/references/commands/phase/ui-review.md +2 -2
  117. package/.agent/skills/gsd/references/commands/phase/validate-phase.md +2 -2
  118. package/.agent/skills/gsd/references/commands/phase/workstreams.md +9 -9
  119. package/.agent/skills/gsd/references/commands/project/analyze-dependencies.md +2 -2
  120. package/.agent/skills/gsd/references/commands/project/explore.md +2 -2
  121. package/.agent/skills/gsd/references/commands/project/import.md +2 -2
  122. package/.agent/skills/gsd/references/commands/project/intel.md +10 -10
  123. package/.agent/skills/gsd/references/commands/project/list-workspaces.md +2 -2
  124. package/.agent/skills/gsd/references/commands/project/map-codebase.md +2 -2
  125. package/.agent/skills/gsd/references/commands/project/new-project.md +2 -2
  126. package/.agent/skills/gsd/references/commands/project/new-workspace.md +2 -2
  127. package/.agent/skills/gsd/references/commands/project/remove-workspace.md +2 -2
  128. package/.agent/skills/gsd/references/commands/project/scan.md +2 -2
  129. package/.agent/skills/gsd/references/commands/system/autonomous.md +4 -3
  130. package/.agent/skills/gsd/references/commands/system/code-review-fix.md +3 -3
  131. package/.agent/skills/gsd/references/commands/system/code-review.md +3 -3
  132. package/.agent/skills/gsd/references/commands/system/debug.md +177 -100
  133. package/.agent/skills/gsd/references/commands/system/docs-update.md +2 -2
  134. package/.agent/skills/gsd/references/commands/system/fast.md +2 -2
  135. package/.agent/skills/gsd/references/commands/system/forensics.md +2 -2
  136. package/.agent/skills/gsd/references/commands/system/gsd-tools.md +153 -6
  137. package/.agent/skills/gsd/references/commands/system/health.md +2 -2
  138. package/.agent/skills/gsd/references/commands/system/manager.md +3 -3
  139. package/.agent/skills/gsd/references/commands/system/pause-work.md +2 -2
  140. package/.agent/skills/gsd/references/commands/system/pr-branch.md +2 -2
  141. package/.agent/skills/gsd/references/commands/system/profile-user.md +2 -2
  142. package/.agent/skills/gsd/references/commands/system/quick.md +127 -3
  143. package/.agent/skills/gsd/references/commands/system/reapply-patches.md +45 -6
  144. package/.agent/skills/gsd/references/commands/system/resume-work.md +2 -2
  145. package/.agent/skills/gsd/references/commands/system/review.md +6 -4
  146. package/.agent/skills/gsd/references/commands/system/set-profile.md +3 -3
  147. package/.agent/skills/gsd/references/commands/system/settings.md +2 -2
  148. package/.agent/skills/gsd/references/commands/system/update.md +2 -2
  149. package/.agent/skills/gsd/references/docs/ai-evals.md +156 -0
  150. package/.agent/skills/gsd/references/docs/ai-frameworks.md +186 -0
  151. package/.agent/skills/gsd/references/docs/artifact-types.md +18 -0
  152. package/.agent/skills/gsd/references/docs/autonomous-smart-discuss.md +277 -0
  153. package/.agent/skills/gsd/references/docs/checkpoints.md +30 -0
  154. package/.agent/skills/gsd/references/docs/common-bug-patterns.md +49 -49
  155. package/.agent/skills/gsd/references/docs/continuation-format.md +11 -7
  156. package/.agent/skills/gsd/references/docs/debugger-philosophy.md +76 -0
  157. package/.agent/skills/gsd/references/docs/decimal-phase-calculation.md +64 -64
  158. package/.agent/skills/gsd/references/docs/executor-examples.md +110 -0
  159. package/.agent/skills/gsd/references/docs/git-integration.md +4 -4
  160. package/.agent/skills/gsd/references/docs/git-planning-commit.md +40 -38
  161. package/.agent/skills/gsd/references/docs/ios-scaffold.md +123 -0
  162. package/.agent/skills/gsd/references/docs/mandatory-initial-read.md +2 -0
  163. package/.agent/skills/gsd/references/docs/phase-argument-parsing.md +61 -61
  164. package/.agent/skills/gsd/references/docs/planner-antipatterns.md +89 -0
  165. package/.agent/skills/gsd/references/docs/planner-revision.md +87 -87
  166. package/.agent/skills/gsd/references/docs/planner-source-audit.md +73 -0
  167. package/.agent/skills/gsd/references/docs/planning-config.md +33 -8
  168. package/.agent/skills/gsd/references/docs/project-skills-discovery.md +19 -0
  169. package/.agent/skills/gsd/references/docs/sketch-interactivity.md +41 -0
  170. package/.agent/skills/gsd/references/docs/sketch-theme-system.md +94 -0
  171. package/.agent/skills/gsd/references/docs/sketch-tooling.md +45 -0
  172. package/.agent/skills/gsd/references/docs/sketch-variant-patterns.md +81 -0
  173. package/.agent/skills/gsd/references/docs/tdd.md +67 -0
  174. package/.agent/skills/gsd/references/docs/universal-anti-patterns.md +5 -0
  175. package/.agent/skills/gsd/references/docs/workstream-flag.md +11 -11
  176. package/.agent/skills/gsd/references/mapping.md +1 -1
  177. package/.agent/skills/gsd/references/workflows/add-phase.md +112 -112
  178. package/.agent/skills/gsd/references/workflows/add-tests.md +6 -3
  179. package/.agent/skills/gsd/references/workflows/add-todo.md +5 -3
  180. package/.agent/skills/gsd/references/workflows/ai-integration-phase.md +284 -0
  181. package/.agent/skills/gsd/references/workflows/audit-fix.md +157 -157
  182. package/.agent/skills/gsd/references/workflows/audit-milestone.md +340 -340
  183. package/.agent/skills/gsd/references/workflows/audit-uat.md +109 -109
  184. package/.agent/skills/gsd/references/workflows/autonomous.md +20 -288
  185. package/.agent/skills/gsd/references/workflows/check-todos.md +4 -2
  186. package/.agent/skills/gsd/references/workflows/cleanup.md +3 -1
  187. package/.agent/skills/gsd/references/workflows/code-review-fix.md +497 -497
  188. package/.agent/skills/gsd/references/workflows/code-review.md +515 -515
  189. package/.agent/skills/gsd/references/workflows/complete-milestone.md +97 -24
  190. package/.agent/skills/gsd/references/workflows/diagnose-issues.md +238 -238
  191. package/.agent/skills/gsd/references/workflows/discovery-phase.md +2 -0
  192. package/.agent/skills/gsd/references/workflows/discuss-phase-assumptions.md +11 -11
  193. package/.agent/skills/gsd/references/workflows/discuss-phase.md +143 -19
  194. package/.agent/skills/gsd/references/workflows/do.md +8 -2
  195. package/.agent/skills/gsd/references/workflows/docs-update.md +5 -3
  196. package/.agent/skills/gsd/references/workflows/eval-review.md +155 -0
  197. package/.agent/skills/gsd/references/workflows/execute-phase.md +338 -54
  198. package/.agent/skills/gsd/references/workflows/execute-plan.md +80 -104
  199. package/.agent/skills/gsd/references/workflows/explore.md +3 -1
  200. package/.agent/skills/gsd/references/workflows/extract_learnings.md +232 -0
  201. package/.agent/skills/gsd/references/workflows/forensics.md +3 -3
  202. package/.agent/skills/gsd/references/workflows/health.md +2 -2
  203. package/.agent/skills/gsd/references/workflows/help.md +59 -1
  204. package/.agent/skills/gsd/references/workflows/import.md +3 -1
  205. package/.agent/skills/gsd/references/workflows/inbox.md +387 -384
  206. package/.agent/skills/gsd/references/workflows/insert-phase.md +130 -130
  207. package/.agent/skills/gsd/references/workflows/list-workspaces.md +56 -56
  208. package/.agent/skills/gsd/references/workflows/manager.md +5 -3
  209. package/.agent/skills/gsd/references/workflows/map-codebase.md +19 -5
  210. package/.agent/skills/gsd/references/workflows/milestone-summary.md +6 -6
  211. package/.agent/skills/gsd/references/workflows/new-milestone.md +63 -9
  212. package/.agent/skills/gsd/references/workflows/new-project.md +126 -22
  213. package/.agent/skills/gsd/references/workflows/new-workspace.md +6 -4
  214. package/.agent/skills/gsd/references/workflows/next.md +220 -153
  215. package/.agent/skills/gsd/references/workflows/note.md +2 -0
  216. package/.agent/skills/gsd/references/workflows/pause-work.md +11 -7
  217. package/.agent/skills/gsd/references/workflows/plan-milestone-gaps.md +273 -273
  218. package/.agent/skills/gsd/references/workflows/plan-phase.md +281 -62
  219. package/.agent/skills/gsd/references/workflows/plant-seed.md +4 -1
  220. package/.agent/skills/gsd/references/workflows/pr-branch.md +41 -13
  221. package/.agent/skills/gsd/references/workflows/profile-user.md +15 -13
  222. package/.agent/skills/gsd/references/workflows/progress.md +133 -21
  223. package/.agent/skills/gsd/references/workflows/quick.md +67 -27
  224. package/.agent/skills/gsd/references/workflows/remove-phase.md +155 -155
  225. package/.agent/skills/gsd/references/workflows/remove-workspace.md +4 -2
  226. package/.agent/skills/gsd/references/workflows/research-phase.md +3 -3
  227. package/.agent/skills/gsd/references/workflows/resume-project.md +3 -3
  228. package/.agent/skills/gsd/references/workflows/review.md +71 -8
  229. package/.agent/skills/gsd/references/workflows/scan.md +102 -102
  230. package/.agent/skills/gsd/references/workflows/secure-phase.md +7 -5
  231. package/.agent/skills/gsd/references/workflows/settings.md +24 -7
  232. package/.agent/skills/gsd/references/workflows/ship.md +71 -6
  233. package/.agent/skills/gsd/references/workflows/sketch-wrap-up.md +283 -0
  234. package/.agent/skills/gsd/references/workflows/sketch.md +263 -0
  235. package/.agent/skills/gsd/references/workflows/spec-phase.md +262 -0
  236. package/.agent/skills/gsd/references/workflows/spike-wrap-up.md +273 -0
  237. package/.agent/skills/gsd/references/workflows/spike.md +270 -0
  238. package/.agent/skills/gsd/references/workflows/stats.md +60 -60
  239. package/.agent/skills/gsd/references/workflows/transition.md +671 -671
  240. package/.agent/skills/gsd/references/workflows/ui-phase.md +33 -12
  241. package/.agent/skills/gsd/references/workflows/ui-review.md +6 -4
  242. package/.agent/skills/gsd/references/workflows/undo.md +3 -1
  243. package/.agent/skills/gsd/references/workflows/update.md +113 -2
  244. package/.agent/skills/gsd/references/workflows/validate-phase.md +7 -5
  245. package/.agent/skills/gsd/references/workflows/verify-phase.md +93 -10
  246. package/.agent/skills/gsd/references/workflows/verify-work.md +50 -10
  247. package/.agent/skills/gsd-converter/references/mapping.md +1 -1
  248. package/.agent/skills/gsd-converter/scripts/convert.py +36 -17
  249. package/.agent/skills/gsd-converter/scripts/regression_test.py +68 -33
  250. package/README.md +3 -2
  251. package/package.json +1 -1
@@ -1,7 +1,8 @@
1
1
  <purpose>
2
- Create a clean branch for pull requests by filtering out .planning/ commits.
3
- The PR branch contains only code changes reviewers don't see GSD artifacts
4
- (PLAN.md, SUMMARY.md, STATE.md, CONTEXT.md, etc.).
2
+ Create a clean branch for pull requests by filtering out transient .planning/ commits.
3
+ The PR branch contains only code changes and structural planning state reviewers
4
+ don't see GSD transient artifacts (PLAN.md, SUMMARY.md, CONTEXT.md, RESEARCH.md, etc.)
5
+ but milestone archives, STATE.md, ROADMAP.md, and PROJECT.md changes are preserved.
5
6
 
6
7
  Uses git cherry-pick with path filtering to rebuild a clean history.
7
8
  </purpose>
@@ -48,24 +49,47 @@ Classify commits:
48
49
  git log --oneline "$TARGET".."$CURRENT_BRANCH" --no-merges
49
50
  ```
50
51
 
51
- For each commit, check if it ONLY touches .planning/ files:
52
+ **Structural planning files** always preserved (repository planning state):
53
+ - `.planning/STATE.md`
54
+ - `.planning/ROADMAP.md`
55
+ - `.planning/MILESTONES.md`
56
+ - `.planning/PROJECT.md`
57
+ - `.planning/REQUIREMENTS.md`
58
+ - `.planning/milestones/**`
59
+
60
+ **Transient planning files** — excluded from PR branch (reviewer noise):
61
+ - `.planning/phases/**` (PLAN.md, SUMMARY.md, CONTEXT.md, RESEARCH.md, etc.)
62
+ - `.planning/quick/**`
63
+ - `.planning/research/**`
64
+ - `.planning/threads/**`
65
+ - `.planning/todos/**`
66
+ - `.planning/debug/**`
67
+ - `.planning/seeds/**`
68
+ - `.planning/codebase/**`
69
+ - `.planning/ui-reviews/**`
70
+
71
+ For each commit, check what it touches:
52
72
 
53
73
  ```bash
54
74
  # For each commit hash
55
75
  FILES=$(git diff-tree --no-commit-id --name-only -r $HASH)
56
- ALL_PLANNING=$(echo "$FILES" | grep -v "^\.planning/" | wc -l)
76
+ NON_PLANNING=$(echo "$FILES" | grep -v "^\.planning/" | wc -l)
77
+ STRUCTURAL=$(echo "$FILES" | grep -E "^\.planning/(STATE|ROADMAP|MILESTONES|PROJECT|REQUIREMENTS)\.md|^\.planning/milestones/" | wc -l)
78
+ TRANSIENT_ONLY=$(echo "$FILES" | grep "^\.planning/" | grep -vE "^\.planning/(STATE|ROADMAP|MILESTONES|PROJECT|REQUIREMENTS)\.md|^\.planning/milestones/" | wc -l)
57
79
  ```
58
80
 
59
81
  Classify:
60
82
  - **Code commits**: Touch at least one non-.planning/ file → INCLUDE
61
- - **Planning-only commits**: Touch only .planning/ files → EXCLUDE
62
- - **Mixed commits**: Touch both INCLUDE (planning changes come along)
83
+ - **Structural planning commits**: Touch only structural .planning/ files (STATE.md, ROADMAP.md, MILESTONES.md, PROJECT.md, REQUIREMENTS.md, milestones/**) INCLUDE
84
+ - **Transient planning commits**: Touch only transient .planning/ files (phases/, quick/, research/, etc.) → EXCLUDE
85
+ - **Mixed commits**: Touch code + any planning files → INCLUDE (transient planning changes come along; acceptable in mixed context)
63
86
 
64
87
  Display analysis:
65
88
  ```
66
- Commits to include: {N} (code changes)
67
- Commits to exclude: {N} (planning-only)
89
+ Commits to include: {N} (code changes + structural planning)
90
+ Commits to exclude: {N} (transient planning-only)
68
91
  Mixed commits: {N} (code + planning — included)
92
+ Structural planning commits: {N} (STATE/ROADMAP/milestone updates — included)
69
93
  ```
70
94
  </step>
71
95
 
@@ -77,13 +101,17 @@ PR_BRANCH="${CURRENT_BRANCH}-pr"
77
101
  git checkout -b "$PR_BRANCH" "$TARGET"
78
102
  ```
79
103
 
80
- Cherry-pick only code commits (in order):
104
+ Cherry-pick code commits and structural planning commits (in order):
81
105
 
82
106
  ```bash
83
- for HASH in $CODE_COMMITS; do
107
+ for HASH in $CODE_AND_STRUCTURAL_COMMITS; do
84
108
  git cherry-pick "$HASH" --no-commit
85
- # Remove any .planning/ files that came along in mixed commits
86
- git rm -r --cached .planning/ 2>/dev/null || true
109
+ # Remove only transient .planning/ subdirectories that came along in mixed commits.
110
+ # DO NOT remove structural files (STATE.md, ROADMAP.md, MILESTONES.md, PROJECT.md,
111
+ # REQUIREMENTS.md, milestones/) — these must survive into the PR branch.
112
+ for dir in phases quick research threads todos debug seeds codebase ui-reviews; do
113
+ git rm -r --cached ".planning/$dir/" 2>/dev/null || true
114
+ done
87
115
  git commit -C "$HASH"
88
116
  done
89
117
  ```
@@ -1,7 +1,7 @@
1
1
  <purpose>
2
2
  Orchestrate the full developer profiling flow: consent, session analysis (or questionnaire fallback), profile generation, result display, and artifact creation.
3
3
 
4
- This workflow wires Phase 1 (session pipeline) and Phase 2 (profiling engine) into a cohesive user-facing experience. All heavy lifting is done by existing gsd-tools.cjs subcommands and the gsd-user-profiler agent -- this workflow orchestrates the sequence, handles branching, and provides the UX.
4
+ This workflow wires Phase 1 (session pipeline) and Phase 2 (profiling engine) into a cohesive user-facing experience. All heavy lifting is done by existing `gsd-sdk query` handlers (with legacy `gsd-tools.cjs` parity where needed) and the gsd-user-profiler agent -- this workflow orchestrates the sequence, handles branching, and provides the UX.
5
5
  </purpose>
6
6
 
7
7
  <required_reading>
@@ -30,6 +30,8 @@ PROFILE_PATH="C:/projects/GSD-Antigravity/.antigravity/get-shit-done/USER-PROFIL
30
30
 
31
31
  **If profile exists AND --refresh NOT set AND --questionnaire NOT set:**
32
32
 
33
+
34
+ **Text mode (`workflow.text_mode: true` in config or `--text` flag):** Set `TEXT_MODE=true` if `--text` is present in `$ARGUMENTS` OR `text_mode` from init JSON is `true`. When TEXT_MODE is active, replace every `AskUserQuestion` call with a plain-text numbered list and ask the user to type their choice number. This is required for non-Antigravity runtimes (OpenAI Codex, Gemini CLI, etc.) where `AskUserQuestion` is not available.
33
35
  Use AskUserQuestion:
34
36
  - header: "Existing Profile"
35
37
  - question: "You already have a profile. What would you like to do?"
@@ -46,7 +48,7 @@ If "Cancel": Display "No changes made." and exit.
46
48
 
47
49
  Backup existing profile:
48
50
  ```bash
49
- cp "C:/projects/GSD-Antigravity/.antigravity/get-shit-done/USER-PROFILE.md" "C:/projects/GSD-Antigravity/.antigravity/get-shit-done/USER-PROFILE.backup.md"
51
+ cp "C:/projects/GSD-Antigravity/.antigravity/get-shit-done/USER-PROFILE.md" "C:/projects/GSD-Antigravity/.antigravity/USER-PROFILE.backup.md"
50
52
  ```
51
53
 
52
54
  Display: "Re-analyzing your sessions to update your profile."
@@ -128,7 +130,7 @@ Display: "◆ Scanning sessions..."
128
130
 
129
131
  Run session scan:
130
132
  ```bash
131
- .agent/skills/gsd/bin/gsd-tools.cjs scan-sessions --json 2>/dev/null)
133
+ SCAN_RESULT=$(gsd-sdk query scan-sessions --json 2>/dev/null)
132
134
  ```
133
135
 
134
136
  Parse the JSON output to get session count and project count.
@@ -148,7 +150,7 @@ Display: "◆ Sampling messages..."
148
150
 
149
151
  Run profile sampling:
150
152
  ```bash
151
- .agent/skills/gsd/bin/gsd-tools.cjs profile-sample --json 2>/dev/null)
153
+ SAMPLE_RESULT=$(gsd-sdk query profile-sample --json 2>/dev/null)
152
154
  ```
153
155
 
154
156
  Parse the JSON output to get the temp directory path and message count.
@@ -199,7 +201,7 @@ Display: "Using questionnaire to build your profile."
199
201
 
200
202
  **Get questions:**
201
203
  ```bash
202
- .agent/skills/gsd/bin/gsd-tools.cjs profile-questionnaire --json 2>/dev/null)
204
+ QUESTIONS=$(gsd-sdk query profile-questionnaire --json 2>/dev/null)
203
205
  ```
204
206
 
205
207
  Parse the questions JSON. It contains 8 questions, one per dimension.
@@ -222,7 +224,7 @@ Write the answers JSON to `$ANSWERS_PATH`.
222
224
 
223
225
  **Convert answers to analysis:**
224
226
  ```bash
225
- .agent/skills/gsd/bin/gsd-tools.cjs profile-questionnaire --answers "$ANSWERS_PATH" --json 2>/dev/null)
227
+ ANALYSIS_RESULT=$(gsd-sdk query profile-questionnaire --answers "$ANSWERS_PATH" --json 2>/dev/null)
226
228
  ```
227
229
 
228
230
  Parse the analysis JSON from the result.
@@ -269,7 +271,7 @@ Write updated analysis JSON back to `$ANALYSIS_PATH`.
269
271
  Display: "◆ Writing profile..."
270
272
 
271
273
  ```bash
272
- .agent/skills/gsd/bin/gsd-tools.cjs write-profile --input "$ANALYSIS_PATH" --json 2>/dev/null
274
+ gsd-sdk query write-profile --input "$ANALYSIS_PATH" --json 2>/dev/null
273
275
  ```
274
276
 
275
277
  Display: "✓ Profile written to C:/projects/GSD-Antigravity/.antigravity/get-shit-done/USER-PROFILE.md"
@@ -348,7 +350,7 @@ Generate selected artifacts sequentially (file I/O is fast, no benefit from para
348
350
  **For /gsd-dev-preferences (if selected):**
349
351
 
350
352
  ```bash
351
- .agent/skills/gsd/bin/gsd-tools.cjs generate-dev-preferences --analysis "$ANALYSIS_PATH" --json 2>/dev/null
353
+ gsd-sdk query generate-dev-preferences --analysis "$ANALYSIS_PATH" --json 2>/dev/null
352
354
  ```
353
355
 
354
356
  Display: "✓ Generated /gsd-dev-preferences at C:/projects/GSD-Antigravity/.antigravity/commands/gsd/dev-preferences.md"
@@ -356,7 +358,7 @@ Display: "✓ Generated /gsd-dev-preferences at C:/projects/GSD-Antigravity/.ant
356
358
  **For ANTIGRAVITY.md profile section (if selected):**
357
359
 
358
360
  ```bash
359
- .agent/skills/gsd/bin/gsd-tools.cjs generate-antigravity-profile --analysis "$ANALYSIS_PATH" --json 2>/dev/null
361
+ gsd-sdk query generate-antigravity-profile --analysis "$ANALYSIS_PATH" --json 2>/dev/null
360
362
  ```
361
363
 
362
364
  Display: "✓ Added profile section to ANTIGRAVITY.md"
@@ -364,12 +366,12 @@ Display: "✓ Added profile section to ANTIGRAVITY.md"
364
366
  **For Global ANTIGRAVITY.md (if selected):**
365
367
 
366
368
  ```bash
367
- .agent/skills/gsd/bin/gsd-tools.cjs generate-antigravity-profile --analysis "$ANALYSIS_PATH" --global --json 2>/dev/null
369
+ gsd-sdk query generate-antigravity-profile --analysis "$ANALYSIS_PATH" --global --json 2>/dev/null
368
370
  ```
369
371
 
370
372
  Display: "✓ Added profile section to C:/projects/GSD-Antigravity/.antigravity/ANTIGRAVITY.md"
371
373
 
372
- **Error handling:** If any gsd-tools.cjs call fails, display the error message and use AskUserQuestion to offer "Retry" or "Skip this artifact". On retry, re-run the command. On skip, continue to next artifact.
374
+ **Error handling:** If any `gsd-sdk query` or gsd-tools.cjs call fails, display the error message and use AskUserQuestion to offer "Retry" or "Skip this artifact". On retry, re-run the command. On skip, continue to next artifact.
373
375
 
374
376
  ---
375
377
 
@@ -381,7 +383,7 @@ Read both old backup and new analysis to compare dimension ratings/confidence.
381
383
 
382
384
  Read the backed-up profile:
383
385
  ```bash
384
- BACKUP_PATH="C:/projects/GSD-Antigravity/.antigravity/get-shit-done/USER-PROFILE.backup.md"
386
+ BACKUP_PATH="C:/projects/GSD-Antigravity/.antigravity/USER-PROFILE.backup.md"
385
387
  ```
386
388
 
387
389
  Compare each dimension's rating and confidence between old and new. Display diff table showing only changed dimensions:
@@ -444,7 +446,7 @@ rm -f "$ANALYSIS_PATH" 2>/dev/null
444
446
  - [ ] Profile written to USER-PROFILE.md via write-profile subcommand
445
447
  - [ ] Result display shows report card table and highlight reel with evidence
446
448
  - [ ] Artifact selection uses multiSelect with all options pre-selected
447
- - [ ] Artifacts generated sequentially via gsd-tools.cjs subcommands
449
+ - [ ] Artifacts generated sequentially via gsd-sdk query (or gsd-tools.cjs) subcommands
448
450
  - [ ] Refresh diff shows changed dimensions when --refresh was used
449
451
  - [ ] Temp files cleaned up on completion
450
452
  </success_criteria>
@@ -12,14 +12,14 @@ Read all files referenced by the invoking prompt's execution_context before star
12
12
  **Load progress context (paths only):**
13
13
 
14
14
  ```bash
15
- .agent/skills/gsd/bin/gsd-tools.cjs" init progress)
15
+ INIT=$(gsd-sdk query init.progress)
16
16
  if [[ "$INIT" == @file:* ]]; then INIT=$(cat "${INIT#@file:}"); fi
17
17
  ```
18
18
 
19
19
  Extract from init JSON: `project_exists`, `roadmap_exists`, `state_exists`, `phases`, `current_phase`, `next_phase`, `milestone_version`, `completed_count`, `phase_count`, `paused_at`, `state_path`, `roadmap_path`, `project_path`, `config_path`.
20
20
 
21
21
  ```bash
22
- .agent/skills/gsd/bin/gsd-tools.cjs" config-get workflow.discuss_mode 2>/dev/null || echo "discuss")
22
+ DISCUSS_MODE=$(gsd-sdk query config-get workflow.discuss_mode 2>/dev/null || echo "discuss")
23
23
  ```
24
24
 
25
25
  If `project_exists` is false (no `.planning/` directory):
@@ -42,11 +42,11 @@ If missing both ROADMAP.md and PROJECT.md: suggest `/gsd-new-project`.
42
42
  </step>
43
43
 
44
44
  <step name="load">
45
- **Use structured extraction from gsd-tools:**
45
+ **Use structured extraction from `gsd-sdk query` (or legacy gsd-tools.cjs):**
46
46
 
47
47
  Instead of reading full files, use targeted tools to get only the data needed for the report:
48
- .agent/skills/gsd/bin/gsd-tools.cjs" roadmap analyze)`
49
- .agent/skills/gsd/bin/gsd-tools.cjs" state-snapshot)`
48
+ - `ROADMAP=$(gsd-sdk query roadmap.analyze)`
49
+ - `STATE=$(gsd-sdk query state-snapshot)`
50
50
 
51
51
  This minimizes orchestrator context usage.
52
52
  </step>
@@ -55,7 +55,7 @@ This minimizes orchestrator context usage.
55
55
  **Get comprehensive roadmap analysis (replaces manual parsing):**
56
56
 
57
57
  ```bash
58
- .agent/skills/gsd/bin/gsd-tools.cjs" roadmap analyze)
58
+ ROADMAP=$(gsd-sdk query roadmap.analyze)
59
59
  ```
60
60
 
61
61
  This returns structured JSON with:
@@ -74,7 +74,7 @@ Use this instead of manually reading/parsing ROADMAP.md.
74
74
  - Find the 2-3 most recent SUMMARY.md files
75
75
  - Use `summary-extract` for efficient parsing:
76
76
  ```bash
77
- .agent/skills/gsd/bin/gsd-tools.cjs" summary-extract <path> --fields one_liner
77
+ gsd-sdk query summary-extract <path> --fields one_liner
78
78
  ```
79
79
  - This shows "what we've been working on"
80
80
  </step>
@@ -89,11 +89,11 @@ Use this instead of manually reading/parsing ROADMAP.md.
89
89
  </step>
90
90
 
91
91
  <step name="report">
92
- **Generate progress bar from gsd-tools, then present rich status report:**
92
+ **Generate progress bar from `gsd-sdk query progress` / `progress.json`, then present rich status report:**
93
93
 
94
94
  ```bash
95
95
  # Get formatted progress bar
96
- .agent/skills/gsd/bin/gsd-tools.cjs" progress bar --raw)
96
+ PROGRESS_BAR=$(gsd-sdk query progress.bar --raw)
97
97
  ```
98
98
 
99
99
  Present:
@@ -168,7 +168,7 @@ Track:
168
168
  Scan ALL phases in the current milestone for outstanding verification debt using the CLI (which respects milestone boundaries via `getMilestonePhaseFilter`):
169
169
 
170
170
  ```bash
171
- .agent/skills/gsd/bin/gsd-tools.cjs" audit-uat --raw 2>/dev/null)
171
+ DEBT=$(gsd-sdk query audit-uat --raw 2>/dev/null)
172
172
  ```
173
173
 
174
174
  Parse JSON for `summary.total_items` and `summary.total_files`.
@@ -211,7 +211,7 @@ Read its `<objective>` section.
211
211
  ```
212
212
  ---
213
213
 
214
- ## ▶ Next Up
214
+ ## ▶ Next Up — [${PROJECT_CODE}] ${PROJECT_TITLE}
215
215
 
216
216
  **{phase}-{plan}: [Plan Name]** — [objective summary from PLAN.md]
217
217
 
@@ -231,7 +231,7 @@ Check if `{phase_num}-CONTEXT.md` exists in phase directory.
231
231
  Check if current phase has UI indicators:
232
232
 
233
233
  ```bash
234
- .agent/skills/gsd/bin/gsd-tools.cjs" roadmap get-phase "${CURRENT_PHASE}" 2>/dev/null)
234
+ PHASE_SECTION=$(gsd-sdk query roadmap.get-phase "${CURRENT_PHASE}" 2>/dev/null)
235
235
  PHASE_HAS_UI=$(echo "$PHASE_SECTION" | grep -qi "UI hint.*yes" && echo "true" || echo "false")
236
236
  ```
237
237
 
@@ -240,7 +240,7 @@ PHASE_HAS_UI=$(echo "$PHASE_SECTION" | grep -qi "UI hint.*yes" && echo "true" ||
240
240
  ```
241
241
  ---
242
242
 
243
- ## ▶ Next Up
243
+ ## ▶ Next Up — [${PROJECT_CODE}] ${PROJECT_TITLE}
244
244
 
245
245
  **Phase {N}: {Name}** — {Goal from ROADMAP.md}
246
246
  <sub>✓ Context gathered, ready to plan</sub>
@@ -257,7 +257,7 @@ PHASE_HAS_UI=$(echo "$PHASE_SECTION" | grep -qi "UI hint.*yes" && echo "true" ||
257
257
  ```
258
258
  ---
259
259
 
260
- ## ▶ Next Up
260
+ ## ▶ Next Up — [${PROJECT_CODE}] ${PROJECT_TITLE}
261
261
 
262
262
  **Phase {N}: {Name}** — {Goal from ROADMAP.md}
263
263
 
@@ -280,7 +280,7 @@ PHASE_HAS_UI=$(echo "$PHASE_SECTION" | grep -qi "UI hint.*yes" && echo "true" ||
280
280
  ```
281
281
  ---
282
282
 
283
- ## ▶ Next Up
283
+ ## ▶ Next Up — [${PROJECT_CODE}] ${PROJECT_TITLE}
284
284
 
285
285
  **Phase {N}: {Name}** — {Goal from ROADMAP.md}
286
286
 
@@ -377,7 +377,7 @@ Read ROADMAP.md to get the next phase's name and goal.
377
377
  Check if next phase has UI indicators:
378
378
 
379
379
  ```bash
380
- .agent/skills/gsd/bin/gsd-tools.cjs" roadmap get-phase "$((Z+1))" 2>/dev/null)
380
+ NEXT_PHASE_SECTION=$(gsd-sdk query roadmap.get-phase "$((Z+1))" 2>/dev/null)
381
381
  NEXT_HAS_UI=$(echo "$NEXT_PHASE_SECTION" | grep -qi "UI hint.*yes" && echo "true" || echo "false")
382
382
  ```
383
383
 
@@ -388,7 +388,7 @@ NEXT_HAS_UI=$(echo "$NEXT_PHASE_SECTION" | grep -qi "UI hint.*yes" && echo "true
388
388
 
389
389
  ## ✓ Phase {Z} Complete
390
390
 
391
- ## ▶ Next Up
391
+ ## ▶ Next Up — [${PROJECT_CODE}] ${PROJECT_TITLE}
392
392
 
393
393
  **Phase {Z+1}: {Name}** — {Goal from ROADMAP.md}
394
394
 
@@ -413,7 +413,7 @@ NEXT_HAS_UI=$(echo "$NEXT_PHASE_SECTION" | grep -qi "UI hint.*yes" && echo "true
413
413
 
414
414
  ## ✓ Phase {Z} Complete
415
415
 
416
- ## ▶ Next Up
416
+ ## ▶ Next Up — [${PROJECT_CODE}] ${PROJECT_TITLE}
417
417
 
418
418
  **Phase {Z+1}: {Name}** — {Goal from ROADMAP.md}
419
419
 
@@ -441,7 +441,7 @@ NEXT_HAS_UI=$(echo "$NEXT_PHASE_SECTION" | grep -qi "UI hint.*yes" && echo "true
441
441
 
442
442
  All {N} phases finished!
443
443
 
444
- ## ▶ Next Up
444
+ ## ▶ Next Up — [${PROJECT_CODE}] ${PROJECT_TITLE}
445
445
 
446
446
  **Complete Milestone** — archive and prepare for next
447
447
 
@@ -472,7 +472,7 @@ Read MILESTONES.md to find the last completed milestone version.
472
472
 
473
473
  Ready to plan the next milestone.
474
474
 
475
- ## ▶ Next Up
475
+ ## ▶ Next Up — [${PROJECT_CODE}] ${PROJECT_TITLE}
476
476
 
477
477
  **Start Next Milestone** — questioning → research → requirements → roadmap
478
478
 
@@ -492,7 +492,119 @@ Ready to plan the next milestone.
492
492
  - All work complete → offer milestone completion
493
493
  - Blockers present → highlight before offering to continue
494
494
  - Handoff file exists → mention it, offer `/gsd-resume-work ${GSD_WS}`
495
- </step>
495
+ </step>
496
+
497
+ <step name="forensic_audit">
498
+ **Forensic Integrity Audit** — only runs when `--forensic` is present in ARGUMENTS.
499
+
500
+ If `--forensic` is NOT present in ARGUMENTS: skip this step entirely. Default progress behavior (standard report + routing) is unchanged.
501
+
502
+ If `--forensic` IS present: after the standard report and routing suggestion have been displayed, append the following audit section.
503
+
504
+ ---
505
+
506
+ ## Forensic Integrity Audit
507
+
508
+ Running 6 deep checks against project state...
509
+
510
+ Run each check in order. For each check, emit ✓ (pass) or ⚠ (warning) with concrete evidence when a problem is found.
511
+
512
+ **Check 1 — STATE vs artifact consistency**
513
+
514
+ Read STATE.md `status` / `stopped_at` fields (from the STATE snapshot already loaded). Compare against the artifact count from the roadmap analysis. If STATE.md claims the current phase is pending/mid-flight but the artifact count shows it as complete (all PLAN.md files have matching SUMMARY.md files), flag inconsistency. Emit:
515
+ - ✓ `STATE.md consistent with artifact count` — if both agree
516
+ - ⚠ `STATE.md claims [status] but artifact count shows phase complete` — with the specific values
517
+
518
+ **Check 2 — Orphaned handoff files**
519
+
520
+ Check for existence of:
521
+ ```bash
522
+ ls .planning/HANDOFF.json .planning/phases/*/.continue-here.md .planning/phases/*/*HANDOFF*.md 2>/dev/null || true
523
+ ```
524
+ Also check `.planning/continue-here.md`.
525
+
526
+ Emit:
527
+ - ✓ `No orphaned handoff files` — if none found
528
+ - ⚠ `Orphaned handoff files found` — list each file path, add: `→ Work was paused mid-flight. Read the handoff before continuing.`
529
+
530
+ **Check 3 — Deferred scope drift**
531
+
532
+ Search phase artifacts (CONTEXT.md, DISCUSSION-LOG.md, BUG-BRIEF.md, VERIFICATION.md, SUMMARY.md, HANDOFF.md files under `.planning/phases/`) for patterns:
533
+ ```bash
534
+ grep -rl "defer to Phase\|future phase\|out of scope Phase\|deferred to Phase" .planning/phases/ 2>/dev/null || true
535
+ ```
536
+
537
+ For each match, extract the referenced phase number. Cross-reference against ROADMAP.md phase list. If the referenced phase number is NOT in ROADMAP.md, flag as deferred scope not captured.
538
+
539
+ Emit:
540
+ - ✓ `All deferred scope captured in ROADMAP` — if no mismatches
541
+ - ⚠ `Deferred scope references phase(s) not in ROADMAP` — list: file, reference text, missing phase number
542
+
543
+ **Check 4 — Memory-flagged pending work**
544
+
545
+ Check if `.planning/MEMORY.md` or `.planning/memory/` exists:
546
+ ```bash
547
+ ls .planning/MEMORY.md .planning/memory/*.md 2>/dev/null || true
548
+ ```
549
+
550
+ If found, grep for entries containing: `pending`, `status`, `deferred`, `not yet run`, `backfill`, `blocking`.
551
+
552
+ Emit:
553
+ - ✓ `No memory entries flagging pending work` — if none found or no MEMORY.md
554
+ - ⚠ `Memory entries flag pending/deferred work` — list the matching lines (max 5, truncated at 80 chars)
555
+
556
+ **Check 5 — Blocking operational todos**
557
+
558
+ Check for pending todos:
559
+ ```bash
560
+ ls .planning/todos/pending/*.md 2>/dev/null || true
561
+ ```
562
+
563
+ For files found, scan for keywords indicating operational blockers: `script`, `credential`, `API key`, `manual`, `verification`, `setup`, `configure`, `run `.
564
+
565
+ Emit:
566
+ - ✓ `No blocking operational todos` — if no pending todos or none match operational keywords
567
+ - ⚠ `Blocking operational todos found` — list the file names and matching keywords (max 5)
568
+
569
+ **Check 6 — Uncommitted code**
570
+
571
+ ```bash
572
+ git status --porcelain 2>/dev/null | grep -v "^??" | grep -v "^.planning\/" | grep -v "^\.\." | head -10
573
+ ```
574
+
575
+ If output is non-empty (modified/staged files outside `.planning/`), flag as uncommitted code.
576
+
577
+ Emit:
578
+ - ✓ `Working tree clean` — if no modified files outside `.planning/`
579
+ - ⚠ `Uncommitted changes in source files` — list up to 10 file paths
580
+
581
+ ---
582
+
583
+ After all 6 checks, display the verdict:
584
+
585
+ **If all 6 checks passed:**
586
+ ```
587
+ ### Verdict: CLEAN
588
+
589
+ The standard progress report is trustworthy — proceed with the routing suggestion above.
590
+ ```
591
+
592
+ **If 1 or more checks failed:**
593
+ ```
594
+ ### Verdict: N INTEGRITY ISSUE(S) FOUND
595
+
596
+ The standard progress report may not reflect true project state.
597
+ Review the flagged items above before acting on the routing suggestion.
598
+ ```
599
+
600
+ Then for each failed check, add a concrete next action:
601
+ - Check 2 (orphaned handoff): `Read the handoff file(s) and resume from where work was paused: /gsd-resume-work ${GSD_WS}`
602
+ - Check 3 (deferred scope): `Add the missing phases to ROADMAP.md or update the deferred references`
603
+ - Check 4 (memory pending): `Review the flagged memory entries and resolve or clear them`
604
+ - Check 5 (blocking todos): `Complete the operational steps in .planning/todos/pending/ before continuing`
605
+ - Check 6 (uncommitted code): `Commit or stash the uncommitted changes before advancing`
606
+ - Check 1 (STATE inconsistency): `Run /gsd-verify-work ${PHASE} ${GSD_WS} to reconcile state`
607
+ </step>
496
608
 
497
609
  </process>
498
610