@windyroad/risk-scorer 0.19.8 → 0.19.9-preview.1268
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
|
@@ -39,11 +39,7 @@ check_risk_gate() {
|
|
|
39
39
|
# 1. Score file must exist (fail-closed)
|
|
40
40
|
if [ ! -f "$SCORE_FILE" ]; then
|
|
41
41
|
RISK_GATE_CATEGORY="missing"
|
|
42
|
-
|
|
43
|
-
RISK_GATE_REASON="No ${ACTION} risk score found. Delegate to the native Codex agent wr-risk-scorer:pipeline to assess cumulative pipeline risk, wait for it to finish, then invoke interrupt_agent once on that completed target before retrying. The PostToolUse compatibility hook consumes the completed response and persists its structured verdict; no transcript parsing or nested codex exec is required."
|
|
44
|
-
else
|
|
45
|
-
RISK_GATE_REASON="No ${ACTION} risk score found. Delegate to wr-risk-scorer:pipeline (subagent_type: 'wr-risk-scorer:pipeline') to assess cumulative pipeline risk. Dispatch the scorer SYNCHRONOUSLY (run_in_background: false): a background-launched scorer does not fire its PostToolUse:Agent mark hook, so no marker persists and this gate re-blocks despite a within-appetite score (P402)."
|
|
46
|
-
fi
|
|
42
|
+
RISK_GATE_REASON="No ${ACTION} risk score found. Delegate to wr-risk-scorer:pipeline to assess cumulative pipeline risk. On Codex, wait for the reviewer and confirm that exact target is completed; then invoke \`interrupt_agent\` exactly once on the completed target before retrying. If it is still running, keep waiting. The compatibility hook persists the completed structured verdict; no transcript parsing or nested codex exec is required. On Claude Code, dispatch the reviewer synchronously (\`run_in_background: false\`) before retrying."
|
|
47
43
|
return 1
|
|
48
44
|
fi
|
|
49
45
|
|
package/package.json
CHANGED