fix(bug-verify): fresh UUID Idempotency-Key so re-verification with a different verdict does not 409

Claude-Session: https://claude.ai/code/session_01U3biMxRhFGkwtf4jVTNjcj
This commit is contained in:
Paul O'Reilly
2026-09-09 13:57:40 +12:00
parent 33501ca54e
commit be57e1e246
2 changed files with 8 additions and 5 deletions

View File

@@ -74,7 +74,7 @@ nodes:
```
python3 - <<'PY'
import json, os, urllib.request
import json, os, urllib.request, uuid
VERDICT = "verified" # or "rejected" — must match your ## Verdict
ITEM_UUID = "${item.uuid}"
@@ -88,7 +88,7 @@ nodes:
req = urllib.request.Request(url, data=body, method="PATCH", headers={
"Authorization": f"Bearer {token}",
"Content-Type": "application/json",
"Idempotency-Key": f"bug-verify-verdict-{ITEM_UUID}",
"Idempotency-Key": str(uuid.uuid4()),
})
with urllib.request.urlopen(req, timeout=30) as resp:
print(resp.status, resp.read().decode())