@windyroad/jtbd 0.7.3 → 0.8.0-preview.304

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.
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "wr-jtbd",
3
- "version": "0.7.3",
3
+ "version": "0.8.0",
4
4
  "description": "Jobs-to-be-done enforcement for Claude Code"
5
5
  }
@@ -93,6 +93,14 @@ case "$FILE_PATH" in
93
93
  exit 0 ;;
94
94
  */docs/PRODUCT_DISCOVERY.md|docs/PRODUCT_DISCOVERY.md)
95
95
  exit 0 ;;
96
+ # Story maps + stories — governed by capture-story-map / manage-story-map
97
+ # and capture-story / manage-story skills (ADR-060 § Phase 2 amendment
98
+ # 2026-05-12 lines 481-496). Same pattern as docs/problems and docs/jtbd
99
+ # exemptions. P170 Phase 2 Slice 2.5.
100
+ */docs/story-maps/*|docs/story-maps/*)
101
+ exit 0 ;;
102
+ */docs/stories/*|docs/stories/*)
103
+ exit 0 ;;
96
104
  esac
97
105
 
98
106
  # Determine JTBD path — canonical directory layout only (ADR-008 Option 3).
@@ -144,3 +144,33 @@ assert_path_blocked() {
144
144
  [[ "$output" == *"BLOCKED"* ]]
145
145
  [[ "$output" == *"wr-jtbd:agent"* ]]
146
146
  }
147
+
148
+ # --- Story maps + stories exemptions (P170 Phase 2 Slice 2.5 / ADR-060 amendment 2026-05-12) ---
149
+ # ADR-060 § Phase 2 encoding amendment lines 481-496 mandates exempting
150
+ # `docs/story-maps/**/*.html` and `docs/stories/**/*.md` from the 5
151
+ # enforce-edit gates. Mirrors the docs/problems and docs/jtbd exemptions —
152
+ # these are governance-managed surfaces with their own capture/manage skills.
153
+
154
+ @test "functional: exempts docs/story-maps/ HTML in per-state subdir (P170 / ADR-060)" {
155
+ assert_path_allowed "$PWD/docs/story-maps/draft/STORY-MAP-001-rfc-framework.html"
156
+ }
157
+
158
+ @test "functional: exempts docs/story-maps/ HTML in completed subdir (P170 / ADR-060)" {
159
+ assert_path_allowed "$PWD/docs/story-maps/completed/STORY-MAP-002-foo.html"
160
+ }
161
+
162
+ @test "functional: exempts docs/story-maps/README.md (P170 / ADR-060)" {
163
+ assert_path_allowed "$PWD/docs/story-maps/README.md"
164
+ }
165
+
166
+ @test "functional: exempts docs/stories/ markdown in per-state subdir (P170 / ADR-060)" {
167
+ assert_path_allowed "$PWD/docs/stories/draft/STORY-001-some-slice.md"
168
+ }
169
+
170
+ @test "functional: exempts docs/stories/ markdown in done subdir (P170 / ADR-060)" {
171
+ assert_path_allowed "$PWD/docs/stories/done/STORY-002-other.md"
172
+ }
173
+
174
+ @test "functional: exempts docs/stories/README.md (P170 / ADR-060)" {
175
+ assert_path_allowed "$PWD/docs/stories/README.md"
176
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@windyroad/jtbd",
3
- "version": "0.7.3",
3
+ "version": "0.8.0-preview.304",
4
4
  "description": "Jobs-to-be-done enforcement for UI changes",
5
5
  "bin": {
6
6
  "windyroad-jtbd": "./bin/install.mjs"