Skip to content

Commit 4c9fd5c

Browse files
fix: add Stage 3 severity term verification to review-protocol test (0f43-1316) (merge worktree-20260324-164324)
2 parents 87d0dbe + 25c75ed commit 4c9fd5c

File tree

2 files changed

+23
-3
lines changed

2 files changed

+23
-3
lines changed

plugins/dso/.claude-plugin/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dso",
3-
"version": "0.26.1",
3+
"version": "0.26.2",
44
"description": "Workflow infrastructure plugin for Claude Code projects",
55
"commands": "./commands/",
66
"skills": "./skills/",

tests/hooks/test-review-protocol-workflow.sh

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,30 @@ run_check "Contains conflict detection" grep -q "conflict" "$WORKFLOW_FILE"
6565
# Test 8: Contains revision cycle logic
6666
run_check "Contains revision cycle logic" grep -q "revision" "$WORKFLOW_FILE"
6767

68-
# Test 9: Contains Parameters section
68+
# Test 9: Stage 3 contains severity terms (critical, major, minor)
69+
if [ -f "$WORKFLOW_FILE" ]; then
70+
# Extract Stage 3 section (from "## Stage 3" to next "---" delimiter)
71+
stage3=$(sed -n '/^## Stage 3/,/^---$/p' "$WORKFLOW_FILE")
72+
has_all=true
73+
for term in critical major minor; do
74+
if ! echo "$stage3" | grep -q "$term"; then
75+
has_all=false
76+
break
77+
fi
78+
done
79+
if $has_all; then
80+
assert "Stage 3 contains severity terms (critical, major, minor)" 0
81+
else
82+
assert "Stage 3 contains severity terms (critical, major, minor)" 1
83+
fi
84+
else
85+
assert "Stage 3 contains severity terms (file missing)" 1
86+
fi
87+
88+
# Test 10: Contains Parameters section
6989
run_check "Contains Parameters section" grep -q "## Parameters" "$WORKFLOW_FILE"
7090

71-
# Test 10: Contains Revision Protocol section
91+
# Test 11: Contains Revision Protocol section
7292
run_check "Contains Revision Protocol section" grep -q "## Revision Protocol" "$WORKFLOW_FILE"
7393

7494
echo ""

0 commit comments

Comments
 (0)