diff --git a/crates/core/src/bin/upload_sheet_assets/storage.rs b/crates/core/src/bin/upload_sheet_assets/storage.rs index 7fa0734f..d5599368 100644 --- a/crates/core/src/bin/upload_sheet_assets/storage.rs +++ b/crates/core/src/bin/upload_sheet_assets/storage.rs @@ -208,7 +208,7 @@ fn final_error(error: &ureq::Error) -> UploadError { ), _ => refuse( UploadKind::Handshake, - "the request could not be built (check the key)", + "the request failed and is not retried (a key a header refuses, a malformed answer)", ), } } diff --git a/docs/development/RUST.md b/docs/development/RUST.md index fe449168..33f825e9 100644 --- a/docs/development/RUST.md +++ b/docs/development/RUST.md @@ -3287,9 +3287,8 @@ DELETE, no bucket call but the read). **Destination rule.** `http`, explicit port, no credentials, path, query or fragment; host `localhost`, a loopback address, or the private IPv4 address equal to `FAUNOSTEO_DEV_HOST`. A name other than `localhost` is never accepted (it cannot be proven local without resolving it). The handshake then -checks the private bucket and the key before any object is read or written. The DEV address counts only if a socket can be bound to it (an address of this machine). -A local port held by -something else would receive the key: accepted on a single-user machine, the same stance as the +checks the private bucket and the key before any object is read or written. The DEV address counts only if a socket can be bound to it (an address of this machine). A +local port held by something else would receive the key: accepted on a single-user machine, the same stance as the worker's `SUPABASE_URL`. **Tests.** `curation_upload` (7: manifest family, bytes, 15 destination refusals + DEV host rule, diff --git a/scripts/floor-clarification-check.sh b/scripts/floor-clarification-check.sh index 44576e7b..041bb632 100644 --- a/scripts/floor-clarification-check.sh +++ b/scripts/floor-clarification-check.sh @@ -15,9 +15,9 @@ ALLOWED_RE='^FLOOR SUPPRESS \.claude/audits/[^:]+\.md:[0-9]+ ' # counted as a new finding. Anything else outside ALLOWED_RE fails. DECLARED_RE='^FLOOR STUB \.claude/memory/evals\.md:205 ' -# rc 0: every finding is requalified; rc 1: at least one real finding remains. +# rc 0: every finding is requalified or the declared one; rc 1: a real finding remains. classify() { - local report="$1" total requalified remaining + local report="$1" total requalified remaining declared total=$(grep -c '^FLOOR [A-Z_]* ' "$report") requalified=$(grep -cE "$ALLOWED_RE" "$report") declared=$(grep -E "$DECLARED_RE" "$report") diff --git a/scripts/sheet-assets-e2e.sh b/scripts/sheet-assets-e2e.sh index d3d76cfc..0cbec2f4 100755 --- a/scripts/sheet-assets-e2e.sh +++ b/scripts/sheet-assets-e2e.sh @@ -27,7 +27,7 @@ expect() { local name=$1 want=$2 url=$3 key=$4; shift 4 local out rc # Keys go through the environment of the binary and grep's pattern file, never on an argv. - out=$(unset FAUNOSTEO_DEV_HOST; SUPABASE_URL="$url" SUPABASE_SERVICE_ROLE_KEY="$key" "$BIN" "$@" 2>&1); rc=$? + out=$(unset FAUNOSTEO_DEV_HOST INIT_CWD; SUPABASE_URL="$url" SUPABASE_SERVICE_ROLE_KEY="$key" "$BIN" "$@" 2>&1); rc=$? LAST=$out if [ "$rc" -eq "$want" ] && ! grep -qF -f <(printf '%s\n' "$key" "$SERVICE" "$ANON") <<<"$out"; then echo "PASS $name (exit $rc)"