@windyroad/risk-scorer 0.19.0 → 0.19.1
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/risk-gate.sh
CHANGED
|
@@ -56,11 +56,7 @@ check_risk_gate() {
|
|
|
56
56
|
fi
|
|
57
57
|
if ! _checkout_matches "$CHECKOUT_FILE"; then
|
|
58
58
|
RISK_GATE_CATEGORY="drift"
|
|
59
|
-
|
|
60
|
-
RISK_GATE_REASON="Risk assessment checkout binding does not match the checkout visible to this hook. Retry the same command with an explicit leading \`cd /absolute/path/to/the/assessed-checkout && ...\`; the valid score was preserved, so do not rescore unless that checkout changed."
|
|
61
|
-
else
|
|
62
|
-
RISK_GATE_REASON="Risk assessment checkout binding is missing or does not match the current Git checkout. Delegate to wr-risk-scorer:pipeline (subagent_type: 'wr-risk-scorer:pipeline') to rescore this checkout."
|
|
63
|
-
fi
|
|
59
|
+
RISK_GATE_REASON="Risk assessment checkout binding does not match the checkout visible to this hook. Retry the same command with an explicit leading \`cd /absolute/path/to/the/assessed-checkout && ...\`; the valid score was preserved, so do not rescore unless that checkout changed."
|
|
64
60
|
return 1
|
|
65
61
|
fi
|
|
66
62
|
|
package/package.json
CHANGED