@windyroad/risk-scorer 0.1.4-preview.43 → 0.1.5-preview.46

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.
@@ -108,7 +108,7 @@ if echo "$COMMAND" | grep -qE '(^|;|&&|\|\|)\s*npm run release:watch(\s|$)'; the
108
108
  exit 0
109
109
  fi
110
110
  if ! check_risk_gate "$SESSION_ID" "release"; then
111
- risk_gate_deny "Release blocked: ${RISK_GATE_REASON}. To proceed: (1) split the release, (2) add risk-reducing measures, or (3) for a LIVE INCIDENT, delegate to wr-risk-scorer:pipeline (subagent_type: 'wr-risk-scorer:pipeline') with incident context for an incident bypass."
111
+ risk_gate_deny "Release blocked: ${RISK_GATE_REASON}"
112
112
  exit 0
113
113
  fi
114
114
  fi
@@ -43,7 +43,7 @@ check_risk_gate() {
43
43
  local CURRENT_HASH
44
44
  CURRENT_HASH=$("$_RISK_GATE_DIR/pipeline-state.sh" --hash-inputs 2>/dev/null | _hashcmd | cut -d' ' -f1)
45
45
  if [ "$STORED_HASH" != "$CURRENT_HASH" ]; then
46
- RISK_GATE_REASON="Pipeline state drift: git diff changed between scoring and ${ACTION}. The hash is computed at prompt submit time. If you staged files (git add) after the prompt, re-submit: stage all files first, then submit a new prompt, then commit in that response."
46
+ RISK_GATE_REASON="Pipeline state drift: working tree changed since the last ${ACTION} risk assessment. Delegate to wr-risk-scorer:pipeline (subagent_type: 'wr-risk-scorer:pipeline') to rescore against the current state."
47
47
  return 1
48
48
  fi
49
49
  fi
@@ -63,7 +63,7 @@ print('yes' if score >= 5 else 'no')
63
63
  " 2>/dev/null || echo "no")
64
64
 
65
65
  if [ "$DENIED" = "yes" ]; then
66
- RISK_GATE_REASON="${ACTION} risk score ${SCORE}/25 (Medium or above). Reduce changes or address outstanding risk first, then re-run the risk-scorer agent."
66
+ RISK_GATE_REASON="${ACTION} risk score ${SCORE}/25 (Medium or above). To proceed: (1) split the ${ACTION}, (2) add risk-reducing measures, or (3) for a LIVE INCIDENT, delegate to wr-risk-scorer:pipeline (subagent_type: 'wr-risk-scorer:pipeline') with incident context for an incident bypass."
67
67
  return 1
68
68
  fi
69
69
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@windyroad/risk-scorer",
3
- "version": "0.1.4-preview.43",
3
+ "version": "0.1.5-preview.46",
4
4
  "description": "Pipeline risk scoring, commit/push gates, and secret leak detection",
5
5
  "bin": {
6
6
  "windyroad-risk-scorer": "./bin/install.mjs"