Adds ten cc-7 cases (Darkwing's six wrapper cases plus allow, block, SIGTERM-ignoring gate and inner timeout above the hook timeout), amends rely-on lines 2 to 4, removes the stale cc-1d-block-bare evidence, adds compare.sh, reads SDK_ENTRY from the environment, fixes the cc-5c row and the Pi exit-code sentence. Co-Authored-By: Claude Opus 5.5 <[email protected]>
22 lines
1.1 KiB
Bash
Executable File
22 lines
1.1 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# Row S0: copy pass 1 run records into evidence/ (no home/ or work/ trees),
|
|
# with $HOME replaced by ~ so the records don't carry the local home path.
|
|
set -eu
|
|
here=$(dirname "$(readlink -f "$0")")
|
|
s0=$HOME/filbert-scratch/s0
|
|
out=$here/evidence
|
|
for r in "$s0"/runs/*/; do
|
|
c=$(basename "$r")
|
|
mkdir -p "$out/$c"
|
|
for f in command.txt env.txt settings.json outcome.txt gate.log mock.jsonl stdout.txt stderr.txt mock-stderr.txt; do
|
|
[ -e "$r/$f" ] && sed "s#$HOME#~#g" "$r/$f" > "$out/$c/$f"
|
|
done
|
|
[ -e "$r/work/target.txt" ] && echo "target.txt present: $(head -c 80 "$r/work/target.txt")" > "$out/$c/work-listing.txt" || echo "target.txt absent" > "$out/$c/work-listing.txt"
|
|
done
|
|
node "$here/summarize.mjs" "$s0/runs" | sed "s#$HOME#~#g" > "$out/summary-pass1.txt"
|
|
node "$here/summarize.mjs" "$s0/runs-2" | sed "s#$HOME#~#g" > "$out/summary-pass2.txt"
|
|
# compare.sh writes runs.cmp, runs-2.cmp, saw-1.txt and saw-2.txt.
|
|
"$here/compare.sh" > "$out/pass-compare.txt"
|
|
cp "$s0/runs.cmp" "$out/pass1-exit-target.txt"
|
|
cp "$s0/runs-2.cmp" "$out/pass2-exit-target.txt"
|