v2 smoke: send the 300 KB prompt via -d @file (argv element limit); note in README
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
@@ -77,3 +77,8 @@ reason.
|
|||||||
(`/home/kyle/src/crossar/Makefile`), the sandbox refused the out-of-repository read, and it
|
(`/home/kyle/src/crossar/Makefile`), the sandbox refused the out-of-repository read, and it
|
||||||
ended its turn — the sixth refusal-ending tonight, this one triggered by its own typo. Model
|
ended its turn — the sixth refusal-ending tonight, this one triggered by its own typo. Model
|
||||||
fault; no change to the task. Restarted.
|
fault; no change to the task. Restarted.
|
||||||
|
- 2026-09-25, task 05, second session (30 min in, wiring written, smoke check 3 failing): the given
|
||||||
|
`tools/smoke.sh` passed a 300 KB prompt as one `curl -d` argument, which Linux caps at 128 KiB
|
||||||
|
per argv element, so check 3 could never pass. Test fault (mine): the body now goes through a
|
||||||
|
file (`-d @file`). Ornith diagnosed it correctly. Resumed from the working tree with the
|
||||||
|
corrected script.
|
||||||
|
|||||||
@@ -33,7 +33,9 @@ curl -s "$base/_crossbar/hosts" | grep -q '"beta":{"healthy":true' || fail "beta
|
|||||||
|
|
||||||
# 3. with beta awake, a prompt that fits nowhere is a 400 (both slots too small? no — beta fits):
|
# 3. with beta awake, a prompt that fits nowhere is a 400 (both slots too small? no — beta fits):
|
||||||
# check the guard's refusal with a prompt beyond beta's 65536-per-slot too
|
# check the guard's refusal with a prompt beyond beta's 65536-per-slot too
|
||||||
h=$(curl -s -o "$tmp/toolarge.json" -w '%{http_code}' -X POST -H 'Content-Type: application/json' -d "$(printf '{"model":"ornith-1.5-35b-a3b","messages":[{"role":"user","content":"%s"}]}' "$(head -c 300000 /dev/zero | tr '\0' 'x')")" "$base/opencode-a/v1/chat/completions")
|
# (the body goes through a file: a 300 KB string cannot be a single argv element on Linux)
|
||||||
|
{ printf '{"model":"ornith-1.5-35b-a3b","messages":[{"role":"user","content":"'; head -c 300000 /dev/zero | tr '\0' 'x'; printf '"}]}'; } > "$tmp/toolarge-req.json"
|
||||||
|
h=$(curl -s -o "$tmp/toolarge.json" -w '%{http_code}' -X POST -H 'Content-Type: application/json' -d @"$tmp/toolarge-req.json" "$base/opencode-a/v1/chat/completions")
|
||||||
[ "$h" = "400" ] && grep -q '"prompt too large"' "$tmp/toolarge.json" || fail "300 KB prompt should be 400 prompt too large, got $h $(cat "$tmp/toolarge.json")"
|
[ "$h" = "400" ] && grep -q '"prompt too large"' "$tmp/toolarge.json" || fail "300 KB prompt should be 400 prompt too large, got $h $(cat "$tmp/toolarge.json")"
|
||||||
|
|
||||||
# 4. identity: hermes-x is locked to peer talos (header mode)
|
# 4. identity: hermes-x is locked to peer talos (header mode)
|
||||||
|
|||||||
Reference in New Issue
Block a user