agentic-sdlc-wizard 1.72.0 → 1.73.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.
@@ -13,7 +13,7 @@
13
13
  "name": "sdlc-wizard",
14
14
  "source": ".",
15
15
  "description": "SDLC enforcement for AI agents — TDD, planning, self-review, CI shepherd",
16
- "version": "1.72.0",
16
+ "version": "1.73.0",
17
17
  "author": {
18
18
  "name": "Stefan Ayala"
19
19
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sdlc-wizard",
3
- "version": "1.72.0",
3
+ "version": "1.73.0",
4
4
  "description": "SDLC enforcement for AI agents — TDD, planning, self-review, CI shepherd",
5
5
  "author": {
6
6
  "name": "Stefan Ayala",
package/CHANGELOG.md CHANGED
@@ -4,6 +4,45 @@ All notable changes to the SDLC Wizard.
4
4
 
5
5
  > **Note:** This changelog is for humans to read. Don't manually apply these changes - just run the wizard ("Check for SDLC wizard updates") and it handles everything automatically.
6
6
 
7
+ ## [1.73.0] - 2026-05-06
8
+
9
+ ### Fix: PreCompact hook no longer false-positives on stale `.git/REBASE_HEAD`
10
+
11
+ `hooks/precompact-seam-check.sh` was treating any presence of `.git/REBASE_HEAD` as "rebase in progress" and blocking manual `/compact`. But `REBASE_HEAD` is just a rebase-related ref (the stopped/replayed commit) that git can leave behind after a clean rebase finishes — the authoritative "rebase in progress" signal is the `rebase-merge/` or `rebase-apply/` directory (which is what `git status` keys on too). Hit live in this repo 2026-05-05 — yesterday's clean rebase left `REBASE_HEAD` behind, the user's manual `/compact` was blocked, and clearing it required `rm .git/REBASE_HEAD` by hand.
12
+
13
+ The OR-chain at line 227 now drops the `REBASE_HEAD` predicate; only the `rebase-{merge,apply}/` dir checks remain. Two new tests cover the fix:
14
+
15
+ - `test_precompact_silent_on_stale_rebase_head_alone` — positive: `rc=0` + empty stderr when only `REBASE_HEAD` exists
16
+ - `test_precompact_blocks_on_rebase_head_with_rebase_merge_dir` — negative control: still blocks on real in-flight rebase (REBASE_HEAD + rebase-merge dir together)
17
+
18
+ 156/156 hook tests green. Codex round 1 CERTIFIED 9/10 (one P2 comment-accuracy nit caught — fixed: `REBASE_HEAD` is the stopped/replayed commit, not the original branch tip, which is `ORIG_HEAD`).
19
+
20
+ PR #330.
21
+
22
+ ### GC: -460 LOC of stale review/plan artifacts (#236 bloat hunt)
23
+
24
+ `.reviews/` is gitignored, but 14 handoff/preflight/round-N review files for now-merged PRs were committed before that gitignore line landed. They held no ongoing reference value. `plans/CATCHUP.md` captured the v2.1.15 → v2.1.81 catch-up (March 2026) — historical context lives in CHANGELOG (v1.8.0 entry); the plan doc was dead weight.
25
+
26
+ Deleted (15 files):
27
+
28
+ - `.reviews/baseline-fires-once-001/{round-1,round-2}-review.md`
29
+ - `.reviews/skill-cross-model-trim-001/{round-1,round-2,round-3}-review.md`
30
+ - `.reviews/tdd-pretool-fires-once-001/{round-1,round-2}-review.md`
31
+ - `.reviews/preflight-{allowed-tools-permissions,baseline-fires-once,model-pin-opt-in,precompact-seam,skill-cross-model-trim,staleness-nudge,tdd-pretool-fires-once}-001.md`
32
+ - `plans/CATCHUP.md`
33
+
34
+ Kept (still load-bearing):
35
+
36
+ - `.reviews/research-95/97/99/206/235.md` (cited from ROADMAP rows)
37
+ - `.reviews/experiment-tracking.md` (asserted by `tests/test-workflow-triggers.sh:2189`)
38
+ - `plans/AUTO_SELF_UPDATE.md` (still annotated with #231 phase notes)
39
+
40
+ Hooks 156/156, cli 88/88, workflow 176/176, docs 35/35 — all green post-deletion.
41
+
42
+ PR #331.
43
+
44
+ ---
45
+
7
46
  ## [1.72.0] - 2026-05-05
8
47
 
9
48
  ### Closes #323: `init --force` no longer silently overwrites CUSTOMIZED files
@@ -2976,7 +2976,7 @@ If deployment fails or post-deploy verification catches issues:
2976
2976
 
2977
2977
  **SDLC.md:**
2978
2978
  ```markdown
2979
- <!-- SDLC Wizard Version: 1.72.0 -->
2979
+ <!-- SDLC Wizard Version: 1.73.0 -->
2980
2980
  <!-- Setup Date: [DATE] -->
2981
2981
  <!-- Completed Steps: step-0.1, step-0.2, step-0.4, step-1, step-2, step-3, step-4, step-5, step-6, step-7, step-8, step-9 -->
2982
2982
  <!-- Git Workflow: [PRs or Solo] -->
@@ -4070,7 +4070,7 @@ Walk through updates? (y/n)
4070
4070
  Store wizard state in `SDLC.md` as metadata comments (invisible to readers, parseable by Claude):
4071
4071
 
4072
4072
  ```markdown
4073
- <!-- SDLC Wizard Version: 1.72.0 -->
4073
+ <!-- SDLC Wizard Version: 1.73.0 -->
4074
4074
  <!-- Setup Date: 2026-01-24 -->
4075
4075
  <!-- Completed Steps: step-0.1, step-0.2, step-1, step-2, step-3, step-4, step-5, step-6, step-7, step-8, step-9 -->
4076
4076
  <!-- Git Workflow: PRs -->
@@ -218,7 +218,14 @@ esac
218
218
  # Unknown value (e.g. typo "bogus") → also falls through to real check
219
219
  # rather than silently bypassing safety. The safer-than-the-typo path.
220
220
  if [ "$DRY_RUN_GIT_HANDLED" -eq 0 ] && [ -d "$GITDIR" ]; then
221
- if [ -e "$GITDIR/REBASE_HEAD" ] || [ -d "$GITDIR/rebase-merge" ] || [ -d "$GITDIR/rebase-apply" ]; then
221
+ # Only the rebase-{merge,apply}/ dir is authoritative for "rebase in progress."
222
+ # .git/REBASE_HEAD is a rebase-related ref (the stopped/replayed commit) that
223
+ # is not authoritative on its own — it can persist as a stale marker after a
224
+ # rebase finishes cleanly: git removes the dir but leaves REBASE_HEAD around
225
+ # for diff/log lookups. Including it in the OR-chain caused false-positive
226
+ # HOLDs that blocked manual /compact for users whose previous rebase had
227
+ # completed (hit live 2026-05-05). `git status` keys on the dirs too.
228
+ if [ -d "$GITDIR/rebase-merge" ] || [ -d "$GITDIR/rebase-apply" ]; then
222
229
  HOLD_REASONS="${HOLD_REASONS} - Git rebase in progress. Compacting mid-rebase loses the operation's context.
223
230
  Resolve: finish or abort the rebase before /compact."$'\n'
224
231
  fi
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentic-sdlc-wizard",
3
- "version": "1.72.0",
3
+ "version": "1.73.0",
4
4
  "description": "SDLC enforcement for Claude Code — hooks, skills, and wizard setup in one command",
5
5
  "bin": {
6
6
  "sdlc-wizard": "cli/bin/sdlc-wizard.js"
@@ -93,13 +93,12 @@ Parse CHANGELOG entries between the user's installed version and latest. Present
93
93
 
94
94
  ```
95
95
  Installed: 1.42.0
96
- Latest: 1.72.0
96
+ Latest: 1.73.0
97
97
 
98
98
  What changed:
99
+ - [1.73.0] precompact stale REBASE_HEAD fix + bloat sweep — `hooks/precompact-seam-check.sh` no longer false-positive HOLDs `/compact` when a finished rebase left REBASE_HEAD behind without `rebase-{merge,apply}/` dirs (hit live 2026-05-05). 15 tracked review/plan artifacts deleted (-460 LOC).
99
100
  - [1.72.0] #323 closed — customization-aware `check` recommendation + new `--preserve-customized` flag. `init --force --preserve-customized` skips CUSTOMIZED files (action `PRESERVE`), still OVERWRITEs MATCH and CREATEs MISSING. Default `init --force` unchanged. 10 tests.
100
- - [1.71.0] token-bloat phase 3`skills/sdlc/SKILL.md` Cross-Model Review trimmed (~70 ~20 lines, -427 tokens). Full protocol + examples moved to canonical `CLAUDE_CODE_SDLC_WIZARD.md` "Cross-Model Review Loop" section.
101
- - [1.70.0] token-bloat fix phase 2 — `hooks/tdd-pretool-check.sh` TDD CHECK JSON nudge fires once per CC `session_id` instead of every src/ edit. Saves ~0.5-1.5K tokens/session.
102
- - [1.69.0] token-bloat fix phase 1 — `hooks/sdlc-prompt-check.sh` BASELINE block fires once per CC `session_id`. Saves ~12K tokens/session.
101
+ - [1.71.0–1.69.0] token-bloat sweep #236three phases: BASELINE block fires once per `session_id` (-12K/session), TDD CHECK fires once per `session_id` (-0.5-1.5K/session), `skills/sdlc/SKILL.md` Cross-Model Review trimmed (full protocol moved to canonical wizard doc).
103
102
  - [1.68.0–1.65.0] roadmap hygiene — five paperwork closes: #97 Anthropic Policy NO-GO + AAR-paper validating parallel; #99 AutoGPT NO-GO; #95 Nous NO-GO; #243 token-history liveness verified; #210 Node-24 false-green; #235 Thoughtworks AI Evals NO-GO. **6/6 external-product audits NO-GO** (continues #76, #77). Research write-ups in `.reviews/research-*.md`.
104
103
  - [1.64.0] XDLC ecosystem cross-references — README, wizard doc, and ROADMAP now cross-reference all three sibling packages (`agentic-sdlc-wizard`, `codex-sdlc-wizard`, `claude-gdlc-wizard`). New "Ecosystem (Sibling Projects)" section in README. 3 new doc-consistency tests prevent drift.
105
104
  - [1.63.0] cache-cost observability closeout (#204 absorbed by #220) — `tests/test-token-spike.sh` gains explicit cache-miss regression test + negative-control test. SDLC skill + wizard doc gain "Cache-Cost Surprises" sections covering 10-20× silent cost blowups (mid-session CLAUDE.md edits, idle pruning, upstream cache bugs) and detection via `hooks/token-spike-check.sh`'s `costly_tokens` metric.