gsd-antigravity-kit 2.0.0 → 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.
- package/.agent/skills/gsd/SKILL.md +26 -4
- package/.agent/skills/gsd/VERSION +1 -1
- package/.agent/skills/gsd/assets/templates/AI-SPEC.md +246 -0
- package/.agent/skills/gsd/assets/templates/DEBUG.md +7 -2
- package/.agent/skills/gsd/assets/templates/config.json +56 -48
- package/.agent/skills/gsd/assets/templates/research.md +40 -0
- package/.agent/skills/gsd/assets/templates/spec.md +307 -0
- package/.agent/skills/gsd/assets/templates/state.md +8 -0
- package/.agent/skills/gsd/bin/gsd-tools.cjs +212 -11
- package/.agent/skills/gsd/bin/help-manifest.json +8 -2
- package/.agent/skills/gsd/bin/hooks/gsd-check-update-worker.js +108 -0
- package/.agent/skills/gsd/bin/hooks/gsd-check-update.js +14 -89
- package/.agent/skills/gsd/bin/hooks/gsd-context-monitor.js +34 -5
- package/.agent/skills/gsd/bin/hooks/gsd-phase-boundary.sh +1 -0
- package/.agent/skills/gsd/bin/hooks/gsd-prompt-guard.js +1 -1
- package/.agent/skills/gsd/bin/hooks/gsd-read-guard.js +6 -1
- package/.agent/skills/gsd/bin/hooks/gsd-session-state.sh +1 -0
- package/.agent/skills/gsd/bin/hooks/gsd-statusline.js +150 -16
- package/.agent/skills/gsd/bin/hooks/gsd-validate-commit.sh +1 -0
- package/.agent/skills/gsd/bin/hooks/gsd-workflow-guard.js +1 -1
- package/.agent/skills/gsd/bin/lib/audit.cjs +757 -0
- package/.agent/skills/gsd/bin/lib/commands.cjs +17 -7
- package/.agent/skills/gsd/bin/lib/config.cjs +66 -20
- package/.agent/skills/gsd/bin/lib/core.cjs +212 -12
- package/.agent/skills/gsd/bin/lib/frontmatter.cjs +6 -8
- package/.agent/skills/gsd/bin/lib/graphify.cjs +494 -0
- package/.agent/skills/gsd/bin/lib/gsd2-import.cjs +511 -0
- package/.agent/skills/gsd/bin/lib/init.cjs +371 -18
- package/.agent/skills/gsd/bin/lib/intel.cjs +9 -30
- package/.agent/skills/gsd/bin/lib/milestone.cjs +18 -17
- package/.agent/skills/gsd/bin/lib/model-profiles.cjs +1 -0
- package/.agent/skills/gsd/bin/lib/phase.cjs +225 -98
- package/.agent/skills/gsd/bin/lib/profile-output.cjs +17 -5
- package/.agent/skills/gsd/bin/lib/roadmap.cjs +12 -5
- package/.agent/skills/gsd/bin/lib/state.cjs +394 -129
- package/.agent/skills/gsd/bin/lib/template.cjs +8 -4
- package/.agent/skills/gsd/bin/lib/uat.cjs +2 -1
- package/.agent/skills/gsd/bin/lib/verify.cjs +111 -42
- package/.agent/skills/gsd/migration_report.md +2 -2
- package/.agent/skills/gsd/references/agents/gsd-advisor-researcher.md +23 -0
- package/.agent/skills/gsd/references/agents/gsd-ai-researcher.md +133 -0
- package/.agent/skills/gsd/references/agents/gsd-code-fixer.md +11 -10
- package/.agent/skills/gsd/references/agents/gsd-code-reviewer.md +2 -2
- package/.agent/skills/gsd/references/agents/gsd-codebase-mapper.md +13 -2
- package/.agent/skills/gsd/references/agents/gsd-debug-session-manager.md +314 -0
- package/.agent/skills/gsd/references/agents/gsd-debugger.md +147 -76
- package/.agent/skills/gsd/references/agents/gsd-doc-verifier.md +1 -1
- package/.agent/skills/gsd/references/agents/gsd-doc-writer.md +615 -602
- package/.agent/skills/gsd/references/agents/gsd-domain-researcher.md +153 -0
- package/.agent/skills/gsd/references/agents/gsd-eval-auditor.md +175 -0
- package/.agent/skills/gsd/references/agents/gsd-eval-planner.md +154 -0
- package/.agent/skills/gsd/references/agents/gsd-executor.md +108 -38
- package/.agent/skills/gsd/references/agents/gsd-framework-selector.md +160 -0
- package/.agent/skills/gsd/references/agents/gsd-integration-checker.md +454 -443
- package/.agent/skills/gsd/references/agents/gsd-intel-updater.md +40 -20
- package/.agent/skills/gsd/references/agents/gsd-nyquist-auditor.md +187 -176
- package/.agent/skills/gsd/references/agents/gsd-pattern-mapper.md +335 -0
- package/.agent/skills/gsd/references/agents/gsd-phase-researcher.md +112 -13
- package/.agent/skills/gsd/references/agents/gsd-plan-checker.md +104 -10
- package/.agent/skills/gsd/references/agents/gsd-planner.md +125 -167
- package/.agent/skills/gsd/references/agents/gsd-project-researcher.md +25 -2
- package/.agent/skills/gsd/references/agents/gsd-research-synthesizer.md +3 -3
- package/.agent/skills/gsd/references/agents/gsd-roadmapper.md +12 -1
- package/.agent/skills/gsd/references/agents/gsd-security-auditor.md +139 -128
- package/.agent/skills/gsd/references/agents/gsd-ui-auditor.md +3 -3
- package/.agent/skills/gsd/references/agents/gsd-ui-checker.md +11 -2
- package/.agent/skills/gsd/references/agents/gsd-ui-researcher.md +27 -4
- package/.agent/skills/gsd/references/agents/gsd-verifier.md +13 -19
- package/.agent/skills/gsd/references/commands/atomic/add-todo.md +2 -2
- package/.agent/skills/gsd/references/commands/atomic/check-todos.md +2 -2
- package/.agent/skills/gsd/references/commands/atomic/cleanup.md +2 -2
- package/.agent/skills/gsd/references/commands/atomic/do.md +2 -2
- package/.agent/skills/gsd/references/commands/atomic/help.md +2 -2
- package/.agent/skills/gsd/references/commands/atomic/join-discord.md +2 -2
- package/.agent/skills/gsd/references/commands/atomic/note.md +2 -2
- package/.agent/skills/gsd/references/commands/atomic/session-report.md +2 -2
- package/.agent/skills/gsd/references/commands/atomic/ship.md +2 -2
- package/.agent/skills/gsd/references/commands/atomic/stats.md +2 -2
- package/.agent/skills/gsd/references/commands/atomic/thread.md +141 -41
- package/.agent/skills/gsd/references/commands/atomic/undo.md +2 -2
- package/.agent/skills/gsd/references/commands/milestone/add-backlog.md +15 -12
- package/.agent/skills/gsd/references/commands/milestone/audit-milestone.md +2 -2
- package/.agent/skills/gsd/references/commands/milestone/complete-milestone.md +2 -2
- package/.agent/skills/gsd/references/commands/milestone/milestone-summary.md +2 -2
- package/.agent/skills/gsd/references/commands/milestone/new-milestone.md +2 -2
- package/.agent/skills/gsd/references/commands/milestone/plan-milestone-gaps.md +2 -2
- package/.agent/skills/gsd/references/commands/milestone/plant-seed.md +2 -2
- package/.agent/skills/gsd/references/commands/milestone/review-backlog.md +4 -4
- package/.agent/skills/gsd/references/commands/misc/ai-integration-phase.md +38 -0
- package/.agent/skills/gsd/references/commands/misc/audit-fix.md +2 -2
- package/.agent/skills/gsd/references/commands/misc/audit-uat.md +2 -2
- package/.agent/skills/gsd/references/commands/misc/eval-review.md +34 -0
- package/.agent/skills/gsd/references/commands/misc/extract_learnings.md +24 -0
- package/.agent/skills/gsd/references/commands/misc/from-gsd2.md +49 -0
- package/.agent/skills/gsd/references/commands/misc/graphify.md +203 -0
- package/.agent/skills/gsd/references/commands/misc/inbox.md +40 -0
- package/.agent/skills/gsd/references/commands/misc/next.md +5 -3
- package/.agent/skills/gsd/references/commands/misc/progress.md +4 -3
- package/.agent/skills/gsd/references/commands/misc/sketch-wrap-up.md +33 -0
- package/.agent/skills/gsd/references/commands/misc/sketch.md +47 -0
- package/.agent/skills/gsd/references/commands/misc/spec-phase.md +64 -0
- package/.agent/skills/gsd/references/commands/misc/spike-wrap-up.md +33 -0
- package/.agent/skills/gsd/references/commands/misc/spike.md +43 -0
- package/.agent/skills/gsd/references/commands/misc/verify-work.md +2 -2
- package/.agent/skills/gsd/references/commands/phase/add-phase.md +2 -2
- package/.agent/skills/gsd/references/commands/phase/add-tests.md +2 -2
- package/.agent/skills/gsd/references/commands/phase/discuss-phase.md +5 -5
- package/.agent/skills/gsd/references/commands/phase/execute-phase.md +4 -4
- package/.agent/skills/gsd/references/commands/phase/insert-phase.md +2 -2
- package/.agent/skills/gsd/references/commands/phase/list-phase-assumptions.md +2 -2
- package/.agent/skills/gsd/references/commands/phase/plan-phase.md +3 -3
- package/.agent/skills/gsd/references/commands/phase/remove-phase.md +2 -2
- package/.agent/skills/gsd/references/commands/phase/research-phase.md +5 -5
- package/.agent/skills/gsd/references/commands/phase/secure-phase.md +2 -2
- package/.agent/skills/gsd/references/commands/phase/ui-phase.md +2 -2
- package/.agent/skills/gsd/references/commands/phase/ui-review.md +2 -2
- package/.agent/skills/gsd/references/commands/phase/validate-phase.md +2 -2
- package/.agent/skills/gsd/references/commands/phase/workstreams.md +9 -9
- package/.agent/skills/gsd/references/commands/project/analyze-dependencies.md +2 -2
- package/.agent/skills/gsd/references/commands/project/explore.md +2 -2
- package/.agent/skills/gsd/references/commands/project/import.md +2 -2
- package/.agent/skills/gsd/references/commands/project/intel.md +10 -10
- package/.agent/skills/gsd/references/commands/project/list-workspaces.md +2 -2
- package/.agent/skills/gsd/references/commands/project/map-codebase.md +2 -2
- package/.agent/skills/gsd/references/commands/project/new-project.md +2 -2
- package/.agent/skills/gsd/references/commands/project/new-workspace.md +2 -2
- package/.agent/skills/gsd/references/commands/project/remove-workspace.md +2 -2
- package/.agent/skills/gsd/references/commands/project/scan.md +2 -2
- package/.agent/skills/gsd/references/commands/system/autonomous.md +4 -3
- package/.agent/skills/gsd/references/commands/system/code-review-fix.md +3 -3
- package/.agent/skills/gsd/references/commands/system/code-review.md +3 -3
- package/.agent/skills/gsd/references/commands/system/debug.md +177 -100
- package/.agent/skills/gsd/references/commands/system/docs-update.md +2 -2
- package/.agent/skills/gsd/references/commands/system/fast.md +2 -2
- package/.agent/skills/gsd/references/commands/system/forensics.md +2 -2
- package/.agent/skills/gsd/references/commands/system/gsd-tools.md +153 -6
- package/.agent/skills/gsd/references/commands/system/health.md +2 -2
- package/.agent/skills/gsd/references/commands/system/manager.md +3 -3
- package/.agent/skills/gsd/references/commands/system/pause-work.md +2 -2
- package/.agent/skills/gsd/references/commands/system/pr-branch.md +2 -2
- package/.agent/skills/gsd/references/commands/system/profile-user.md +2 -2
- package/.agent/skills/gsd/references/commands/system/quick.md +127 -3
- package/.agent/skills/gsd/references/commands/system/reapply-patches.md +45 -6
- package/.agent/skills/gsd/references/commands/system/resume-work.md +2 -2
- package/.agent/skills/gsd/references/commands/system/review.md +6 -4
- package/.agent/skills/gsd/references/commands/system/set-profile.md +3 -3
- package/.agent/skills/gsd/references/commands/system/settings.md +2 -2
- package/.agent/skills/gsd/references/commands/system/update.md +2 -2
- package/.agent/skills/gsd/references/docs/ai-evals.md +156 -0
- package/.agent/skills/gsd/references/docs/ai-frameworks.md +186 -0
- package/.agent/skills/gsd/references/docs/artifact-types.md +18 -0
- package/.agent/skills/gsd/references/docs/autonomous-smart-discuss.md +277 -0
- package/.agent/skills/gsd/references/docs/checkpoints.md +30 -0
- package/.agent/skills/gsd/references/docs/common-bug-patterns.md +49 -49
- package/.agent/skills/gsd/references/docs/continuation-format.md +11 -7
- package/.agent/skills/gsd/references/docs/debugger-philosophy.md +76 -0
- package/.agent/skills/gsd/references/docs/decimal-phase-calculation.md +64 -64
- package/.agent/skills/gsd/references/docs/executor-examples.md +110 -0
- package/.agent/skills/gsd/references/docs/git-integration.md +4 -4
- package/.agent/skills/gsd/references/docs/git-planning-commit.md +40 -38
- package/.agent/skills/gsd/references/docs/ios-scaffold.md +123 -0
- package/.agent/skills/gsd/references/docs/mandatory-initial-read.md +2 -0
- package/.agent/skills/gsd/references/docs/phase-argument-parsing.md +61 -61
- package/.agent/skills/gsd/references/docs/planner-antipatterns.md +89 -0
- package/.agent/skills/gsd/references/docs/planner-revision.md +87 -87
- package/.agent/skills/gsd/references/docs/planner-source-audit.md +73 -0
- package/.agent/skills/gsd/references/docs/planning-config.md +33 -8
- package/.agent/skills/gsd/references/docs/project-skills-discovery.md +19 -0
- package/.agent/skills/gsd/references/docs/sketch-interactivity.md +41 -0
- package/.agent/skills/gsd/references/docs/sketch-theme-system.md +94 -0
- package/.agent/skills/gsd/references/docs/sketch-tooling.md +45 -0
- package/.agent/skills/gsd/references/docs/sketch-variant-patterns.md +81 -0
- package/.agent/skills/gsd/references/docs/tdd.md +67 -0
- package/.agent/skills/gsd/references/docs/universal-anti-patterns.md +5 -0
- package/.agent/skills/gsd/references/docs/workstream-flag.md +11 -11
- package/.agent/skills/gsd/references/mapping.md +1 -1
- package/.agent/skills/gsd/references/workflows/add-phase.md +112 -112
- package/.agent/skills/gsd/references/workflows/add-tests.md +6 -3
- package/.agent/skills/gsd/references/workflows/add-todo.md +5 -3
- package/.agent/skills/gsd/references/workflows/ai-integration-phase.md +284 -0
- package/.agent/skills/gsd/references/workflows/audit-fix.md +157 -157
- package/.agent/skills/gsd/references/workflows/audit-milestone.md +340 -340
- package/.agent/skills/gsd/references/workflows/audit-uat.md +109 -109
- package/.agent/skills/gsd/references/workflows/autonomous.md +20 -288
- package/.agent/skills/gsd/references/workflows/check-todos.md +4 -2
- package/.agent/skills/gsd/references/workflows/cleanup.md +3 -1
- package/.agent/skills/gsd/references/workflows/code-review-fix.md +497 -497
- package/.agent/skills/gsd/references/workflows/code-review.md +515 -515
- package/.agent/skills/gsd/references/workflows/complete-milestone.md +97 -24
- package/.agent/skills/gsd/references/workflows/diagnose-issues.md +238 -238
- package/.agent/skills/gsd/references/workflows/discovery-phase.md +2 -0
- package/.agent/skills/gsd/references/workflows/discuss-phase-assumptions.md +11 -11
- package/.agent/skills/gsd/references/workflows/discuss-phase.md +143 -19
- package/.agent/skills/gsd/references/workflows/do.md +8 -2
- package/.agent/skills/gsd/references/workflows/docs-update.md +5 -3
- package/.agent/skills/gsd/references/workflows/eval-review.md +155 -0
- package/.agent/skills/gsd/references/workflows/execute-phase.md +338 -54
- package/.agent/skills/gsd/references/workflows/execute-plan.md +80 -104
- package/.agent/skills/gsd/references/workflows/explore.md +3 -1
- package/.agent/skills/gsd/references/workflows/extract_learnings.md +232 -0
- package/.agent/skills/gsd/references/workflows/forensics.md +3 -3
- package/.agent/skills/gsd/references/workflows/health.md +2 -2
- package/.agent/skills/gsd/references/workflows/help.md +59 -1
- package/.agent/skills/gsd/references/workflows/import.md +3 -1
- package/.agent/skills/gsd/references/workflows/inbox.md +387 -384
- package/.agent/skills/gsd/references/workflows/insert-phase.md +130 -130
- package/.agent/skills/gsd/references/workflows/list-workspaces.md +56 -56
- package/.agent/skills/gsd/references/workflows/manager.md +5 -3
- package/.agent/skills/gsd/references/workflows/map-codebase.md +19 -5
- package/.agent/skills/gsd/references/workflows/milestone-summary.md +6 -6
- package/.agent/skills/gsd/references/workflows/new-milestone.md +63 -9
- package/.agent/skills/gsd/references/workflows/new-project.md +126 -22
- package/.agent/skills/gsd/references/workflows/new-workspace.md +6 -4
- package/.agent/skills/gsd/references/workflows/next.md +220 -153
- package/.agent/skills/gsd/references/workflows/note.md +2 -0
- package/.agent/skills/gsd/references/workflows/pause-work.md +11 -7
- package/.agent/skills/gsd/references/workflows/plan-milestone-gaps.md +273 -273
- package/.agent/skills/gsd/references/workflows/plan-phase.md +281 -62
- package/.agent/skills/gsd/references/workflows/plant-seed.md +4 -1
- package/.agent/skills/gsd/references/workflows/pr-branch.md +41 -13
- package/.agent/skills/gsd/references/workflows/profile-user.md +15 -13
- package/.agent/skills/gsd/references/workflows/progress.md +133 -21
- package/.agent/skills/gsd/references/workflows/quick.md +67 -27
- package/.agent/skills/gsd/references/workflows/remove-phase.md +155 -155
- package/.agent/skills/gsd/references/workflows/remove-workspace.md +4 -2
- package/.agent/skills/gsd/references/workflows/research-phase.md +3 -3
- package/.agent/skills/gsd/references/workflows/resume-project.md +3 -3
- package/.agent/skills/gsd/references/workflows/review.md +71 -8
- package/.agent/skills/gsd/references/workflows/scan.md +102 -102
- package/.agent/skills/gsd/references/workflows/secure-phase.md +7 -5
- package/.agent/skills/gsd/references/workflows/settings.md +24 -7
- package/.agent/skills/gsd/references/workflows/ship.md +71 -6
- package/.agent/skills/gsd/references/workflows/sketch-wrap-up.md +283 -0
- package/.agent/skills/gsd/references/workflows/sketch.md +263 -0
- package/.agent/skills/gsd/references/workflows/spec-phase.md +262 -0
- package/.agent/skills/gsd/references/workflows/spike-wrap-up.md +273 -0
- package/.agent/skills/gsd/references/workflows/spike.md +270 -0
- package/.agent/skills/gsd/references/workflows/stats.md +60 -60
- package/.agent/skills/gsd/references/workflows/transition.md +671 -671
- package/.agent/skills/gsd/references/workflows/ui-phase.md +33 -12
- package/.agent/skills/gsd/references/workflows/ui-review.md +6 -4
- package/.agent/skills/gsd/references/workflows/undo.md +3 -1
- package/.agent/skills/gsd/references/workflows/update.md +113 -2
- package/.agent/skills/gsd/references/workflows/validate-phase.md +7 -5
- package/.agent/skills/gsd/references/workflows/verify-phase.md +93 -10
- package/.agent/skills/gsd/references/workflows/verify-work.md +50 -10
- package/.agent/skills/gsd-converter/references/mapping.md +1 -1
- package/.agent/skills/gsd-converter/scripts/convert.py +36 -17
- package/.agent/skills/gsd-converter/scripts/regression_test.py +68 -33
- package/README.md +3 -2
- package/package.json +4 -2
- package/.agent/skills/release-manager/SKILL.md +0 -162
- package/.agent/skills/release-manager/bin/LICENSE +0 -21
- package/.agent/skills/release-manager/bin/gh.exe +0 -0
- package/.agent/skills/release-manager/references/update_kb_from_fixes.md +0 -29
- package/.agent/skills/release-manager/scripts/release.ps1 +0 -222
- package/.agent/skills/selectpaste-update/SKILL.md +0 -46
- package/.agent/skills/selectpaste-update/scripts/sync-commands.py +0 -317
|
@@ -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
|
|
4
|
-
(PLAN.md, SUMMARY.md,
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
- **
|
|
62
|
-
- **
|
|
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
|
|
104
|
+
Cherry-pick code commits and structural planning commits (in order):
|
|
81
105
|
|
|
82
106
|
```bash
|
|
83
|
-
for HASH in $
|
|
107
|
+
for HASH in $CODE_AND_STRUCTURAL_COMMITS; do
|
|
84
108
|
git cherry-pick "$HASH" --no-commit
|
|
85
|
-
# Remove
|
|
86
|
-
|
|
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
|
|
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/
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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/
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
49
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|