@tekyzinc/gsd-t 2.18.0 → 2.18.2

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/CHANGELOG.md CHANGED
@@ -2,6 +2,20 @@
2
2
 
3
3
  All notable changes to GSD-T are documented here. Updated with each release.
4
4
 
5
+ ## [2.18.2] - 2026-02-16
6
+
7
+ ### Added
8
+ - Gap Analysis Gate in `gsd-t-complete-milestone` — mandatory requirements verification before archiving
9
+ - Self-correction loop: auto-fixes gaps, re-verifies, re-analyzes (up to 2 cycles), stops if unresolvable
10
+ - Explicit Playwright E2E test execution in milestone test verification step
11
+
12
+ ## [2.18.1] - 2026-02-16
13
+
14
+ ### Added
15
+ - Auto-Init Guard — GSD-T workflow commands automatically run `gsd-t-init` if any init files are missing, then continue with the original command
16
+ - `gsd-t-init` copies `~/.claude/settings.local` → `.claude/settings.local.json` during project initialization
17
+ - Exempt commands that skip auto-init: `gsd-t-init`, `gsd-t-init-scan-setup`, `gsd-t-help`, `gsd-t-version-update`, `gsd-t-version-update-all`, `gsd-t-prompt`, `gsd-t-brainstorm`
18
+
5
19
  ## [2.18.0] - 2026-02-16
6
20
 
7
21
  ### Added
@@ -17,6 +17,22 @@ If status is not VERIFIED:
17
17
 
18
18
  If `--force` flag provided, proceed with warning in archive.
19
19
 
20
+ ## Step 1.5: Gap Analysis Gate
21
+
22
+ After verification passes, run a gap analysis against `docs/requirements.md` scoped to this milestone's deliverables:
23
+
24
+ 1. Identify which requirements this milestone was supposed to satisfy (from domain scopes, tasks, and milestone definition)
25
+ 2. Run `gsd-t-gap-analysis` against those requirements, comparing spec to actual code
26
+ 3. If **all gaps resolved** (100% Implemented) → proceed to Step 2
27
+ 4. If **gaps found** (Partial, Incorrect, or Not Implemented):
28
+ a. Auto-fix: execute remediation for each gap (prioritize Critical → High → Medium)
29
+ b. Run affected tests (unit + integration + Playwright E2E if configured)
30
+ c. Re-run `gsd-t-verify` to confirm fixes don't break anything
31
+ d. Re-run gap analysis to confirm gaps are resolved
32
+ e. If gaps remain after **2 fix cycles** → STOP and report unresolved gaps to user
33
+
34
+ This is a **mandatory gate** — the milestone cannot be archived with known gaps against its requirements.
35
+
20
36
  ## Step 2: Gather Milestone Artifacts
21
37
 
22
38
  Collect all files related to this milestone:
@@ -163,10 +179,11 @@ Before creating the git tag, verify all documentation is up to date:
163
179
 
164
180
  Before creating the git tag, verify the milestone is truly complete:
165
181
 
166
- 1. **Run the full test suite**: Execute ALL tests — unit, integration, and E2E if available
167
- 2. **Verify all pass**: Every test must pass. If any fail, fix before tagging (up to 2 attempts)
168
- 3. **Compare to baseline**: If a test baseline was recorded at milestone start, verify coverage has improved or at minimum not regressed
169
- 4. **Log test results**: Include test pass/fail counts in the milestone summary (Step 4)
182
+ 1. **Run the full test suite**: Execute ALL tests — unit, integration, and E2E
183
+ 2. **Run Playwright E2E** (if configured): Detect `playwright.config.*` or Playwright in dependencies. If present, run the full Playwright suite. If specs are missing or stale, invoke `gsd-t-test-sync` first.
184
+ 3. **Verify all pass**: Every test must pass. If any fail, fix before tagging (up to 2 attempts)
185
+ 4. **Compare to baseline**: If a test baseline was recorded at milestone start, verify coverage has improved or at minimum not regressed
186
+ 5. **Log test results**: Include test pass/fail counts in the milestone summary (Step 4)
170
187
 
171
188
  ## Step 8: Create Git Tag
172
189
 
@@ -18,6 +18,14 @@ Report current state and ask if user wants to reset or continue.
18
18
  Offer to migrate: "Found legacy GSD structure. Want me to migrate to GSD-T?"
19
19
  If yes, read `.gsd/` state and create equivalent `.gsd-t/` structure.
20
20
 
21
+ ## Step 1.5: Copy Local Settings
22
+
23
+ If `~/.claude/settings.local` exists and `.claude/settings.local.json` does not exist in the project:
24
+ 1. Create the `.claude/` directory in the project root if it doesn't exist
25
+ 2. Copy `~/.claude/settings.local` → `.claude/settings.local.json`
26
+
27
+ Skip silently if the source file doesn't exist or the target already exists.
28
+
21
29
  ## Step 2: Create Directory Structure
22
30
 
23
31
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tekyzinc/gsd-t",
3
- "version": "2.18.0",
3
+ "version": "2.18.2",
4
4
  "description": "GSD-T: Contract-Driven Development for Claude Code — 41 slash commands with backlog management, impact analysis, test sync, and milestone archival",
5
5
  "author": "Tekyz, Inc.",
6
6
  "license": "MIT",
@@ -176,6 +176,21 @@ On session start, a version check hook outputs one of two messages. Show the res
176
176
 
177
177
  Only execute GSD-T workflow behavior when a `/gsd-t-*` command is invoked or when actively mid-phase (resumed via `/gsd-t-resume`). **Plain text messages — especially questions — should be answered conversationally.** Do not launch into workflow execution, file reading, or phase advancement from a question or comment. If the user wants work done, they will invoke a command.
178
178
 
179
+ ## Auto-Init Guard
180
+
181
+ Before executing any GSD-T workflow command, check if **any** of these files are missing in the current project:
182
+ - `.gsd-t/progress.md`, `.gsd-t/backlog.md`, `.gsd-t/backlog-settings.md`
183
+ - `.gsd-t/contracts/`, `.gsd-t/domains/`
184
+ - `.claude/settings.local.json` (if `~/.claude/settings.local` exists)
185
+ - `CLAUDE.md`, `README.md`
186
+ - `docs/requirements.md`, `docs/architecture.md`, `docs/workflows.md`, `docs/infrastructure.md`
187
+
188
+ If any are missing:
189
+ 1. Run `gsd-t-init` automatically (it skips files that already exist)
190
+ 2. Then continue with the originally requested command
191
+
192
+ **Exempt commands** (do not trigger auto-init): `gsd-t-init`, `gsd-t-init-scan-setup`, `gsd-t-help`, `gsd-t-version-update`, `gsd-t-version-update-all`, `gsd-t-prompt`, `gsd-t-brainstorm`.
193
+
179
194
  ## Prime Rule
180
195
  KEEP GOING. Only stop for:
181
196
  1. Unrecoverable errors after 2 fix attempts