create-sdd-project 0.18.4 → 0.20.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.
@@ -87,8 +87,27 @@ For each feature in the batch:
87
87
  - **Lock**: If `docs/project_notes/pm-session.lock` is missing → stop (session was terminated externally).
88
88
  - **Circuit breaker**: If 3 consecutive features are `blocked` → stop and report to user.
89
89
  - **Context check**: If **2+ features have been completed** in this session, STOP and tell the user to run `/compact` followed by `continue pm`. Do NOT continue to the next feature — context degradation causes skipped steps, lost constraints, and poor quality. This is mandatory, not a suggestion.
90
+ - **Session-coherence check (added v0.20.0)**: Read `.sdd-version` from the repo root and the `**SDD version at start:** X.Y.Z` field from `docs/project_notes/pm-session.md`. If they differ → emit ADVISORY (non-blocking) once per Step transition:
91
+ ```
92
+ ⚠ Session-coherence drift: SDD upgraded mid-session (X.Y.Z → CURRENT).
93
+ Cached workflow references and rules in this session may be stale.
94
+ Recommendation: complete current Step's atomic work, then run `/compact`
95
+ followed by `continue pm` to reload templates before next Step.
96
+ (Non-blocking — proceed if you've reviewed the upgrade CHANGELOG and
97
+ confirmed no workflow-affecting changes.)
98
+ ```
99
+ Do NOT auto-update the pm-session.md value here — capture the current cached-context coherence state. The field is auto-updated only by `continue pm` after `/compact` (see "Auto-update on /compact" below).
90
100
  - **Clean workspace**: Run `git status`. If dirty, commit or stash before proceeding.
91
101
 
102
+ ##### Auto-update on `/compact` (added v0.20.0)
103
+
104
+ When `continue pm` resumes the orchestrator after a `/compact`:
105
+ 1. Re-read current `.sdd-version`.
106
+ 2. Update `**SDD version at start:** X.Y.Z` in `pm-session.md` to the current value.
107
+ 3. Reset the per-Step advisory-emitted flag.
108
+
109
+ Rationale: `/compact` reloads the cached context from the filesystem. After /compact, the agent is operating on current SDD templates, so the `SDD version at start` field should reflect that. The drift advisory above targets the WINDOW between an SDD upgrade and the next /compact — that window is the risk zone.
110
+
92
111
  #### b. Start Feature
93
112
 
94
113
  1. Update `pm-session.md`:
@@ -5,6 +5,8 @@
5
5
  **Autonomy Level:** L5 (PM Autonomous)
6
6
  **Status:** in-progress
7
7
  **Target Branch:** {main|develop}
8
+ **SDD version at start:** {sdd-version} <!-- v0.20.0: session-coherence guard. Auto-updated by `/compact`. Do not edit manually. -->
9
+
8
10
 
9
11
  ## Current Batch
10
12