@windyroad/architect 0.1.3-preview.50 → 0.1.4-preview.52
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.
|
@@ -53,6 +53,17 @@ case "$FILE_PATH" in
|
|
|
53
53
|
exit 0 ;;
|
|
54
54
|
*/docs/problems/*.md|docs/problems/*.md)
|
|
55
55
|
exit 0 ;;
|
|
56
|
+
# Peer-plugin policy files — governed by their own plugin's enforce hook, not architect (P009)
|
|
57
|
+
*/docs/JOBS_TO_BE_DONE.md|docs/JOBS_TO_BE_DONE.md)
|
|
58
|
+
exit 0 ;;
|
|
59
|
+
*/docs/PRODUCT_DISCOVERY.md|docs/PRODUCT_DISCOVERY.md)
|
|
60
|
+
exit 0 ;;
|
|
61
|
+
*/docs/jtbd/*|docs/jtbd/*)
|
|
62
|
+
exit 0 ;;
|
|
63
|
+
*/docs/VOICE-AND-TONE.md|docs/VOICE-AND-TONE.md)
|
|
64
|
+
exit 0 ;;
|
|
65
|
+
*/docs/STYLE-GUIDE.md|docs/STYLE-GUIDE.md)
|
|
66
|
+
exit 0 ;;
|
|
56
67
|
esac
|
|
57
68
|
|
|
58
69
|
# Check gate
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
#!/usr/bin/env bats
|
|
2
|
+
|
|
3
|
+
# Tests for architect-enforce-edit.sh — verifies peer-plugin policy files are
|
|
4
|
+
# exempt from the architect gate (P009). Each plugin governs its own policy
|
|
5
|
+
# docs via its own enforce hook; the architect should not re-gate them.
|
|
6
|
+
|
|
7
|
+
setup() {
|
|
8
|
+
SCRIPT_DIR="$(cd "$(dirname "$BATS_TEST_FILENAME")/.." && pwd)"
|
|
9
|
+
HOOK="$SCRIPT_DIR/architect-enforce-edit.sh"
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
file_is_excluded() {
|
|
13
|
+
local pattern="$1"
|
|
14
|
+
grep -q "$pattern" "$HOOK"
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@test "architect: exempts JTBD policy file (P009)" {
|
|
18
|
+
file_is_excluded 'JOBS_TO_BE_DONE.md'
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@test "architect: exempts JTBD directory (P009)" {
|
|
22
|
+
file_is_excluded 'docs/jtbd'
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@test "architect: exempts PRODUCT_DISCOVERY.md (P009)" {
|
|
26
|
+
file_is_excluded 'PRODUCT_DISCOVERY.md'
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@test "architect: exempts voice-tone policy file (P009)" {
|
|
30
|
+
file_is_excluded 'VOICE-AND-TONE.md'
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@test "architect: exempts style-guide policy file (P009)" {
|
|
34
|
+
file_is_excluded 'STYLE-GUIDE.md'
|
|
35
|
+
}
|