echo "URL: $SUPABASE_URL" && echo "Ref: $SUPABASE_PROJECT_REF" && echo "Anon key length: ${#SUPABASE_ANON_KEY}" && echo "Service key length: ${#SUPABASE_SERVICE_ROLE_KEY}"URL: https://<ref>.supabase.co Ref: <ref> Anon key length: 208 Service key length: 219
curl -s -w "\n%{http_code}" -X POST "$SUPABASE_URL/storage/v1/bucket" \
-H "Authorization: Bearer $SUPABASE_SERVICE_ROLE_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"site-assets","public":true}'{"name":"site-assets"}
200curl -s -w "\n%{http_code}" -X POST "$SUPABASE_URL/storage/v1/bucket" \
-H "Authorization: Bearer $SUPABASE_SERVICE_ROLE_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"contracts","public":false}'{"name":"contracts"}
200curl -s -w "\n%{http_code}" -X POST "$SUPABASE_URL/storage/v1/object/site-assets/hello/banner.txt" \
-H "Authorization: Bearer $SUPABASE_SERVICE_ROLE_KEY" \
-H "Content-Type: text/plain" \
--data-binary "CARI banner v1"{"Key":"site-assets/hello/banner.txt","Id":"c284bf8e-db92-44e9-b63d-0946f583f243"}
200curl -s -w "\n%{http_code}" -X POST "$SUPABASE_URL/storage/v1/object/contracts/2026/nda-007.txt" \
-H "Authorization: Bearer $SUPABASE_SERVICE_ROLE_KEY" \
-H "Content-Type: text/plain" \
--data-binary "CARI NDA 007 draft"{"Key":"contracts/2026/nda-007.txt","Id":"cbbfd945-688c-4a3c-921c-97447f056e7b"}
200echo "=== TEST 1: Public bucket - unauthenticated GET ===" && \
curl -s -w "\nHTTP %{http_code}" "$SUPABASE_URL/storage/v1/object/public/site-assets/hello/banner.txt"=== TEST 1: Public bucket - unauthenticated GET === CARI banner v1 HTTP 200
echo "=== TEST 2: Private bucket - unauthenticated GET (should FAIL) ===" && \
curl -s -w "\nHTTP %{http_code}" "$SUPABASE_URL/storage/v1/object/public/contracts/2026/nda-007.txt"=== TEST 2: Private bucket - unauthenticated GET (should FAIL) ===
{"statusCode":"404","error":"Bucket not found","message":"Bucket not found"}
HTTP 400echo "=== TEST 3: Private bucket - authorized GET with service key ===" && \
curl -s -w "\nHTTP %{http_code}" "$SUPABASE_URL/storage/v1/object/contracts/2026/nda-007.txt" \
-H "Authorization: Bearer $SUPABASE_SERVICE_ROLE_KEY"=== TEST 3: Private bucket - authorized GET with service key === CARI NDA 007 draft HTTP 200
A shell script executed against the live project and asserted on the state the agent left behind. No model judged another model.
Raw transcript · Task definition and verifier · Every attempt