Files
stack/agents/darkwing/work/slice1-s0-review/probe-wrap.patch
T
jason.woltjeandClaude Opus 5.5 1abebe5321 docs(review): row 34 S0 round 1, changes (darkwing)
Record for #1516 comment 26725: 34/34 cases reproduce, and a wrapped
Claude command hook fails closed on crash, missing path, noexec and hang.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-04 22:51:00 -05:00

25 lines
1.3 KiB
Diff

--- a/agents/filbert/work/slice1-probes/probe.sh
+++ b/agents/filbert/work/slice1-probes/probe.sh
@@ -9,7 +9,7 @@
RUNS=${S0_RUNS:-$HOME/filbert-scratch/s0/runs}
PI_CLI=/mnt/storage/src/mosaic-stack/node_modules/@earendil-works/pi-coding-agent/dist/bundle/cli.js
CLAUDE_BIN=$HOME/.local/share/claude/versions/2.1.289
-SDK_ENTRY=$HOME/filbert-scratch/s0/sdk/node_modules/@anthropic-ai/claude-agent-sdk/sdk.mjs
+SDK_ENTRY=$HOME/darkwing-scratch/s0-review/sdk/node_modules/@anthropic-ai/claude-agent-sdk/sdk.mjs
MOCK_URL=http://127.0.0.1:47123
launch() { # launch <limit-s> <env...> -- <cmd...>
@@ -94,6 +94,12 @@
sdk-6-throw) script=$cw; sdk 120 throw ;;
sdk-6b-hang) script=$cw; sdk 120 hang 3 ;;
sdk-6c-hang-default) script=$cw; sdk 900 hang ;;
+ dw-cc-2-crash-wrap) script=$cw; cc 90 "$g crash || exit 2" - "${ct[@]}" ;;
+ dw-cc-3-missing-wrap) script=$cw; cc 90 "$here/no-such-gate.sh block || exit 2" - "${ct[@]}" ;;
+ dw-cc-3b-noexec-wrap) script=$cw; cc 90 "$here/claude-gate-noexec.sh block || exit 2" - "${ct[@]}" ;;
+ dw-cc-4-hang-wrap) script=$cw; cc 90 "timeout 2 $g hang || exit 2" 10 "${ct[@]}" ;;
+ dw-cc-1b-deny-json-wrap) script=$cw; cc 90 "$g deny-json || exit 2" - "${ct[@]}" ;;
+ dw-cc-0-allow-wrap) script=$cw; cc 90 "true || exit 2" - "${ct[@]}" ;;
*) echo "unknown case $1" >&2; return 2 ;;
esac
}