@windyroad/style-guide 0.4.4-preview.593 → 0.4.5-preview.598
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.
package/hooks/lib/review-gate.sh
CHANGED
|
@@ -20,7 +20,7 @@ check_review_gate() {
|
|
|
20
20
|
|
|
21
21
|
# 1. Marker must exist
|
|
22
22
|
if [ ! -f "$MARKER" ]; then
|
|
23
|
-
REVIEW_GATE_REASON="No ${SYSTEM} review marker found.
|
|
23
|
+
REVIEW_GATE_REASON="No ${SYSTEM} review marker found. Delegate to wr-${SYSTEM}:agent via the Agent tool (subagent_type: 'wr-${SYSTEM}:agent') so the agent can review and create the marker."
|
|
24
24
|
return 1
|
|
25
25
|
fi
|
|
26
26
|
|
|
@@ -30,7 +30,7 @@ check_review_gate() {
|
|
|
30
30
|
local AGE=$(( NOW - MARKER_TIME ))
|
|
31
31
|
if [ "$AGE" -ge "$TTL_SECONDS" ]; then
|
|
32
32
|
rm -f "$MARKER" "$HASH_FILE"
|
|
33
|
-
REVIEW_GATE_REASON="${SYSTEM} review expired (${AGE}s old, TTL ${TTL_SECONDS}s). Re-
|
|
33
|
+
REVIEW_GATE_REASON="${SYSTEM} review expired (${AGE}s old, TTL ${TTL_SECONDS}s). Re-delegate to wr-${SYSTEM}:agent via the Agent tool (subagent_type: 'wr-${SYSTEM}:agent') to refresh the marker."
|
|
34
34
|
return 1
|
|
35
35
|
fi
|
|
36
36
|
|
|
@@ -45,7 +45,7 @@ check_review_gate() {
|
|
|
45
45
|
CURRENT_HASH=$(_substance_hash_path "$POLICY_FILE")
|
|
46
46
|
if [ "$STORED_HASH" != "$CURRENT_HASH" ]; then
|
|
47
47
|
rm -f "$MARKER" "$HASH_FILE"
|
|
48
|
-
REVIEW_GATE_REASON="${SYSTEM} policy file changed since last review. Re-
|
|
48
|
+
REVIEW_GATE_REASON="${SYSTEM} policy file changed since last review. Re-delegate to wr-${SYSTEM}:agent via the Agent tool (subagent_type: 'wr-${SYSTEM}:agent') to refresh the marker."
|
|
49
49
|
return 1
|
|
50
50
|
fi
|
|
51
51
|
fi
|